
An eBPF detection program for CVE-2022-0847
该程序利用 eBPF 检测 Dirty Pipe 漏洞利用尝试。它同样监控不受影响的内核和 Docker 容器。

🛫 如果您想了解更多工作原理,请阅读博客文章!🛬
默认执行:
sudo ./bin/dirtypipe_detection
调试模式:
在运行时显示 libbpf 日志
sudo ./bin/dirtypipe_detection --debug
守护进程模式:
以守护进程方式运行,并通过 syslog 发送告警
sudo ./bin/dirtypipe_detection --daemon
sudo apt install git make pkg-config libelf-dev clang-11 libc6-dev-i386 bpftool -y
git clone https://github.com/airbus-cert/dirtypipe-ebpf_detection
cd ./dirtypipe-ebpf_detection/src/
make
sudo apt install git make pkg-config libelf-dev clang-11 libc6-dev-i386 linux-tools-common linux-tools-$(uname -r) -y
git clone https://github.com/airbus-cert/dirtypipe-ebpf_detection
cd ./dirtypipe-ebpf_detection/src/
make
阅读来自 [email protected] 的原始 博客 文章,了解 Dirty Pipe 漏洞。
阅读 Datadog 团队提出的有趣策略。