TExcelTAD

Insecure Remote Administration

Administrators need to reach systems from somewhere else: the office, home, a hotel at 3 a.m. during an outage. Every way they do it (SSH, RDP, VNC, a device's web console, a BMC such as iDRAC or iLO, a remote-support tool) is also a way in for anyone who gets the credentials or finds a flaw in the service. Insecure remote administration is the seventh common weakness, and the one with the most direct impact: admin access is the goal of most attacks. Exposed RDP has been one of the most common initial access routes for ransomware groups for years.

What "insecure" looks like

Pattern Why it is dangerous
Admin protocols (22, 3389, 5900, 5985/5986, device web UIs) reachable from the Internet constant automated guessing and exploitation of every new flaw in the service
Password-only admin logins, shared admin accounts spraying, stolen passwords, no accountability (Weak and Default Authentication)
Admin access from any internal host a phished office PC is one step from every server (Inadequate Segmentation)
BMCs and device consoles on the user or server network full hardware control (power, console, virtual media) behind often-outdated firmware
Unmanaged remote-support tools (installed by users or vendors) an outbound tunnel that bypasses the firewall's inbound policy
Admin from unmanaged personal devices the admin session is only as safe as the device it runs on
No session logging no evidence of what an admin (or an intruder with admin credentials) did

Finding it

From outside (an external scan in scope) and from each internal zone, list every admin service and who can reach it. The checker below merges the external and internal views of the lab assessment and grades each admin path.

python · try it yourself
ADMIN = {22: "SSH", 3389: "RDP", 5900: "VNC", 5985: "WinRM", 5986: "WinRM/TLS", 623: "IPMI (udp)", 8443: "web console"}
views = {   # vantage point -> {target: open ports}
    "internet (198.51.100.20)": {"203.0.113.10": {443, 22}, "203.0.113.11": {3389}},
    "staff net (10.10.0.99)":   {"fw": {22, 53}, "www": {22, 80, 443}, "db": {22, 5432}, "bmc-db": {443, 623}},
    "admin net (10.10.5.21)":   {"fw": {22}, "www": {22}, "db": {22}, "bmc-db": {443, 623}},
}
MGMT_ONLY = {"bmc-db"}    # devices that must be reachable from the admin network only

for view, targets in views.items():
    for target, ports in targets.items():
        admin = sorted(p for p in ports if p in ADMIN) + (["web UI"] if target in MGMT_ONLY and 443 in ports else [])
        if not admin:
            continue
        if view.startswith("internet"):
            grade = "CRITICAL: admin service on the Internet"
        elif view.startswith("staff"):
            grade = "HIGH: admin service reachable from user devices"
        else:
            grade = "expected (admin network)"
        names = ", ".join(ADMIN.get(p, p) if isinstance(p, int) else p for p in admin)
        print(f"{view:26} {target:13} {names:24} {grade}")
internet (198.51.100.20)   203.0.113.10  SSH                      CRITICAL: admin service on the Internet
internet (198.51.100.20)   203.0.113.11  RDP                      CRITICAL: admin service on the Internet
staff net (10.10.0.99)     fw            SSH                      HIGH: admin service reachable from user devices
staff net (10.10.0.99)     www           SSH                      HIGH: admin service reachable from user devices
staff net (10.10.0.99)     db            SSH                      HIGH: admin service reachable from user devices
staff net (10.10.0.99)     bmc-db        IPMI (udp), web UI       HIGH: admin service reachable from user devices
admin net (10.10.5.21)     fw            SSH                      expected (admin network)
admin net (10.10.5.21)     www           SSH                      expected (admin network)
admin net (10.10.5.21)     db            SSH                      expected (admin network)
admin net (10.10.5.21)     bmc-db        IPMI (udp), web UI       expected (admin network)

Two critical findings (SSH on the web server's public address and an RDP host published to the Internet), and the BMC of the database server reachable from user desks. The same services from the admin network are what the design wants.

Detection of attacks on exposed admin services follows the patterns of the weak-authentication lesson: failure bursts and spraying per source, successful logins from new countries or networks, logins at unusual hours. On Windows, RDP logons appear as event 4624 with logon type 10 (and failures as 4625); on Linux, sshd logs Accepted/Failed lines to the journal (Linux Services and Logs).

A lab session: an exposed RDP host

The external scan's transcript for the RDP finding (lab session, scope 203.0.113.10–11, source 198.51.100.20, non-intrusive scripts only):

console
assessor@ext-scanner:~$ nmap -sT -Pn -p 3389 --script rdp-ntlm-info,rdp-enum-encryption 203.0.113.11
PORT     STATE SERVICE
3389/tcp open  ms-wbt-server
| rdp-ntlm-info:
|   Target_Name: LAB
|   NetBIOS_Domain_Name: LAB
|   NetBIOS_Computer_Name: TS01
|   DNS_Domain_Name: lab.test
|   DNS_Computer_Name: ts01.lab.test
|   DNS_Tree_Name: lab.test
|   Product_Version: 10.0.17763
|_  System_Time: 2026-02-03T19:12:40+00:00
| rdp-enum-encryption:
|   Security layer
|     CredSSP (NLA): SUCCESS
|     CredSSP with Early User Auth: SUCCESS
|     RDSTLS: SUCCESS
|_    SSL: SUCCESS

Without logging in, the service told the Internet the internal domain name (lab.test), the machine name and the Windows build (10.0.17763, the Windows Server 2019 / Windows 10 1809 build). Network Level Authentication is on, which is good, but the host is still a guessing target for the whole Internet. The finding is the exposure itself.

How it is fixed

  • Nothing administrative on the Internet. Put admin access behind a VPN with MFA, a zero-trust access proxy, or at minimum an IP allowlist (Zero Trust, OpenVPN and VPN Hardening).
  • A management network (or VLAN) for BMCs, device consoles and admin interfaces, reachable only from admin workstations or a bastion host with MFA and session logging (Bastion Hosts, Jump Boxes and SSH Tunnels).
  • Strong authentication: SSH keys or certificates (SSH Certificates & Bastion Hosts), RDP with NLA and MFA, individual named admin accounts, privileged-access management for shared ones.
  • Admin workstations: dedicated, hardened devices for administration, not the laptop used for e-mail and browsing.
  • Control remote-support tools: one approved tool, vendor sessions approved per use and recorded; block the rest by application and DNS filtering on egress.
  • Log and review admin sessions: who, when, from where, what.

Pitfalls

  • Moving RDP or SSH to a high port: scanners find it in minutes; it changes nothing about the risk.
  • An allowlist that includes "the vendor's whole cloud range".
  • Forgetting the BMC: patching the OS while the iDRAC/iLO firmware is years old.
  • Emergency "break-glass" access that bypasses all controls and is never tested or monitored.

Practice

1. A vendor needs RDP to one server every Friday. Design the access.

No inbound RDP from the Internet. The vendor connects through the company's VPN or access proxy with an individual account and MFA, enabled only for the agreed window, lands on a bastion or jump host with session recording, and from there reaches the one server on 3389. The account is disabled outside the window.

2. What did rdp-ntlm-info reveal, and why does it matter?

The internal domain (LAB, lab.test), the computer name TS01 and the OS build. It gives an attacker targets for spraying (domain-format usernames) and tells them which Windows vulnerabilities might apply.

3. Extend the checker: flag port 623 reachable from anywhere but the admin network as "IPMI exposure".

Inside the loop, add if 623 in ports and not view.startswith("admin"): print(target, "IPMI reachable outside the management network"). IPMI 2.0 has protocol-level weaknesses (the RAKP exchange discloses a password hash to anyone who asks), so it must stay on a management network.

Test yourself

What is the main fix for RDP reachable from the Internet?

  1. Move it to port 33890
  2. Remove the exposure: access through a VPN or access proxy with MFA, or a bastion
  3. Use a longer password
  4. Disable NLA

Where should BMC interfaces (iDRAC, iLO, IPMI) be reachable from?

  1. Everywhere internal
  2. A management network, from admin workstations or a bastion
  3. The Internet, for remote hands
  4. Only the server they manage

Which Windows event records a successful RDP logon?

  1. 4625 with logon type 3
  2. 4624 with logon type 10
  3. 4720
  4. 1102