Defense evasion · Windows
auditpol.exe
Audit Policy command line
Views and changes the advanced audit policy. Clearing or disabling audit subcategories stops the Security log from recording the matching events, so it is used to blind defenders.
Legitimate use
Admins use it to review and set which security events are audited.
Switches
Resets the entire audit policy, wiping all subcategory settings.
HighRemoves the per-user audit policy for an account.
HighSets auditing for a subcategory. Turning success and failure off disables logging for it.
MediumShows the current audit settings.
LowLists categories, subcategories or users.
InfoBacks up the audit policy to a file.
LowRestores the audit policy from a file, which can reapply a weakened policy.
MediumCommand lines to worry about
- High
Audit policy cleared or removed
Wiping audit policy stops the Security log recording. Check 4719 for the change and confirm whether logging was restored.
Detection regex
auditpol(\.exe)?\s+.*\/(clear|remove)\b - High
Audit subcategory disabled
Disabling success or failure auditing for a subcategory blinds the Security log for those events. Rare outside policy changes.
Detection regex
auditpol(\.exe)?\s+\/set\b.*\/(success|failure):disable
Where it is recorded
- Security4688Process creation with the full command line, when command-line auditing is enabled.
- Sysmon1Process creation with command line, hashes and parent process.
- Security4719System audit policy was changed, naming the subcategory and the user.
Community detections
1 SigmaHQ rule for auditpol.exe. The explainer checks every pasted command line against all of them.
- HighAudit Policy Tampering Via Auditpol
Threat actors can use auditpol binary to change audit policy configuration to impair detection capability. This can be carried out by selectively disabling/removing certain audit policies as well as restoring a custom policy owned by the threat actor.
T1685.001by Janantha Marasinghe (https://github.com/blueteam0ps)
Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.