T1563.001: SSH Hijacking
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.
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.[1][2][3][4]
SSH Hijacking differs from use of SSH because it hijacks an existing SSH session rather than creating a new session using Valid Accounts.
Analyst context for executives and security teams
SSH Hijacking matters because it can turn one compromised Linux or macOS host into a path for lateral movement without the adversary starting a clearly new SSH login. The business risk is that trusted administrative workflows, SSH agents, and active sessions may become the bridge into additional systems, especially where root access or overly broad trust relationships exist.
Executive priority
Leaders should treat this as a Unix/macOS lateral-movement readiness issue: do teams know where SSH agent use, privileged access, and SSH trust relationships exist, and can they produce audit evidence that access is least-privileged and monitored? Priority should go to systems where SSH is used for administration, operations, build/deployment workflows, or other continuity-critical access paths.
Technical view
For SOC, detection engineering, and IR teams, validate coverage around Linux and macOS SSH session activity, SSH agent/socket exposure, privileged account use, and unexpected lateral access that appears to originate from an already-compromised host. ATT&CK provides no official detection text for this sub-technique, but the relationship to DET0256 indicates a detection strategy exists. Distinguish this from ordinary SSH remote service use: the key concern is abuse of an existing session or agent trust rather than a fresh login with valid credentials.
Likely telemetry
- Linux and macOS authentication and SSH/sshd logs
- Process execution and parent-child process telemetry around SSH clients, shells, and privileged commands
- File and directory permission state for SSH-related keys, agent sockets, and user runtime directories
- Privileged account and root activity logs
- Session correlation data showing source host, user, destination host, and timing of SSH activity
Detection direction
- Confirm whether DET0256 or equivalent local logic is implemented and tested for SSH session hijacking scenarios.
- Baseline expected SSH administrator paths and investigate lateral SSH activity that occurs after compromise indicators on a source host.
- Tune for context: SSH is common in Linux/macOS administration, so detections should correlate session ownership, privilege changes, unusual destinations, and agent/socket access rather than alert on SSH alone.
- Look for blind spots where encrypted SSH traffic is visible only as network metadata and where endpoint logging does not capture process/session relationships.
- During IR, preserve host-level evidence from the suspected source system because the hijack may not appear as a normal new authentication event on the destination.
Mitigation priorities
- Restrict file and directory permissions for SSH-related files, sockets, and sensitive user directories using least privilege.
- Strengthen privileged account management, especially root and administrative access on Linux and macOS systems.
- Review password policies where password-based SSH authentication remains in use, while recognizing this technique may also abuse public-key and agent-based trust.
- Disable or remove unnecessary services, features, or software that expand remote access or privileged attack surface.
- Inventory and reduce unnecessary SSH trust relationships across administration, automation, and operational workflows.
Analyst notes and limits
This object is a sub-technique of Remote Service Session Hijacking and is scoped to lateral movement on Linux and macOS. The revoked predecessor T1184 maps into this object. The MEDUSA software relationship indicates ATT&CK records at least one software entry using this behavior, but that should not be interpreted as local exposure or active exploitation without environment evidence.
MITRE did not provide official detection text in the supplied object, and the related detection strategy is named but not detailed here. Local logging depth, SSH architecture, privileged access design, and endpoint visibility will determine whether this behavior can be reliably investigated or detected.
SSH Hijacking
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.
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.[1][2][3][4]
SSH Hijacking differs from use of SSH because it hijacks an existing SSH session rather than creating a new session using Valid Accounts.
How security teams should use this page
Treat this object as behavior context, not an attribution claim. Validate the related groups, software, data sources, and mitigations against official ATT&CK relationships and your own telemetry before making control-coverage decisions.
Related techniques
This mirrors the MITRE pattern of making group, software, campaign, and technique relationships scannable. Relationship notes come from mirrored ATT&CK relationship text when available.
| Domain | ID | Name | Relationship / procedure |
|---|---|---|---|
| Enterprise | T1184 | SSH Hijacking | SSH Hijacking revoked by this object. |
| Enterprise | T1563 | Remote Service Session Hijacking | This object subtechnique of Remote Service Session Hijacking. |
Groups, software, and campaigns
S1220: MEDUSA
All related ATT&CK context
Mitigation direction
Object version and sync metadata
The fields below describe the current mirrored snapshot. When Glexia retains multiple ATT&CK source imports, you can open the table to compare the same object across releases (hashes and MITRE timestamps). For MITRE’s own release notes and roadmap, see ATT&CK resources — Updates .
Imported snapshots across ATT&CK releases (1)
| Release | Bundle imported | Object version | Modified | Status | Raw hash |
|---|---|---|---|---|---|
| 19.1 | 1.1 | Current bundle | 819486deb516… |
Mirrored ATT&CK source object
The raw object is retained through the mirrored ATT&CK source bundle and object hash. The raw endpoint returns the exact object from the mirrored bundle when available.
External references and citations
MITRE external references are preserved separately from Glexia analysis so citations remain traceable to their original source records.
-
[1]
Slideshare Abusing SSH
Duarte, H., Morrison, B. (2012). (Mis)trusting and (ab)using ssh. Retrieved January 8, 2018.
Open source URL -
[2]
SSHjack Blackhat
Adam Boileau. (2005, August 5). Trust Transience: Post Intrusion SSH Hijacking. Retrieved December 19, 2017.
Open source URL -
[3]
Clockwork SSH Agent Hijacking
Beuchler, B. (2012, September 28). SSH Agent Hijacking. Retrieved November 17, 2024.
Open source URL -
[4]
Breach Post-mortem SSH Hijack
Hodgson, M. (2019, May 8). Post-mortem and remediations for Apr 11 security incident. Retrieved November 17, 2024.
Open source URL -
[5]
mitre-attack T1563.001Open source URL
Source: MITRE ATT&CK®. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. MITRE ATT&CK and ATT&CK are registered trademarks of The MITRE Corporation. Glexia is not affiliated with or endorsed by MITRE.