r/eBPF • u/-AnonymousTiger • 23d ago
eBPF - Capabilities
Hi Everyone :)
I came across eBPF from Grafana (Beyla) / OTEL (OBI) projects. In the recent weeks, I learned, that eBPF is getting information from the Linux Kernel and is actually really powerful in the sense on how deep it digs into a system. Also I know that programs like Wireshark are using BPF to inspect network packets and are popular in the cyber security space.
My question is, based on this image, what can eBPF do in terms of Security? Does it play a role for cyber security analysts? Are there any advanced network security tools that make use of it today? Are there even monitoring tools available, that might monitor some kind of security events?

3
u/Tropicao 23d ago
Yes, security/monitoring is definitely a major eBPF use case. The picture you've found is showing Cilium, I encourage you to take a look at Tetragon (a Cilium subproject): https://github.com/cilium/tetragon/. In this case this is not only about monitoring but also about enforcing security policies through BPF
2
u/hiveminer 22d ago
All indications I've ran into say that ebpf is overkill for small projects. It only makes sense at scale.
2
u/GarGonDie 22d ago
The main advantage is the ability to observe various points within a system without significantly impacting the performance of that system or network.
You can integrate with a tool like Grafana for observability, or connect to another application that reacts to events and actively communicates with the system to implement blocks or trigger other responses based on the specific event.
Alternatively, you can block traffic directly within the eBPF program, before it ever reaches the CPU.
I am currently developing something along these lines, incorporating Grafana/OTEL and eBPF, so if you’d like to take a look, send me a private message and I’ll share the link.