skip to content

A retailer's review finds one store server answering on 3389 from the internet, unpatched since 2019, among 300 stores: how do you close the exposure and prove it stays closed?

level: principalimportance: should knowfreq 22%

answer

  1. Inventory before you block
  2. Assume it may be compromised
  3. Provide the legitimate path
  4. Open on request, then close
  5. Evidence that it stays closed

basics

~10 s

Inventory every external range, check the exposed server for misuse, close inbound RDP at each site, offer a gateway or VPN with multifactor authentication, require NLA and patches, and verify continuously from outside.

solid answer

~40 s

Start with the inventory of external ranges, then **contain**: remove the forwards and any-source rules at all 300 sites. Treat the exposed, unpatched server as possibly compromised, because the pre-authentication records say a successful exploit can run code, create accounts and change data; closing the port does not undo that. Give users a legitimate path, a gateway or VPN with multifactor authentication, chosen deliberately. On hosts require NLA, patches and a narrow logon right, with a lockout threshold and 4625 alerting. Open the port only just-in-time for approved vendor work. Prove it stays closed with a scheduled external check of your own ranges, alerts on any open RDP port, drift checks on firewall configuration and an exceptions register with owners and expiry dates.

go deeper

for a junior

Know that the fix is to remove the direct exposure and provide a gateway or VPN, not to rename the port.

for a middle

Sequence the response: find the exposure, close it, patch, require NLA and multifactor authentication, and check the logs.

for a senior

Treat the exposed host as possibly compromised, run the hardening items together and use just-in-time access for exceptions.

for a principal

Own the standing rule, the gateway-or-VPN choice and the evidence regime that shows across 300 sites that the rule holds.

## The decision a lead owns One store server answering RDP from the internet and unpatched since 2019 is not a single finding; it shows the estate has no rule that stops a store from opening a port, and no evidence that would have noticed. The decision is the standing rule (no host answers RDP to the internet), the route that replaces it for legitimate users, and the evidence that the rule holds across 300 sites run by people who are not security staff. ## Phase 1: inventory and look back 1. **Inventory the external ranges** per store circuit, head office and cloud networks. Do not trust a single register; reconcile the carrier and provider records with what the stores actually run. 2. **Check the exposed server for misuse before you close it.** The records for the pre-authentication flaws say that a successful exploit lets code run and lets an attacker create new accounts with full user rights and change data. Look for accounts nobody created, remote interactive successes (event 4624, logon type 10) from unexpected sources, and the failure history (event 4625). Closing the port does not undo what already happened. Whether the host is rebuilt or cleaned is an incident decision; plan for rebuild. 3. **Identify the release.** An unpatched server since 2019 may sit on the BlueKeep list (Windows 7, Server 2008 and 2008 R2) or on the newer DejaBlue lists. Match it against the records and retire releases without updates. ## Phase 2: contain - Remove inbound 3389 forwards and any-source allows at every site, centrally if the estate has a central firewall policy, and add a default-deny rule so a store cannot silently reopen it. - Do not stop at 3389. Microsoft documents that the listening port is the `PortNumber` value and can be changed, so also look for listeners on other ports during the host review. A changed port is a configuration option, not a control. ## Phase 3: the legitimate path | Choice | What it gives | What it costs | |---|---|---| | Gateway in front of session hosts | RDP carried inside HTTPS, per-user authorisation, multifactor authentication at the entry point | A new internet-facing service to patch and monitor; scope limited to RDP | | VPN | One entry for many protocols, no inbound RDP | Network-level reach for every connected user; broader blast radius if an account is taken | The choice follows what users need beyond RDP, who operates it, and how much reach a connected user should have. Either way the hosts themselves are not internet-facing. The choice of gateway design and VPN placement belongs to their own subjects. ## Phase 4: harden the hosts - Require **NLA** so a session request is authenticated before a session exists. - Apply updates on a schedule with a stated deadline for pre-authentication flaws. - Narrow **Allow log on through Remote Desktop Services** to the groups that need it. - Set an **account lockout threshold** with an unlock process and alerts on 0xC0000234 bursts, accepting the denial-of-service trade. - Add **multifactor authentication** at the gateway. ## Phase 5: just-in-time for the exceptions Vendors and support staff may still need to reach a till server. The port stays closed by default; an approved request opens a time-boxed rule or authorisation that expires on its own and is logged against a ticket. A permanent allow list restricted to the vendor's current address still leaves the listener reachable all the time. ## Phase 6: evidence that it stays closed 1. A **scheduled external check of your own ranges** that tests all ports and alerts on any open RDP listener, run by someone other than the site. 2. **Configuration drift detection** on store routers and firewalls. 3. **Host evidence:** failures (4625) from external addresses should be zero on hosts that are no longer reachable; remote interactive successes (4624, type 10) only from the gateway or VPN address. 4. An **exceptions register** with owner, reason and expiry, reviewed monthly. 5. A **retest** after every network change at a site. Declining counts of 4625 events do not prove closure on their own; they can fall for other reasons, so use them as a cross-check, not as the proof.

  • Why plan a rebuild of the exposed server instead of only patching and closing the port?
    The records for the pre-authentication flaws say a successful exploit can execute code, install programs, view, change or delete data and create new accounts with full user rights. Patching and closing the rule stop new attempts, but they do not remove what was already done. Looking for unexpected accounts and remote interactive logons informs the decision, and a host exposed for years is safest rebuilt.
  • How do you decide between a gateway and a VPN for store staff?
    Start from need and reach. A gateway keeps access confined to RDP and puts per-user authorisation and multifactor authentication at one entry point, at the price of a service to patch. A VPN serves many protocols but gives connected users network-level reach. Choose by what users need beyond RDP and by who can operate and patch the entry point.
  • What evidence would persuade an auditor the exposure is closed and stays closed?
    A dated external check of all owned ranges showing no open RDP listener, a scheduled repeat with alerting, drift reports for network devices, host logs showing no external failures or successes on the closed hosts, and an exceptions register with owners and expiry. One spreadsheet of router settings at project close shows intent, not continuing state.

  • Closing the port also cleans up whatever the exposure allowed
  • Moving 3389 to a different port closes the exposure across stores
  • A one-time router audit proves it stays closed
  • A falling count of failed logons proves the port is closed
  • A permanent allow rule for the vendor's address is just-in-time
  • Patching the one server solves the 300-store problem