Skip to content
WinRM
Service

WinRM

WinRM is Windows remote management over HTTP/HTTPS. Attackers probe auth, brute force creds, gain remote shells, bypass CLM, escape JEA, and move laterally across Windows environments

:5985 :5986 15 guides 5 phases
1 min read Created: Dec 28, 2025 Updated: Jul 14, 2026

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

5
WinRM Configuration Enumeration

WinRM Configuration Enumeration

Enumerate WinRM service configuration, authentication methods, and remote management settings to identify misconfigurations and attack vectors on Windows targets.

Jan 4, 2026 • 4 min read
WinRM Credential Validation

WinRM Credential Validation

Enumerate valid credentials against WinRM using tools like CrackMapExec and Evil-WinRM to identify authenticated access on port 5985/5986.

Jan 4, 2026 • 6 min read
WinRM Endpoint Probing

WinRM Endpoint Probing

Enumerate WinRM endpoints on port 5985/5986, identify authentication methods, test credentials, and assess remote management attack surface on Windows hosts.

Jan 4, 2026 • 6 min read
WinRM Interactive Shell Access

WinRM Interactive Shell Access

Establish interactive PowerShell sessions over WinRM using Evil-WinRM or Invoke-Command for authenticated remote access and post-exploitation enumeration.

Jan 4, 2026 • 4 min read
WinRM Service Discovery with NTLM Info

WinRM Service Discovery with NTLM Info

Enumerate WinRM endpoints, extract NTLM authentication metadata, and identify Windows hostnames, domain info, and OS versions via port 5985/5986.

Jan 4, 2026 • 5 min read

Vulnerability Discovery

Guides for finding WinRM misconfigs, weak TLS, and auth flaws

4
WinRM Basic Auth Detection

WinRM Basic Auth Detection

Detect WinRM basic authentication misconfigurations via port scanning, HTTP probing, and authentication testing to identify insecure credential exposure risks.

Mar 6, 2026 • 4 min read
WinRM Endpoint Exposure Check

WinRM Endpoint Exposure Check

Identifies exposed WinRM endpoints on ports 5985/5986, checks for misconfigurations, weak auth, and unencrypted HTTP transport risks.

Mar 6, 2026 • 3 min read
WinRM HTTPS TLS Validation

WinRM HTTPS TLS Validation

Covers testing WinRM HTTPS endpoints for TLS misconfigurations, weak ciphers, certificate validation bypasses, and self-signed cert exploitation during vulnerability discovery.

Mar 6, 2026 • 1 min read
WinRM Low-Privilege Access Check

WinRM Low-Privilege Access Check

Enumerate WinRM access with low-privilege credentials, identifying misconfigurations, exposed endpoints, and lateral movement risks on Windows Remote Management.

Mar 6, 2026 • 5 min read

Exploitation

Brute force, shell access, CLM bypass, and JEA escape guides

3
WinRM Brute Force and Password Spraying

WinRM Brute Force and Password Spraying

Covers brute force and password spraying attacks against WinRM using tools like CrackMapExec and Evil-WinRM to gain remote access on Windows targets.

Mar 12, 2026 • 4 min read

Privilege Escalation

Bypass CLM and escape JEA endpoints over WinRM sessions

2

Lateral Movement

Move across accounts or systems to expand reach. Use trust paths to access new assets.

1
WinRM Lateral Movement

WinRM Lateral Movement

Exploiting Windows Remote Management (WinRM) for lateral movement using tools like Evil-WinRM, CrackMapExec, and PowerShell remoting.

May 6, 2026 • 4 min read