Privilege Escalation (TA0004)(external, opens in a new tab or window)
text code block:sequence with maxspan=60s [any where host.os.type == "linux" and ( (event.category == "process" and auditd.data.syscall == "socket" and auditd.data.a0 == "26") or (event.category == "process" and auditd.data.syscall == "splice") or (event.category == "network" and event.action == "bound-socket" and data_stream.dataset == "auditd_manager.auditd" and ?auditd.data.socket.family == "38") ) and user.id != "0"] by process.pid, host.id, user.id with runs=10 [process where host.os.type == "linux" and event.action == "executed" and ( (user.effective.id == "0" and user.id != "0") or (process.name in ("bash", "sh", "zsh", "dash", "fish", "ksh", "busybox") and process.args in ("-c", "--command", "-ic", "-ci", "-cl", "-lc", "-bash", "-sh", "-zsh", "-dash", "-fish", "-ksh")) )] by process.parent.pid, host.id, user.id
Install detection rules in Elastic Security
Detect Potential Copy Fail (CVE-2026-31431) Exploitation via AF_ALG Socket 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(external, opens in a new tab or window).