Skip to content

Security Observability with eBPF, Cilium, and Tetragon Workshop

Workshop Overview

This workshop, presented by Duffy Cooley (Field CTO) and Raphael (Solutions Architect) from Isovalent, focuses on security observability using eBPF, Cilium, and Tetragon. The session combines a conceptual presentation with a hands-on lab to demonstrate how these technologies provide deep visibility into Kubernetes workloads. For a broader perspective on bridging security theory and practice, see Security Engineering: Why Bridges Don't Fall but Computers Get Hacked.

Key Concepts

eBPF (Extended Berkeley Packet Filter)

  • Makes the Linux kernel programmable in a secure and efficient way
  • Think of it as "JavaScript for the kernel" - allows instrumentation of any kernel API call
  • Programs must pass through a verifier before injection (ensures safety, no infinite loops)
  • Runs at native kernel speeds for maximum performance
  • Can modify inputs, determine success/failure of API calls

Cilium - Container Networking Interface (CNI)

  • First major Isovalent project built on eBPF
  • Runs as an agent on every Kubernetes node
  • Generates eBPF programs for each pod upon creation
  • Replaces kube-proxy for service load balancing (eliminates iptables overhead)
  • Implements network policy enforcement directly in the kernel
  • Provides Layer 7 visibility and FQDN-based policies
  • Supports multi-cluster networking (Global Services)
  • Default CNI in AWS EKS

Tetragon - Security Observability

  • Newest open source project in the Cilium ecosystem
  • Hooks into kernel functions at the system call level
  • Acts as the "front door" of the Linux kernel
  • Provides zero-modification security monitoring for applications
  • Can kill processes in addition to emitting events
  • Dynamically applied policies (no restarts needed)

Security Observability Use Cases

Container Escape Detection

  • Detects when processes break out of container isolation
  • Monitors for namespace escape attempts (e.g., nsenter)
  • Tracks privileged container abuse

Privilege Escalation Monitoring

  • Watches for setuid system calls
  • Detects sudo execution within containers
  • Monitors for capability abuse

Understanding how these techniques fit into broader incident response workflows is covered in Incident Response and Digital Forensics: A Comprehensive Overview.

File Integrity Monitoring

  • Takes checksums of files on first access
  • Alerts when files are modified (checksum changes)
  • Can block unauthorized writes (e.g., to /etc/shadow)

Network Security

  • Layer 7 parsers for HTTP, DNS, and TLS
  • Monitors DNS resolution in real-time
  • Detects DNS bypass attempts
  • Tracks TLS cipher suite compliance

Hands-On Lab Components

Lab Setup

  • Uses Instruqt platform (cloud-hosted VMs)
  • Requires only internet access and a browser
  • Starts a KinD cluster with single node
  • Tetragon installed via Helm chart

Tracing Policies (CRDs)

Two main policy types demonstrated:

  1. Network Connection Policy

    • Tracks TCP connect and close events
    • Uses kernel probes (kprobes)
    • Maps socket arguments to JSON output
  2. File System Policy

    • Monitors file descriptor operations
    • Tracks reads, writes, and closes to specific files/directories
    • Example: Monitoring /etc/kubernetes/manifests

Attack Scenario Demo

Steps demonstrated:

  1. Deploy a privileged pod
  2. Exec into the pod
  3. Use nsenter -t 1 -a bash to escape to host
  4. Create a static pod in /etc/kubernetes/manifests/
  5. Establish persistent foothold on the node

The attack techniques shown here align with patterns discussed in Defending Against Nation-State Cyber Threats: Insights from Tailored Access Operations.

Detection Methods

Tetragon CLI provides:

  • Real-time event streaming with formatted JSON
  • Filtering by pod name (like Hubble)
  • Process execution tracking
  • File access monitoring
  • System call visibility

Configuration Example

apiVersion: cilium.io/v1alpha1
kind: TracingPolicy
metadata:
  name: "capabilities"
spec:
  kprobes:
  - call: "security_file_permission"
    syscall: false
    args:
    - index: 0
      type: "file"

Key Takeaways

Context is King: Modern security requires understanding not just what happened, but who did it, where it happened, and why

Benefits of eBPF-based security:

  • No application modifications required
  • High performance (kernel-native)
  • Dynamic policy updates (no restarts)
  • Deep visibility into all system calls
  • Can prevent attacks (not just detect)

For a deeper dive into detection methodologies, see Comprehensive Overview of Incident Detection and Analysis.

Resources

  • Lab URL: isovalent.com/labs (20+ free labs)
  • Tetragon GitHub: github.com/cilium/tetragon
  • Book: "Security Observability with eBPF" (available at Isovalent booth)
  • Cilium users list: Add yourself on GitHub

Also check out the related research in Comprehensive Insights into OSINT, Maritime Intelligence, Telegram Investigations, and Cybersecurity Threats for a broader view of threat intelligence in modern security operations.

Keep this summary

Save it to LunaNotes and it becomes a real note in your library — editable, searchable, and ready to turn into flashcards or a diagram. Free to start.

Save to LunaNotes

Or summarise for another video.

This summary and transcript were automatically generated using AI with the Free YouTube transcript summary tool by LunaNotes.

Related summaries

Security Engineering: Why Bridges Don't Fall but Computers Get Hacked

Security Engineering: Why Bridges Don't Fall but Computers Get Hacked

This lecture explores the concept of "security theater" through the Halifax explosion case study, teaching students to think like attackers rather than defenders. Key topics include physical security vulnerabilities, the economics of zero-day exploits, and why complex systems will always have security flaws.

Defending Against Nation-State Cyber Threats: Insights from Tailored Access Operations

Defending Against Nation-State Cyber Threats: Insights from Tailored Access Operations

In this talk, Joyce from Tailored Access Operations shares critical insights on how organizations can defend against nation-state cyber threats. Emphasizing the importance of understanding one's own network, Joyce outlines key strategies for identifying vulnerabilities, implementing best practices, and maintaining robust security measures to thwart advanced persistent threats.

Building a Home Lab and Navigating a Career in Cybersecurity with Alberto Rodriguez

Building a Home Lab and Navigating a Career in Cybersecurity with Alberto Rodriguez

In this insightful discussion, Alberto Rodriguez shares his journey in cybersecurity, detailing how he built a powerful home lab for just $800 and his experiences as a SOC and offensive lead. He emphasizes the importance of understanding both offensive and defensive tactics in cybersecurity and offers valuable advice for beginners looking to enter the field.

Incident Response and Digital Forensics: A Comprehensive Overview

Incident Response and Digital Forensics: A Comprehensive Overview

In this engaging webcast, Paul Sarian and John Strand delve into the critical topics of incident response and digital forensics, responding to audience demand for more content in these areas. They discuss practical tools, techniques, and the importance of baselining systems to effectively identify and respond to security incidents.

Comprehensive Insights into OSINT, Maritime Intelligence, Telegram Investigations, and Cybersecurity Threats

Comprehensive Insights into OSINT, Maritime Intelligence, Telegram Investigations, and Cybersecurity Threats

Explore the latest advancements and practical methodologies in open-source intelligence (OSINT) from Ocean Summer 26. Experts discuss AI's role in OSINT evolution, maritime intelligence techniques including AIS and VSAT tracking, Telegram investigative tools, and in-depth cyber threat intelligence case studies, providing actionable strategies for investigators, analysts, and cybersecurity professionals.

Found this summary useful?

Take it with you. One click puts it in your own LunaNotes library.

Save to LunaNotes

Start taking better notes today with LunaNotes