Skip to content

[New Rule] Potential DNS Server Privilege Escalation via ServerLevelPluginDll #3717

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 12, 2024
58 changes: 58 additions & 0 deletions rules/windows/privilege_escalation_dns_serverlevelplugindll.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[metadata]
creation_date = "2024/05/29"
integration = ["endpoint"]
maturity = "production"
updated_date = "2024/05/29"

[rule]
author = ["Elastic"]
description = """
Identifies unusual DLLs loaded by the DNS Server process, potentially indicating the abuse of the ServerLevelPluginDll
functionality. This can lead to privilege escalation and remote code execution with SYSTEM privileges.
"""
from = "now-9m"
index = ["logs-endpoint.events.library-*", "logs-windows.sysmon_operational-*"]
language = "eql"
license = "Elastic License v2"
name = "Unsigned DLL loaded by DNS Service"
references = [
"https://cube0x0.github.io/Pocing-Beyond-DA/",
"https://adsecurity.org/?p=4064",
"https://github.com/gtworek/PSBits/tree/master/ServerLevelPluginDll"
]
risk_score = 47
rule_id = "5d676480-9655-4507-adc6-4eec311efff8"
severity = "medium"
tags = [
"Domain: Endpoint",
"OS: Windows",
"Use Case: Threat Detection",
"Tactic: Privilege Escalation",
"Data Source: Elastic Defend",
"Data Source: Sysmon"
]
timestamp_override = "event.ingested"
type = "eql"

query = '''
any where host.os.type == "windows" and event.category : ("library", "process") and
event.type : ("start", "change") and event.action : ("load", "Image loaded*") and
process.executable : "?:\\windows\\system32\\dns.exe" and
not ?dll.code_signature.trusted == true and
not file.code_signature.status == "Valid"
'''


[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1068"
name = "Exploitation for Privilege Escalation"
reference = "https://attack.mitre.org/techniques/T1068/"


[rule.threat.tactic]
id = "TA0004"
name = "Privilege Escalation"
reference = "https://attack.mitre.org/tactics/TA0004/"

Loading