WinRM Basic Authentication Enabled
ID: winrm-basic-auth-enabled
Severity: high
Author: princechaddha
Tags: windows,winrm,code,windows-audit
Description
Section titled “Description”Verifies if Windows Remote Management (WinRM) allows basic (unencrypted) authentication.
YAML Source
Section titled “YAML Source”id: winrm-basic-auth-enabled
info: name: WinRM Basic Authentication Enabled author: princechaddha severity: high description: Verifies if Windows Remote Management (WinRM) allows basic (unencrypted) authentication. impact: | Basic authentication can expose credentials in plaintext, allowing attackers to intercept and exploit sensitive information. remediation: | Disable Basic authentication and configure secure authentication mechanisms like Kerberos or certificate-based authentication. tags: windows,winrm,code,windows-audit
self-contained: true
code: - pre-condition: | IsWindows(); engine: - powershell - powershell.exe args: - -ExecutionPolicy - Bypass pattern: "*.ps1" source: | (Get-Item WSMan:\localhost\Service\Auth).Basic
matchers: - type: word words: - "True"# digest: 4b0a00483046022100f3185ab678a6dff3ee5c08b99d3534d6b7ad0bf7dbf2a0365e5f8c91a068fa52022100afd466435dea03d41aa09289f0700ad342dc7b3b21570c6fbfc735bbc6771c41:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "code/windows/audit/winrm-basic-auth-enabled.yaml"