Elastic medium stable eql
Curl or Wget Spawned via Node.js
This rule detects when Node.js, directly or via a shell, spawns the curl or wget command. This may indicate command and control behavior. Adversaries may use Node.js to download additional tools or payloads onto the system.
Detection Logic
process where event.type == "start" and
event.action in ("exec", "exec_event", "start", "ProcessRollup2", "executed", "process_started") and
process.parent.name in ("node", "bun", "node.exe", "bun.exe") and (
(
process.name in ("bash", "dash", "sh", "tcsh", "csh", "zsh", "ksh", "fish", "cmd.exe", "bash.exe", "powershell.exe") and
process.command_line like~ ("*curl*http*", "*wget*http*")
) or
(
process.name in ("curl", "wget", "curl.exe", "wget.exe")
)
) and not (
process.command_line like ("*127.0.0.1*", "*localhost*", "*/home/*/.claude/shell-snapshots/*", "*/root/.claude/shell-snapshots/snapshot*", "*/Users/*/.claude/shell-snapshots/*") or
process.parent.executable like ("/*/.cursor-server/*node", "/home/*/cursor-agent/*/node")
) Field Validations
Loading…
Comments (0)
Loading comments...