Potential ClickFix Attack via Base64 Decoded Payload
Description
Detects a ClickFix-style attack where a base64 encoded payload is decoded and piped to a shell interpreter for execution, resulting in a curl download. This technique is commonly used in social engineering attacks where victims are tricked into copying and pasting malicious commands from fake error dialogs or verification prompts.
Query · eql
sequence by process.Ext.effective_parent.entity_id with maxspan=10s
[process where event.type == "start" and event.action == "exec" and process.name == "base64" and process.args in ("-d", "-D", "--decode") and
process.Ext.effective_parent.name like~ ("Terminal", "iTerm2", "iTerm", "ghostty",
"alacritty", "wezterm-gui", "Hyper", "kitty",
"WarpTerminal", "stable", "rio", "tabby") and
not process.parent.command_line like ("*/.claude/shell-snapshots/snapshot-bash*", "*__CURSOR_SANDBOX_ENV_RESTORE*")]
[process where event.type == "start" and event.action == "exec" and process.name in ("bash", "sh", "zsh", "Terminal") and process.args_count <= 1]
[process where event.type == "start" and event.action == "exec" and process.name in ("curl", "nscurl") and process.parent.name in ("bash", "sh", "zsh", "Terminal") and
process.parent.command_line in ("bash", "sh", "zsh", "Terminal", "/sbin/launchd") and
not process.command_line like "/usr/bin/curl --version"]