Skip to content

Commit 71eddfa

Browse files
Samirboustradebot-elastic
authored andcommitted
[New] WDAC Policy File by an Unusual Process (#4504)
* [New] WDAC Policy File by an Unusual Process https://github.com/logangoins/Krueger/tree/main * Update defense_evasion_wdac_policy_by_unusual_process.toml * Update rules/windows/defense_evasion_wdac_policy_by_unusual_process.toml Co-authored-by: Ruben Groenewoud <[email protected]> * Update defense_evasion_wdac_policy_by_unusual_process.toml * Update defense_evasion_wdac_policy_by_unusual_process.toml --------- Co-authored-by: Ruben Groenewoud <[email protected]> (cherry picked from commit b1470a4)
1 parent 7f7ada2 commit 71eddfa

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
[metadata]
2+
creation_date = "2025/02/28"
3+
integration = ["endpoint", "windows", "m365_defender", "sentinel_one_cloud_funnel"]
4+
maturity = "production"
5+
updated_date = "2025/02/28"
6+
min_stack_version = "8.14.0"
7+
min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
8+
9+
[rule]
10+
author = ["Elastic"]
11+
description = """
12+
Identifies the creation of a Windows Defender Application Control (WDAC) policy file by an unusual process. Adversaries
13+
may use a secially crafted WDAC policy to restrict the execution of security products.
14+
"""
15+
from = "now-9m"
16+
index = ["winlogbeat-*", "logs-endpoint.events.file-*", "logs-windows.sysmon_operational-*", "endgame-*", "logs-m365_defender.event-*", "logs-sentinel_one_cloud_funnel.*"]
17+
language = "eql"
18+
license = "Elastic License v2"
19+
name = "WDAC Policy File by an Unusual Process"
20+
note = """## Triage and analysis
21+
22+
### Investigating WDAC Policy File by an Unusual Process
23+
24+
#### Possible investigation steps
25+
26+
- 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.
27+
- Identify the user account that performed the action and whether it should perform this kind of action.
28+
- Contact the account owner and confirm whether they are aware of this activity.
29+
- Investigate other alerts associated with the user/host during the past 48 hours.
30+
- Verify if any other anti-forensics behaviors were observed.
31+
- Investigate the event logs prior to the action for suspicious behaviors that an attacker may be trying to cover up.
32+
33+
### False positive analysis
34+
35+
- This activity is unlikely to happen legitimately. Benign true positives (B-TPs) can be added as exceptions if necessary.
36+
37+
### Response and remediation
38+
39+
- Initiate the incident response process based on the outcome of the triage.
40+
- Isolate the involved host to prevent further post-compromise behavior.
41+
- Re-enable affected logging components, services, and security monitoring.
42+
- 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.
43+
- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
44+
- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
45+
- 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).
46+
"""
47+
references = [
48+
"https://github.com/logangoins/Krueger/tree/main",
49+
"https://beierle.win/2024-12-20-Weaponizing-WDAC-Killing-the-Dreams-of-EDR/"
50+
]
51+
risk_score = 73
52+
rule_id = "3aaf37f3-05a1-40a5-bb6e-e380c4f92c52"
53+
severity = "high"
54+
tags = [
55+
"Domain: Endpoint",
56+
"OS: Windows",
57+
"Use Case: Threat Detection",
58+
"Tactic: Defense Evasion",
59+
"Data Source: Elastic Endgame",
60+
"Resources: Investigation Guide",
61+
"Data Source: Elastic Defend",
62+
"Data Source: Sysmon",
63+
"Data Source: Microsoft Defender for Endpoint",
64+
"Data Source: SentinelOne",
65+
]
66+
timestamp_override = "event.ingested"
67+
type = "eql"
68+
69+
query = '''
70+
file where host.os.type == "windows" and event.action != "deletion" and
71+
file.path : ("?:\\Windows\\System32\\CodeIntegrity\\*.p7b", "?:\\Windows\\System32\\CodeIntegrity\\CiPolicies\\Active\\*.cip") and
72+
not process.executable : "C:\\Windows\\System32\\poqexec.exe"
73+
'''
74+
75+
76+
[[rule.threat]]
77+
framework = "MITRE ATT&CK"
78+
[[rule.threat.technique]]
79+
id = "T1562"
80+
name = "Impair Defenses"
81+
reference = "https://attack.mitre.org/techniques/T1562/"
82+
83+
84+
85+
[rule.threat.tactic]
86+
id = "TA0005"
87+
name = "Defense Evasion"
88+
reference = "https://attack.mitre.org/tactics/TA0005/"

0 commit comments

Comments
 (0)