Socat Remote TCP Connection with Local Echo Disabled
The following analytic detects execution of the socat utility with a remote TCP or OpenSSL connection and local terminal echo disabled. This configuration may be used for interactive terminal sessions, password…
Description
The following analytic detects execution of the socat utility with a remote TCP or OpenSSL connection and local terminal echo disabled. This configuration may be used for interactive terminal sessions, password handling, automation, or network debugging. When observed in an unexpected context, such as execution by an unusual parent process or connection to an untrusted endpoint, it may indicate suspicious remote access activity.
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 and network engineers may use socat with local echo disabled for legitimate TCP debugging, protocol testing, terminal handling, 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
- 458c6c37-116d-4f01-8267-f09f5b82cd14
- 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