Define a Cilium Tetragon TracingPolicy with a kprobe to monitor exec of specific binaries

domain: tetragon.io · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Write a TracingPolicy manifest with apiVersion 'cilium.io/v1alpha1' and kind 'TracingPolicy' targeting a kernel function used in process execution such as 'security_bprm_check'
  2. Set the 'kprobes' array entry with the function name and define which arguments to capture using the 'args' list with index, type, and label fields
  3. Add a 'selectors' block to filter events by binary path using a 'matchBinaries' selector with the 'values' list of full binary paths to monitor
  4. Apply the TracingPolicy to the cluster with kubectl apply and confirm the CRD is accepted without validation errors
  5. Run 'tetra getevents' to stream process events and filter for exec events matching your target binary
  6. Verify captured events include the expected process metadata such as binary path, arguments, and pod context

Known gotchas

Related routes

Configure a Cilium Tetragon TracingPolicy to observe file opens on sensitive directories using a tracepoint
tetragon.io · 6 steps · unrated
Define a Tetragon TracingPolicyNamespaced to scope a kprobe policy to a single Kubernetes namespace without cluster-admin privileges
tetragon.io · 6 steps · unrated
Write a Tetragon TracingPolicy using a kprobe on tcp_connect to monitor outbound TCP connections at the process level
tetragon.io · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans