Detection rules › Sigma

macOS ESF Suspicious Curl Download

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

Detect curl execution fetching remote content which is often used by installers or scripts. Requires curl/wget/fetch to be the executing process.

MITRE ATT&CK coverage

TacticTechniques
Command & ControlNo specific technique

Rule body yaml

title: macOS ESF Suspicious Curl Download
id: 9d3885a1-0b3e-4e07-bd1d-0897b6f75819
status: experimental
description: Detect curl execution fetching remote content which is often used by
  installers or scripts. Requires curl/wget/fetch to be the executing process.
author: Eric Brown - Nebulock, Inc.
date: 2025-10-29
logsource:
  product: macos
  service: endpointsecurity
level: medium
detection:
  selection_event:
    esf.event_type: 9
    event.action: exec
  selection_process:
    Image|endswith:
    - /curl
    - /wget
    - /fetch
  selection_cmd:
    CommandLine|contains:
    - http://
    - https://
    - ftp://
  condition: selection_event and selection_process and selection_cmd
falsepositives:
- legitimate software updates or admin usage
tags:
- attack.command_and_control
modified: 2025/01/15

Stages and Predicates

Stage 0: condition

selection_event and selection_process and selection_cmd

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_cmd

selection_cmd:
  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