executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
ebpf-threat-detectioneBPF Threat Detection, Tetragon, Falco, and Kernel Syscall Interception
Independent GitHub snapshot · Automated classification · Original documentation governs
Extended Berkeley Packet Filter (eBPF) revolutionized Linux observability and security by allowing sandboxed programs to run within the kernel space without requiring kernel module compilation or system reboots. This is critical for low-overhead, high-fidelity threat detection.
eBPF programs are event-driven. They attach to specific kernel hooks (kprobes, tracepoints, network events). When the hook is triggered, the eBPF program executes.
bpf() syscall) loads the bytecode into the kernel.Syscalls are the interface between user-space and kernel-space. Monitoring them is fundamental to detecting malicious behavior (e.g., execve for process execution, ptrace for memory injection, bpf for illicit eBPF loading).
kprobe) and exit (kretprobe). Useful for inspecting arguments passed to syscall handlers (e.g., sys_execve).Falco acts as an intrusion detection system for cloud-native environments.
Tetragon (by Isovalent/Cilium) leverages advanced eBPF capabilities for both deep observability and inline enforcement.
%%{init: {"theme": "default", "flowchart": {"useMaxWidth": true}}}%%
flowchart TD
UserSpace[User Space Application] -->|"1. Executes Syscall (e.g., execve)"| KernelSyscall[Kernel Syscall Interface]
KernelSyscall -->|2. Triggers Hook| eBPFHook{eBPF Hook: kprobe / tracepoint / LSM}
subgraph KernelSpaceKernelSpace ["Kernel Space<br><br><br>"]
eBPFHook -->|3. Executes| eBPFProg[eBPF Program]
eBPFProg -->|4. Evaluates Policy| PolicyEval{Policy Match?}
PolicyEval -->|5a. Block: Return Error| LSMEnforce[Syscall Denied - ENOPERM]
PolicyEval -->|5b. Allow & Audit| eBPFMap[(eBPF Ring Buffer / Map)]
end
LSMEnforce -.-> UserSpace
subgraph SecurityAgentegTetragonFalcoSecurityAgentegTetragonFalco ["Security Agent (e.g., Tetragon/Falco)<br><br><br>"]
eBPFMap -->|6. Async Event Stream| AgentEngine[User-Space Rules Engine]
AgentEngine -->|7. Correlate with K8s Metadata| ContextualEvent[Contextualized Security Event]
ContextualEvent -->|8. Alert / Log| SIEM[SIEM / Log Aggregator]
end
style Kernel Space fill:#eee,stroke:#333,stroke-width:2px,stroke-dasharray: 5 5
style eBPFProg fill:#f96,stroke:#333,stroke-width:2px
style AgentEngine fill:#69f,stroke:#333,stroke-width:2px