Detection rules › Panther

OSQuery Reports Application Firewall Disabled

Severity
medium
Compliance
CIS 1.2
Log types
Osquery.Differential
Tags
Osquery, MacOS, Security Control, Defense Evasion:Impair Defenses
Reference
https://support.apple.com/en-gb/guide/mac-help/mchlpx1065/mac
Source
github.com/panther-labs/panther-analysis

Verifies that MacOS has automatic software updates enabled.

MITRE ATT&CK coverage

TacticTechniques
StealthT1562 Impair Defenses

Rule body yaml

AnalysisType: rule
Filename: osquery_mac_enable_auto_update.py
RuleID: "Osquery.Mac.AutoUpdateEnabled"
DisplayName: "OSQuery Reports Application Firewall Disabled"
Enabled: true
LogTypes:
  - Osquery.Differential
Tags:
  - Osquery
  - MacOS
  - Security Control
  - Defense Evasion:Impair Defenses
Reports:
  CIS:
    - 1.2
  MITRE ATT&CK:
    - TA0005:T1562
Severity: Medium
DedupPeriodMinutes: 1440
Description: >
  Verifies that MacOS has automatic software updates enabled.
Runbook: >
  Enable the auto updates on the host.
Reference: https://support.apple.com/en-gb/guide/mac-help/mchlpx1065/mac
SummaryAttributes:
  - name
  - action
  - p_any_ip_addresses
  - p_any_domain_names
Tests:
  - Name: Auto Updates Disabled
    ExpectedResult: true
    Log:
      {
        "columns":
          {
            "domain": "com.apple.SoftwareUpdate",
            "key": "AutomaticCheckEnabled",
            "value": "false",
          },
        "action": "added",
        "name": "pack/mac-cis/SoftwareUpdate",
      }
  - Name: Auto Updates Enabled
    ExpectedResult: false
    Log:
      {
        "columns":
          {
            "domain": "com.apple.SoftwareUpdate",
            "key": "AutomaticCheckEnabled",
            "value": "true",
          },
        "action": "added",
        "name": "pack/mac-cis/SoftwareUpdate",
      }
  - Name: Wrong Key
    ExpectedResult: false
    Log:
      {
        "columns":
          {
            "domain": "com.apple.SoftwareUpdate",
            "key": "LastFullSuccessfulDate",
            "value": "false",
          },
        "action": "added",
        "name": "pack/mac-cis/SoftwareUpdate",
      }

Detection logic

Condition

name contains "SoftwareUpdate"
action eq "added"
columns.domain eq "com.apple.SoftwareUpdate"
columns.key eq "AutomaticCheckEnabled"
columns.value eq "false"

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
actioneq
  • added corpus 10 (panther 10)
columns.domaineq
  • com.apple.SoftwareUpdate
columns.keyeq
  • AutomaticCheckEnabled
columns.valueeq
  • false
namecontains
  • SoftwareUpdate