-
Notifications
You must be signed in to change notification settings - Fork 567
[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
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e61c386
[New Rule] Potential DNS Server Privilege Escalation via ServerLevelP…
w0rk3r ea51f6f
Update privilege_escalation_dns_serverlevelplugindll.toml
w0rk3r fe31a00
Update privilege_escalation_dns_serverlevelplugindll.toml
w0rk3r 7675980
Update rules/windows/privilege_escalation_dns_serverlevelplugindll.toml
w0rk3r 6c4d568
Merge branch 'main' into dns_lib
w0rk3r 93ac2dc
Merge branch 'main' into dns_lib
Samirbous c8367ca
Merge branch 'main' into dns_lib
w0rk3r 9b9032b
Merge branch 'main' into dns_lib
w0rk3r 7650867
Merge branch 'main' into dns_lib
w0rk3r 562fb20
Merge branch 'main' into dns_lib
w0rk3r File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
rules/windows/privilege_escalation_dns_serverlevelplugindll.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/" | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.