User SPN service class usage should be investigated
AD-SPN-08InfoActive DirectoryService principal names
Part of Active Directory · Active Directory · Service principal names · All checks
Invoke-Maester -TestId AD-SPN-08Overview
Section titled “Overview”A detailed breakdown of SPN service classes on user accounts enables:
- Risk prioritization: Identify high-value targets like database services
- Service inventory: Understand what services run under user credentials
- Compliance assessment: Ensure services meet security standards
- Migration planning: Prioritize which services to move to gMSAs first
Database and application services on user accounts pose the highest Kerberoasting risk.
Control Type
Section titled “Control Type”Operational
Security Recommendation
Section titled “Security Recommendation”Based on service class usage:
- Prioritize migrating database services (MSSQLSvc, oracle) to gMSAs
- Audit HTTP/HTTPS services running under user accounts
- Investigate custom or unknown service classes
- Document legitimate service accounts and their purposes
How the Test Works
Section titled “How the Test Works”This test analyzes all user SPNs, groups them by service class, and provides a count and percentage for each service class, helping you understand your user service account landscape.
Related Tests
Section titled “Related Tests”Test-MtAdUserSpnServiceClassCount- Counts distinct service classesTest-MtAdUserSpnUnknownCount- Identifies unrecognized service classesTest-MtAdComputerSpnServiceClassUsage- Computer account service class usage
Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | AD-SPN-08 |
| Severity | Info |
| Suite | Active Directory |
| Product | Active Directory |
| Feature | Service principal names |
| Area | Authentication |
| Resource type | User |
| MITRE ATT&CK | T1558.003 Kerberoasting |
| PowerShell test | Test-MtAdUserSpnServiceClassUsage |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:user:ReadProperty |
Source
Section titled “Source”- Test:
tests/ad/spn/Test.AD-SPN-08.ps1 - Documentation:
tests/ad/spn/Test.AD-SPN-08.md
About this check
- Severity
- Info
- Product
- Active Directory
- Feature
- Service principal names
- Area
- Authentication
- Suite
- Active Directory