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 count should be retrievable

AD-SPN-01InfoActive DirectoryService principal names

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

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

Service Principal Names (SPNs) are critical for Kerberos authentication in Active Directory. Understanding the distribution of SPN service classes helps security teams:

  • Identify service exposure: Know what services are exposed for Kerberos authentication
  • Detect anomalies: Unusual SPN service classes may indicate unauthorized services or misconfigurations
  • Audit service footprint: Track the services running across your infrastructure
  • Kerberoasting assessment: SPNs are required for Kerberoasting attacks; knowing what exists helps assess risk

Common SPN service classes include HOST, HTTP, LDAP, MSSQLSvc, and CIFS. Unexpected service classes may warrant investigation.

Operational

Regularly audit SPN configurations to ensure:

  • Only authorized services have SPNs registered
  • SPNs are registered on the correct accounts
  • Unused or legacy service SPNs are removed
  • Sensitive SPNs (like those for database services) are properly secured

This test retrieves all computer objects from Active Directory, extracts their SPNs, and counts the distinct service classes. An SPN has the format serviceclass/host:port, and this test focuses on the service class portion.

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