VeriKQL by Kaushik Saha

T1563.001 SSH Hijacking

Lateral Movementon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0256 Detection Strategy for SSH Session Hijacking

AN0710 Linux

Suspicious reuse of SSH agent sockets across multiple users or processes, anomalous access to ~/.ssh/ or /tmp/ssh-* sockets, and abnormal patterns of lateral movement via SSH without new authentication events. Defender view: detect when one process accesses another user's SSH agent or when an existing SSH connection is used to pivot unexpectedly.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLopen or connect syscalls on /tmp/ssh-* or $SSH_AUTH_SOCKNot mapped to Sentinel yet.
auditd:EXECVEExecution of ssh/scp/sftp without corresponding authentication logNot mapped to Sentinel yet.
NSM:ConnectionsMissing new login event but session activity continuesNot mapped to Sentinel yet.

AN0711 macOS

Unusual access to SSH agent sockets in /tmp/ or /private/tmp, process access to another user’s $SSH_AUTH_SOCK, and lateral SSH activity without corresponding login events. Defender view: correlation of socket access with anomalous network flows to internal systems.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogProcess opening SSH_AUTH_SOCK or /tmp/ssh-* socket not owned by same UIDNot mapped to Sentinel yet.
macos:unifiedlogExecution of ssh or sftp without corresponding login eventNot mapped to Sentinel yet.
macos:unifiedlogSession reuse without new auth eventNot mapped to Sentinel yet.

Content Hub rules tagged with it (0)

No Content Hub rule is tagged with this technique.

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

In Sigma rules

No SigmaHQ rule names it in their tags outright.

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.