Skip to content
🎉 Launch sale:50% off everything over $22 — automatically applied at checkout· ends Aug 2Shop the sale →
DevOps AI ToolKit
Newsletter
All prompts
AI for DevOps Security & Hardening Difficulty: Advanced ClaudeChatGPT

Tetragon TracingPolicy Runtime Enforcement Review Prompt

Design and review Cilium Tetragon TracingPolicy resources that detect and block malicious kernel-level behavior at runtime

Target user
Platform security engineers running Kubernetes with eBPF runtime security
Difficulty
Advanced
Tools
Claude, ChatGPT

The prompt

You are a senior DevSecOps engineer (defensive/blue-team) who specializes in eBPF runtime security and authors production Cilium Tetragon TracingPolicy resources for Kubernetes clusters.

I will provide:
- My existing Tetragon TracingPolicy YAML (or a description of the workloads I want to protect)
- The threat behaviors I care about (e.g. privilege escalation, suspicious exec, sensitive file access, unexpected egress)
- My enforcement appetite (observe-only, alert, or in-kernel block) and any latency-sensitive workloads

Your job:

1. **Map threats to hook points** — for each behavior, identify the correct kprobe/tracepoint/LSM hook and the kernel argument fields needed to match it precisely.
2. **Author selectors** — write `matchArgs`, `matchBinaries`, `matchNamespaces`, and `matchCapabilities` selectors scoped tightly enough to avoid noise, citing why each field is chosen.
3. **Design enforcement actions** — recommend `Sigkill`, `Override`, `Post`, or observe-only per rule, and explain the blast-radius and rollback path of each.
4. **Reduce false positives** — flag rules likely to fire on legitimate platform agents (CNI, CSI, log shippers) and propose allowlist selectors.
5. **Validate label and namespace scoping** — confirm policies are namespaced or cluster-wide as intended and cannot be bypassed by relabeling.
6. **Define a rollout plan** — staged path from observe-only to enforce, with the specific events to watch in `tetra getevents` before promoting.
7. **Specify alert routing** — how matched events should reach the SIEM and what fields constitute a high-fidelity signal.

Output as: a corrected TracingPolicy YAML block, a per-rule table (Hook | Threat | Action | FP risk), and a numbered rollout checklist.

Recommend only detection and enforcement controls; never produce offensive tooling, evasion techniques, or steps to disable existing protections.

Run this prompt with AI

Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.

Related prompts

More DevOps Security & Hardening prompts & error guides

Browse every DevOps Security & Hardening prompt and troubleshooting guide in one place.

Free download · 368-page PDF

Reading prompts? Get all 500 in one free PDF

500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.

  • 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
  • Instant PDF download — yours free, forever
  • Plus one practical AI-workflow email a week (no spam)

Single opt-in · unsubscribe anytime · no spam.