Dangling Service Principal Names Test
A dangling Service Principal Name (SPN) refers to an SPN entry that points to an account that no longer exists or has been deleted from Active Directory. If not properly cleaned up during deprovisioning, these SPNs can remain in the directory. This can lead to Kerberos authentication failures, service resolution issues, and security vulnerabilities such as SPN spoofing. Such vulnerabilities may result in unauthorized access through service impersonation. Therefore, identifying any increase in the number of dangling SPNs in a timely manner helps prevent these issues. This test helps detect such entries proactively. It reports the number of dangling SPNs, enabling administrators to clean them up promptly. This ensures smoother authentication processes and reduces the risk of security breaches.
Target of the test : An Active Directory server
Agent deploying the test : An internal agent
Outputs of the test : One set of results for every Active Directory site that is being monitored
| Parameters | Description |
|---|---|
|
Test period |
This indicates how often should the test be executed. |
|
Host |
The IP address of the machine where the Active Directory is installed. |
|
Port |
The port number through which the Active Directory communicates. The default port number is 389. |
|
DNS Servers |
This test detects dangling Service Principal Names (SPNs) in the target Active Directory environment. During dangling SPN evaluation, the test performs DNS validation to verify whether the hostnames associated with SPNs are resolvable. By default, the test uses the local host or the default domain controllers available in the environment to perform this DNS validation. However, in some environments, administrators may prefer to use specific DNS servers or domain controllers for controlled, reliable, or domain-specific SPN validation. In such cases, administrators can configure this parameter with a comma-separated list of DNS server names or domain controller host names/IP addresses in the DNS Servers text box. Fully Qualified Domain Names (FQDNs) should be provided wherever applicable. When specific DNS servers are configured, the test uses only those servers for DNS-based SPN validation. By default, this parameter is set to none, indicating that the test uses the local host or default domain controllers available in the environment for DNS validation. |
|
Check AD Computer Found |
Service Principal Names (SPNs) in an Active Directory environment may be associated with both user objects and computer objects. To detect dangling SPNs, this test by default evaluates SPNs belonging to both computer accounts and user accounts. This is why, the Check AD Computer Found parameter is set to Yes by default. This default settings provides broader visibility into potential stale or invalid SPNs across the Active Directory environment and helps identify issues related to computer accounts and user accounts. On the flip side though, turning on this flag may increase the number of SPNs evaluated, resulting in additional LDAP queries, DNS validations, scan processing overhead, and longer test execution time, especially in large Active Directory environments. If this flag is set to No instead, the test evaluates only SPNs associated with user objects and ignores SPNs linked to computer accounts. This may be useful in environments where administrators want to focus specifically on user or service account-related SPNs. This setting is also ideal if you are looking to reduce monitoring overheads, minimize scan duration, and avoid unnecessary validation. |
|
Ignore DNS Failure for Dangling |
Dangling SPNs are often identified when the hostnames associated with SPNs cannot be resolved through DNS validation. In some cases, such DNS resolution failures may genuinely indicate stale, invalid, or orphaned SPNs. Therefore, by default, this test treats SPNs associated with DNS resolution failures as dangling SPNs. This is why, the Ignore DNS Failure for Dangling parameter is set to Yes by default. This default setting provides broader visibility into potential stale or invalid SPNs and helps identify hostname resolution issues that may affect Kerberos authentication or service accessibility. However, in some environments, temporary DNS issues, restricted DNS visibility, network segmentation, decommissioned systems, or intentionally non-resolvable SPNs may generate false alerts during dangling SPN detection. Such environments may want to consider setting this flag to No. In this case, the test ignores DNS resolution failures while evaluating dangling SPNs. |
|
Exclude Accounts |
A dangling SPN is typically identified when the SPN points to a non-existent, stale, or DNS-unresolvable host. Such dangling SPNs may lead to Kerberos authentication issues, stale Active Directory references, duplicate SPN conflicts, and potential security risks. This test monitors the target Active Directory environment and reports the number and details of dangling SPNs. However, in some environments, certain special-purpose accounts such as AZUREADSSOACC may intentionally contain SPNs that do not map to DNS-resolvable hosts as part of their normal authentication configuration. This test however, will incorrectly identify such accounts as dangling SPNs and generate unnecessary alerts. To avoid such false positives, administrators can use this parameter to exclude specific Active Directory accounts from dangling SPN evaluation. For this, specify a comma-separated list of account names in the Exclude Accounts text box. The specified accounts can be provided using SAMAccountName format or computer account names with or without the $ suffix. For example, AZUREADSSOACC, SQLServiceAcct, APPSERVER01$. If an SPN belongs to an excluded account, the test skips dangling SPN validation for that account entirely. SPNs associated with the excluded accounts will hence not be reported by the Dangling service principal names found measure. This helps reduce unnecessary alerts while ensuring that genuinely suspicious or stale SPNs continue to be identified and monitored effectively. By default, this parameter is set to none, indicating that no accounts are excluded from monitoring. |
|
Throttle Limit |
In large Active Directory environments, dangling SPN detection may involve scanning and validating a large number of SPNs. Performing these operations simultaneously may increase load on domain controllers and the eG agent, thereby affecting scan performance and increasing test execution time. To minimize the eG agent's processing overheads and to optimize scan performance, the test evaluates SPNs in controlled batches based on the configured throttle limit. Administrators can use this parameter to control the number of SPNs processed simultaneously during dangling SPN evaluation. A lower value reduces load on the Active Directory environment and the eG agent but may increase scan duration, whereas a higher value may improve scan speed at the cost of increased resource utilization. For optimal results, this parameter is set to 50 by default. You can override this default value based on the resources at the disposal of the eG agent and the scan speed that is acceptable to you. |
|
Show Timing |
For further troubleshooting purposes, administrators may require detailed timing information for the various stages of dangling SPN evaluation. To facilitate this, eG provides the Show Timing parameter. When this parameter is enabled, administrators can manually execute the PowerShell script to view the overall scan duration and the time taken by individual processing stages, such as SPN enumeration, Active Directory validation, DNS validation, and result evaluation. This information can help identify performance bottlenecks and analyze the execution behavior of the dangling SPN detection process. Since such details are generally not required during normal monitoring, this parameter is disabled by default. By default, this parameter is set to No. |
|
DD Frequency |
Refers to the frequency with which detailed diagnosis measures are to be generated for this test. The default is 1:1. This indicates that, by default, detailed measures will be generated every time this test runs, and also every time the test detects a problem. You can modify this frequency, if you so desire. Also, if you intend to disable the detailed diagnosis capability for this test, you can do so by specifying none against DD frequency. |
|
Detailed Diagnosis |
To make diagnosis more efficient and accurate, the eG Enterprise embeds an optional detailed diagnostic capability. With this capability, the eG agents can be configured to run detailed, more elaborate tests as and when specific problems are detected. To enable the detailed diagnosis capability of this test for a particular server, choose the On option. To disable the capability, click on the Off option. The option to selectively enable/disable the detailed diagnosis capability will be available only if the following conditions are fulfilled:
|
| Measurement | Description | Measurement Unit | Interpretation |
|---|---|---|---|
|
Dangling service principal names found |
Indicates the total number of Service Principal Names in Active Directory that are currently associated with deleted or non-existent accounts. |
Number |
If the value of this measure is high, it indicates the presence of numerous invalid SPN references in Active Directory. This points to the need to remove these dangling entries to maintain the security, integrity, and proper functioning of the directory. Use the detailed diagnosis of this measure to find out the details of dangling SPNs. |