---
title: "Shirudo Lets AI Write Kernel Shields. Only the Operator Can Sign Them."
description: "Shirudo, a new eBPF runtime, lets AI agents write kernel shields while the operator's key decides which ones load. It gets the ownership half of trusting agent-written code right. What it can't say yet is what a shield actually stops."
author: "Colin McNamara"
tags: ["AI","Formal Verification","Security","eBPF"]
date: 2026-11-25
url: https://colinmcnamara.com/blog/shirudo-signed-shields-ownership
---

# Shirudo Lets AI Write Kernel Shields. Only the Operator Can Sign Them.

**In short:**

- Shirudo lets an AI agent write a "shield" against an exploit, but a shield only loads if the operator's key signed it. For kernel shields, even root can't load an unsigned one.
- This is the ownership half of trusting agent-written code, enforced in the kernel instead of in a review policy.
- The only signed claim about what a shield does is a list of CVEs. Nothing signed says whether it blocks, counts or merely contains them.

On Monday, OpenAI and Cisco [announced Shirudo](https://openai.com/index/introducing-shirudo/), an open-source runtime for holding off an exploit until the real patch lands. The launch demo goes like this. A new Java bug, Java4Shell (CVE-2026-114938), can be triggered through Java's Base64 decoder. Codex, OpenAI's coding agent, writes a small bytecode guard for it. The guard is signed and loaded into a running Elasticsearch 9.5.5. Elasticsearch keeps serving, and the exploit bounces.

[Marcus Hutchins](https://marcushutchins.com/) of Expel had the reaction I had. eBPF is the Linux feature Shirudo is built on, and he [wrote on X](https://x.com/MalwareTechBlog/status/2125121428270067755): "There's genuinely so much runtime exploit mitigation potential with eBPF, but the last thing you want is AI Agents writing rules that impact your kernel."

I don't read that as a verdict on eBPF. I read it as the question [this series](https://colinmcnamara.com/blog/riemann-proof-trust-the-statement) keeps asking: who's allowed to change the thing that decides what's safe?

## What is Shirudo?

Shirudo is a rewrite of Tetragon, the eBPF security tool from Isovalent (now part of Cisco), built so AI agents can write mitigations as code instead of in a policy language. It delivers signed micropatches, which the launch calls shields (upatches, in the code). Kernel shields load into a running kernel without a reboot. Java shields are Java agents, and the demo's Base64 guard can attach to a JVM that's already running. There's no daemon. Shields come from an OCI registry, the same kind that serves container images, and every load is measured into the machine's TPM, a security chip that keeps a tamper-evident record.

It's aimed at the patch gap, the window between a disclosure and a fix on every machine. That window is shrinking from the attacker's side: on November 16, Google's Threat Intelligence Group [reported](https://cloud.google.com/blog/topics/threat-intelligence/agentic-threat-activity-crosses-a-significant-threshold) an autonomous pipeline that turns patch diffs into exploits.

Most of the code is Isovalent's. The [repo](https://github.com/shirudo-dev/shirudo) is BSD-2-Clause and mostly C. About 94% of the 1,806 commits since the October 18 import come from Cisco and Isovalent, and the co-creators are [Daniel Borkmann](http://borkmann.ch/), [John Fastabend](https://github.com/jrfastab) and [Michi Mutsuzaki](https://github.com/michi-covalent). [KP Singh](https://github.com/sinkap) (Google) and [Puranjay Mohan](https://puranjaymohan.github.io/) (Meta) are maintainers too. [Thomas Graf](https://github.com/tgraf) and [Liz Rice](https://www.lizrice.com/) wrote the [technical post](https://isovalent.com/blog/post/cisco-openai-shirudo/). Cisco [describes the project](https://blogs.cisco.com/news/expanding-the-defenders-window-with-self-defending-infrastructure) as co-developed with OpenAI, and Codex wrote the demo shield.

It's also early: there's no release yet, and the version file reads 0.0.0-dev. It needs a development kernel with five extra patches, a TPM 2.0 chip (there's no mode without one), and a unified kernel image. One commenter on [Hacker News](https://news.ycombinator.com/item?id=50619630) made a fair point: that bar makes it a poor fit for an emergency on a host that isn't already set up.

## Who's allowed to load a shield?

Last weekend I [gave coding agents a wrong spec](https://colinmcnamara.com/blog/riemann-proof-trust-the-statement#what-does-this-mean-for-your-code) they were allowed to edit. In 14 of 18 runs, they rewrote it until the check went green, and told me so. Nothing stopped them, because nothing said they couldn't. It's the reason [Part 1](https://colinmcnamara.com/blog/riemann-proof-trust-the-statement) ended by asking who's allowed to change the statement.

Shirudo makes that impossible for kernel shields. An agent without the key can write one, but it can't get it loaded: the kernel accepts only a shield signed by the operator's key (ML-DSA-87, a post-quantum signature scheme). On an enforcing host, even Cilium, Tetragon and Falco's eBPF drivers can't load their own programs. The threat model names the attacker it's built for: root on the machine, without that key.

It's just as clear about the limits. An attacker who already runs code in the kernel is past every check the kernel makes, Shirudo's included. Anything ever signed stays loadable, so root can roll a shield back to an older signed version; the load is measured, not refused. And Java shields, like the one in the demo, are checked in userspace. The [architecture doc](https://github.com/shirudo-dev/shirudo/blob/779bb01b9f5a944ff9a3e9a18d15ebe4da504fbe/Documentation/internals/architecture.rst) calls a Java shield "a mitigation in the JVMs it reaches, not a boundary against root."

Here the ownership question is answered with a key and a kernel security hook, not a review policy. It's what I've been arguing for in this series, and Isovalent built it.

![The agent writes the shield, the operator's key signs it, the kernel or JVM loads it. The signature attests which key signed the shield. Nothing attests what it stops. Of the 11 payloads in the tree, 10 of which ship with package recipes, 4 block, 6 only count or log, and 1 sandboxes.](https://colinmcnamara.com/images/blog/shirudo-signed-shields-ownership/signature-says.svg)

## What do Shirudo's proofs prove?

Shirudo ships formal proofs, and they're serious work: 161 CBMC harnesses (CBMC checks C code against stated properties, within set bounds) and 15 Lean 4 modules. The Lean build treats warnings as errors, so a `sorry`, Lean's placeholder for an unfinished proof, fails the build. I said [in Part 1](https://colinmcnamara.com/blog/riemann-proof-trust-the-statement#how-can-a-statement-compile-and-still-be-wrong) that your CI wants exactly that setting.

What they prove are properties of the runtime itself: memory safety and correct parsing in its C code (TPM messages, package and OCI formats, version numbers, JSON, file paths), and the protocols for replaying the TPM record, activating config, recovering after a crash, syncing state and loading a patch. None of it covers what a shield does against a CVE, or the kernel's BPF verifier, its JIT compiler and the kernel patches it relies on. The project's threat model says this itself: "shirudo establishes provenance, not correctness."

The Riemann certification had the same shape. A small mechanism gets checked carefully, and trust rests on what the statement says. In [Part 1](https://colinmcnamara.com/blog/riemann-proof-trust-the-statement#why-trust-a-proof-nobody-has-read) the statement was about three lines of math. Here the statement is "this shield came from the key holder."

## What does "shielded" mean?

A shield package can list the CVEs it addresses in an optional field called `fixes`. The host itself ignores the field. The project's backend reads it: when a host reports the shield applied, the backend marks that host shielded against those CVEs.

Take the PHP shield. It's a sandbox for Apache and PHP-FPM that, after a break-in, stops the server from running other programs, connecting out beyond private networks, or writing new PHP files. Its [README](https://github.com/shirudo-dev/shirudo/blob/779bb01b9f5a944ff9a3e9a18d15ebe4da504fbe/upatches/app-sandbox/README.md) is honest about that: "The sandboxes do not close the hole in PHP: a request can still run the attacker's code in the application." Its [package file](https://github.com/shirudo-dev/shirudo/blob/779bb01b9f5a944ff9a3e9a18d15ebe4da504fbe/upatches/app-sandbox/Beefile) still lists both PHP CVEs:

```toml
# upatches/app-sandbox/Beefile, at commit 779bb01
[upatches.tree]
id = "app-sandbox"
fixes = ["CVE-2026-109618", "CVE-2026-109619"]
```

So a host can show as shielded against two bugs the shield's own README says it doesn't close. Both files are short, and the links above are pinned to that commit if you want to check for yourself.

`fixes` also sits on shields that only count. I had Codex audit the tree at commit [779bb01](https://github.com/shirudo-dev/shirudo/tree/779bb01b9f5a944ff9a3e9a18d15ebe4da504fbe), reading every payload, and spot-checked its citations against the source. It sorted the 11 payloads in the tree by what their code does. Ten of the 11 ship with package recipes.

- **4 block an operation.** Two kernel hooks for one CVE, plus the two Java guards.
- **6 only count or log.**
- **1 sandboxes.** The PHP shield.

The three kernel detectors the project exports carry a tag, `source_derived_unvalidated`, which its [docs](https://docs.shirudo.dev/upatches/learn/examples.html) define as "derived from the fix, not checked against an exploit."

The Java4Shell guard from the demo is one of the four blockers, and it's careful work. It rejects only a narrow shape of malformed input: 65 bytes or longer, a length that lands 1 to 3 past a multiple of 64, ending in one or two `=` signs. Valid padded Base64 always has a length divisible by four, so the guard can't block well-formed input.

None of this is hidden. The maintainers wrote the limits down, plainly, in the tree, which is how I found them. The PHP README even explains the field: the CVEs are listed "so that a backend that reads the tree counts a node that loaded the upatch as shielded against them," and the paragraph ends with "Upgrade PHP as well." The gap is that the limits live in prose, while the field a dashboard reads is `fixes`.

## What's missing?

Before I let a shield load, I'd want an attestation of the property, not just the provenance. Something like: this shield denies this operation, for this CVE, and here's the reproducer it was checked against.

Upwind's Amiram Shachar [told SecurityWeek](https://www.securityweek.com/openai-cisco-unveil-open-source-tool-to-shield-unpatched-linux-systems/) that generated kernel protections need testing across distros. He's right, and that testing is what should travel with the shield, signed, next to the key holder's signature.

The rails for that exist. [in-toto](https://in-toto.io/) attestations, [Sigstore](https://www.sigstore.dev/) signing, SCAI (a format for signed claims about what software does) and CycloneDX attestations already carry signed statements about software. Shirudo already produces TPM evidence of what loaded, and the publication's signature already covers `fixes`, so today the one signed claim about a shield is a list of CVEs. What's missing is a profile that says what a shield claims and how the claim was checked.

## Who holds your key?

The demo worked, and the design gets the hard part right: an agent can write a shield, but only the operator's key can sign it. If agents are going to write the controls on our hosts, that split should be the default everywhere.

Until shields can say what they stop, my advice if you try Shirudo is simple: read what each shield's code does before you trust its `fixes` list.

And two questions for you. Who holds the signing key for the shields on your hosts? And what would a shield have to say about itself before you'd let it load?

If you want to ask the people who built it, Isovalent is holding a [virtual panel](https://isovalent.com/events/shirudo-virtual-panel/) on December 15 at 11 AM Eastern, with a Shirudo maintainer from OpenAI.

*This is a sidebar to a series on specs, proofs and the review crisis. Start with [Part 1](https://colinmcnamara.com/blog/riemann-proof-trust-the-statement). Next: "Your Spec Is Right. It Just Has No Owner."*
