Command and Control (TA0011)(external, opens in a new tab or window)
text code block:sequence by host.id, process.entity_id [network where host.os.type == "windows" and process.name : ("wscript.exe", "cscript.exe") and network.protocol != "dns" and network.direction : ("outgoing", "egress") and network.type == "ipv4" and destination.ip != "127.0.0.1" ] [file where host.os.type == "windows" and event.type == "creation" and file.extension : ("exe", "dll")]
Install detection rules in Elastic Security
Detect Remote File Download via Script Interpreter 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).