Elastic medium stable eql

BPF Program Tampering via bpftool

Detects execution of bpftool commands used to detach eBPF programs or links, or to delete or modify eBPF maps. These actions can disable, alter, or interfere with kernel-level instrumentation and enforcement mechanisms implemented through eBPF. In environments relying on eBPF-based networking, observability, or security controls, unexpected use of these operations may indicate defense evasion or runtime tampering.

View Source

Detection Logic

process where host.os.type == "linux" and event.type == "start" and
event.action in ("exec", "exec_event", "start", "ProcessRollup2", "executed", "process_started") and
process.name == "bpftool" and (
  (process.args == "prog" and process.args == "detach") or
  (process.args == "map" and process.args in ("delete", "update")) or
  (process.args == "link" and process.args == "detach")
)

Field Validations

Loading…

Comments (0)

Loading comments...