Join our Newsletter — 33% off our NHI Course
Home› Guides› Exposed RDP Compromise: Investigating and Containing Internet Facing…
Guide Incident Response & Forensics

Exposed RDP Compromise: Investigating and Containing Internet Facing RDP Abuse

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 8 November 2026 15 min read
On this page

A Windows host with Remote Desktop reachable from the internet will be found, sprayed with passwords and, sooner or later, logged into by someone who should not be there. This guide is for the moment that has already happened: a server with TCP 3389 open shows a burst of failed logons, a successful Type 10 logon from an unfamiliar address, or an encrypted file share on Monday morning. It covers how the incident shows up in Windows logs, the triage questions to answer in the first hour, containment in priority order, eradication, recovery, the evidence to preserve and the notification clocks that may start. It is written for incident responders, Windows administrators and SOC analysts. Hardening RDP before an incident is covered in the Remote Desktop (RDP) Security Guide; this page is the response companion and is defensive only.

Key takeaways

  • Treat a successful exposed-RDP logon as domain-wide until proven otherwise. An interactive session gives the intruder a desktop, cached credentials and a starting point for lateral movement, so scope beyond the one host from the start.
  • Isolate the network path, not the power. CISA advises disconnecting affected systems and powering down only when you cannot disconnect, because shutdown destroys memory evidence such as live sessions and injected code.
  • Four log sources tell most of the story. Security events 4625, 4624 (Logon Type 10), 4778 and 4779, plus the TerminalServices-RemoteConnectionManager (1149) and LocalSessionManager (21, 24, 25) operational logs give you who, from where and when.
  • Credentials are the real blast radius. Every account that logged on to the exposed host, and every secret stored on it, is presumed stolen. Reset them only after the attacker's access paths are closed, or the new passwords are stolen too.
  • The fix is removing exposure, not just changing a password. Recovery is complete only when RDP sits behind a gateway or VPN with multi-factor authentication, and an external scan confirms 3389 is closed.

How the incident shows up

Exposed RDP compromise maps to MITRE ATT&CK T1133 External Remote Services for initial access, usually after T1110.001 Password Guessing, T1110.003 Password Spraying or T1110.004 Credential Stuffing, and then T1078 Valid Accounts once a password works. After the logon the intruder typically moves on with T1021.001 Remote Desktop Protocol and T1021.002 SMB/Windows Admin Shares, harvests credentials (T1003.001 LSASS Memory), and in ransomware cases finishes with T1490 Inhibit System Recovery and T1486 Data Encrypted for Impact. CISA's ransomware guidance names exposed and poorly secured remote services as a common ransomware entry point, and the NCSC lists RDP explicitly among the exposed services ransomware operators use.

The signals responders usually see first:

SignalWhere it appearsWhat it suggests
Hundreds or thousands of 4625 events, Logon Type 10 or 3, from external source addressesSecurity log on the exposed hostActive guessing or spraying against the listener
4625 with Sub Status 0xC0000064 for many different namesSecurity logUsername enumeration (Microsoft documents this code as a misspelled or bad user account)
4625 with 0xC000006A followed by a 4624 Type 10 for the same accountSecurity logA guessed password that finally worked
1149 "User authentication succeeded" with an unfamiliar source addressMicrosoft-Windows-TerminalServices-RemoteConnectionManager/OperationalNetwork-level authentication succeeded for an external client
4624 Type 10 with Elevated Token = Yes from an internet addressSecurity logAdministrative interactive access from outside
Accounts locking out (Status 0xC0000234) across the businessSecurity log, helpdesk ticketsSpraying that has hit the lockout threshold
New local or domain accounts, unexpected remote access tools, services or scheduled tasksSecurity log, EDR, software inventoryPersistence after a successful logon (T1136.001, T1543.003, T1219)
Encrypted files, ransom notes, deleted shadow copiesFile servers, usersLate-stage impact; the intrusion is days or weeks old

A quiet compromise is common: one correct guess against a dormant account produces a single 4624 and nothing else noisy. The Colonial Pipeline ransomware attack began with exactly that pattern on a different remote access service, a dormant VPN account with a leaked password and no multi-factor authentication, which is why "nothing alerted" is never evidence of nothing happening.

