Who Watches the Watcher? Hardening eBPF in Production Security Deployments
summary
eBPF deployments show concrete attack surfaces: historical verifier CVEs including CVE-2023-2163 allow arbitrary kernel R/W, distro defaults and CAP_BPF + CAP_PERFMON yield near-root escapes, and rootkits like BPFDoor and Linkpro already hide via map tampering. Audits find a 4,096‑byte tracing buffer (limits ~1,024 PIDs) and a content‑matching bypass that exfiltrates credentials when sent byte‑by‑byte (demo runs in GitHub Actions). Practical mitigations: BPF LSM hooks, BPF token scoping, and distro hardening (Ubuntu/Fedora approaches) with a one‑week threat‑model checklist.
AI-written summary · about
chapters (16)
- 0:00Introduction and context
- 1:04Who watches the eBPF guard
- 3:52Modern security stack with eBPF
- 5:38Verifier limitations and risks
- 7:27Why eBPF has too much privilege
- 9:34Real-world eBPF rootkits
- 11:41Signing is not enough
- 12:23Bugs in Tetragon project
- 14:09Bypassing visibility checks
- 17:01Security gaps and solutions
- 18:25Hardening eBPF deployments
- 20:09Threat modeling by environment
- 22:35Recommendations for vendors
- 23:17Developer mitigation strategies
- 24:21Call to secure eBPF itself
- 24:42Q&A session
