Anonymous enumeration of shares must be restricted.

Severity
Group ID
Group Title
Version
Rule ID
Date
STIG Version
highV-220930SRG-OS-000138-GPOS-00069WN10-SO-000150SV-220930r958524_rule2025-02-253
Description
Allowing anonymous logon users (null session connections) to list all account names and enumerate all shared resources can provide a map of potential points to attack the system.
ℹ️ Check
If the following registry value does not exist or is not configured as specified, this is a finding: Registry Hive: HKEY_LOCAL_MACHINE Registry Path: \SYSTEM\CurrentControlSet\Control\Lsa\ Value Name: RestrictAnonymous Value Type: REG_DWORD Value: 1
✔️ Fix
Configure the policy value for Computer Configuration >> Windows Settings >> Security Settings >> Local Policies >> Security Options >> "Network access: Do not allow anonymous enumeration of SAM accounts and shares" to "Enabled".