Detection rules › Sigma

macOS HTTP Tools with Protocol Indicators

Status
experimental
Severity
low
Log source
product macos, service endpointsecurity
Author
Eric Brown - Nebulock, Inc.
Source
github.com/Nebulock-Inc/macos-coresigma

Detects execution of HTTP/HTTPS tools (curl, wget) with protocol indicators in command line, which may indicate command and control communication over web protocols. Focus on automated or scripted usage patterns.

MITRE ATT&CK coverage

Rule body yaml

title: macOS HTTP Tools with Protocol Indicators
id: 77d4f6aa-6313-48b5-8575-c78c9e1b184f
status: experimental
description: 'Detects execution of HTTP/HTTPS tools (curl, wget) with protocol indicators

  in command line, which may indicate command and control communication over

  web protocols. Focus on automated or scripted usage patterns.

  '
author: Eric Brown - Nebulock, Inc.
date: 2025/10/31
modified: 2025/10/31
references:
- https://attack.mitre.org/techniques/T1071/001/
- https://attack.mitre.org/techniques/T1105/
logsource:
  product: macos
  service: endpointsecurity
detection:
  selection_event:
    esf.event_type: 9
    event.action: exec
  selection_process:
    Image|endswith:
    - /curl
    - /wget
    - /fetch
  selection_cmdline:
    CommandLine|contains:
    - http://
    - https://
    - ftp://
  condition: selection_event and selection_process and selection_cmdline
falsepositives:
- Software updates and package management
- Legitimate scripts downloading files
- Development and CI/CD workflows
- System administration tasks
fields:
- Image
- CommandLine
- ProcessId
- ParentProcessId
- User
tags:
- attack.command_and_control
- attack.t1071.001
- attack.t1105
level: low

Stages and Predicates

Stage 0: condition

selection_event and selection_process and selection_cmdline

Stage 1: selection_event

selection_event:
  esf.event_type: 9
  event.action: exec

Stage 2: selection_process

selection_process:
  Image|endswith:
  - /curl
  - /wget
  - /fetch

Stage 3: selection_cmdline

selection_cmdline:
  CommandLine|contains:
  - http://
  - https://
  - ftp://

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
CommandLinematch
  • ftp://
  • http://
  • https://
Imageends_with
  • /curl
  • /fetch
  • /wget
esf.event_typeeq
  • 9
event.actioneq
  • exec