AI agent turns a Kubernetes attack alert into a fix
A CNCF write-up describes an agent that takes a runtime security alert from Falco, drafts a Kyverno policy and a hardened setup, checks it, and opens a GitLab merge request. In a test on one scenario it took 1 minute 45 seconds. A person still reviews and merges, and the agent cannot write to the cluster.
Falco watches system calls and the Kubernetes audit log on each node and sends alerts to the agent. No AI decides what counts as suspicious. The agent filters known benign activity, then a model (LangGraph with Azure OpenAI) adds cluster context and scores risk and confidence separately.
Only alerts with risk of at least 0.8 and confidence of at least 0.7 on an application workload move on. The agent drafts a Kyverno policy and hardened manifest, and Kyverno CLI checks that the current workload fails, the hardened one passes and nothing else is blocked, with up to three retries. It then opens a merge request with reasoning and limits.
Its service account is read-only. The authors call full autonomy premature. In one test scenario on a test cluster, the merge request arrived after 1 minute 45 seconds and passed first time. The hardening limits damage but does not fix the code flaw.
New to this? The key idea
Separate detecting from deciding. A smoke alarm (Falco) senses trouble with plain rules, and an AI only helps interpret and propose a fix, with a person approving. That keeps the AI's mistakes from touching the system directly.
Use it at work
Use it for: platform and security teams who want faster, reviewable responses to runtime alerts.
Try it: the article shows the pattern but links no code repository. Rebuild it in steps: Falco webhook, a triage prompt, a Kyverno CLI check, and a merge request for human review.
Before you roll it out: results come from one scenario on a test cluster. Track the false-positive rate of the AI triage and the share of merge requests accepted unchanged, as the article suggests. Costs and model data handling: not stated.
Summaries are written by AI from the linked source. Always check the original.