|
| 1 | +[metadata] |
| 2 | +creation_date = "2021/07/07" |
| 3 | +maturity = "production" |
| 4 | +updated_date = "2021/07/07" |
| 5 | + |
| 6 | +[rule] |
| 7 | +author = ["Elastic"] |
| 8 | +description = """ |
| 9 | +Identifies a Windows trusted program that is known to be vulnerable to DLL Search Order Hijacking |
| 10 | +starting after being renamed or from a non-standard path. This is uncommon behavior and may indicate an attempt to evade |
| 11 | +defenses via side-loading a malicious DLL within the memory space of one of those processes. |
| 12 | +""" |
| 13 | +false_positives = ["Microsoft Antimalware Service Executable installed on non default installation path."] |
| 14 | +from = "now-9m" |
| 15 | +index = ["winlogbeat-*", "logs-endpoint.events.*", "logs-windows.*"] |
| 16 | +language = "eql" |
| 17 | +license = "Elastic License v2" |
| 18 | +name = "Potential DLL Side-Loading via Microsoft Antimalware Service Executable" |
| 19 | +references = [ |
| 20 | + "https://news.sophos.com/en-us/2021/07/04/independence-day-revil-uses-supply-chain-exploit-to-attack-hundreds-of-businesses/", |
| 21 | +] |
| 22 | +risk_score = 73 |
| 23 | +rule_id = "053a0387-f3b5-4ba5-8245-8002cca2bd08" |
| 24 | +severity = "high" |
| 25 | +tags = ["Elastic", "Host", "Windows", "Threat Detection", "Defense Evasion"] |
| 26 | +timestamp_override = "event.ingested" |
| 27 | +type = "eql" |
| 28 | + |
| 29 | +query = ''' |
| 30 | +process where event.type == "start" and |
| 31 | + (process.pe.original_file_name == "MsMpEng.exe" and not process.name : "MsMpEng.exe") or |
| 32 | + (process.name : "MsMpEng.exe" and not |
| 33 | + process.executable : ("?:\\ProgramData\\Microsoft\\Windows Defender\\*.exe", |
| 34 | + "?:\\Program Files\\Windows Defender\\*.exe", |
| 35 | + "?:\\Program Files (x86)\\Windows Defender\\*.exe")) |
| 36 | +''' |
| 37 | + |
| 38 | + |
| 39 | +[[rule.threat]] |
| 40 | +framework = "MITRE ATT&CK" |
| 41 | +[[rule.threat.technique]] |
| 42 | +id = "T1574" |
| 43 | +name = "Hijack Execution Flow" |
| 44 | +reference = "https://attack.mitre.org/techniques/T1574/" |
| 45 | +[[rule.threat.technique.subtechnique]] |
| 46 | +id = "T1574.002" |
| 47 | +name = "DLL Side-Loading" |
| 48 | +reference = "https://attack.mitre.org/techniques/T1574/002/" |
| 49 | + |
| 50 | + |
| 51 | +[rule.threat.tactic] |
| 52 | +name = "Defense Evasion" |
| 53 | +reference = "https://attack.mitre.org/tactics/TA0005/" |
| 54 | +id = "TA0005" |
0 commit comments