Cyber Security News

New Forensic Technique Uncovers Hidden Trails Left by Hackers Exploiting Remote Desktop Protocol

Cybersecurity researchers have developed innovative forensic methods to track sophisticated attackers who exploit Remote Desktop Protocol (RDP) for lateral movement within enterprise networks. 

This breakthrough technique transforms what attackers believe to be stealthy operations into detailed digital footprints, providing incident responders with unprecedented visibility into malicious activities across compromised systems.

Key Takeaways
1.  Investigators identify RDP attackers through Windows Event IDs 4624/4625 and unique Network Level Authentication patterns that reveal connection attempts and successful breaches.
2. Forensic tools reconstruct attacker screen activity from thousands of 64x64 pixel bitmap fragments stored in RDP cache files, revealing viewed files and commands.
3. Memory-extracted session keys enable RDP traffic decryption and complete session replay using tools like RDP-Replay to visualize attacker actions.
4. Clipboard data, process artifacts, and registry entries expose passwords, connection history, and lateral movement targets that attackers cannot easily delete.

The new approach leverages multiple data sources that hackers unknowingly leave behind during RDP sessions, creating a comprehensive trail that can be reconstructed even after attempted cleanup operations. 

Security experts demonstrate how every click, keystroke, and screen interaction during remote sessions generates recoverable artifacts that paint a complete picture of unauthorized access.

Event Log Analysis Reveals Authentication Patterns

According to Mat Cyb3rF0x Fuchs, the forensic technique begins with sophisticated analysis of Windows Event Logs, particularly focusing on Event ID 4624 (successful logons) and Event ID 4625 (failed logons) in the Security log. 

The Network Level Authentication (NLA) creates unique patterns where RDP connections initially appear as Logon Type 3 (Network) before transitioning to Type 10 (RemoteInteractive).

“The TerminalServices-RemoteConnectionManager log contains Event ID 1149 entries that indicate successful network connections to RDP services, even when full authentication fails,” explains the research. 

This creates a timeline of connection attempts that helps investigators map brute-force activities and successful breaches.

Additional evidence emerges from TerminalServices-LocalSessionManager logs, where Event 21 (session logon succeeded) and Event 24 (session logoff) provide precise timing data for RDP sessions. 

The unique Logon ID field links various activities to specific sessions, enabling investigators to trace all actions performed during a particular intrusion.

RDP cleaning script used by a ransomware group

Bitmap Cache Forensics Reconstructs Attacker Screens

Perhaps the most revolutionary aspect involves analyzing RDP bitmap cache files stored in AppData\Local\Microsoft\Terminal Server Client\Cache\. 

These cache files contain thousands of 64×64 pixel tiles representing portions of the remote screen that attackers viewed during their sessions.

Investigators can use specialized tools like BMC-Tools and RdpCacheStitcher to reconstruct these bitmap fragments into recognizable screen captures. 

“We’ve successfully recovered file names, application windows, and even command prompt output from bitmap caches,” researchers report

One case revealed an attacker’s activities by reconstructing fragments showing a PowerShell session with credential dumping tools.

Extract from bitmapcache showing likely use of mimikatz

The technique proved particularly effective in a ransomware investigation where bitmap cache analysis revealed the attacker’s login to a cloud storage service, exposing additional victim data stored in their account.

Network & Memory Insights

Network-level analysis complements host-based evidence through examination of firewall logs, NetFlow data, and packet captures on TCP port 3389. 

Advanced techniques can decrypt RDP traffic when session keys are recovered from memory dumps, potentially enabling complete session replay using tools like RDP-Replay.

Memory forensics reveals clipboard contents and rdpclip.exe process artifacts, often containing passwords or sensitive data that attackers copied between systems. 

Registry analysis uncovers connection history in HKCU\Software\Microsoft\Terminal Server Client\Servers, providing evidence of lateral movement targets.

This comprehensive forensic approach transforms RDP from an attacker’s stealth tool into a detailed evidence generator, significantly enhancing incident response capabilities.

Investigate live malware behavior, trace every step of an attack, and make faster, smarter security decisions -> Try ANY.RUN now 

Guru Baran

Gurubaran KS is a cybersecurity analyst, and Journalist with a strong focus on emerging threats and digital defense strategies. He is the Co-Founder and Editor-in-Chief of Cyber Security News, where he leads editorial coverage on global cybersecurity developments.

Recent Posts

Hackers Target AI Infrastructure With RCE, Prompt Injection and API Key Theft

Hackers are actively probing AI systems, turning exposed gateways and agent tools into routes for…

4 hours ago

Hackers Make Phishing Pages Change Their Code Every Time Someone Opens Them

Hackers are making some phishing pages harder to track by changing the code delivered to…

4 hours ago

Iran-Linked Hackers Reportedly Knock UK Power Plant Offline for Four Days

A cyber incident reportedly forced a British power plant to halt operations for about four…

5 hours ago

Russian Hackers Use New HOOKEDGE Malware to Spy on European Defense and Diplomatic Targets

Russian hackers have used a new backdoor called HOOKEDGE to target defense manufacturers, government bodies,…

5 hours ago

Ransomware Gang Claims AI Can Analyze 700GB of Stolen Data Every Hour

TITAN ransomware is pairing file encryption with an ambitious claim: artificial intelligence that can sort…

5 hours ago

Hackers Compromise Hundreds of WordPress Sites to Deploy Amatera Stealer via ClickFix

A fake student resume is being used to place a remote-access tool on researchers’ Windows…

7 hours ago