Built-in administrator last logon details should be investigated
AD-USER-24InfoActive DirectoryUsers
Part of Active Directory · Active Directory · Users · All checks
Invoke-Maester -TestId AD-USER-24Overview
Section titled “Overview”Knowing when built-in administrator style accounts last authenticated is critical for detecting stale privileged access and spotting suspicious activity.
- Unexpected use detection: Recent logons on sensitive accounts may warrant investigation.
- Stale privilege cleanup: Dormant privileged accounts should be reviewed or disabled.
- Incident response: Last logon data helps reconstruct privileged account activity.
Control Type
Section titled “Control Type”Operational
Security Recommendation
Section titled “Security Recommendation”- Investigate interactive or unexpected usage of RID 500 accounts.
- Disable or tightly restrict privileged accounts with no valid business need.
- Correlate recent logons with change windows, tickets, and admin workflows.
How the Test Works
Section titled “How the Test Works”This test lists built-in administrator style accounts and returns their LastLogonDate plus the number of days since the recorded logon.
Related Tests
Section titled “Related Tests”Test-MtAdUserBuiltInAdminEnabledDetailsTest-MtAdUserBuiltInAdminPasswordAgeDetails
Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | AD-USER-24 |
| Severity | Info |
| Suite | Active Directory |
| Product | Active Directory |
| Feature | Users |
| Area | Privileged access |
| Resource type | User |
| MITRE ATT&CK | T1078.001 Default Accounts |
| PowerShell test | Test-MtAdUserBuiltInAdminLastLogonDetails |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:user:ReadProperty |
Source
Section titled “Source”- Test:
tests/ad/user/Test.AD-USER-24.ps1 - Documentation:
tests/ad/user/Test.AD-USER-24.md
About this check
- Severity
- Info
- Product
- Active Directory
- Feature
- Users
- Area
- Privileged access
- Suite
- Active Directory