How does Remote Desktop work, and is it safe?

The short answer

Remote Desktop lets you control a Windows PC from afar over an encrypted connection called RDP (Remote Desktop Protocol), but it's risky when strangers online can reach its sign-in.

Animated diagram: How does Remote Desktop work, and is it safe?

Remote Desktop (RDP)

Remote Desktop lets you control a Windows PC from another computer. It uses a protocol called RDP (Remote Desktop Protocol). By default, the PC listens on port 3389, which works like a numbered door. Windows Home can’t act as the PC you connect to.

Turning on Remote Desktop by itself opens that port to your local network. Reaching it from the internet takes something more, such as port forwarding on your router. Microsoft says opening the PC to the internet isn’t recommended. It prefers a VPN (Virtual Private Network) for access from outside.

What Remote Desktop actually sends

The first message is a Connection Request. It isn’t encrypted, and it lists the security your computer supports. It can also carry a login name, cut to nine characters.

Once you’re signed in, each key press goes out as a number called a scancode. Screen images come back. Virtual channels can carry your clipboard and drives, but only if that sharing is enabled.

How the sign-in protects your password

The PC can demand that you prove who you are before any desktop opens. That’s Network Level Authentication (NLA). It can also be disabled. With NLA in use, the sign-in runs in this order:

  1. Build the tunnel. TLS (Transport Layer Security) creates an encrypted tunnel between the two computers.
  2. Check the server’s key. Inside the tunnel, each side checks a SHA-256 (Secure Hash Algorithm) hash tied to the server’s public key. This is how newer versions of the sign-in protocol do it.
  3. Spot an impostor. A fake server’s key wouldn’t match, so the check would fail.
  4. Send the password last. Only then does your password travel, encrypted.

The result is a sign-in that protects your password on the way to the right PC.

Encryption is not a closed door

Encryption protects the trip. It doesn’t limit who can knock. If your router forwards the port, strangers online can reach the sign-in, and one guessed password can be enough. Sophos exposed a test server and saw login attempts in under a minute. In 2024, CISA (Cybersecurity and Infrastructure Security Agency) warned that Phobos ransomware crews scanned for open RDP, then brute-forced passwords. Phishing was also among their ways in. Moving RDP to another port doesn’t hide it, because scanners still find it.

What to do

  • Not using it? Open Settings, System, Remote Desktop, and turn it off. Windows may ask you to confirm.
  • Need it from outside? Use a VPN instead of forwarding the port on your router.
  • Don’t rely on a changed port number for protection. Scanners still find it.
  • If you look after Windows PCs, watch for event 4625, which means a failed logon.

#remotedesktop#rdp#networklevelauthentication#windowssecurity#ransomware#bruteforce#vpn#cybersecurity#infosec

Watch it in 60 seconds