Socat Network Listener Binding an Executable
The following analytic detects the execution of the socat utility with command-line arguments that configure a TCP or OpenSSL listener and bind an executable to incoming connections. Socat is a legitimate network…
Description
The following analytic detects the execution of the socat utility with command-line arguments that configure a TCP or OpenSSL listener and bind an executable to incoming connections. Socat is a legitimate network utility, but this behavior may be used to expose executables, establish bind shells, facilitate remote command execution, or support lateral movement.
Detection logic
Detection requirements
- Platform
- ContainersESXiIaaSIdentity ProviderLinuxmacOSNetwork DevicesOffice SuiteSaaSWindows
The rule states no platform. This is derived from the 2 ATT&CK techniques it maps to.
- Log source category
- osquery_resultssysmon_for_linux_eventid_1
Known benign triggers
- Developers, network engineers, and system administrators may use socat to expose benign executables for protocol testing, debugging, data transformation, or troubleshooting.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| attack.mitre.org/tactics/TA0002/ | 8 |
| attack.mitre.org/techniques/T1059 | 2 |
| blog.talosintelligence.com/bad-apples-weaponizing-native-macos-primitives-for-movement-and-execution/ | 2 |
| gtfobins.github.io/gtfobins/socat/ | 2 |
| hackers-arise.com/socat-the-advanced-hackers-network-tool/ | 2 |
From the source
- At source
- Open at source
- Upstream identifier
- 72482d45-1d05-46f5-bb6c-e2b709a8073a
- Tagged by the source as
- MacOS Post-ExploitationEndpointendpointSplunk CloudSplunk EnterpriseSplunk Enterprise Securityendpoint
Licence
- Published under
- Apache License 2.0Read the licence
- Attribution
- Required
- Obtained under
- Apache-2.0Read the origin licence
Authorship
- Written by
- Published
- Sep 7, 2026
- Version
- 1