Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Cfgmgmtcamp 2024 — eBPF-based Security Observab...

Cfgmgmtcamp 2024 — eBPF-based Security Observability & Runtime Enforcement with Cilium Tetragon.pdf

eBPF is used in several cloud native security tools. In this talk we’ll dive into demos and code to explore how eBPF can be used for the next generation of security enforcement tooling. This talk will cover:
- Why enforcing NetworkPolicy with eBPF has been in place for years, but preventive security for applications has taken longer.
- How Phantom attacks can compromise the use of basic system call hooks.
- How other eBPF attachment points, such as BPF LSM, can be used for preventive security.

Raphaël Pinson

February 12, 2024
Tweet

More Decks by Raphaël Pinson

Other Decks in Technology

Transcript

  1. with Cilium Tetragon eBPF-based Security Observability & Runtime Enforcement ⬢

    Security Observability ⬢ eBPF ⬢ Cloud Native Metadata ⬢ Runtime Enforcement
  2. Runtime Security - Security in Real Time Active protection while

    your workload is running → Detecting malicious activity in real time → Reporting when malicious events occur -> Even better, preventing them
  3. What activity do we care about? • Network traffic •

    File & I/O activity • Running executables • System call activity • Changing privileges & namespace boundaries • …
  4. LD_PRELOAD • Standard C library, dynamically linked • System call

    API • Replace the “standard” library • Bypassed by statically linked executables
  5. TOCTTOU with syscalls For more details • Leo Di Donato

    & KP Singh at CN eBPF Day 2021 • Rex Guo & Junyuan Zeng at DEFCON 29 on Phantom attacks ptrace, seccomp, eBPF kprobes on syscall entry
  6. BPF LSM • Stable interface • Safe places to make

    checks • eBPF makes it dynamic • Protect pre-existing processes
  7. BPF LSM • Stable interface • Safe places to make

    checks • eBPF makes it dynamic • Protect pre-existing processes • Needs kernel 5.7+
  8. Cilium Tetragon • eBPF makes it dynamic • Protect pre-existing

    processes • Uses kernel knowledge to hook into sufficiently stable functions
  9. Cilium Tetragon • eBPF makes it dynamic • Protect pre-existing

    processes • Uses kernel knowledge to hook into sufficiently stable functions • Multiple co-ordinated eBPF programs
  10. Cilium Tetragon • eBPF makes it dynamic • Protect pre-existing

    processes • Uses kernel knowledge to hook into sufficiently stable functions • Multiple co-ordinated eBPF programs • In-kernel event filtering
  11. Observability • Deep Visibility ◦ System, network, protocols, filesystem, applications,

    … • Transparent ◦ App agonistic ◦ No changes to applications • Low-Overhead ◦ Minimal overhead ◦ Extensive filtering & aggregation • Integrations ◦ Prometheus, Grafana, SIEM, fluentd, OpenTelemetry, elasticsearch
  12. with Cilium Tetragon eBPF-based Security Observability & Runtime Enforcement ⬢

    Security Observability ⬢ eBPF ⬢ Cloud Native Metadata
  13. with Cilium Tetragon eBPF-based Security Observability & Runtime Enforcement ⬢

    Security Observability ⬢ eBPF ⬢ Cloud Native Metadata ⬢ Runtime Enforcement
  14. Runtime Enforcement • Preventive Security ◦ System, network, filesystem, and

    applications • Synchronous enforcement • Integrations ◦ Kubernetes CRD, JSON, OPA, … ◦ Convert from existing rule sets (Falco, PodSecurity Policies, …)
  15. Tetragon Tetragon Enterprise Advanced Visibility • Extended Network Visibility •

    DNS, HTTP, HTTPS, TLS • SIEM Integration • Process Ancestry Information • High-performance Protocol Parsers, Aggregation, & Filtering • File Integrity Monitoring (Digest SHA256) Advanced Enforcement • Extended Runtime Enforcement Capabilities • Threat Detection • Baseline Policies Visibility • Process & Syscall Visibility • L3-L4 Network Visibility • File Access Monitoring • Capabilities & Namespacing Enforcement • System call-based enforcement (kprobes, tracepoints)
  16. Which eBee are you? @raphink | @[email protected] Cloud Network Engineer

    Platform Engineer Platform Ops (Service Mesh) Security Professional Cloud Architect
  17. Practical Labs … to become a Cilium & eBPF Jedi

    🌐 https://labs-map.isovalent.com Get badges 🏅 @raphink | @[email protected]
  18. eBPF resources eCHO eBPF YouTube podcast: https://www.youtube.com/channel/UCJFUxkVQTBJh3LD1wYB WvuQ eBPF &

    Cilium Slack http://slack.cilium.io/ eCHO News Bi-weekly eBPF newsletter: https://cilium.io/newsletter/ @raphink | @[email protected]