WDAC Policy File by an Unusual Process
Identifies the creation of a Windows Defender Application Control (WDAC) policy file by an unusual process. Adversaries may use a secially crafted WDAC policy to restrict the execution of security products.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2025/02/28"
3integration = ["endpoint", "windows", "m365_defender", "sentinel_one_cloud_funnel", "crowdstrike"]
4maturity = "production"
5updated_date = "2025/08/26"
6
7[rule]
8author = ["Elastic"]
9description = """
10Identifies the creation of a Windows Defender Application Control (WDAC) policy file by an unusual process. Adversaries
11may use a secially crafted WDAC policy to restrict the execution of security products.
12"""
13from = "now-9m"
14index = [
15 "winlogbeat-*",
16 "logs-endpoint.events.file-*",
17 "logs-windows.sysmon_operational-*",
18 "endgame-*",
19 "logs-m365_defender.event-*",
20 "logs-sentinel_one_cloud_funnel.*",
21 "logs-crowdstrike.fdr*",
22]
23language = "eql"
24license = "Elastic License v2"
25name = "WDAC Policy File by an Unusual Process"
26note = """## Triage and analysis
27
28### Investigating WDAC Policy File by an Unusual Process
29
30#### Possible investigation steps
31
32- Investigate the process execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.
33- Identify the user account that performed the action and whether it should perform this kind of action.
34- Contact the account owner and confirm whether they are aware of this activity.
35- Investigate other alerts associated with the user/host during the past 48 hours.
36 - Verify if any other anti-forensics behaviors were observed.
37- Investigate the event logs prior to the action for suspicious behaviors that an attacker may be trying to cover up.
38
39### False positive analysis
40
41- This activity is unlikely to happen legitimately. Benign true positives (B-TPs) can be added as exceptions if necessary.
42
43### Response and remediation
44
45- Initiate the incident response process based on the outcome of the triage.
46- Isolate the involved host to prevent further post-compromise behavior.
47- Re-enable affected logging components, services, and security monitoring.
48- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
49- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
50- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
51- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
52"""
53references = [
54 "https://github.com/logangoins/Krueger/tree/main",
55 "https://beierle.win/2024-12-20-Weaponizing-WDAC-Killing-the-Dreams-of-EDR/",
56]
57risk_score = 73
58rule_id = "3aaf37f3-05a1-40a5-bb6e-e380c4f92c52"
59severity = "high"
60tags = [
61 "Domain: Endpoint",
62 "OS: Windows",
63 "Use Case: Threat Detection",
64 "Tactic: Defense Evasion",
65 "Data Source: Elastic Endgame",
66 "Resources: Investigation Guide",
67 "Data Source: Elastic Defend",
68 "Data Source: Sysmon",
69 "Data Source: Microsoft Defender for Endpoint",
70 "Data Source: SentinelOne",
71 "Data Source: Crowdstrike",
72]
73timestamp_override = "event.ingested"
74type = "eql"
75
76query = '''
77file where host.os.type == "windows" and event.action != "deletion" and
78 file.extension : ("p7b", "cip") and
79 file.path : (
80 "?:\\Windows\\System32\\CodeIntegrity\\*.p7b",
81 "?:\\Windows\\System32\\CodeIntegrity\\CiPolicies\\Active\\*.cip",
82 "\\Device\\HarddiskVolume*\\Windows\\System32\\CodeIntegrity\\*.p7b",
83 "\\Device\\HarddiskVolume*\\Windows\\System32\\CodeIntegrity\\CiPolicies\\Active\\*.cip"
84 ) and
85 not process.executable : (
86 "C:\\Windows\\System32\\poqexec.exe",
87 "\\Device\\HarddiskVolume*\\Windows\\System32\\poqexec.exe"
88 )
89'''
90
91
92[[rule.threat]]
93framework = "MITRE ATT&CK"
94[[rule.threat.technique]]
95id = "T1562"
96name = "Impair Defenses"
97reference = "https://attack.mitre.org/techniques/T1562/"
98
99
100[rule.threat.tactic]
101id = "TA0005"
102name = "Defense Evasion"
103reference = "https://attack.mitre.org/tactics/TA0005/"
Triage and analysis
Investigating WDAC Policy File by an Unusual Process
Possible investigation steps
- Investigate the process execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.
- Identify the user account that performed the action and whether it should perform this kind of action.
- Contact the account owner and confirm whether they are aware of this activity.
- Investigate other alerts associated with the user/host during the past 48 hours.
- Verify if any other anti-forensics behaviors were observed.
- Investigate the event logs prior to the action for suspicious behaviors that an attacker may be trying to cover up.
False positive analysis
- This activity is unlikely to happen legitimately. Benign true positives (B-TPs) can be added as exceptions if necessary.
Response and remediation
- Initiate the incident response process based on the outcome of the triage.
- Isolate the involved host to prevent further post-compromise behavior.
- Re-enable affected logging components, services, and security monitoring.
- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
References
Related rules
- Unusual Executable File Creation by a System Critical Process
- Potential Secure File Deletion via SDelete Utility
- SIP Provider Modification
- SolarWinds Process Disabling Services via Registry
- DNS Global Query Block List Modified or Disabled