CTD-000003

AD forest with anonymous access enabled over Name Service Provider Interface

Medium
Active Directory
Initial Access
v78

Signature Identity

CTD-000003
Threat ID
78
Version
IOE
Indicator Type

Threat Description

Anonymous NSPI access to AD is enabled in the Active Directory forest. Anonymous name service provider interface (NSPI) access to AD is a feature that allows anonymous RPC-based binds to AD. A threat actor might use this protocol to get initial access to the environment.

MITRE ATT&CK: Attack Tactics

Initial Access

D3FEND: Defend Tactics

Application Configuration Hardening

Remediation

Clear fAllowAnonNSPI bit in dSHeuristics attribute:

  1. Open ADSI Edit.
  2. In the left pane of ADSI Edit right-click ADSI Edit.
  3. Select Connect to from the menu.
  4. Select Configuration from the Select a well-known Naming Context menu.
  5. Click OK.
  6. In the left pane, expand CN=Configuration,CN=Services,CN=Windows NT.
  7. In the right pane, right-click CN=Directory Service.
  8. Select Properties from the menu.
  9. In the CN=Directory Service Properties dialog box, select dSHeuristics on the Attribute Editor tab.
  10. Click Edit.
  11. In the String Attribute Editor dialog box.
  12. Change eighth bit to 0 to disable anonymous access.
  13. Click OK in the CN=Directory Service Properties dialog box.
  14. Close ADSI Edit.

Frequently Asked Questions

What does AD forest with anonymous access enabled over Name Service Provider Interface mean?

This setting enables an attacker to use the protocol to establish a connection to Active Directory without valid credentials, allowing them to gather information about the environment. Specifically, it allows anonymous RPC-based binds to Active Directory via NSPI.

This setting enables an attacker to anonymously bind to Active Directory, enabling them to gather information about accounts, group memberships, and other domain details. This can be used as a foothold for more serious intrusion attempts.

An attacker can use the protocol to anonymously bind to Active Directory and gather information about the environment, including discovering account details, group memberships, and other domain information that can be used to plan a more serious intrusion. This also enables reconnaissance and initial access into the AD forest.

Cayosoft Guardian detects this setting by continuously monitoring the state of the feature across the Active Directory environment forest. When the setting is found to be enabled, Guardian flags it as a security issue so administrators are aware that anonymous NSPI access is active.

Cayosoft Guardian helps reduce this risk by alerting administrators to disable the feature in Active Directory, preventing unnecessary access. Guardian also supports ongoing monitoring to detect if the setting is re-enabled later.

Stop AD Threats As They Happen

Cayosoft Protector provides continuous monitoring and real-time alerts across your entire Microsoft Identity stack

Classification
Systems
Active Directory
Themes
Forest-wide Infrastructure
Attack Tactics
Initial Access
Defend Tactics
Application Configuration Hardening
Indicator Types
IOE
Related Threats
CTD-000139
Kerberos Constrained Delegation: krbtgt Risks
Critical
CTD-000122
Active Directory Schema Update Permission Risks
Critical