Techniques › T1563 › T1563.001
T1563.001 SSH Hijacking
lateral movement — Linux, macOS · attack.mitre.org · JSON
1
MITRE detection strategy
2
analytics
0
Sigma rules tagged attack.t1563.001
0
KEV CVEs mapped here
<p>Adversaries may hijack a legitimate user's SSH session to move laterally within an environment. Secure Shell (SSH) is a standard means of remote access on Linux and macOS systems. It allows a user to connect to another system via an encrypted tunnel, commonly authenticating through a password, certificate or the use of an asymmetric encryption key pair.</p><p>In order to move laterally from a compromised host, adversaries may take advantage of trust relationships established with other systems via public key authentication in active SSH sessions by hijacking an existing connection to another system. This may occur through compromising the SSH agent itself or by having access to the agent's socket. If an adversary is able to obtain root access, then hijacking SSH sessions is likely trivial.</p><p>SSH Hijacking differs from use of SSH because it hijacks an existing SSH session rather than creating a new session using Valid Accounts.</p>
KEV CVEs mapped to this technique · CTID Mappings Explorer
None. No KEV entry in the public mapping names this technique. Given that 74.7% of KEV has no mapping at all, this says more about the mapping than about the technique.
Detection strategy · ATT&CK Enterprise v19.2
- DET0256 Detection Strategy for SSH Session Hijacking v1.0
AN0710 LinuxSuspicious 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.auditd:SYSCALL
open or connect syscalls on /tmp/ssh-* or $SSH_AUTH_SOCK→ DC0082 Network Connection Creationauditd:EXECVEExecution of ssh/scp/sftp without corresponding authentication log→ DC0032 Process CreationNSM:ConnectionsMissing new login event but session activity continues→ DC0067 Logon Session CreationTunable:UserContextTimeWindowAN0711 macOSUnusual 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.macos:unifiedlogProcess opening SSH_AUTH_SOCK or /tmp/ssh-* socket not owned by same UID→ DC0034 Process Metadatamacos:unifiedlogExecution of ssh or sftp without corresponding login event→ DC0032 Process CreationTunable:SocketPathScopeBaselineUsers
Sigma rules · SigmaHQ da9bb07d64, tag attack.t1563.001
No Sigma rule carries this tag. MITRE publishes a detection strategy above, so the behaviour is specified; what is missing is public detection content.