Security Investigation · 14 min read
Investigating WinRM: A Running Service That Wasn’t in Use
WinRM was set to start automatically, had received 8 requests, and had two HTTP.sys URL reservations—but no configured listener or open port. This investigation traces where those requests came from, why the service was present, and what changed after it was disabled.
Published by PrivWarden Team.
A Service Nobody Turned On
Some security findings are obvious: a strange process in Task Manager, an unexpected connection, or an antivirus alert. WinRM—Windows Remote Management—was quieter. It was running, set to start automatically at boot, and associated with two HTTP.sys URL reservations. Its counter showed eight requests. No one had deliberately enabled it, and no one was using it. The service was present even though it had no active listener.
This article follows the investigation: why WinRM was running, what the logs showed, and what the findings suggest about unused services on a modern Windows installation.
What WinRM Actually Is
Windows Remote Management is Microsoft's implementation of the WS-Management protocol — a SOAP-based standard for remotely managing hardware and software. In practical terms, it's the service that lets you run PowerShell commands on a remote machine, manage servers from a central location, or automate administrative tasks across a network. It's an essential tool in enterprise environments. On a personal gaming and streaming PC, it has no legitimate purpose.
The service binds to port 5985 for HTTP and port 5986 for HTTPS. There's also a legacy port, 47001, that appears in some configurations. When WinRM is fully configured with a listener, these ports accept inbound connections and allow remote code execution — with appropriate authentication. Without a listener, the service starts but cannot accept connections.
That distinction—running without a listener—determined what the evidence could and could not show.
The Initial Evidence
The investigation began with a routine service audit. Running winrm get winrm/config returned an error immediately: Windows Script Host was disabled on the machine, which blocked the underlying CScript engine that the WinRM command-line tools depend on. Disabling Windows Script Host prevents many script-based attacks, but it also meant the standard WinRM diagnostic tools couldn't run.
Netstat showed no open sockets or listening processes on ports 5985, 5986, or 47001. The service was running, but it wasn't bound to any interface.
The Windows event log showed that at boot time — 08:28:14 on the day of the investigation — WinRM started automatically and HTTP.sys registered two URL reservations:
- HTTP://+:5985/WSMAN/
- HTTP://+:47001/WSMAN/
These reservations tell HTTP.sys to route incoming requests on those ports to the WinRM service. But without an active listener, WinRM wasn't actually accepting those connections. The URL reservations were placeholders — infrastructure that existed but wasn't being used.
The counter showing eight received requests was the most puzzling data point. If there was no listener and no open port, how had WinRM received any requests at all? The answer, once we traced the event log carefully, was that those requests came from the machine itself — from a previous PrivacyWarden audit session that had attempted to enumerate WinRM's configuration. The requests were local, not remote, and they had all failed with error code 2150858770: ERROR_WINRM_NO_LISTENER.
The HTTP.sys Reservation Problem
WinRM was not accepting connections, but its HTTP.sys URL reservations were still worth reviewing. HTTP.sys is a kernel-mode driver that handles HTTP traffic before it reaches a user-mode application. A reservation can remain after the application that registered it stops, so it is a low-level part of the network stack that is easy to miss during a service audit.
The WinRM reservations on ports 5985 and 47001 mean that if anything ever starts a listener on those ports — whether that's WinRM itself after a configuration change, or malware that knows to use the existing reservation — the traffic will be routed correctly without any additional setup. The reservation does some of the attacker's work for them.
The event log also revealed other HTTP.sys reservations that were registered at boot:
- https://+:443/sra_{BA195980-CD49-458b-9E23-C84EE0ADCD75}/ — Remote Assistance
- https://+:3392/rdp/ — Remote Desktop Protocol
- http://+:10246/MDEServer/ — Microsoft Defender for Endpoint
The RDP reservation on port 3392 (rather than the standard 3389) suggests the RDP port had been changed at some point — a common but often insufficient security measure. The Remote Assistance reservation is particularly notable: Remote Assistance allows another person to take control of your desktop with your permission, and its URL reservation persisting in HTTP.sys means the infrastructure for that feature is always present, even if you never use it.
Why Was WinRM Running at All?
The most likely explanation is Microsoft Defender for Endpoint. MDE is an enterprise-grade endpoint detection and response platform, and it was confirmed as installed on this machine. MDE uses WinRM internally for some of its management and telemetry operations, and it sets the service to Automatic startup as part of its deployment. This is a known and documented behavior.
This creates a practical tension: a security product is maintaining a service that can expand the machine’s attack surface. MDE’s choice may make sense in an enterprise deployment, where reliable remote-management capabilities are part of the operating model. On a personal machine, the relevant question is narrower: does the owner use WinRM, and does that use justify keeping the service available?
If the machine is personal and no one uses remote administration, disabling WinRM is a reasonable default to consider.
The Disable Test
The next step was to disable WinRM and see what happened. If MDE was managing the service, we expected it to re-enable WinRM automatically or log errors about a missing dependency.
The commands were straightforward:
powershell Stop-Service WinRM Set-Service WinRM -StartupType Disabled
Both commands completed without errors or warnings. A verification check confirmed that the service was stopped and disabled. We then waited to see whether it would stay disabled.
MDE did not re-enable WinRM. The service stayed disabled through the rest of the session and through a subsequent reboot. This suggests one of two things: either MDE on this particular machine doesn't depend on WinRM for its core functionality, or the version of MDE installed here has been configured in a way that doesn't require the service. In either case, WinRM remained disabled, with no negative consequences.
What the Investigation Revealed About Modern Windows
The investigation also shows a recurring Windows-security problem: a personal installation can contain services and network components designed for enterprise use even when the owner does not use them.
WinRM is not the only example. Remote Assistance, Remote Desktop, the Connected Devices Platform, and telemetry services can be enabled or configured to start automatically, although their settings vary by Windows edition and installation. For a personal machine, each unused component is worth checking: it may expose a service, a port, or a credential that the owner does not need.
Before you can disable what you don't use, you need to know what's running. Most users never look at their service list and don't know what HTTP.sys URL reservations are, let alone that WinRM has registered two of them on their machine. The attack surface exists in the gap between what Windows runs by default and what users actually know about.
The Broader Context: Living Off the Land
Security researchers use the term "living off the land" to describe attacks that use legitimate Windows tools and services rather than custom malware. WinRM is a prime example of a living-off-the-land target. An attacker who gains initial access to a machine — through a phishing email, a malicious download, a compromised account — can use WinRM to move laterally through a network, execute commands remotely, and maintain persistence, all using a tool that Windows ships with and that many security products treat as trusted.
For streamers and VTubers, the lateral movement scenario is less relevant than it would be in a corporate environment. But the persistence and remote execution scenarios are directly applicable. If an attacker gains access to your machine and WinRM is running, they have a built-in remote management channel that they can configure and use. Disabling the service removes that option entirely.
Practical Takeaways
For a personal Windows machine that does not use remote administration, the investigation supports these checks:
Disable WinRM if you do not use remote PowerShell or remote administration. If the service has no role on your machine, leaving it available adds an unnecessary component to review. The change is reversible: if you later need WinRM for a specific task, you can re-enable it temporarily.
Audit your HTTP.sys URL reservations. Run netsh http show urlacl in an elevated command prompt to see everything that's registered. WinRM, Remote Assistance, and RDP all register URLs here, and those registrations persist even when the services aren't running. Understanding what's registered helps you understand what infrastructure is available to an attacker who gains access to your machine.
Check what's actually listening. netstat -ano shows active connections and listening ports. Running this regularly — or after installing new software — helps you catch unexpected services before they become a problem.
Consider whether enterprise security tools address the risks you face. MDE is designed for corporate environments and can add services, such as WinRM, that a personal machine may not use. Windows Defender ships with Windows 11 and may be a simpler fit when those enterprise features are not needed.
In this case, WinRM is disabled and the machine has one fewer remotely managed service to review. The investigation is now documented in the PrivacyWarden hardening collection. Check which Windows services and HTTP.sys reservations are present instead of assuming the default installation matches what you use.