计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
ebpf-threat-detection【效率与协作】eBPF Threat Detection, Tetragon, Falco, and Kernel Syscall Interception
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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