← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing Windows RDP Session Hijacking Tscon Dataset

This hunt uses a simulated Windows Security Event Log dataset (win_tscon_hijack_2022-11-28T112000.json) capturing T1563.002: Remote Service Session Hijacking: RDP Hijacking, where an attacker with SYSTEM-level access uses the built-in tscon.exe utility to reconnect to another user's disconnected RDP session without supplying that user's credentials, inheriting their full authentication context.

Step 1: Hypothesis Formation

Hypothesis: A tscon.exe process is executed with a target session ID argument by a process running as SYSTEM (commonly via a scheduled task or PsExec-spawned service), immediately followed by a session-reconnect event where the resulting desktop session's authenticated user changes to a different, higher-privileged account without a corresponding logon/credential-entry event - indicating RDP session hijacking rather than a normal user-initiated reconnect. Indicators:

Null Hypothesis: An IT administrator is performing an authorized, documented remote-session-recovery action (e.g., helping a user recover a stuck disconnected session) using approved SYSTEM-level tooling. Invalidate by checking for a matching change/support ticket and confirming the administrator's identity and authorization for that specific target session.

Rationale: tscon.exe-based session hijacking is a "living off the land" technique that requires no exploit or malware - because tscon run as SYSTEM does not need the target user's password, the entire attack is invisible to credential-based detections and can only be caught by correlating the SYSTEM-context session-reconnect command with the absence of an expected interactive logon event.

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed events (4 shown) confirm an attacker who had already obtained SYSTEM via a scheduled task ran tscon.exe to hijack a Domain Admin's disconnected RDP session with no corresponding interactive logon.

Timestamp (UTC)HostEventDetailIOC/Why Suspicious?
2022-11-28 11:19:40JUMP-ADMIN-02Windows Security (4688)schtasks.exe created task running as SYSTEM, executing cmd.exe /c tscon.exe 3 /dest:rdp-tcp#5SYSTEM-Context IOC: tscon.exe executed with a target session ID, launched via a SYSTEM-level scheduled task rather than an interactive administrative session - the standard mechanism for the tscon hijacking technique, since SYSTEM can reconnect to any session without credentials.
2022-11-28 11:19:52JUMP-ADMIN-02TerminalServices-LSM (25, Session Reconnect)Session ID 3 reconnected; UserName on the resulting active session: CORP\da-jsmithSession-Takeover IOC: the reconnected session's authenticated user is a Domain Admin account, while the process that triggered the reconnect ran under a completely different, lower-privileged context.
2022-11-28 11:15:00 - 11:21:30JUMP-ADMIN-02Windows Security (4624 sweep)Zero Logon Type 10 (RemoteInteractive) events for da-jsmith in this windowMissing-Credential IOC: no interactive logon with credential entry occurred for the Domain Admin account, confirming the session was inherited via tscon, not re-authenticated.
--(Change-ticket check)No IT support ticket references session recovery for da-jsmith or JUMP-ADMIN-02 in this timeframeConfirms this was not an authorized administrative session-recovery action.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - an attacker escalated to SYSTEM via a scheduled task on a shared jump server and used tscon.exe to silently hijack a Domain Admin's disconnected RDP session, inheriting full authenticated access with no credential entry!