Shirudo: Shield a Running Linux Service Before the Patch Lands
OpenAI and Cisco's Shirudo loads signed eBPF shields into running Linux to block an exploit's path before the patch. How it works and how to try it.
Published
- SShirudo

Shirudo is an open-source runtime from OpenAI and Cisco, introduced on November 23, 2026. It loads small signed programs, called shields, into a running Linux machine to block the one code path a vulnerability needs, while the service keeps running and the real patch rolls out. As of November 2026 it is an early project, not a product: you can try it on a test VM today, and its own docs say it is not ready for production.
What Shirudo is, and who builds it
Shirudo (Japanese for "shield", said "shee-roo-doh") is, in OpenAI's words, "an open-source runtime that helps operators protect running Linux systems without needing to wait for the patch or restarts." Its docs put it more exactly: Linux machines run only the BPF their operator signed, every change is recorded in the machine's TPM, and each protection ships as a signed package that the machines pull from a registry.
Two companies are behind it. OpenAI brings its frontier models and its security and infrastructure research; Codex is the agent in its worked example. Cisco brings Isovalent, the team behind Cilium and Tetragon. Isovalent's launch post says Shirudo "has its roots in Tetragon", the eBPF security platform it open sourced in 2022, and is "a rewrite of Tetragon designed for agents." The project was first shown at the Linux Plumbers Conference 2026 in Prague by Daniel Borkmann and John Fastabend of Isovalent.
The code lives at github.com/shirudo-dev/shirudo and the docs at docs.shirudo.dev. It is licensed under BSD 2-Clause, with its BPF programs dual-licensed under BSD and GPL.
Three words help before going further:
- Shield and upatch. The launch posts say "shield". The docs say "upatch", short for µpatch or micropatch, and use "shield" for a upatch that fixes a vulnerability. They are the same object.
- Operator and target. The operator is the machine that holds the signing key and builds shields. The target is the machine being protected.
- BPF and eBPF. Two names for one Linux technology. The docs say BPF, the kernel community's word.
We're giving defenders better models and tools to find and fix vulnerabilities faster, but finding a bug today doesn't mean you can patch every system tomorrow.
The problem: the exploit and the real request use the same door
Testing and deploying a patch "can still take days or weeks," OpenAI's post says. For the kernel it is worse: the docs point out that a kernel fix reaches a fleet only when every machine has booted a kernel that carries it, and the fix is often public long before that. An attacker who reads the fix can use the bug in the gap.
The obvious stopgap is to switch off whatever the exploit uses. That often breaks the service, because, in OpenAI's words, "an exploit and a legitimate request may rely on the same Linux operation. Blocking that operation entirely could take the service offline."
A shield is narrower. It refuses the dangerous input or the dangerous call, and lets everything else through. The docs show this with Copy Fail (CVE-2026-31431), a flaw in the kernel's AF_ALG sockets. The shield does not close the socket type. It refuses the one step the exploit builds on, splicing a page of a file into the socket without a copy, "and every other use of the socket goes on as before. The kernel is the one that booted."
python3 …/cve-2026-31431-splice-probe.py
SPLICE_OK
shirudo bpm tree append …/cve-2026-31431-alg-splice-block:1.0.0 --package-digest "$CVE_DIGEST" …
shirudo upatch list
cve-2026-31431-alg-splice-block yes load bpf 42dc3be289a0f3d7..
python3 …/cve-2026-31431-splice-probe.py
SPLICE_BLOCKED
Nothing was run on the target to load that shield. The target pulled it on its own timer (on the test VM the next sync comes within 10 seconds), checked its signature and loaded it. The guide's own words: "You ran nothing on the target."
How it works, in plain words first
eBPF lets you add small programs to a running Linux kernel. OpenAI describes it as "a Linux technology that allows small programs to run at specific points inside the operating system." Isovalent's comparison is a good one: it makes the operating system programmable "in the same way JavaScript made the web browser programmable without needing to update or restart the browser." The kernel checks, or "verifies", every such program before it runs, "so that this flexibility never comes at the cost of safety or security."
That power is also the risk. If root can load BPF, the docs note, an attacker who gets root can load BPF too: to hide, to read kernel memory, or to detach your shield. So Shirudo's first job is to lock the door it uses. When a target boots, shirudo init runs early, before other workloads start. From then on the kernel accepts a BPF program from userspace only inside a loader signed with the operator's key, checked against a sealed keyring. Root without that key cannot load unsigned BPF, detach the enforcement or change Shirudo's state.
Shields travel by pull, not push. The operator builds and signs a shield, then publishes it to an OCI registry, the same kind of registry that stores container images. Each target pulls new shields on a systemd timer, by default about once a minute. Nothing on a target listens for connections, and there is no daemon. The registry is not trusted either: it can hold back or replay what was published, but it "cannot produce an index, a tree or a upatch that passes the target's signature checks."
Every change is on record. Each load and each unload extends a register in the target's TPM, a security chip that can sign what it has recorded. The operator later asks for that record, signed by the TPM, and checks it on their own machine against the shields they shipped.
As of Nov 25, 2026 · Source: Shirudo docs, How it works and What is shirudo
What a shield looks like
A shield starts as ordinary BPF C, "often a few lines that refuse the call a kernel fix closes." The docs' advice is to start from the commit that fixes the bug, not from the CVE text, because the fix says exactly which inputs are dangerous, and that condition becomes the shield's test.
Their tutorial takes CVE-2026-63984, an overflow in the kernel's IPv6 RPL routing header code. The kernel fix changes one bound, from (n + 1) > 255 to (n + 1) > 127. The shield attaches to the function that overflows and applies the same test:
SEC("fentry/ipv6_rpl_srh_decompress")
int BPF_PROG(cve_2026_63984_rpl, struct ipv6_rpl_sr_hdr *outhdr,
const struct ipv6_rpl_sr_hdr *inhdr,
const struct in6_addr *daddr, unsigned char n)
{
count_event(&activity);
if ((__u32)n + 1 > 127)
count_event(&hits);
return 0;
}This one records rather than refuses: it counts every call, and separately the calls the fix would reject. The tutorial chose that because the kernel only lets a program change a function's result at certain points, and these functions are not among them. Refusing would have meant a larger shield that drops such packets earlier, at IPv6 pre-routing. That is the real design choice a shield author makes: where the dangerous path can be cut, and whether to block it, replace it or only watch it. Isovalent names the same three options: a shield "can block the path a vulnerability needs, replace the vulnerable code with fixed code, or add the visibility needed to detect an attack."
The four capabilities, and what each means today
OpenAI's post names four capabilities. The right-hand column is what the docs show working, as of November 2026.
The worked example: Java4Shell on a running Elasticsearch
This is OpenAI's and Isovalent's account of their own controlled test. It is the example the launch is built on, so it is worth reading closely.
Java4Shell, in Isovalent's words, is "a recent vulnerability discovered in OpenJDK", and its shield guards Java's Base64 decoder. The team fed its details into the agent-driven Shirudo control plane, with Codex as the agent. Codex produced a shield written as Java bytecode, not eBPF, that adds a check on the Base64 input "to guard against the overwrite that is used to exploit the vulnerability."
They then ran Elasticsearch 9.5.5, watched the shield attach to the running Elasticsearch process, and attempted the exploit. "The exploitation was not successful," Isovalent writes, and the Elasticsearch logs recorded the blocked attempt. OpenAI sums it up the same way: the shield "rejected the malicious input, blocking the attack while Elasticsearch continued running." Isovalent's own judgment is careful: the shield "appears to be effective."
As of Nov 25, 2026 · Source: Isovalent, Cisco and OpenAI introduce Shirudo; OpenAI, OpenAI and Cisco introduce Shirudo
The docs ship a Base64 guard of the same kind, java-base64, for a flaw in the JDK's Base64 decoder (CVE-2026-114938 in their guide). Their test JDK is not itself vulnerable, so it refuses the crafted input on its own at first; with the shield loaded, the guard refuses it before the decoder sees it.
sh …/guarded-jvm.sh …/badDecoder.jar
badDecoder: no guard, the JDK refused: Last unit does not have enough valid bits
shirudo bpm tree append …/java-base64:1.0.0 --package-digest "$JAVA_DIGEST" …
sh …/guarded-jvm.sh …/badDecoder.jar
Base64 guard installed on java.util.Base64$Decoder.decode0
Base64 guard rejected candidate: length=66, padding=1, remainder=2, alphabet=standard
badDecoder: refused by the guard
Try it: the VM quickstart
The quickstart at docs.shirudo.dev is the way in. You build Shirudo from a checkout, boot a protected test target in a virtual machine, and take one test shield through its whole life: sign it on your machine, load it on the target, check with the target's TPM what it runs, and unload it. Your own machine plays the operator; the VM plays the target and boots the way a production target does.
What you need, as the quickstart lists it:
- A Linux machine on x86-64 or arm64 with KVM:
/dev/kvmmust be readable and writable. On a Mac, an Apple M3 or later with macOS 15 or later runs it inside a Lima VM. - A locked-memory limit of
unlimited(ulimit -l). Root is not needed on your machine. - To build Shirudo: clang and LLVM 23 with the BPF target, installed as
/usr/bin/clang, OpenSSL 3.5 or later, and the development files of libelf, zlib, libcurl, tpm2-tss and LuaJIT. - For the VM: QEMU, swtpm (a software TPM) and the packages the quickstart names, plus Docker or Podman to build the VM bundle, and
jqandopensslfor the last step. - Network access. The first boot downloads an Ubuntu cloud image, and the first run takes a while.
No Linux machine with KVM at hand? Isovalent runs a self-guided browser lab of the same ideas.
The shield you sign is a test one: it attaches to the kernel function do_nanosleep() and does nothing, which the docs call "a safe first load."
testing/vm/kernel-artifact.sh fetch
make
make shirudo-build
make -C testing vm VM_NAME=quickstart
[test-vm] booting bzImage with 4 CPUs and 4G memory
make -C testing vm-ssh VM_NAME=quickstart
cat /run/shirudo/bpffs/tamper
cat: /run/shirudo/bpffs/tamper: Permission denied
That last line is the point of the whole design. You are root on the target, and you still cannot open Shirudo's own state, because you do not have its runtime authority. The next shirudo status counts the attempt.
KEYS=/tmp/shirudo-test-vm-private-$(id -u)/operator-keys/keys
shirudo build testing/fixtures/basic.bpf.c --keys-dir "$KEYS" --vmlinux vendor/linux/vmlinux.h -o basic.upatch
wrote basic.upatch (insns=992 sig=4853 data=2400 sections=2 maps=0 progs=1 decoders=0 name=basic)
shirudo upatch load basic.upatch
upatch load: signed loader accepted, keyring 1025034781, 124 instructions
upatch load: basic loaded, 1 programs, keyring 1025034781
The kernel checked the loader's signature against the target's keyring before it accepted the load. Then Shirudo attached the program, pinned it, and extended the TPM register with the load.
shirudo attest verify --evidence="$EV" --nonce="$NONCE" …
OK nonce matches the request
OK quote: ECDSA signature by the attestation key
OK eventlog: 2 records replay to the certified value
OK state: register equals the expected value
NOTE event after boot: upatch_load basic
verdict: ok
Those checks prove three things, as the docs put it: the target's TPM signed the evidence for your nonce, the target's log replays to the value the TPM certified, and that value is the one you predicted from the shields you shipped.
Every command, in order
Here is the full sequence from the quickstart, from the root of your checkout. Lines marked "target" run in the root shell that vm-ssh opens; the rest run on your machine. Where you see <nonce>, paste the value echo "$NONCE" printed; <register-after-events> is the last line attest predict prints.
# operator: fetch the test kernel, build shirudo and its signing helper
testing/vm/kernel-artifact.sh fetch
make
make shirudo-build
export PATH="$PWD:$PWD/tools/shirudo-build:$PATH"
# operator: boot the test target, then open a root shell on it
make -C testing vm VM_NAME=quickstart
make -C testing vm-ssh VM_NAME=quickstart
# target: check enforcement
cd /workspace/shirudo
shirudo status
shirudo status --show-full
cat /run/shirudo/bpffs/tamper
# operator: build and sign the test shield and its unload directive
KEYS=/tmp/shirudo-test-vm-private-$(id -u)/operator-keys/keys
shirudo build testing/fixtures/basic.bpf.c --keys-dir "$KEYS" --vmlinux vendor/linux/vmlinux.h -o basic.upatch
shirudo upatch info basic.upatch
PAYLOAD=$(shirudo upatch info --json basic.upatch | jq -r .payload_sha256)
shirudo build --unload basic --payload-sha256 "$PAYLOAD" --keys-dir "$KEYS" -o basic.unload.upatch
# target: load it and list it
shirudo upatch load basic.upatch
shirudo upatch list
shirudo status --show-full
# operator: make a fresh nonce
NONCE=$(openssl rand -hex 32)
echo "$NONCE"
# target: ask the TPM for evidence that answers it
shirudo attest --nonce=<nonce> --output=/mnt/shirudo-out/ev.json
# operator: predict the register, then verify the evidence
EV=build/test-vm/vms/quickstart/result/ev.json
OWN=build/test-vm/host-bundle-bpf-next-verity/fixtures/own.der
shirudo attest predict --cert="$KEYS/cert.der" --cert="$OWN" --event=load:basic="$PAYLOAD"
shirudo attest verify --evidence="$EV" --nonce="$NONCE" --ak-name="$(jq -r .ak.name "$EV")" --expect-chain=<register-after-events>
# target: unload it, check it is gone, leave
shirudo upatch unload basic.unload.upatch
shirudo upatch list
exit
# operator: stop the VM, and remove its state when you are done
make -C testing vm-stop VM_NAME=quickstart
make -C testing vm-clean VM_NAME=quickstartThe unload is a signed artifact too, and it removes only the exact shield it was built for: if another payload is loaded under the same name, the target refuses it with payload_mismatch. After the unload the TPM register does not go back to its old value. It moves forward to a third one, so the record shows the load and the unload, and it only starts over when the TPM resets at the next boot.
After the quickstart, the docs go on to your first upatch, shipping one through a registry, and the live-patching guide that runs the Copy Fail and Base64 shields above against a local registry and a backend.
Who approves what
OpenAI's post is clear on the rule: "Once an operator approves the shield, it can be deployed while the service continues running," and "Security teams control what gets deployed." Isovalent's post adds that the rollout step "can be designed to be more or less autonomous, just like with any agentic workflow." So the amount of autonomy is your setting, not the project's.
In the code, approval has a concrete form: the signature. Nothing loads on a target that the holder of the signing key did not sign.
What a signature does not mean matters as much. The docs: a signature "shows who built the upatch, not that the upatch is correct." A signed shield does whatever its source does, within what the kernel's verifier allows, and that includes refusing calls and dropping packets. Their advice is direct: "Test it on a kernel like the target's before it ships." In the Plumbers talk, Isovalent's speakers said that for many of the mitigations an agent generated, a person still had to judge whether the shield cut away too much functionality.
A workable rule for a first pilot follows from that:
- Let the agent find, reproduce and draft. That is the work the demo gave it.
- Keep the signing key with a named person or a gated pipeline, not with the agent. Whoever holds the key is the approver.
- Test every shield against the exploit and the real workload, on the same kernel the targets run.
- Build the unload directive with the load, bound to its payload digest, so taking a shield back is one signed step.
What it needs, what it costs, where it stops
What a real target needs
This is the section to read before anyone promises a rollout date. As of November 2026:
- A development kernel. A target runs a bpf-next kernel with the signed-loader interface and a set of carried kernel patches. The docs: "shirudo has no compatibility mode and no fallback for an older kernel."
- A TPM 2.0 on every target. "There is no mode without one."
- A modern boot chain. systemd 256 or newer, a systemd initrd built by dracut, and in production a unified kernel image booted through systemd-stub.
- The right CPU. x86-64, arm64 and riscv64 are supported at different stages: CI tests x86-64, the test VM also runs on arm64, and no riscv64 target has booted yet.
What it costs
There is no price. Shirudo is an open-source project, not a product with a plan or a support contract.
The docs measured the cost on one test VM with a software TPM: a load or unload of a small shield took about half a second, 0.44 s of it the TPM step, and Shirudo's guards added 0.15 µs of BPF time to opening, reading and closing a file. The docs warn that other CPUs, kernels, disks and TPMs give other numbers, and that a firmware or discrete TPM can take hundreds of milliseconds for one of the steps it repeats every minute. They also warn that "a badly written upatch can slow the target down or use much of its memory," because Shirudo limits neither how often a shield's programs run nor the size of its maps.
The real cost is people: someone to build and run the patched kernel, someone to write or review each shield, a test machine that matches production, and a person who owns the key.
Where it stops
The docs list the limits themselves:
- It does not replace kernel updates. A shield covers the time until the machine runs a fixed kernel.
- It does not judge what a shield does. Whether a shield is a correct mitigation is its author's responsibility.
- It does not defend against a compromised kernel, BPF verifier, TPM or hardware. Root with a kernel exploit goes around every check made in that kernel, Shirudo's included.
- If
shirudo initfails at boot, the boot continues without enforcement, and onlyshirudo statusand attestation show it. - It has no daemon, no push channel and no fleet inventory, and it does not retain logs: its commands log through syslog, and keeping them is the job of journald.
What Shirudo is not
- Not a patch. It buys time. The fix still has to ship, and the docs' guides end by taking the shield back once the real update is rolled out.
- Not a finished product. The docs' FAQ, as of November 2026: "Is shirudo ready for production? Not yet. shirudo is pre-release and has no stable releases or supported release branches."
- Not proof against a class of attacks. The Java4Shell result is one controlled test of one shield against one exploit, as OpenAI and Isovalent describe it.
- Not an agent sandbox. A sandbox such as NVIDIA OpenShell limits what an agent may touch. Shirudo protects running code from an exploit, whoever sends it. The docs do list sandboxes for containers, Kubernetes Pods and LLM agents among the things upatches can build, but that is a use, not what the project is.
- Not a drop-in for an eBPF stack you already run. See the warning above.
Frequently asked questions
What is Shirudo?
An open-source runtime from OpenAI and Cisco, introduced on November 23, 2026, that loads signed eBPF shields into a running Linux machine to block an exploit's code path until the patch is rolled out. It is built by Cisco's Isovalent team and licensed under BSD 2-Clause, with its BPF programs dual-licensed under BSD and GPL.
Is Shirudo ready for production?
Not yet. As of November 2026 its docs call it pre-release, with no stable releases or supported release branches.
Does a shield replace the patch?
No. A shield covers the time until the machine runs the fixed code. You still patch, and then you remove the shield with its signed unload directive.
Can root turn Shirudo off?
Not without the signing key: root cannot load unsigned BPF, detach the enforcement or change Shirudo's state. Root with a way into the kernel itself, such as a kernel exploit, goes around every check made in that kernel.
Do I need a TPM?
Yes, every target needs a TPM 2.0, and there is no mode without one. The quickstart uses a software TPM, swtpm, inside the test VM.
Can I try Shirudo on a Mac?
Shirudo runs only on Linux. On an Apple M3 or later with macOS 15 or later, the docs run the quickstart inside a Lima VM. Isovalent's browser lab needs no local setup.
Who wrote the shield in the Java4Shell example?
Codex. In OpenAI's and Isovalent's controlled test, Codex acted as the control plane, generated a shield in Java bytecode that checks Base64 input, and that shield blocked the exploit attempt against a running Elasticsearch 9.5.5.
Does Shirudo send data anywhere?
Only where you configure it to. With no registry, tree or telemetry endpoint set, it sends nothing, and if the registry is unreachable, loaded shields keep running.
Where to go next
A shield buys time after a flaw has shipped. The other half of the job is catching more flaws before they ship, which is where review comes in.
Best AI code review tools for small teams
CodeRabbit, Greptile, Cursor Bugbot, Codex, Claude Code and Codex Security: which reviewer catches what before it merges, and what each costs.
NVIDIA OpenShell
The other half of agent security: an open-source runtime that limits which files, networks and credentials an agent can reach.
Best AI sandbox security tools 2026
Vercel Sandbox, Docker Sandboxes, E2B and more, compared for running agent code safely.
OpenAI Codex CLI: first task and team settings
The agent behind the Java4Shell shield, set up for a team, with sandbox access and approvals set separately.
Claude Enterprise Frontier Safeguards
Launched the same day: how Anthropic hands the review of flagged activity to your own security team.
OpenAI and Cisco introduce Shirudo
The launch post: the problem, the four capabilities and the Java4Shell example.
Cisco and OpenAI introduce Shirudo
Isovalent's post: the Tetragon roots, the architecture and the agent loop behind the demo.
Shirudo quickstart
Build Shirudo, boot a protected test VM, and sign, load, verify and unload a test shield.
- Published
- Category
- Build








