Files
nuclei-templates/code/windows/audit/winrm-basic-auth-enabled.yaml
2024-11-27 11:56:00 +00:00

33 lines
1.1 KiB
YAML

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: 4a0a0047304502205119d38db8e3aed2f877cb0f7badb5b9d34e6a34340ab1ef5bad91b0f8f3ab0b022100e483d87e078074dafa10f1e28a3756d219d50d48df767fd0e28a4cd0646c8d08:922c64590222798bb761d5b6d8e72950