Skip to content

Commit 69a945f

Browse files
w0rk3rgithub-actions[bot]
authored andcommitted
[New Rule] Potential DNS Server Privilege Escalation via ServerLevelPluginDll (#3717)
* [New Rule] Potential DNS Server Privilege Escalation via ServerLevelPluginDll * Update privilege_escalation_dns_serverlevelplugindll.toml * Update privilege_escalation_dns_serverlevelplugindll.toml * Update rules/windows/privilege_escalation_dns_serverlevelplugindll.toml --------- Co-authored-by: Samirbous <64742097+Samirbous@users.noreply.github.com> (cherry picked from commit 4eff7c6)
1 parent b593a0e commit 69a945f

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
[metadata]
2+
creation_date = "2024/05/29"
3+
integration = ["endpoint"]
4+
maturity = "production"
5+
updated_date = "2024/05/29"
6+
7+
[rule]
8+
author = ["Elastic"]
9+
description = """
10+
Identifies unusual DLLs loaded by the DNS Server process, potentially indicating the abuse of the ServerLevelPluginDll
11+
functionality. This can lead to privilege escalation and remote code execution with SYSTEM privileges.
12+
"""
13+
from = "now-9m"
14+
index = ["logs-endpoint.events.library-*", "logs-windows.sysmon_operational-*"]
15+
language = "eql"
16+
license = "Elastic License v2"
17+
name = "Unsigned DLL loaded by DNS Service"
18+
references = [
19+
"https://cube0x0.github.io/Pocing-Beyond-DA/",
20+
"https://adsecurity.org/?p=4064",
21+
"https://github.com/gtworek/PSBits/tree/master/ServerLevelPluginDll"
22+
]
23+
risk_score = 47
24+
rule_id = "5d676480-9655-4507-adc6-4eec311efff8"
25+
severity = "medium"
26+
tags = [
27+
"Domain: Endpoint",
28+
"OS: Windows",
29+
"Use Case: Threat Detection",
30+
"Tactic: Privilege Escalation",
31+
"Data Source: Elastic Defend",
32+
"Data Source: Sysmon"
33+
]
34+
timestamp_override = "event.ingested"
35+
type = "eql"
36+
37+
query = '''
38+
any where host.os.type == "windows" and event.category : ("library", "process") and
39+
event.type : ("start", "change") and event.action : ("load", "Image loaded*") and
40+
process.executable : "?:\\windows\\system32\\dns.exe" and
41+
not ?dll.code_signature.trusted == true and
42+
not file.code_signature.status == "Valid"
43+
'''
44+
45+
46+
[[rule.threat]]
47+
framework = "MITRE ATT&CK"
48+
[[rule.threat.technique]]
49+
id = "T1068"
50+
name = "Exploitation for Privilege Escalation"
51+
reference = "https://attack.mitre.org/techniques/T1068/"
52+
53+
54+
[rule.threat.tactic]
55+
id = "TA0004"
56+
name = "Privilege Escalation"
57+
reference = "https://attack.mitre.org/tactics/TA0004/"
58+

0 commit comments

Comments
 (0)