Files
nuclei-templates/code/windows/audit/anonymous-sid-enumeration-enabled.yaml

33 lines
874 B
YAML
Raw Normal View History

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"