T1021.004 SSH
Lateral Movementon attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0596 Behavioral Detection of Remote SSH Logins Followed by Post-Login Execution
AN1638 Linux
SSH login from a remote system (via sshd), followed by user context execution of suspicious binaries or privilege escalation behavior.
| MITRE log source | In Microsoft Sentinel |
|---|---|
auditd:EXECVEEXECVE | Not mapped to Sentinel yet. |
linux:syslogNone | Not mapped to Sentinel yet. |
NSM:FlowTCP port 22 traffic | Not mapped to Sentinel yet. |
AN1639 macOS
SSH login detected via Unified Logs, followed by unusual process execution, especially outside normal user behavior patterns.
| MITRE log source | In Microsoft Sentinel |
|---|---|
macos:unifiedlogprocess = 'sshd' | Not mapped to Sentinel yet. |
macos:unifiedlogprocess = 'ssh' OR eventMessage CONTAINS 'ssh' | Not mapped to Sentinel yet. |
macos:osqueryprocess_events | Not mapped to Sentinel yet. |
AN1640 ESXi
SSH login via hostd or `/var/log/auth.log`, followed by CLI access to host shell or file manipulation in restricted areas.
| MITRE log source | In Microsoft Sentinel |
|---|---|
esxi:authNone | Not mapped to Sentinel yet. |
esxi:shellNone | Not mapped to Sentinel yet. |
esxi:vmkernelport 22 access | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (1)
How the Content Hub rules for T1021.004 are built: their tables, filters, joins, schedules and windows.
In Sigma rules
5 SigmaHQ community rules name it in their tags.
- Bitbucket Global SSH Settings Changed
- Bitbucket User Login Failure Via SSH
- OpenSSH Server Listening On Socket
- Port Forwarding Activity Via SSH.EXE
- OpenEDR Spawning Command Shell
Mitigations
M1018User Account ManagementM1032Multi-factor AuthenticationM1042Disable or Remove Feature or Program
MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.