Detection rules › Sigma

macOS Remote Execution Tools

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 remote execution and terminal multiplexer tools (screen, tmux) often used by adversaries for maintaining persistent sessions or executing commands on remote systems during lateral movement.

MITRE ATT&CK coverage

Rule body yaml

title: macOS Remote Execution Tools
id: a52677c9-2670-428b-919a-95df34338e2c
status: experimental
description: 'Detects execution of remote execution and terminal multiplexer tools
  (screen, tmux)

  often used by adversaries for maintaining persistent sessions or executing commands

  on remote systems during lateral movement.

  '
author: Eric Brown - Nebulock, Inc.
date: 2025/10/31
modified: 2025/10/31
references:
- https://attack.mitre.org/techniques/T1021/
- https://attack.mitre.org/techniques/T1563/
logsource:
  product: macos
  service: endpointsecurity
detection:
  selection_event:
    esf.event_type: 9
    event.action: exec
  selection_process:
    Image|endswith:
    - /screen
    - /tmux
    - /expect
  condition: selection_event and selection_process
falsepositives:
- Legitimate use of terminal multiplexers by developers and administrators
- Automated scripts using expect for interactive command execution
- Remote administration sessions
fields:
- Image
- CommandLine
- ProcessId
- ParentProcessId
- User
tags:
- attack.lateral_movement
- attack.t1021
- attack.t1563
level: low

Stages and Predicates

Stage 0: condition

selection_event and selection_process

Stage 1: selection_event

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

Stage 2: selection_process

selection_process:
  Image|endswith:
  - /screen
  - /tmux
  - /expect

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
Imageends_with
  • /expect
  • /screen
  • /tmux
esf.event_typeeq
  • 9
event.actioneq
  • exec