Detection rules › Sigma
macOS Network Utility Tools for C2
Detects execution of network utility tools (nc, netcat, socat) commonly used to establish command and control channels or reverse shells. These tools can create arbitrary TCP/UDP connections for data transfer or remote command execution.
Known false positives
- Network troubleshooting and testing by administrators
- Development and testing of network applications
- Security testing and penetration testing activities
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Execution | |
| Command & Control |
Rule body
title: macOS Network Utility Tools for C2
id: b74398cf-4d87-4d2b-a7d2-3ffbe1c77d38
status: experimental
description: 'Detects execution of network utility tools (nc, netcat, socat) commonly
used
to establish command and control channels or reverse shells. These tools can
create arbitrary TCP/UDP connections for data transfer or remote command execution.
'
author: Eric Brown - Nebulock, Inc.
date: 2025/10/31
modified: 2025/10/31
references:
- https://attack.mitre.org/techniques/T1071/
- https://attack.mitre.org/techniques/T1059/
logsource:
product: macos
service: endpointsecurity
detection:
selection_event:
esf.event_type: 9
event.action: exec
selection_process:
Image|endswith:
- /nc
- /netcat
- /socat
- /ncat
condition: selection_event and selection_process
falsepositives:
- Network troubleshooting and testing by administrators
- Development and testing of network applications
- Security testing and penetration testing activities
fields:
- Image
- CommandLine
- ProcessId
- ParentProcessId
- User
tags:
- attack.command_and_control
- attack.t1071
- attack.t1059
level: high
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:
- /nc
- /netcat
- /socat
- /ncat
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" |