CNCF details AI agent that turns Falco runtime alerts into Kyverno policies and GitLab merge requests
The proposed loop keeps the LLM read-only and human-in-the-loop: Falco detects, an AI agent triages and drafts a Kyverno policy plus hardened manifest, the Kyverno CLI verifies it against the live cluster, and an engineer approves the GitLab merge request.
Summary
In a CNCF blog post published on November 30, 2026, Anna Cyganik of Software Mind describes an architecture that closes the gap between Kubernetes runtime detection and GitOps change management. Falco, running on every node, watches system calls and the Kubernetes audit log and forwards each alert as a webhook to an AI agent built on FastAPI and LangGraph with an LLM from Azure OpenAI. The agent enriches the alert with pod, owner, image and related-alert context and returns a structured assessment covering risk, confidence, the MITRE ATT&CK technique and an investigation plan.
For confident, high-risk incidents the agent drafts a Kyverno policy and a hardened version of the affected workload manifest, which the Kyverno CLI validates against the live cluster before a human sees it. Delivery happens as a GitLab merge request, and after merge the existing CI/CD pipeline deploys the policy and manifest like any other change. The agent's service account is read-only, so nothing reaches the cluster except through Git and human approval; PostgreSQL stores alerts and decisions, and Helm values files for Falco and Kyverno are kept in Git for reproducible installation.
How the Falco-to-Kyverno mitigation loop is wired
- Detection layer: Falco runs on every node and consumes both system calls and Kubernetes audit events via the k8saudit plugin, with Falcosidekick forwarding alerts to the agent as webhooks; the source notes Falco ships with hundreds of rules, so detection is not the bottleneck.
- Triage agent: A Python service using FastAPI and LangGraph with an Azure OpenAI LLM enriches each alert with Kubernetes context (pod, owner, images, related alerts) and emits a structured assessment with risk, confidence, MITRE ATT&CK technique and an investigation plan.
- Mitigation authoring and verification: For confident, high-risk incidents the agent drafts a Kyverno policy plus a hardened workload manifest, and the Kyverno CLI checks every proposal against the live cluster before review; after deployment Kyverno admission control blocks or reports non-compliant workloads back to the agent.
- Read-only blast radius: The agent's service account has no write access to the cluster; all changes flow through a GitLab merge request approved by a human and the same CI/CD pipeline used for other changes, with PostgreSQL recording alerts and decisions.
- CNCF dependency stack: The design leans on graduated projects — Kubernetes (admission control and audit log), Falco, Kyverno, Helm, plus containerd, etcd and CoreDNS underneath — with Helm values files stored in Git for reproducible installs.
Why it matters
Platform teams running GitOps already treat Git as the only path to production, and this design extends that invariant to runtime security responses instead of leaving them as out-of-band kubectl fixes. Because the mitigation is expressed as a Kyverno policy rather than a one-off pod patch, the same misconfiguration is blocked at admission on the next deploy, which is the difference between an incident and a permanent control. The explicit human-in-the-loop and read-only service account also give security and compliance reviewers an auditable trail in Git and PostgreSQL, which the author ties to NIS2 and DORA obligations.
Original reference: www.cncf.io →