process where host.os.type == "linux" and event.type == "start" and event.action == "exec" and process.name == "curl"
and (
process.args like ("--socks5-hostname", "--proxy", "--preproxy", "socks5*") or
process.env_vars like ("http_proxy=socks5h://*", "HTTPS_PROXY=socks5h://*", "ALL_PROXY=socks5h://*")
) and length(process.command_line) > 255 and not (
process.parent.name in ("cf-agent", "agent-run", "agent-check", "rudder", "agent-inventory", "cf-execd") or
process.args like "/opt/rudder/*" or
process.parent.executable like ("/vz/root/*", "/var/rudder/*")
)
Install detection rules in Elastic Security
Detect Potential curl CVE-2023-38545 Exploitation 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(opens in a new tab or window).