Remote Service Session Hijacking T1563
- Tactic
- Lateral Movement
- Platforms
- Linux, macOS, Windows
- Version
- 1.1
- Created
- 25 February 2020
- Last modified
- 24 October 2025
Adversaries may take control of preexisting sessions with remote services to move laterally in an environment. Users may use valid credentials to log into a service specifically designed to accept remote connections, such as telnet, SSH, and RDP. When a user logs into a service, a session will be established that will allow them to maintain a continuous interaction with that service.
Offense vs defense T1563
Is defensive coverage keeping up with adversary use? Eight counts, each ranked against all 697 ATT&CK techniques. Attack sits left, defense right, so a shape leaning left means adversaries are better documented here than defenders are equipped. Hover any spoke for its percentile and the share of techniques that have more. The timeline below shows when each side arrived.
Remote Service Session Hijacking detection strategy DET0079
MITRE names one behaviour worth catching for this technique and breaks it into 3 analytics, one per platform. Each carries the log sources it needs and the fields you tune per environment.
Detection of Remote Service Session Hijacking
AN0216 · Windows
Detection of anomalous RDP or remote service session activity where a logon session is hijacked rather than newly created. Indicators include mismatched user credentials vs. active session tokens, service session takeovers without corresponding successful logon events, or RDP shadowing activity without user consent.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Process CreationDC0032 | WinEventLog:Sysmon | EventCode=1 |
| Logon Session CreationDC0067 | WinEventLog:Security | EventCode=4624, 4648 |
| Network Connection CreationDC0082 | WinEventLog:Sysmon | EventCode=3, 22 |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| ExpectedUserSessionMap | Mapping of users to hosts they are expected to access; deviations indicate possible hijacking. |
| TimeWindow | Threshold for detecting rapid pivoting via hijacked sessions. |
AN0217 · Linux
Detection of SSH/Telnet session hijacking via discrepancies between authentication logs and active session tables. Adversary behavior includes reusing or stealing active PTY sessions, attaching to screen/tmux, or issuing commands without corresponding login events.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Command ExecutionDC0064 | auditd:SYSCALL | execve: Commands executed within an SSH session where no matching logon/authentication event exists |
| Logon Session CreationDC0067 | NSM:Connections | Mismatch between recorded user logon and active sessions (e.g., wtmp/utmp entries without corresponding authentication in auth.log) |
| Network Traffic FlowDC0078 | NSM:Flow | Long-lived or hijacked SSH sessions maintained with no active user activity |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| MonitoredServicePorts | Ports for SSH/Telnet/RDP monitored for session hijacking; may vary by environment. |
AN0218 · macOS
Detection of hijacked VNC or SSH sessions on macOS where adversaries take over an existing session rather than authenticating directly. Indicators include process execution from active sessions without new logon events, manipulation of TTY sessions, or anomalous network activity tied to dormant sessions.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Process CreationDC0032 | macos:unifiedlog | Execution of processes linked to hijacked sessions (e.g., anomalous parent-child process lineage) |
| Logon Session CreationDC0067 | macos:unifiedlog | Authentication inconsistencies where commands are executed without corresponding login events |
| Network Traffic ContentDC0085 | NSM:Flow | Suspicious long-lived or reattached remote desktop sessions from unexpected IPs |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| SessionIdleThreshold | Time threshold for inactive sessions flagged as suspicious when commands suddenly resume. |
Disable the remote service (ex: SSH, RDP, etc.) if it is unnecessary.
Enable firewall rules to block unnecessary traffic between network security zones within a network.
Set and enforce secure password policies for accounts.
Do not allow remote access to services as a privileged account unless necessary.
Limit remote user permissions if remote access is necessary.