Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

Computer SPN service class usage should be retrievable

AD-SPN-02InfoActive DirectoryService principal names

Part of Active Directory · Active Directory · Service principal names · All checks

Run this check
Invoke-Maester -TestId AD-SPN-02

Understanding the distribution of SPN service classes across your computer infrastructure provides valuable security insights:

  • Service inventory: See what services are deployed across your environment
  • Risk assessment: Identify high-value targets (like database services with SPNs)
  • Compliance tracking: Ensure only approved services are configured
  • Anomaly detection: Spot unusual service classes that may indicate shadow IT or misconfigurations

Services with SPNs are targets for Kerberoasting attacks, so knowing which services exist helps prioritize security efforts.

Operational

Review the service class breakdown regularly:

  • Validate that all services with SPNs are authorized
  • Ensure sensitive services (MSSQLSvc, etc.) have additional protections
  • Remove SPNs for decommissioned services
  • Consider implementing SPN attribution monitoring for critical services

This test analyzes all computer SPNs, groups them by service class, and provides a count and percentage for each service class. This gives you a clear view of your Kerberos-authenticated service landscape.

  • Test-MtAdComputerSpnServiceClassCount - Counts distinct service classes
  • Test-MtAdComputerSpnUnknownCount - Identifies unrecognized service classes
  • Test-MtAdUserSpnServiceClassUsage - Shows user account SPN service class usage
Every attribute of this check
FieldValue
Test IDAD-SPN-02
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureService principal names
AreaInfrastructure hardening
Resource typeComputer
MITRE ATT&CKNone
PowerShell testTest-MtAdComputerSpnServiceClassUsage
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:computer:ReadProperty