2020-11-30 21:02:57 +01:00
[ metadata ]
creation_date = "2020/10/19"
maturity = "production"
2022-04-01 15:27:08 -08:00
updated_date = "2022/03/31"
2020-11-30 21:02:57 +01:00
[ rule ]
author = [ "Elastic" ]
description = "Identifies command shell activity started via RunDLL32, which is commonly abused by attackers to host malicious code."
2021-03-18 15:14:22 +01:00
false_positives = [ "Microsoft Windows installers leveraging RunDLL32 for installation." ]
2020-11-30 21:02:57 +01:00
from = "now-9m"
2021-01-28 20:53:57 -09:00
index = [ "winlogbeat-*" , "logs-endpoint.events.*" , "logs-windows.*" ]
2020-11-30 21:02:57 +01:00
language = "eql"
2021-03-03 22:12:11 -09:00
license = "Elastic License v2"
2020-11-30 21:02:57 +01:00
name = "Command Shell Activity Started via RunDLL32"
2022-07-18 15:41:32 -04:00
note = "" "## Setup
2022-04-01 15:27:08 -08:00
If enabling an EQL rule on a non-elastic-agent index (such as beats) for versions <8.2, events will not define `event.ingested` and default fallback for EQL rules was not added until 8.2, so you will need to add a custom pipeline to populate `event.ingested` to @timestamp for this rule to work.
" ""
2020-11-30 21:02:57 +01:00
risk_score = 21
rule_id = "9ccf3ce0-0057-440a-91f5-870c6ad39093"
severity = "low"
tags = [ "Elastic" , "Host" , "Windows" , "Threat Detection" , "Execution" ]
2021-02-16 10:52:48 -09:00
timestamp_override = "event.ingested"
2020-11-30 21:02:57 +01:00
type = "eql"
query = '' '
2021-03-18 15:14:22 +01:00
process where event.type == "start" and
2020-11-30 21:02:57 +01:00
process.name : ("cmd.exe", "powershell.exe") and
2021-03-18 15:14:22 +01:00
process.parent.name : "rundll32.exe" and process.parent.command_line != null and
2020-11-30 21:02:57 +01:00
/* common FPs can be added here */
2021-03-18 15:14:22 +01:00
not process.parent.args : ("C:\\Windows\\System32\\SHELL32.dll,RunAsNewUser_RunDLL",
"C:\\WINDOWS\\*.tmp,zzzzInvokeManagedCustomActionOutOfProc")
2020-11-30 21:02:57 +01:00
' ''
[ [ rule . threat ] ]
framework = "MITRE ATT&CK"
[ [ rule . threat . technique ] ]
id = "T1059"
name = "Command and Scripting Interpreter"
reference = "https://attack.mitre.org/techniques/T1059/"
2020-12-18 12:46:16 -09:00
[ [ rule . threat . technique . subtechnique ] ]
id = "T1059.001"
2020-11-30 21:02:57 +01:00
name = "PowerShell"
2020-12-18 12:46:16 -09:00
reference = "https://attack.mitre.org/techniques/T1059/001/"
2020-11-30 21:02:57 +01:00
2021-02-16 10:52:48 -09:00
2020-11-30 21:02:57 +01:00
[ rule . threat . tactic ]
id = "TA0002"
name = "Execution"
reference = "https://attack.mitre.org/tactics/TA0002/"
2022-04-01 15:27:08 -08:00