skip to content

How do you find RDP exposure on your own address ranges and recognise password guessing against it in Windows event 4625?

level: middleimportance: should knowfreq 40%

answer

  1. Your ranges against your rules
  2. Quiet log proves nothing
  3. Failure status codes differ
  4. Logon type 3 or 10
  5. Locked out is a status

basics

~20 s

Compare your inventory of external address ranges with firewall and NAT rules and an external port check of those ranges. On hosts, read event 4625: logon type, failure status and source address show bursts of guessing and lockouts.

solid answer

~40 s

Finding exposure starts from your own records: the external address ranges you own, the firewall and NAT rules that allow inbound RDP, and an authorised external port check of those ranges. Internet-wide scan results about your addresses are a third party's data and a useful cross-check. Do not assume the port is 3389, because the listener's `PortNumber` can differ. On the hosts, event 4625 records each failed logon with a **Logon Type** (3 is network, 10 is RemoteInteractive), a **Status** and **Sub Status** (0xC000006A bad password, 0xC0000064 bad user name, 0xC0000234 account locked out), the account name and the source address. Many failures within minutes, across one account or many, is guessing pressure. A quiet log does not prove the host is not exposed.

code

plaintext · 4 lines
plaintext
4625  LogonType 3   Account a.user   Status 0xC000006D  SubStatus 0xC000006A  Source 203.0.113.25
4625  LogonType 3   Account a.user   Status 0xC000006D  SubStatus 0xC000006A  Source 203.0.113.25
4625  LogonType 3   Account b.user   Status 0xC000006D  SubStatus 0xC0000064  Source 203.0.113.25
4625  LogonType 10  Account a.user   Status 0xC0000234  SubStatus 0x0         Source 203.0.113.25

go deeper

for a junior

Know that exposure is found by checking your own ranges and firewall rules, and that event 4625 is the failed-logon event.

for a middle

Read a 4625 event: logon type 3 against 10, the status codes for bad password, bad user and lockout, and the source address.

for a senior

Say what the signal cannot prove: a quiet log is not safety, a lockout is not proof of attack, and the source may be a gateway's address.

for a principal

Decide which of these signals you alert on, who owns the response and how an exposure finding is traced back to the rule that opened it.

## Two questions, two kinds of evidence "Is any RDP listener reachable from outside?" is answered from your configuration and from outside-in testing. "Is someone guessing at it?" is answered from the logon events on the host. Keep them apart: a host can be exposed with an empty log, and a log full of failures says nothing about whether the source is the internet or a mistyped password on a kiosk. ## Finding your own exposure 1. **Start from the inventory.** List every external address range you own or are allocated: head office, each store circuit, cloud networks. A range missing from the list is exactly where a forgotten exception lives. 2. **Compare with the rules.** Read the router, firewall and cloud security rules for any inbound allow whose destination port is 3389, whose source is any, or whose destination is a whole range. 3. **Test from outside, against your own ranges only,** with authorisation, using an external port check that covers more than the default port. Describe the capability, not a tool: it reports which addresses accept a connection on which ports. 4. **Check the host.** Microsoft's page on the listening port shows that the port is the `PortNumber` value under the `RDP-Tcp` key and that 3389 is the default, so a host can listen elsewhere. The page documents the change for "security or configuration purposes", which means a non-default value in the registry is a finding to explain, not a sign of safety. 5. **Treat third-party scan data as evidence about your estate,** not as a method you copy. If another party's internet-wide data lists one of your addresses, that is an exposure finding to close and trace to its rule. ## Reading event 4625 Event 4625 is logged for any logon failure, on the computer where the attempt was made, on domain controllers, member servers and workstations. The fields that matter here: | Field | What it tells you | |---|---| | Logon Type | 3 is a network logon; 10 is RemoteInteractive, a user logged on remotely using Terminal Services or Remote Desktop | | Status and Sub Status | 0xC000006A bad password, 0xC0000064 bad user name, 0xC000006D bad user name or authentication information, 0xC0000234 account locked out | | Account Name | which account was targeted | | Source Network Address and Source Port | where the attempt came from, as the host saw it | | Authentication Package | for example Negotiate, NTLM or Kerberos | The page notes that several 0xC0000064 events in a row can be a sign of user enumeration, and that several 0xC000006A or 0xC000006D events in a row for critical or service accounts deserve attention. Status 0xC0000234 "typically" means the account is locked out. ## What the signal can and cannot prove - **It can show pressure:** many failures in minutes, from one address or many, against one account or many. - **It cannot show success or failure of the attacker's aim.** Success is event 4624, whose logon type 10 marks a remote interactive logon; compare the two before concluding anything. - **A locked-out status is not proof of guessing.** A user with an old saved password, a disconnected session that keeps retrying, or an application re-using credentials also locks accounts. - **The source address is what the host saw.** Behind a gateway or a translating device it may be that device's address, so the real origin has to come from the device's own logs. - **A pre-authentication flaw leaves no failed logon,** so 4625 volume is never a measure of exposure to that route. - **Which logon type a failed RDP attempt carries depends on how the host is configured.** Filter on both 3 and 10 rather than assuming one. ## What you do with it - Close the exposure first; then use the failure trend as a check that it stayed closed (failures from external addresses should drop to zero on hosts that are no longer reachable). - Alert on bursts, on 0xC0000234 for service and local accounts, and on a success (4624) soon after many failures from the same source. - Keep the owner and expiry of every deliberate exception.

  • Why can an RDP host be exposed even when its event log shows no failed logons?
    Exposure is about reachability, and the log only records logon attempts that reached the logon stage and failed. A pre-authentication flaw is reached before any logon, and an unused or rarely probed listener simply has no failures yet. So test reachability from outside against your own ranges and read the firewall rules; use 4625 only as a signal of pressure.
  • What can a 0xC0000234 status tell you, and what can it not?
    The event page says that this status typically means the account is locked out, so the lockout threshold was reached. It does not say why: repeated guessing, a stale saved password or an application retrying all produce it. Read the preceding 4625 events for the account name, source address and timing before treating it as an attack.
  • Why look at event 4624 beside 4625?
    Event 4624 is the success counterpart, with logon type 10 for a remote interactive logon. A success from a source that produced many failures a few minutes earlier is the sequence that matters, and the failure volume alone cannot show it.

  • No failed logons in the log means the host is not exposed
  • A non-default listening port in the registry means the host is safe
  • Status 0xC0000234 proves a guessing campaign is in progress
  • The source address in 4625 is always the real client
  • Failure volume in event 4625 measures exposure to pre-authentication flaws
  • Only port 3389 needs checking on the external ranges