Known service account details should be investigated
AD-USER-21InfoActive DirectoryUsers
Part of Active Directory · Active Directory · Users · All checks
Invoke-Maester -TestId AD-USER-21Overview
Section titled “Overview”Service accounts often run business-critical workloads and commonly receive exceptions such as long-lived credentials, SPNs, or privileged access. Naming-pattern reviews help defenders quickly identify accounts that deserve deeper validation.
- Exposure reduction: Find accounts likely used by services before attackers do.
- Privilege review: Verify service accounts are not over-privileged.
- Credential hygiene: Check for non-expiring passwords and stale patterns.
- Inventory accuracy: Confirm naming standards are applied consistently.
Control Type
Section titled “Control Type”Operational
Security Recommendation
Section titled “Security Recommendation”- Maintain a defined naming standard for service accounts.
- Review matched accounts for owner, purpose, and required privileges.
- Prefer gMSAs where possible instead of traditional user-based service accounts.
- Investigate service-like names that lack documentation.
How the Test Works
Section titled “How the Test Works”This test reviews AD user objects and flags accounts whose SamAccountName or Name matches common service-account conventions such as svc-, service-, app-, sql-, or admin-svc.
Related Tests
Section titled “Related Tests”Test-MtAdUserDelegationConfiguredCountTest-MtAdUserDelegationDetails
Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | AD-USER-21 |
| Severity | Info |
| Suite | Active Directory |
| Product | Active Directory |
| Feature | Users |
| Area | Applications and workload identities |
| Resource type | User |
| MITRE ATT&CK | None |
| PowerShell test | Test-MtAdUserKnownServiceAccountDetails |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:user:ReadProperty |
Source
Section titled “Source”- Test:
tests/ad/user/Test.AD-USER-21.ps1 - Documentation:
tests/ad/user/Test.AD-USER-21.md
About this check
- Severity
- Info
- Product
- Active Directory
- Feature
- Users
- Area
- Applications and workload identities
- Suite
- Active Directory