Common attacks and weaknesses
- Brute force and credential stuffing against Windows accounts.
- Pre-authentication vulnerabilities such as BlueKeep (CVE-2019-0708) and DejaBlue.
- Stolen RDP access is sold by initial access brokers.
Microsoft Remote Desktop. One of the most common initial access vectors for ransomware when exposed to the Internet.
The server streams its screen to the client, and the client sends back mouse clicks and keystrokes. Everything is encrypted: someone on the path only sees unreadable bytes.
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| ms-wbt-server | 3389 | TCP, UDP | MS WBT Server | - | 2022-11-03 |
// source: IANA service name and port number registry
Linux
sudo ss -ltnup 'sport = :3389' # process listening on 3389
sudo lsof -nP -i :3389macOS
sudo lsof -nP -i :3389
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 3389 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 3389 netstat -ano | findstr :3389
From another machine
nmap -p 3389 -sV <host> sudo nmap -sU -p 3389 <host> nc -zv <host> 3389
Block it in the firewall
sudo ufw deny 3389/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 3389" -Direction Inbound -LocalPort 3389 -Protocol TCP -Action Block # Windows
Microsoft Remote Desktop. One of the most common initial access vectors for ransomware when exposed to the Internet.
Port 3389 is registered for TCP and UDP.
It is rated 9/10 (critical) when exposed to the Internet. Brute force and credential stuffing against Windows accounts. Never expose RDP directly: use a VPN, an RD Gateway or a zero-trust access proxy.
On Linux run "ss -ltnup 'sport = :3389'", on macOS "lsof -nP -i :3389", and on Windows "netstat -ano | findstr :3389" to see the local process. From another machine, "nmap -p 3389 <host>" shows whether it is reachable.