AD-SPN-03 - Computer SPN unknown service class count should be retrievable
Overviewβ
Unidentified SPN service classes can represent security risks:
- Shadow IT: Unknown services may be running without IT's knowledge or approval
- Misconfigurations: Typos or incorrect SPN registrations can cause authentication issues
- Malicious services: Attackers may register SPNs for rogue services
- Legacy cleanup: Old application SPNs may remain after decommissioning
Identifying unknown SPNs allows security teams to investigate and validate whether these services are legitimate and properly secured.
Security Recommendationβ
When unknown SPN service classes are identified:
- Investigate each unknown service class to determine its purpose
- Verify if the service is authorized and necessary
- Check if the SPN is registered on the correct account
- Remove SPNs for unauthorized or decommissioned services
- Document any custom or third-party SPNs for future reference
How the Test Worksβ
This test compares discovered SPN service classes against a database of known SPNs (including standard Windows services, common enterprise applications, and database systems). Service classes not in the known list are flagged as unknown.
Related Testsβ
Test-MtAdComputerSpnUnknownDetails- Provides detailed information about unknown SPNsTest-MtAdComputerSpnServiceClassCount- Counts all distinct service classesTest-MtAdUserSpnUnknownCount- Identifies unknown SPNs on user accounts
Test Metadataβ
| Field | Value |
|---|---|
| Test ID | AD-SPN-03 |
| Severity | Info |
| Suite | Active Directory |
| Category | AD.SPN |
| PowerShell test | Test-MtAdComputerSpnUnknownCount |
| Tags | AD, AD-SPN-03, AD.SPN |
Sourceβ
- Pester test:
tests/ad/spn/Test-MtAdComputerSpnUnknownCount.Tests.ps1 - PowerShell source:
powershell/public/ad/spn/Test-MtAdComputerSpnUnknownCount.ps1