Triage questions

Answer these in the first hour. Each answer changes the containment plan.

  1. Did any logon succeed? Search the exposed host for 4624 Logon Type 10 and RemoteConnectionManager 1149 events from non-corporate addresses. Failed attempts alone mean an attempted intrusion; a success means an active incident.
  2. Which accounts, and how privileged? Check whether the account is a local administrator, a domain account, a shared or built-in account, or a service account. Look for 4672 (special privileges assigned) correlated by Logon ID.
  3. When was the first success? The first 4624 Type 10 from the attacker sets the start of the window for everything else. Check log retention: if the Security log has rolled over, the real start may be earlier than you can see.
  4. Is the attacker still connected? Look for open sessions, recent LocalSessionManager 25 (reconnection) and Security 4778 events. The Client Name and Client Address fields in 4778 identify where a reconnection came from.
  5. Did they move? From the exposed host, look for outbound RDP (source-side RDPClient operational log events 1024 and 1025, and Security 4648 targeting TERMSRV), SMB connections to admin shares, and new Type 3 or Type 10 logons on internal servers from the exposed host's address.
  6. What credentials and secrets lived on the host? Cached domain logons, saved RDP connections, browser passwords, service account passwords in scheduled tasks or configuration files, API keys and database connection strings.
  7. Is there evidence of data access or staging? Archive files, large outbound transfers in firewall or proxy logs, cloud sync clients that were not there before.
  8. Are there other exposed RDP hosts? Run an external scan of all your public ranges and check firewall NAT rules for 3389 and any non-standard ports forwarded to RDP. Attackers find the forgotten ones too.

Containment priorities

Contain in this order. The aim is to cut the attacker off without warning them and without destroying evidence.

  1. Close the exposure at the perimeter: remove the firewall or NAT rule that publishes RDP, or block it at the edge. This stops new logons from every source, including ones you have not yet identified.
  2. Isolate the compromised host on the network: use EDR network containment or a switch port or VLAN change, keeping it powered on. CISA's checklist advises taking whole subnets offline at the switch level if several systems are affected, and powering down only when disconnection is impossible.
  3. Coordinate out of band: CISA recommends phone or other out-of-band channels so the attacker, who may be reading email or chat from a compromised account, does not learn they have been detected.
  4. Disable, do not delete, the abused accounts: disable the accounts used in successful logons and any accounts the attacker created. Keep them for evidence. If a built-in local administrator was used, the same password may exist on other machines, so treat every host sharing it as exposed.
  5. Cut other remote paths: CISA's checklist includes disabling VPNs, remote access servers, single sign-on resources and public-facing assets that could give continued access. Review remote access tools installed by the attacker and block their domains at the proxy.
  6. Protect backups and identity infrastructure: confirm backup consoles and domain controllers show no logons from the compromised host or accounts. If they do, the incident is a domain compromise; move to the IAM and PAM recovery after ransomware approach.

Hold the wholesale password reset until the next phase. Resetting while a backdoor or a stolen session is still live simply hands the attacker the new credentials.

Eradication

  • Find persistence: new local accounts (T1136.001), changes to group membership such as Administrators or Remote Desktop Users (T1098), new services (T1543.003), scheduled tasks, Run keys, and installed remote access tools (T1219). Compare against a known-good host build.
  • Hunt across the estate, not just the first host: CISA advises hunting for newly created or escalated Active Directory accounts, anomalous VPN or other logins and unexpected remote management tools, and checking for precursor dropper malware before rebuilding from backups.
  • Remove credential exposure: once access paths are closed, reset passwords for every account that logged on to an affected host, rotate any service account and API secrets stored there, and reset the local administrator password on every machine that shared it. If the domain was reached, plan a double reset of the KRBTGT account as part of domain recovery. See the Credential Dumping Guide.
  • Revoke sessions and tokens: sign the affected users out of cloud services and revoke refresh tokens, because an interactive desktop may have exposed browser sessions to SaaS and cloud consoles.
  • Rebuild rather than clean: for any host where the attacker had administrative access, reimage from a trusted build. CISA recommends rebuilding in order of critical service priority from pre-configured standard images.
  • Check for log tampering: cleared Security logs (ATT&CK T1685.005 Clear Windows Event Logs) are themselves evidence of hands-on activity. Rely on logs forwarded to your SIEM where local copies are gone.

