Command and Control (TA0011)(external, opens in a new tab or window)
text code block:process where host.os.type == "linux" and event.type == "start" and event.action == "exec" and process.interactive == true and ( ( (process.name == "curl" or process.args in ("curl", "/bin/curl", "/usr/bin/curl", "/usr/local/bin/curl")) and process.args in ("-o", "-O", "--output", "--remote-name", "--remote-name-all", "--output-dir") ) or ( (process.name == "wget" or process.args in ("wget", "/bin/wget", "/usr/bin/wget", "/usr/local/bin/wget")) and process.args like ("-*O*", "--output-document=*", "--output-file=*") ) ) and ( process.args like~ "*http*" or process.args regex~ ".*[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}[:/]{1}.*" ) and container.id like "?*"
Install detection rules in Elastic Security
Detect File Download Detected via Defend for Containers 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).