Remote Desktop
Summary
Remote desktop tools let a user view and control another computer's desktop over the network. They are essential for support and remote work but are a frequent target, so they should never be exposed directly to the internet and should require strong authentication.
In plain words
Remote desktop sends a computer's screen and audio to a remote user and sends their keyboard and mouse input back. Microsoft RDP (encrypted by default) is the best known, with alternatives such as TeamViewer and VNC. Modern gateways can deliver a desktop inside a web browser using HTML5 and WebSocket, with no client install.
Detailed explanation
-
Remote Desktop Protocol (RDP): Microsoft's protocol for graphical remote access, on TCP and UDP port 3389.
- Network Level Authentication (NLA): Requires the user to authenticate before a full session starts.
- Remote Desktop Gateway: Publishes RDP securely over HTTPS instead of exposing port 3389.
- Virtual Network Computing (VNC): A cross-platform remote desktop protocol, often on port 5900; tunnel it through SSH or a VPN because older versions have weak encryption.
- Commercial tools: Remote support products that connect through a cloud broker; control who may install them.
- HTML5 remote access: Clientless access to desktops through a browser via a secure gateway.
- Hardening: Use a VPN or gateway, MFA, account lockout, restricted allowed users and logging.
Important terms
taken from the text above- Remote Desktop Protocol (RDP)
- Microsoft's protocol for graphical remote access, on TCP and UDP port 3389.
- Network Level Authentication (NLA)
- Requires the user to authenticate before a full session starts.
- Remote Desktop Gateway
- Publishes RDP securely over HTTPS instead of exposing port 3389.
- Virtual Network Computing (VNC)
- A cross-platform remote desktop protocol, often on port 5900; tunnel it through SSH or a VPN because older versions have weak encryption.
- Commercial tools
- Remote support products that connect through a cloud broker; control who may install them.
- HTML5 remote access
- Clientless access to desktops through a browser via a secure gateway.
- Hardening
- Use a VPN or gateway, MFA, account lockout, restricted allowed users and logging.
Examples & real-world scenarios
- An RDP session to an office PC through a Remote Desktop Gateway.
- A browser-based clientless remote desktop portal.
- VNC used to support a Linux workstation.
Scenario
A company exposed RDP directly to the Internet. A safer design puts it behind a VPN or Remote Desktop Gateway with MFA, so the RDP service itself isn't open to everyone.
Common mistakes
- Assuming remote desktop is automatically safe to expose to the Internet.
- Mixing up remote desktop (a GUI session) and SSH (a command line).
Practical skills
- Recommend a secure way to provide remote desktop access.
What I should remember
- RDP: Port 3389; never expose it directly to the internet.
- NLA: Authenticates users before the session is created.
- RD Gateway: Wraps RDP in HTTPS.
- VNC: Should be tunneled because of weak native security.