Recovery

Recovery has two jobs: restore service safely and make sure the same door cannot be used again.

Option for remote access after the incidentWhen it fitsTrade-offs
RDP disabled entirelyThe host does not need interactive remote accessSimplest and safest; admin tasks move to management tooling
RD Gateway or similar broker over HTTPS with multi-factor authenticationMany users or third parties need desktop accessSingle choke point to monitor and patch; the gateway itself becomes internet facing and must be maintained
VPN or zero trust access proxy with multi-factor authentication, RDP only on internal addressesAdmins and staff already use a VPN or access proxyProtects RDP well if every VPN profile enforces multi-factor authentication; legacy profiles are the classic gap
Source IP allow list at the firewall onlyTemporary measure for a single fixed partner addressWeak on its own; addresses change and an allowed partner can itself be compromised
  1. Restore from verified backups: confirm backup integrity and that restore points predate the first malicious logon (NIST CSF 2.0 RC.RP-03). Scan restored data for droppers.
  2. Apply the hardening baseline before reconnecting: Network Level Authentication on, account lockout policy set, RDP access limited to a named group, unique local administrator passwords managed by Windows LAPS.
  3. Protect admin credentials in future sessions: Microsoft documents Remote Credential Guard (Kerberos requests are redirected back to the client so credentials do not cross to the target) and Restricted Admin mode (the remote host uses its own identity), set through the "Restrict delegation of credentials to remote servers" policy with values 1, 2 or 3. Microsoft recommends Restricted Admin mode for helpdesk access to possibly compromised machines. Note that Remote Credential Guard works only on direct connections, not through RD Gateway.
  4. Verify from outside: scan your public ranges from an external vantage point and confirm no RDP listener answers on 3389 or any forwarded port.
  5. Watch closely for 30 days: alert on any 4624 Type 10 from outside approved gateway addresses, and on any logon by previously compromised accounts.

Evidence to preserve

Preserve before you rebuild. CISA lists memory, Windows Security logs and firewall log buffers among highly volatile evidence and advises imaging and capturing memory from a sample of affected devices. See the Memory Forensics Guide and the Disk Imaging and Forensic Acquisition Guide.

ArtefactHostWhat it proves
Security 4625, 4624 (Type 10), 4648, 4672, 4778, 4779DestinationFailed and successful logons, source address, privilege, reconnects and disconnects
TerminalServices-RemoteConnectionManager/Operational 261 and 1149DestinationListener received a connection; authentication succeeded with user and source address
TerminalServices-LocalSessionManager/Operational 21, 24, 25DestinationSession logon, disconnect and reconnect timeline
TerminalServices-RDPClient/Operational 1024, 1025, 1026, 1029Any host the attacker connected out fromOnward RDP connections (lateral movement)
Terminal Server Client registry keys (Default\MRU0 to MRU9, Servers\<host>\UsernameHint), Default.rdp, bitmap cache bcache*.bmc, MSTSC prefetchSource of onward RDPWhich hosts were targeted next, with which usernames; bitmap cache can show screen fragments
Memory imageCompromised hostsLive sessions, processes, network connections, injected code
Firewall, VPN and NAT logsPerimeterExternal source addresses, first contact, data volumes out
EDR telemetry and SIEM copies of logsCentralThe timeline that survives local log clearing

Record hashes of every image and export, keep a chain-of-custody log and store evidence where the compromised accounts cannot reach it. The 4778 and 4624 records give Client Address and Source Network Address fields; preserve them in original form because law enforcement and insurers will ask for them.

Notification triggers

