Hardening eBPF for runtime security: Lessons from Datadog Workload Protection
Five years of running Datadog Workload Protection, an eBPF-based runtime security agent supporting kernels from 4.15 to 6.18, distilled into six production lessons. They cover getting programs to load, attach and keep firing across kernels and distributions; capturing and enriching data correctly; auditing eBPF use to reduce attack surface; coexisting with other eBPF users on a host; controlling performance cost; and shipping changes safely. Concrete pitfalls include verifier differences between kernels, inlined or renamed hook points, missed 32-bit compat syscalls and per-syscall tracepoints, and gaps from io_uring, openat2 and unusual exec paths like binfmt_misc. Mitigations include a CI matrix of tested kernels, the shared open source ebpf-manager Go library that refuses to start without a minimal set of loaded programs, and wrappers that hide verifier quirks.
Related posts
- Scaling real-time file monitoring with eBPF: How we filtered billions of kernel events per minute
Datadog Engineering mediumAdeptDatadog built file integrity monitoring on eBPF to capture file changes with process and container context, which periodic scans, inotify and auditd could not provide at scale. Their infrastructure produces over 10 billion file events per minute at roughly 5 KB each. Agent-side rule matching cuts what reaches the backend to about one million events per minute. In-kernel prefiltering goes further: static approvers are derived from detection rules, and dynamic discarders are pushed at runtime into LRU eBPF maps. Together they drop up to 94% of events before they hit the ring buffer, which lowers CPU use and prevents dropped events.
- OpenAI and Cisco introduce Shirudo
OpenAI easyNovice
Shirudo is an open-source runtime from OpenAI and Cisco that uses eBPF "shields" to block vulnerable code paths on running Linux systems while patches are prepared, without restarts. Operators can monitor a proposed shield's effect on legitimate traffic before enforcing it. Shields are cryptographically signed, checked by the eBPF verifier, and recorded via TPM-backed attestation. In a controlled test, a Codex-generated shield added an input check to Java's Base64 decoder in a live Elasticsearch process and blocked a Java4Shell exploit. The project is BSD 2-Clause licensed, with BPF programs dual-licensed BSD/GPL.
- How GitHub uses eBPF to improve deployment safety
GitHub Engineering mediumAdeptGitHub prevents deployment scripts from introducing circular dependencies on github.com or internal services by running them in a dedicated cgroup with eBPF programs attached. A BPF_PROG_TYPE_CGROUP_SOCK_ADDR hook rewrites DNS connect4 calls to a userspace DNS proxy that checks domains against a blocklist. The proxy then signals a CGROUP_SKB egress program via eBPF maps to allow or deny traffic, and maps DNS transaction IDs to PIDs so blocked requests can be logged with the originating command line. The system, built in Go with cilium/ebpf, went live after a six-month rollout. It also audits contacted domains and enforces CPU and memory limits on deploy scripts.
- Replit’s Architecture Behind Secure Agent Work
Replit easyNoviceReplit's Agent Habitat secures agent work through four layers: least-privilege connectors with a credential broker that injects vault secrets only into authorized requests, microVM isolation with a hardened kernel, production changes gated behind engineering review and combined static, dependency and AI security scanning, and audit logs that stream to a SIEM. The microVM design blocked exploitation of recently disclosed Linux kernel flaws. Replit also patched affected Node.js, Python and PHP tooling centrally and deployed WAF rules. The post is largely a product overview, with modest architectural detail and a note on planned eBPF-based detection of suspicious agent activity.
- Well, That Wasn't Fun: October 16 '26
Fly.io mediumAdeptA Linux kernel bug in IPv4 checksum offload validation let a guest VM direct the host to write its computed checksum into an already-trusted IPv4 header field. This enabled a firewall bypass and a 32-byte out-of-bounds read that could leak host memory or packets from neighboring VMs. XDP rules ran too early to catch the rewrite, and disabling offload required a reboot anyway, so Fly.io patched and rebooted its entire fleet in 10 hours. Reboots were sequenced in waves so no Managed Postgres cluster lost both nodes (17 waves in iad), with some hosts stuck in BIOS or lost to a failed power supply. The write-up also covers the decision to label the work as 'maintenance' rather than disclose vulnerability, the move of incident comms to the exec team, and advice to encrypt internal traffic, scope and expire agent credentials, and rehearse rotation.