RDP is still ransomware's favourite door in 2026: how to close it
Remote Desktop is how admins look after Windows Servers and PCs from a distance, and it is just as useful to attackers. Some get in through an RDP port that is open to the internet. Many more use RDP to move from one computer to the next once they are in. This guide shows how to check your own exposure and close the door, using what Windows already has. Every number has its source next to it.
- Check first: is TCP or UDP 3389 (or your own RDP port) reachable from the internet? Test it from outside, not from your own network.
- Best: no RDP from the internet at all. Use a VPN or a Remote Desktop Gateway with multi-factor authentication.
- If it has to stay open: allow only known addresses, keep Network Level Authentication on, use long unique passwords, and set an account lockout policy (it has side effects, see below).
- Patch: November 2026 Patch Tuesday fixed more than 20 Remote Desktop and CredSSP flaws, two of them rated Critical.
1. What the 2026 data says
- RDP is still the tool attackers abuse most. Sophos analysed 661 incident response and MDR cases from 1 November 2024 to 31 October 2025. RDP is "still at the top" of the tools attackers abuse, though less often than before: it was used inside the victim's network in 66 % of cases, and from outside in 10 %. Sophos also saw the number of exposed RDP systems halve. Source: Sophos Active Adversary Report 2026.
- Stolen or guessed passwords are the main way in. In the same report, 67 % of root causes were related to compromised identities. Brute force accounted for 15.6 % of cases, and multi-factor authentication was missing or incomplete in 59 % of incidents. Source: Sophos.
- Ransomware arrives at night. 88 % of ransomware was deployed outside business hours (Sophos, 321 cases, January 2023 to October 2025). Nobody is watching when the RDP session that matters starts.
- Government advice is the same. CISA's #StopRansomware Guide says: "Do not expose services, such as remote desktop protocol, on the web." If RDP is necessary, audit which systems use it, close unused RDP ports, enforce account lockouts, apply MFA and log RDP logins. Source: CISA #StopRansomware Guide. In the August 2026 advisory on Gunra ransomware, CISA and its partners list RDP-exposed infrastructure among the systems to patch first, and describe the attackers moving laterally over RDP. Source: CISA advisory AA26-222A.
So exposed RDP has become less common, but it is far from gone. And once attackers have one password, RDP is how they move through your network. Both halves need closing.
2. Check: is your RDP reachable from the internet?
- Router and edge firewall: look for port forwardings (NAT) or allow rules to 3389, or to whatever port you moved RDP to. In the cloud (Azure, AWS, other hosters), check the network security group of every VM. A VM with a public address and "allow 3389 from any" is the classic mistake.
- On the Server or PC, in PowerShell as administrator: is Remote Desktop switched on, on which port, and whom do the built-in rules let in?
# 0 = Remote Desktop is ON Get-ItemPropertyValue 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections # the RDP port (3389 unless someone changed it) Get-ItemPropertyValue 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name PortNumber # enabled RDP allow rules and the addresses they let in Get-NetFirewallRule | Where-Object { $_.Name -like 'RemoteDesktop-*' -and $_.Enabled -eq 'True' } | Get-NetFirewallAddressFilter | Select-Object InstanceID, RemoteAddressRemoteAddress : Anymeans anyone who reaches the Server or PC may try to log on. The rule names (not the display names) are the same in every Windows language. - From outside: on a computer that is not in your network (a laptop on a phone hotspot, a small cloud VM), test your public address:
Test-NetConnection -ComputerName 203.0.113.10 -Port 3389. Expected:TcpTestSucceeded : False. Or use our free open port check. - Look at what already arrived: failed logons are Security event 4625, successful RDP logons are 4624 with logon type 10. CISA also recommends the TerminalServices-RemoteConnectionManager log for successful RDP connections:
Every connection you cannot explain is worth a closer look.Get-WinEvent -LogName 'Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational' -MaxEvents 50 | Where-Object Id -eq 1149 | Select-Object TimeCreated, Message
3. Keep Network Level Authentication on
With NLA the user has to authenticate before Windows creates a session and a logon screen. That leaves less code reachable for strangers. It does not stop password guessing. Check it (1 = on):
(Get-CimInstance -Namespace root\cimv2\TerminalServices -ClassName Win32_TSGeneralSetting -Filter "TerminalName='RDP-tcp'").UserAuthenticationRequired
Switch it on in System Properties › Remote (Allow connections only from computers running Remote Desktop with Network Level Authentication), or for many machines with Group Policy: Computer Configuration › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Session Host › Security › Require user authentication for remote connections by using Network Level Authentication.
4. Accounts, passwords and lockout, with its side effects
- Who may use RDP: only the members of Remote Desktop Users and Administrators. Remove everyone who does not need it. CISA recommends blocking local accounts from remote access. With Group Policy: User Rights Assignment › Deny log on through Remote Desktop Services › add Local account on domain-joined Servers and PCs.
- Passwords: long and unique for every account that can log on via RDP. No account simply called administrator, admin or scanner with RDP rights.
- Account lockout: see the current policy with
net accounts. Microsoft's security baseline suggests locking an account after 10 failed attempts, and Microsoft's KB5020282 describes "10/10/10" (10 attempts within 10 minutes, locked for 10 minutes). New Windows 11 installations from version 22H2 get lockout settings at setup; older and upgraded machines and Windows Servers usually have no lockout (threshold 0). To set it on one machine:net accounts /lockoutthreshold:10 /lockoutwindow:10 /lockoutduration:10. In a domain, set it in the Default Domain Policy instead. Sources: Microsoft Learn: Account lockout threshold · KB5020282.
The side effects of lockout, from Microsoft's own documentation:
- Attackers can lock out your real users. Anyone who knows an account name can lock it out, without any credentials. On an RDP port open to the internet, that can mean your staff cannot work.
- The built-in Administrator is excluded unless you switch on Allow Administrator account lockout. Since the October 2022 updates, that lockout only affects network logons, so you can still sign in at the console (KB5020282).
- It slows guessing but does not stop it, and it does not block the attacking address. Bots spread their guesses over many accounts (password spraying) and many hours, and keep trying the moment the lockout ends. Plan how locked accounts get unlocked during an attack.
More detail on lockout events and finding their source: Event ID 4740 and 4771.
5. Limit RDP to the addresses you really use
If RDP has to be reachable from outside, let only known addresses in. Open Windows Defender Firewall with Advanced Security (Start, type "firewall") › Inbound Rules › Remote Desktop - User Mode (TCP-In) and (UDP-In) › Scope › Remote IP address. Or in PowerShell:
Set-NetFirewallRule -Name RemoteDesktop-UserMode-In-TCP,RemoteDesktop-UserMode-In-UDP `
-RemoteAddress 203.0.113.10,192.168.1.0/24
Replace the example addresses with your office's fixed address and your own network. Do not forget the UDP rule: RDP uses UDP 3389 too. This works well for fixed addresses. It does not work when you travel or when your home connection gets a new address every day, and that is when such rules get opened to "Any" again "just for now". The options for changing addresses are compared in Secure RDP without VPN.
Moving RDP to another port is not protection. Scanners that check every port find it within minutes.
6. VPN or Remote Desktop Gateway, with MFA
The robust answer: RDP is not reachable from the internet at all. You connect a VPN first, or you go through a Remote Desktop Gateway, a Windows Server role that carries RDP inside HTTPS on port 443. Plain RDP has no second factor built in. The gateway can add one, for example with the NPS extension for Microsoft Entra multifactor authentication. The VPN or gateway then becomes the door that must be patched and protected. Use MFA on it, as CISA recommends for all VPN connections. Note that this month's patches include fixes for the Remote Desktop Gateway Service too (see the next section).
When admins connect from their own PCs, CISA also recommends Remote Credential Guard or Restricted Admin mode. They keep reusable credentials off the Server you connect to (mstsc /remoteGuard or mstsc /restrictedAdmin, where the Server allows it).
7. Patch the November 2026 Remote Desktop flaws
On 10 November 2026, Microsoft released fixes for 21 vulnerabilities in Remote Desktop components and in CredSSP, the protocol behind Network Level Authentication. That is our own count from the Microsoft Security Update Guide. None were marked as exploited or publicly disclosed at release. The ones that matter most for Servers:
| CVE | Component | Type | Severity / CVSS |
|---|---|---|---|
| CVE-2026-119962 | Windows CredSSP | Remote code execution, no sign-in needed (per Microsoft: "unauthorized attacker … over a network") | Critical / 8.1 |
| CVE-2026-108401 | Remote Desktop Services | Remote code execution by an attacker who has an account | Important / 8.8 |
| CVE-2026-119957 | Remote Desktop Services | Elevation of privilege (local) | Critical / 7.8 |
| CVE-2026-122166 | Remote Desktop Services | Elevation of privilege (local) | Important / 7.8 |
| CVE-2026-80094, CVE-2026-69327, CVE-2026-69565 | Remote Desktop Gateway Service | Elevation of privilege / code execution | Important / 7.0 to 7.5 |
| CVE-2026-119934 and others | Remote Desktop Client | Remote code execution, information disclosure, tampering | Important / up to 8.8 |
Source: Microsoft Security Update Guide, release 2026-Nov, checked 23 November 2026. Why it matters: CVE-2026-108401 needs an account, which is exactly what a successful password guess gives an attacker. The client flaws mean the PCs you connect from need the update as well, not only the Servers. Check Microsoft's entry for each CVE to see which of your Windows versions are affected.
8. Watch it, around the clock
Ransomware is mostly deployed at night (see section 1). Make sure someone, or something, notices a burst of 4625 events, a 4624 logon type 10 from an unknown country, or a new member of Administrators (Event ID 4732). Windows records all of this, but it does not alert anyone and it does not block the guessing address.
9. Where Coinetic AI Security helps
Coinetic AI Security manages the built-in Windows Firewall, with no driver, next to Defender or any EDR. It does not patch Windows. It keeps the RDP door shut and shows who knocks:
- RDP invisible until you unlock it from your phone: the port stays closed to the internet. You tap Unlock on your registered phone and it opens only for your phone's address, for the hours you chose, then closes by itself. From the LAN and over a VPN, RDP keeps working.
- Automatic bans: addresses that guess RDP passwords are banned after the number of failures you choose. Slow bots that keep knocking on closed ports are caught too: 50 blocked attempts in 24 hours bans the address.
- Under Attack mode: by hand, or automatically when a password attack comes from many addresses, it closes RDP, SSH, SMB, SQL Server and the other admin ports to the internet while LAN, VPN, web and mail keep running.
- Open doors are found: the security check shows ports open to the internet and closes one to your LAN and VPN with one click.
Video (0:58) on YouTubeSecure RDP without VPN - Remote Desktop invisible until you unlock it from your phone
Download Coinetic AI Security and install it. 30 days free with all features, no payment details.
More guides: all guides, among them Secure RDP without VPN and Event ID 4625.
Frequently asked
Is RDP still a ransomware entry point in 2026?
Yes, though less often than a few years ago. Sophos' 2026 report found RDP used from outside the network in 10 % of its cases and inside the network in 66 %, and saw the number of exposed RDP systems halve. Stolen or guessed passwords remain the most common root cause.
Is an account lockout policy enough against RDP brute force?
No. It slows guessing down, but attackers can use it to lock out your real users, it does not block the attacking address, and bots that spread their guesses over many accounts and hours get around it. Combine it with a firewall scope, a VPN or gateway, and MFA.
Which November 2026 patches matter for Remote Desktop?
All of the November 2026 cumulative updates. The most important are CVE-2026-119962 (CredSSP, remote code execution, Critical) and CVE-2026-108401 (Remote Desktop Services, remote code execution). Patch the PCs you connect from too, because several Remote Desktop Client flaws were fixed.
Does changing the RDP port help?
It only reduces log noise. Scanners that check every port find RDP on any port. Close it, or limit who can reach it.
How do I check if my RDP port is open to the internet?
Test your public address from a computer outside your network, for example with Test-NetConnection on port 3389 from a phone hotspot, or with an online open port check. Also look for port forwardings on your router and in your cloud network rules.
Checked on 23 November 2026. This guide is general information, provided "as is" without warranty, and we accept no liability for its use to the maximum extent permitted by law; see sections 7 and 8 of the license agreement. Test every change on one computer first, and keep a way in (console, LAN or VPN) before you restrict RDP.
Coinetic AI Security - https://coinetic.io