Whether you must notify depends on what the intruder could reach, not on how they got in. Start the clocks from when you became aware, and record that moment.

  • UK and EU GDPR: Article 33(1) requires notifying the supervisory authority without undue delay and, where feasible, within 72 hours of becoming aware of a personal data breach, unless it is unlikely to result in a risk to individuals; Article 33(3) lists the minimum contents. An interactive session on a server holding personal data is usually enough to start this assessment.
  • US public companies: the SEC rule makes Form 8-K Item 1.05 generally due four business days after the company determines a cybersecurity incident is material.
  • Sector and national rules: health, financial and critical infrastructure regimes have their own deadlines. See the Breach Notification Laws by Country Guide and the Data Breach Notification Checklist.
  • Reporting to authorities: the NCSC accepts incident reports at report.ncsc.gov.uk; CISA encourages reporting and advises consulting law enforcement about possible decryptors.
  • Contracts and insurance: cyber insurance policies and customer contracts often require prompt notice before you engage outside responders. Check before you call a vendor.

Lessons from incidents

NHI Mgmt Group's breach database records the same root cause on remote access services other than RDP, and the lessons transfer directly:

  • Forgotten remote access with a password only: in the Change Healthcare breach attackers used a stolen employee credential on a Citrix remote access portal without multi-factor authentication and had roughly nine days before deploying ransomware. An exposed RDP listener is the same weakness with even less in front of it.
  • Dormant accounts: the Colonial Pipeline intrusion used an account nobody was using any more. During triage, list every account that can log on through the exposed path and disable those without an owner.
  • Dwell time is the cost driver: both cases had days between first logon and impact. Alerting on the first external Type 10 logon is the control that would have shortened them.

Common failure patterns

  • Resetting the one abused password and closing the ticket: the attacker had a desktop; cached credentials, saved passwords and other accounts are also exposed.
  • Shutting the server down first: memory evidence is lost and the timeline loses its most useful source.
  • Moving RDP to a non-standard port and calling it fixed: scanners find the listener anyway; the exposure has not changed.
  • Shared local administrator passwords: one compromised host becomes every host. Windows LAPS removes this.
  • Restoring from a backup taken after the first logon: the restore brings back the attacker's accounts and tools.
  • Log retention shorter than dwell time: a default-sized Security log on a busy, sprayed server can roll over in hours, so forward logs centrally before you need them.

Framework mapping

FrameworkReferenceRelevance
NIST CSF 2.0DE.CM-01, DE.AE-02, RS.AN-03, RS.MI-01, RS.MI-02, RS.CO-02, RC.RP-03Monitoring, analysis, containment, eradication, notification and verified restoration
NIST SP 800-53 Rev 5AC-17 Remote Access, AC-7 Unsuccessful Logon Attempts, IA-2, AU-6, SI-4, IR-4, IR-6Controls the incident exposed and the handling and reporting process
MITRE ATT&CK v20T1133, T1110.001, T1110.003, T1078, T1021.001, T1563.002, T1003.001, T1490, T1486The common exposed-RDP intrusion chain, including RDP Hijacking of other users' sessions

Where identity fits

Exposed RDP incidents are identity incidents: the attacker authenticates with a real account. Service accounts with interactive logon rights, shared built-in administrator accounts and secrets stored on jump hosts are the non-human identities most often swept up in the blast radius. Inventory them during eradication and remove interactive logon rights from accounts that do not need them. See the Account Lockout and Brute-Force Protection Guide.

Practitioner checklist

  • Confirm or rule out a successful logon using 4624 Type 10 and RemoteConnectionManager 1149 events from external addresses.
  • Remove the perimeter rule publishing RDP, then isolate affected hosts on the network without powering them off.
  • Capture memory and disk images and export the Security, TerminalServices and RDPClient logs before any rebuild.
  • Disable abused and attacker-created accounts, then hunt for new accounts, group changes, services, tasks and remote access tools across the estate.
  • After access paths are closed, reset every credential that touched an affected host and rotate stored service secrets and local administrator passwords.
  • Restore only from backups verified to predate the first malicious logon, and rebuild hosts the attacker administered.
  • Assess GDPR, SEC and sector notification clocks from the documented time of awareness.
  • Re-publish remote access only through a gateway, VPN or access proxy with multi-factor authentication, and confirm 3389 is closed with an external scan.
  • Alert on any external Type 10 logon and keep 30 days of heightened monitoring on the affected accounts.

Standards and references

Related NHI Mgmt Group resources: Remote Desktop (RDP) Security Guide · Incident Response Guide · Digital Forensics (DFIR) Guide · Recovering IAM and PAM After Ransomware or Domain Compromise

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 8 November 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org