|
| 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