Skip to content
System hardening
ASD ISMISM-1834

ASD ISM 1834 Ensure no duplicate SPNs in Active Directory

What it says

Duplicate SPNs do not exist within the domain.

Quoted as published. Everything else on this page is written by Control Stack.

In plain English

Register each Service Principal Name (SPN) on only one account in the domain, leaving no duplicates.

Duplicate Service Principal Names (SPNs) must not exist within the domain. An SPN is the name Kerberos uses to find the account a service runs under, so each one must be unique within the domain. A duplicate is the same SPN registered on two or more accounts, whether service accounts, computer accounts or a mix. In a forest with several domains, each domain must be free of duplicates.

Why it matters

When an SPN sits on two accounts, the domain controller cannot tell which account's key to use for that service's tickets. Kerberos logons to the service then fail, and clients may fall back to NTLM, an older and weaker protocol, or be refused.

How to implement

  1. Search each domain for duplicate SPNs.

    Run setspn -X in each domain to list every SPN registered on more than one account. On domain controllers, KDC event 11 in the System log also names duplicates that clients have run into.

  2. Find which account each service really runs under.

    With the service owner, check its logon account; a built-in account such as Network Service means the computer account. Keep the SPN there, remove it from the others with setspn -D and test a Kerberos logon. Several hosts serving one name need one shared group Managed Service Account (ISM-1619) holding the SPN.

  3. Add new SPNs only with a duplicate check.

    Use setspn -S, which checks for the SPN before adding it, in build scripts and installation steps, and confirm that any other tool writing servicePrincipalName refuses duplicates.

Keep it running

Re-run the duplicate search after migrating or rebuilding servers, renaming hosts or moving a service to a new account, since old SPNs can stay behind. Watch domain controllers for KDC event 11, which shows a duplicate that clients have hit.

Evidence and audit

  1. Check 1 of 3What an auditor asks for

    Ask for

    The output of a duplicate SPN search, such as setspn -X, run by the auditor in each domain during the audit.

    Look at

    Any SPN listed against more than one account.

    Good evidence

    The search finds no SPN registered on more than one account in any domain.

  2. Check 2 of 3What an auditor asks for

    Ask for

    A demonstration of the organisation's usual method being used to add, to a test service account, an SPN that another test service account already holds.

    Look at

    Whether the method or the domain controller refuses the duplicate.

    Good evidence

    The attempt is refused and the SPN stays on one account only, so the usual method cannot create a new duplicate.

  3. Check 3 of 3What an auditor asks for

    Ask for

    KDC event 11 entries from every domain controller's System log for a recent period.

    Look at

    Each duplicate the events name, and whether it still exists.

    Good evidence

    Every duplicate named in the period has been removed and is absent from the auditor's live search.

Mappings

Closest match in ISO/IEC 27001: A.8.9, Configuration management, which this control partially meets.

ISO 27001

ISO/IEC 27001: 1 mapping

  • A.8.9Configuration managementPartially meets

Mappings show how controls relate across frameworks. They do not imply full equivalence or certification.