[metadata] creation_date = "2020/08/21" maturity = "production" updated_date = "2021/03/03" [rule] author = ["Elastic"] description = """ Identifies a suspicious managed code hosting process which could indicate code injection or other form of suspicious code execution. """ from = "now-9m" index = ["winlogbeat-*", "logs-endpoint.events.*", "logs-windows.*"] language = "kuery" license = "Elastic License v2" name = "Suspicious Managed Code Hosting Process" references = ["https://blog.menasec.net/2019/07/interesting-difr-traces-of-net-clr.html"] risk_score = 73 rule_id = "acf738b5-b5b2-4acc-bad9-1e18ee234f40" severity = "high" tags = ["Elastic", "Host", "Windows", "Threat Detection", "Defense Evasion"] timestamp_override = "event.ingested" type = "query" query = ''' event.category:file and not event.type:deletion and file.name:(wscript.exe.log or mshta.exe.log or wscript.exe.log or wmic.exe.log or svchost.exe.log or dllhost.exe.log or cmstp.exe.log or regsvr32.exe.log) ''' [[rule.threat]] framework = "MITRE ATT&CK" [[rule.threat.technique]] id = "T1055" name = "Process Injection" reference = "https://attack.mitre.org/techniques/T1055/" [rule.threat.tactic] id = "TA0005" name = "Defense Evasion" reference = "https://attack.mitre.org/tactics/TA0005/"