WinRM (Windows Remote Management) is Microsoft's implementation of the WS-Management protocol for remote administration of Windows systems. It runs on TCP port 5985 for HTTP and TCP port 5986 for HTTPS. Nmap identifies it as wsman or http with WinRM-specific responses.
WinRM is a primary lateral movement vector in Windows and Active Directory environments. It provides full PowerShell remoting capabilities, meaning valid credentials grant interactive command execution on the target. Tools like evil-winrm, crackmapexec, and PowerShell's Enter-PSSession use WinRM for post-exploitation access. It supports NTLM and Kerberos authentication, making it compatible with pass-the-hash and pass-the-ticket attacks.
Enumeration starts with checking whether WinRM is accessible and which authentication methods are accepted. Brute-forcing or spraying credentials against WinRM is effective because it supports local and domain accounts. Once credentials are obtained, WinRM provides a full interactive shell, file upload/download capabilities, and the ability to load PowerShell modules for further enumeration and privilege escalation.
Enumeration
WinRM discovery, auth probing, cred validation, and config enum
WinRM Credential Validation
WinRM Endpoint Probing
WinRM Interactive Shell Access
WinRM Service Discovery with NTLM Info
Vulnerability Discovery
Guides for finding WinRM misconfigs, weak TLS, and auth flaws
WinRM Basic Auth Detection
WinRM Endpoint Exposure Check
WinRM HTTPS TLS Validation
WinRM Low-Privilege Access Check
Exploitation
Brute force, shell access, CLM bypass, and JEA escape guides
WinRM Brute Force and Password Spraying
WinRM Cleartext Credential Capture – HTTP Traffic Interception
evil-winrm – Full WinRM Shell Usage Guide
Exploit WinRM with evil-winrm for interactive PowerShell shells using credentials, hashes, SSL, file transfer, and in-memory script/assembly loading.
Privilege Escalation
Bypass CLM and escape JEA endpoints over WinRM sessions
WinRM CLM Bypass – PowerShell Constrained Language Mode Escape
JEA Endpoint Escape – Breaking Out of Just Enough Administration
Lateral Movement
Move across accounts or systems to expand reach. Use trust paths to access new assets.
WinRM Lateral Movement
Exploiting Windows Remote Management (WinRM) for lateral movement using tools like Evil-WinRM, CrackMapExec, and PowerShell remoting.