Detection rules › Sigma
macOS File Transfer Tool Execution
Detects execution of file transfer tools (scp, rsync, sftp) which may indicate lateral movement or data staging for exfiltration. Adversaries often use these utilities to move files between compromised systems.
Known false positives
- Legitimate system administration and backup operations
- Automated file synchronization tasks
- Development workflows using rsync for deployments
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Lateral Movement |
Rule body
title: macOS File Transfer Tool Execution
id: b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e
status: experimental
description: 'Detects execution of file transfer tools (scp, rsync, sftp) which may
indicate
lateral movement or data staging for exfiltration. Adversaries often use these
utilities to move files between compromised systems.
'
author: Eric Brown - Nebulock, Inc.
date: 2025/10/31
modified: 2025/10/31
references:
- https://attack.mitre.org/techniques/T1021/004/
- https://attack.mitre.org/techniques/T1570/
logsource:
product: macos
service: endpointsecurity
detection:
selection_event:
esf.event_type: 9
event.action: exec
selection_process:
Image|endswith:
- /scp
- /rsync
- /sftp
condition: selection_event and selection_process
falsepositives:
- Legitimate system administration and backup operations
- Automated file synchronization tasks
- Development workflows using rsync for deployments
fields:
- Image
- CommandLine
- ProcessId
- ParentProcessId
- User
tags:
- attack.lateral_movement
- attack.t1021.004
- attack.t1570
level: medium
Stages and Predicates
Stage 0: condition
selection_event and selection_processStage 1: selection_event
selection_event:
esf.event_type: 9
event.action: exec
Stage 2: selection_process
selection_process:
Image|endswith:
- /scp
- /rsync
- /sftp
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
Image | ends_with |
| field:"Image" kind:ends_with |
esf.event_type | eq |
| field:"esf.event_type" kind:eq value:"9" |
event.action | eq |
| field:"EventType" kind:eq value:"exec" |