VeriKQL by Kaushik Saha

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 sourceIn Microsoft Sentinel
auditd:EXECVEEXECVENot mapped to Sentinel yet.
linux:syslogNoneNot mapped to Sentinel yet.
NSM:FlowTCP port 22 trafficNot 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 sourceIn Microsoft Sentinel
macos:unifiedlogprocess = 'sshd'Not mapped to Sentinel yet.
macos:unifiedlogprocess = 'ssh' OR eventMessage CONTAINS 'ssh'Not mapped to Sentinel yet.
macos:osqueryprocess_eventsNot 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 sourceIn Microsoft Sentinel
esxi:authNoneNot mapped to Sentinel yet.
esxi:shellNoneNot mapped to Sentinel yet.
esxi:vmkernelport 22 accessNot mapped to Sentinel yet.

Content Hub rules tagged with it (1)

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

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.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

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.