Elastic Defend high stable eql
Potential Remote Code Execution via URL Encoded Payload
This rule detects the execution of shell commands via a URL encoded payload. This behavior is indicative of a potential remote code execution attempt.
Detection Logic
process where event.type == "start" and event.action == "exec" and process.parent.executable != null and (
process.name in ("bash", "dash", "sh", "tcsh", "csh", "zsh", "ksh", "fish") or
process.name like (".*", "python*", "perl*", "ruby*", "lua*", "php*", "node", "java") or
process.executable like ("/tmp/*", "/var/tmp/*", "/dev/shm/*", "/var/run/*", "/run/*", "/boot/*", "/home/*", "/root/*", "./*")
) and
process.command_line regex~ ".*(%[0-9a-f]{2}.*){4,}.*" and process.command_line like (
"*/bin/sh%*", "*bash%*", "*sh%*-c%*", "*sh%*-i%*", "*nsenter%*", "*/.ssh/*", "*:10250/*", "*base64%*", "*echo%*
| *",
"*echo%*>*", "*dev%*tcp%*", "*dev%*udp%*", "*whoami*", "*/etc/passwd*", "*/dev/shm*", "*uname%*", "*curl%*", "*wget%*"
) and
not (
process.parent.executable like (
"/mnt/Xilinx/PetaLinux/*/python*", "/tmp/petalinux*/python*", "/usr/lib/chatgpt/resources/codex", "/root/.local/share/claude/versions/*",
"/home/*/codex", "/home/*/claude*", "/usr/bin/bwrap"
) or
process.executable like "/tmp/petalinux*/usr/bin/*" or
process.command_line like ("*/workdir/builder_client/layers/poky/scripts*", "*petalinux.xilinx.com*") or
process.parent.args like ("/workdir/builder_client/layers/poky/bitbake/bin/bitbake-worker", "/tmp/petalinux*")
) Field Validations
Loading…
Comments (0)
Loading comments...