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) →

User SPN service class count should be investigated

AD-SPN-07InfoActive DirectoryService principal names

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

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

Understanding the service classes of SPNs on user accounts helps security teams:

  • Identify service types: Know what services are running under user credentials
  • Assess risk: Some service classes (like MSSQLSvc) are higher-value targets
  • Detect anomalies: Unexpected service classes may indicate unauthorized services
  • Plan migrations: Identify candidates for migration to gMSAs

User accounts with database or application service SPNs are particularly sensitive.

Operational

Review service classes on user accounts:

  • Database services (MSSQLSvc, oracle, postgres) should use gMSAs
  • Web services (HTTP, HTTPS) should run under service accounts or gMSAs
  • Legacy service classes may indicate outdated applications
  • Document all user accounts with SPNs and their purposes

This test retrieves all user objects with SPNs, extracts the service class from each SPN, and counts the distinct service classes in use.

  • Test-MtAdUserSpnServiceClassUsage - Detailed breakdown of service class usage
  • Test-MtAdUserSpnTotalCount - Total count of user SPNs
  • Test-MtAdComputerSpnServiceClassCount - Computer account service classes
Every attribute of this check
FieldValue
Test IDAD-SPN-07
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureService principal names
AreaAuthentication
Resource typeUser
MITRE ATT&CKT1558.003 Kerberoasting
PowerShell testTest-MtAdUserSpnServiceClassCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:user:ReadProperty