Skip to content
WETNav

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.

Worst caseHigh

Switches

/clear

Resets the entire audit policy, wiping all subcategory settings.

High
/remove

Removes the per-user audit policy for an account.

High
/set

Sets auditing for a subcategory. Turning success and failure off disables logging for it.

Medium
/get

Shows the current audit settings.

Low
/list

Lists categories, subcategories or users.

Info
/backup

Backs up the audit policy to a file.

Low
/restore

Restores the audit policy from a file, which can reapply a weakened policy.

Medium

Command 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 regexauditpol(\.exe)?\s+.*\/(clear|remove)\b

    T1562.002

  • High

    Audit subcategory disabled

    Disabling success or failure auditing for a subcategory blinds the Security log for those events. Rare outside policy changes.

    Detection regexauditpol(\.exe)?\s+\/set\b.*\/(success|failure):disable

    T1562.002

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.

  • High
    Audit 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.