Subscribe to the Non-Human & AI Identity Journal
Home FAQ Threats, Abuse & Incident Response How should security teams handle Ghost SPNs in…
Threats, Abuse & Incident Response

How should security teams handle Ghost SPNs in Active Directory?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated June 24, 2026 Domain: Threats, Abuse & Incident Response

Treat Ghost SPNs as stale identity objects with attack potential, not as harmless cleanup items. Security teams should inventory unresolved HOST and CIFS SPNs, remove entries for decommissioned services, and verify that DNS permissions cannot be abused to redirect authentication. The goal is to close the path before ticket reflection becomes possible.

Why This Matters for Security Teams

Ghost SPNs are not just leftover directory objects. In active directory, a stale HOST or CIFS service principal name can still influence how Kerberos targets a service, which means an abandoned entry can become a path for ticket reflection, service impersonation, or authentication redirection. That makes SPN hygiene a control issue, not a housekeeping task. NHI Management Group’s research on the Ultimate Guide to NHIs shows how often identity sprawl and weak lifecycle discipline widen attack surface, and NIST’s NIST Cybersecurity Framework 2.0 reinforces the need to inventory, govern, and continuously monitor identity assets as operational risk.

The practical mistake is assuming decommissioned services are harmless once the host is gone. In reality, directory metadata can outlive the workload and remain reachable to an attacker who understands how SPNs affect Kerberos resolution. The right response is to treat unresolved SPNs as stale non-human identity objects: identify ownership, validate whether the backing service still exists, and remove entries that no longer map to a legitimate endpoint. The broader lesson aligns with NHIMG guidance on lifecycle control and offboarding, especially where service identities are poorly tracked. In practice, many security teams encounter abuse of stale SPNs only after authentication anomalies or lateral movement have already started, rather than through intentional cleanup.

How It Works in Practice

Handling Ghost SPNs starts with an inventory of service principal names and a validation step for every entry that points to HOST, CIFS, or other common service classes. Security teams should reconcile each SPN against its owning system, application, or cluster, then confirm whether the service is active, migrated, or fully retired. If no legitimate dependency exists, remove the SPN and document the change so it does not reappear through automated provisioning.

Operationally, the goal is to reduce ambiguity in how Kerberos can resolve a service. That includes checking whether duplicate SPNs exist, whether DNS records can be manipulated to steer clients toward a malicious endpoint, and whether delegated admins have unnecessary write access to service attributes. Current guidance suggests pairing directory review with change control and continuous monitoring, because stale directory objects often survive longer than the systems they were meant to support. For background on why identity cleanup matters, see Cisco Active Directory credentials breach, which illustrates how identity exposure can persist beyond the original compromise.

  • Reconcile all SPNs with CMDB, asset inventory, or service ownership records.
  • Remove SPNs tied to decommissioned hosts, moved services, and abandoned test systems.
  • Verify DNS and delegation permissions so attackers cannot redirect authentication to a rogue endpoint.
  • Alert on new or changed SPNs for high-value service classes such as HOST and CIFS.
  • Review administrative rights to service attributes and restrict who can create or modify them.

These controls tend to break down in large, federated environments where service ownership is unclear and automation continuously recreates stale directory entries.

Common Variations and Edge Cases

Tighter SPN control often increases operational overhead, requiring organisations to balance authentication safety against migration speed and legacy compatibility. That tradeoff is real in environments with old Windows services, clustered workloads, or third-party applications that still depend on static service accounts. Best practice is evolving, but current guidance is clear that legacy exceptions should be explicit, time-bound, and reviewed.

One common edge case is a service that is technically live but has been migrated to a new host without updating its SPN ownership record. Another is a clustered or load-balanced application where multiple endpoints legitimately share a service identity. In those cases, the SPN should still be mapped to a defined owner and protected with change approval, not left as an orphaned artifact. Teams should also be careful not to confuse a removed SPN with a removed dependency: if the application still authenticates through Kerberos, breaking the binding can cause outages.

Where this guidance gets messy is with hybrid identity, delegated administration, and scripts that recreate directory objects during deployment. Those environments need periodic reconciliation, not one-time cleanup. The safest operating model is a documented SPN ownership process, continuous monitoring for unexpected additions, and a narrow set of admins allowed to modify service principals.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-02Stale SPNs are unmanaged non-human identity objects with attack potential.
NIST CSF 2.0ID.AM-1Ghost SPNs require asset and identity inventory to identify ownership gaps.
NIST CSF 2.0PR.AC-4SPN abuse relies on improper access and weak authentication-path control.

Restrict who can modify service attributes and monitor for authentication redirection risk.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on June 24, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org