Sensitive Audit Policy Sub-Category Disabled

Last updated 2 days ago on 2026-10-19
Created 2 years ago on 2025-01-14

About

Identifies when a security-sensitive audit policy subcategory is disabled and left disabled. Attackers do this to evade detection and impair forensics.
Tags
Domain: EndpointOS: WindowsUse Case: Threat DetectionTactic: Defense EvasionData Source: Windows Security Event LogsNoise: HighPerformance: NormalProfile: AggressiveRule Type: ES|QLPlatform: WindowsLanguage: esql
Severity
medium
Risk Score
47
MITRE ATT&CK™

Defense Evasion (TA0005)(external, opens in a new tab or window)

License
Elastic License v2(external, opens in a new tab or window)

Definition

Integration Pack
Prebuilt Security Detection Rules
Related Integrations

windows(external, opens in a new tab or window)

system(external, opens in a new tab or window)

Query
text code block:
from logs-windows.forwarded*, logs-system.security* metadata _id, _version, _index | where host.os.type == "windows" and event.code == "4719" and // The description field is multi-valued when success and failure change together ( MV_CONTAINS(winlog.event_data.AuditPolicyChangesDescription, "Success removed") or MV_CONTAINS(winlog.event_data.AuditPolicyChangesDescription, "Success Added") ) and winlog.event_data.SubCategory in ( "Logon", "Audit Policy Change", "Process Creation", "Other System Events", "Security Group Management", "User Account Management" ) // Latest "Success Added" for this computer and subcategory in the lookback. | eval Esql.is_restore = MV_CONTAINS(winlog.event_data.AuditPolicyChangesDescription, "Success Added") | inline stats Esql.restore_at = MAX(@timestamp) where Esql.is_restore by winlog.computer_name, winlog.event_data.SubCategory // Keep a removal that was ingested at least 5 minutes ago and has no later restore. // The same timestamp counts as restored. | where MV_CONTAINS(winlog.event_data.AuditPolicyChangesDescription, "Success removed") and event.ingested < NOW() - 5m and ( Esql.restore_at is null or Esql.restore_at < @timestamp ) | keep *

Install detection rules in Elastic Security

Detect Sensitive Audit Policy Sub-Category Disabled in the Elastic Security detection engine by installing this rule into your Elastic Stack.

To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).