For this type of audit, the focus should be on Windows security auditing on domain controllers and relevant member servers, using the standard and advanced audit policy categories for logon and account management.
- Ensure appropriate audit policy is enabled
Configure Windows Audit Policy (preferably via Group Policy) so that domain controllers and key servers log:
- Account Logon Events (and advanced subcategories under it)
- Logon Events
- Account Management → User Account Management
These categories/subcategories record:
- Authentication of domain accounts on domain controllers
- Interactive/network/service logons on member servers and workstations
- User account changes such as disable/enable
Audit policy can be configured via Group Policy under:
-
Computer Configuration\Windows Settings\Security Settings\Local Policies\Audit Policy
- Or advanced subcategories under
Computer Configuration\Windows Settings\Security Settings\Advanced Audit Policy
Auditpol.exe can also be used, for example:
auditpol /set /subcategory:"user account management" /success:enable /failure:enable
- Identify when each account was disabled
Use the User Account Management audit events on domain controllers to find the exact timestamp when each user account was disabled. These events are generated when a user account is disabled or enabled.
- Review logon-related events after the disable time
After the disable timestamp for each account, review:
- Account Logon Events on domain controllers
- These report validation of credentials for domain accounts. They show when a domain controller processed a logon attempt (success or failure) for the disabled account.
- Logon Events on member servers/workstations
- These show actual logon sessions (interactive, network, RDP, service, etc.) using the account.
Look for any events where:
- The account name matches the disabled user, and
- The event time is later than the disable time.
If audit policy is configured to log both Success and Failure, the logs will show:
- Successful authentications (which should not occur after disable)
- Failed logon attempts (evidence of attempted use of the disabled account)
- Correlate results for audit evidence
For each disabled account:
- Capture the User Account Management event that shows the account was disabled (with timestamp and administrator account that performed the action).
- Query Account Logon and Logon events on domain controllers and key servers for that user name after the disable timestamp.
- Document that no successful logons exist after the disable time, and list any failed attempts if present.
- Best practices
- Ensure that only a small, controlled set of administrators can modify user accounts, especially privileged and VIP accounts, and that their actions are audited.
- Monitor privileged and VIP accounts and changes to key attributes such as
userAccountControl (which includes the disabled flag).
- Use a SIEM to collect and correlate security logs from all domain controllers and critical servers, and to alert on:
- Logon attempts with disabled accounts
- Changes to privileged accounts and groups
References: