Join our Newsletter — 33% off our NHI Course
Threats, Abuse & Incident Response

Ghost SPN

← Back to Glossary
By NHI Mgmt Group Updated October 30, 2026 Domain: Threats, Abuse & Incident Response

A Ghost SPN is a service principal name in Active Directory that points to a hostname that no longer resolves in DNS. It matters because the identity record still exists and can be abused to redirect authentication, even when the underlying service is gone.

What the term means in an Active Directory environment

A ghost SPN is not a broken label in isolation, it is a stale identity record that still exists in Active Directory after the real host has disappeared. Because the SPN can continue to map requests to an account, it creates a lingering trust path that may still influence authentication and service lookup even though the intended destination no longer exists.

The operational risk is that an old object can remain authoritative long after the service has been decommissioned, migrated, or forgotten. That makes ghost SPNs a lifecycle problem as much as a directory hygiene problem, because the directory may keep advertising a service endpoint that the environment no longer owns or monitors.

Why ghost SPNs matter for authentication

SPNs are how Kerberos finds the service account that should receive a ticket, so any stale entry can affect where authentication is directed. If the hostname behind the SPN is no longer valid, the directory record can still be abused as a confusing or misleading target, especially when administrators assume the underlying service has already been removed.

This is why ghost SPNs are dangerous in mature environments: the security issue is not the missing server itself, but the leftover mapping. A stale SPN can preserve a path to an account, keep a service identity visible to attackers, and make remediation harder because the real asset and the directory record have drifted apart.

How organisations find and validate exposure

Exposure checks start with an inventory of service accounts, SPNs, and the systems those records are supposed to represent. Teams should compare directory entries with current DNS resolution, host inventory, and decommission records so that they can spot SPNs tied to hostnames that no longer exist or no longer serve the intended application.

That review should also include a look at whether the SPN points to a service account that is still active for other purposes, since a stale mapping can survive even when the original workload has moved. NHIMG’s Service Account Security Guide is a useful companion for understanding why service account inventory, least privilege and governance matter when SPNs and service accounts drift apart.

Independent validation of account and access controls is also relevant here. NIST SP 800-53 Rev 5 Security and Privacy Controls provides the broader control context for account management, access control and auditing, while NIST Cybersecurity Framework 2.0 helps frame the discovery and governance work needed to keep directory objects aligned with live assets.

Remediation and compensating controls

The cleanest fix is to remove or correct the stale SPN so the directory no longer advertises a destination that does not exist. Where immediate removal is not possible, compensating control means reducing the chance that the stale record can be abused, for example by tightening who can modify service principals, reviewing ownership, and ensuring the related account is not carrying unnecessary access.

In practice, this is also a decommissioning and change-management issue. If hosts move, services are rebuilt, or applications are retired, the directory record should be treated as part of the asset lifecycle so that the SPN, the hostname, and the service owner all change together instead of diverging over time.

Detection and post-patch compromise review

Ghost SPNs are often discovered during cleanup, but they can also be a sign that the directory has already been touched. Once a stale SPN is identified, teams should review directory changes, authentication activity, and any unexpected ticketing or service-account use around the affected object to see whether the stale mapping was abused before it was corrected.

If the record was associated with a live credential or a service account that handled sensitive access, the review should extend to related sessions, delegated permissions and any downstream systems that trusted that account. That is the point where stale directory data becomes an identity-security issue rather than a simple naming error.

Standards & Framework Alignment

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

MITRE ATT&CK addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5AC-2 — Account ManagementGhost SPNs persist as directory account mappings that require ownership and lifecycle control.
IA-5 — Authenticator ManagementThe term involves service credentials and authentication paths that must be governed across their lifecycle.
AU-6 — Audit Review, Analysis, and ReportingDetecting abuse of a stale SPN depends on reviewing authentication and directory activity.
Recommendation — Review and remove stale service-principal mappings under account management controls. Track and rotate service credentials tied to stale or corrected SPN mappings. Correlate directory and authentication logs to investigate misuse of obsolete SPNs.
CIS Controls v8CIS-5 — Account ManagementGhost SPNs are an account lifecycle and ownership problem that CIS account governance addresses.
Recommendation — Inventory, disable and remove obsolete service-account references during account governance.
MITRE ATT&CKT1134 — Access Token ManipulationStale directory trust paths can support abusive authentication and follow-on privilege use.
Recommendation — Map suspicious service-account abuse to ATT&CK techniques and hunt for post-authentication movement.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

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