Course contentsShow
← Security
Lesson 2156 of 3,05242. Penetration Testing and Red TeamingFree lesson

RDP and GUI-Based Lateral Movement

Using Remote Desktop Protocol for interactive access and techniques to avoid detection during RDP sessions.

RDP and GUI-Based Lateral Movement

You'll learn how attackers leverage Remote Desktop Protocol for interactive lateral movement and techniques to maintain stealth during graphical sessions.

What Is RDP-Based Lateral Movement?

While previous lateral movement techniques (Pass-the-Hash, PowerShell Remoting) work through command-line interfaces, Remote Desktop Protocol (RDP) allows attackers to establish full graphical sessions on remote machines. Think of it like teleporting your entire desktop to another computer—you see what the remote user would see, click through applications, and interact naturally with the system.

RDP operates on TCP port 3389 by default and is commonly enabled on Windows servers and administrative workstations, making it a natural pathway for attackers who've already compromised credentials.

Why Attackers Use RDP

RDP provides several advantages:

  • Interactive exploration: Browse file shares, applications, and databases naturally
  • Blend with legitimate activity: Administrators routinely use RDP for management
  • Tool execution: Run GUI-based tools that don't work through command-line remoting
  • Persistence setup: Configure backdoors through graphical control panels

Stealth Considerations

Standard RDP leaves obvious traces and can kick off active users. Detection-aware attackers employ techniques like:

  • Restricted Admin mode: Prevents credential caching on the target
  • Off-hours connections: Minimize likelihood of user/admin noticing active sessions
  • Session shadowing: Attach to existing sessions rather than creating new ones
  • Custom RDP configurations: Modify logging settings to reduce audit trails
  • Tunneling RDP: Route through compromised hosts to mask origin

The tension: RDP is highly visible in logs (Windows Event ID 4624, Type 10 logons), so defenders actively monitor for anomalous remote desktop connections from unusual sources or at unusual times.

Key Takeaway: RDP enables full GUI-based lateral movement that feels natural but generates significant forensic artifacts—skilled attackers must balance functionality with operational security to avoid triggering defensive alerts.