LM and NTLMv1 Authentication Enabled
ID: lm-ntlmv1-authentication-enabled
Severity: high
Author: princechaddha
Tags: lm,ntlmv1,authentication,code,windows-audit
Description
Section titled “Description”Checks if LM and NTLMv1 authentication protocols are enabled, which are insecure.
YAML Source
Section titled “YAML Source”id: lm-ntlmv1-authentication-enabled
info: name: LM and NTLMv1 Authentication Enabled author: princechaddha severity: high description: Checks if LM and NTLMv1 authentication protocols are enabled, which are insecure. impact: | Legacy authentication methods such as LM and NTLMv1 are vulnerable to brute-force and pass-the-hash attacks. remediation: | Disable LM and NTLMv1 and enforce NTLMv2 or Kerberos for secure authentication. tags: lm,ntlmv1,authentication,code,windows-audit
self-contained: true
code: - pre-condition: | IsWindows(); engine: - powershell - powershell.exe args: - -ExecutionPolicy - Bypass pattern: "*.ps1" source: | $level = (Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Lsa' -Name 'LmCompatibilityLevel' -ErrorAction SilentlyContinue).LmCompatibilityLevel; if ($level -lt 3 -or $level -eq $null) { if ($level -eq $null) {"LM Compatibility Level is not set"} else {"LM Compatibility Level is misconfigured (current value: $level)"}} else {"LM Compatibility Level is securely configured (current value: $level)"}
matchers: - type: word words: - "LM Compatibility Level is misconfigured"# digest: 4b0a00483046022100954b92d860fbf494ecc64eef5b9818703ce1d5aaccce547cfdb14e5734965e2c022100f5ff6b06bcbfb54a62a4a36b9b0155f8ee32a58244a575533716a39a1acff1c2: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/lm-ntlmv1-authentication-enabled.yaml"