Suspicious Binary Execution via Path Alias
Description
Detects execution of binaries through the /proc/self/root procfs path alias. This technique resolves to the filesystem root through procfs and can bypass path-based denylists or security controls that match on canonical paths like /usr/bin/. An AI coding agent (Claude Code) was observed using this technique autonomously to evade its own permission denylist without any adversarial prompting. This is also a general defense evasion technique usable by any process.
Query · eql
process where event.type == "start" and event.action == "exec" and
(
process.executable like "/proc/*/root/*" or
process.args regex """/proc/(self|[0-9]{1,7})/root/[a-z].*"""
) and
not (
process.args like ("/proc/*/root/etc/*", "/proc/1/root/var/lib/rancher/*", "/proc/1/root/var/lib/cni/*", "cat", "readlink", "ls") or
process.executable == "./opt/spire/bin/spire-server" or
process.parent.command_line == "runc init" or
(process.executable == "/usr/bin/slirp4netns" and process.parent.executable == "/usr/bin/rootlesskit") or
(
process.parent.command_line == "/usr/bin/perl /usr/bin/pve8to9 --full" and
process.executable == "/usr/bin/x86_64-linux-gnu-objdump"
)
)