Defense Evasion (TA0005)(external, opens in a new tab or window)
text code block:sequence by process.entity_id with maxspan = 2m [process where host.os.type == "windows" and event.type == "start" and (process.name : "WMIC.exe" or process.pe.original_file_name : "wmic.exe") and process.args : ("format*:*", "/format*:*", "*-format*:*") and not process.command_line : ("* /format:table *", "* /format:table")] [any where host.os.type == "windows" and (event.category == "library" or (event.category == "process" and event.action : "Image loaded*")) and (?dll.name : ("jscript.dll", "vbscript.dll") or file.name : ("jscript.dll", "vbscript.dll"))]
Install detection rules in Elastic Security
Detect Suspicious WMIC XSL Script Execution in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).