Anonymous SID Enumeration Enabled
ID: anonymous-sid-enumeration-enabled
Severity: medium
Author: princechaddha
Tags: windows,code,windows-audit
Description
Section titled “Description”Checks if anonymous users can enumerate Security Identifiers (SIDs).
YAML Source
Section titled “YAML Source”id: anonymous-sid-enumeration-enabled
info: name: Anonymous SID Enumeration Enabled author: princechaddha severity: medium description: Checks if anonymous users can enumerate Security Identifiers (SIDs). impact: | Allowing anonymous SID enumeration can expose user account details and increase the risk of unauthorized access. remediation: | Restrict anonymous access to SID enumeration to enhance security. tags: windows,code,windows-audit
self-contained: true
code: - pre-condition: | IsWindows(); engine: - powershell - powershell.exe args: - -ExecutionPolicy - Bypass pattern: "*.ps1" source: | Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Lsa' -Name 'EveryoneIncludesAnonymous'
matchers: - type: word words: - "everyoneincludesanonymous : 1"# digest: 490a004630440220341001bfbb00ae63b5f2edca540804bc4223a9782ebbd486299b97f2f07d517c0220638db550db92324c1cbbae53e979fad320c171dd260623483d31b2346d08050c: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/anonymous-sid-enumeration-enabled.yaml"