# Shirudo: OpenAI and Cisco's eBPF shields for unpatched Linux

> OpenAI and Cisco released Shirudo on November 23, 2026. It is an open-source (BSD 2-Clause), pre-release runtime that loads signed eBPF programs, called shields or upatches, to block a vulnerable code path on a running Linux system without a restart, with TPM-backed attestation of what is loaded. Production targets need a patched kernel and TPM 2.0.

Published 2026-11-24 by the CodeBeast Team · https://codebeast.ai/blog/shirudo-linux-runtime-patching

OpenAI and Cisco have [released Shirudo](https://openai.com/index/introducing-shirudo/), an open-source runtime for protecting running Linux systems in the gap between a vulnerability being disclosed and a patch being rolled out. It loads small, signed eBPF programs that block the vulnerable code path without restarting the system, and it records what was loaded in a TPM so you can prove it later. It is pre-release and its production requirements are demanding, but it shows one way to handle the days or weeks your fleet stays exposed while a fix goes through testing.

## What Shirudo does

The [announcement](https://openai.com/index/introducing-shirudo/), published on November 23, 2026, describes temporary safeguards called **shields**. A shield attaches to a running system and blocks the code path an exploit needs, without a reboot or service restart. Operators can monitor what a proposed shield would do before enforcing it. Security teams decide what gets deployed.

The security model is the core of the design:

- Shields are **cryptographically signed** and verified before they load. The kernel's eBPF verifier and security controls also apply.
- A **TPM** keeps a verifiable record of shields being loaded or removed.
- In the [repository](https://github.com/shirudo-dev/shirudo), BPF patch loads and unloads go through loaders that the kernel verifies against a sealed `.bpf` keyring. Each change to the loaded set extends a per-boot TPM register.

The docs mostly call these patches **upatches**, and they come in two kinds. BPF upatches act in the kernel, and **Java upatches** are verified in userspace.

Shirudo is licensed under **BSD 2-Clause**, with its BPF programs dual-licensed BSD and GPL.

## The Java4Shell example

The announcement gives one worked example. For the vulnerability it calls Java4Shell, the team used OpenAI's Codex to generate a shield that added an input check to Java's Base64 decoder. The shield was attached to a running Elasticsearch process, rejected the malicious input, and Elasticsearch kept running.

The announcement gives no CVE identifier for this vulnerability, and it is the only one named. The example does show the intended workflow: a model drafts a narrow mitigation, a person reviews and signs it, and it is deployed as a temporary measure until the real fix arrives.

## What you need to run it

The project is clear that it is **pre-release**, with `main` as the development branch. Release packages are published on GitHub Releases with an SPDX SBOM.

For production targets, the README says you need "a Linux kernel with the signed-loader ABI and shirudo's kernel patches, plus a TPM 2.0". No kernel version or supported distributions are listed. So you can't install a package on an existing Ubuntu or RHEL fleet and start loading shields. You need a kernel built with Shirudo's patches.

CI runs all test tiers on x86-64 and host tests on arm64. riscv64 validation is pending, and the operator and target machines can use different architectures.

## Trying the quickstart

The [quickstart](https://docs.shirudo.dev/start/quickstart.html) boots a protected test VM with a software TPM and walks one upatch through signing, loading, attestation and unloading. The host needs Linux on x86-64 or arm64 with read and write access to `/dev/kvm`, and `ulimit -l` set to `unlimited`. Root isn't required. The build needs clang and LLVM 23 with the BPF target, plus development files for OpenSSL 3.5+, libelf, zlib, libcurl 7.75+, tpm2-tss and LuaJIT. On a Mac, the docs suggest running a Lima VM as the Linux host.

The core loop from the quickstart, abridged. First, build the tools and boot the test VM:

```bash
testing/vm/kernel-artifact.sh fetch
make && make shirudo-build
export PATH="$PWD:$PWD/tools/shirudo-build:$PATH"
make -C testing vm VM_NAME=quickstart
```

On the operator side, build and sign a test upatch, plus a matching unload directive:

```bash
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
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
```

Then, on the target:

```bash
shirudo upatch load basic.upatch
shirudo upatch list
shirudo status --show-full
shirudo upatch unload basic.unload.upatch
```

`shirudo build` compiles the BPF source with clang against the kernel's types and wraps it in a loader. The helper then signs the loader with the operator's **ML-DSA-87** key, a post-quantum signature scheme. Signing code stays in the helper and never reaches the target. Unloads are signed too, and each names the payload it removes, so the target refuses a mismatched unload.

For monitoring, `shirudo status --json` gives a verdict that scripts can read, and `--check` makes the command exit with 1 if the verdict is `tampered`. `shirudo attest` produces TPM-signed evidence bound to a nonce, and `shirudo attest verify` checks it against the expected register value. The quickstart notes that it does not pin the attestation key, so the evidence proves nothing about which TPM signed it until you follow the docs' "Attest a target" guide.

## Should you use it?

Probably not in production yet. It is pre-release, it needs a patched kernel, and the docs don't list supported distributions. For most teams, the practical response to a new CVE is still the usual one: patch quickly, as we covered for [nginx](/blog/nginx2root-nginx-vulnerabilities) and [Ghostscript](/blog/ghostscript-upload2shell-vulnerability).

It is worth following if you:

- Run long-lived services where restarts are expensive, and patch windows lag disclosure by weeks.
- Already use eBPF for observability or security and have kernel build capability.
- Want auditable evidence of which mitigations were active on which host and when.

The open questions are about operations. Who writes and reviews shields when a CVE drops? How do you test that a shield blocks the exploit without breaking legitimate traffic? How do you make sure each shield is removed once the real patch ships? The announcement mentions observing a shield before enforcing it, but the quickstart covers enforcement only, so check the backend guides for how that works.

OpenAI says a technical walkthrough was given at Linux Plumbers Conference, and a deep-dive webinar is scheduled for December 15.

## Sources

- [OpenAI: Introducing Shirudo](https://openai.com/index/introducing-shirudo/)
- [shirudo-dev/shirudo on GitHub](https://github.com/shirudo-dev/shirudo)
- [Shirudo quickstart](https://docs.shirudo.dev/start/quickstart.html)

## FAQ

### What is Shirudo?

Shirudo is an open-source runtime from OpenAI and Cisco, released on November 23, 2026, for protecting running Linux systems while patches are rolled out. It loads signed eBPF programs, called shields or upatches, that block a vulnerable code path without a restart, and it records loads and unloads in a TPM for attestation.

### Is Shirudo ready for production?

The project describes itself as pre-release. Production targets need a Linux kernel with Shirudo's kernel patches and signed-loader ABI, plus a TPM 2.0, and the README lists no supported distributions. The quickstart lets you try it in a local test VM with a software TPM.

### Does Shirudo replace patching?

No. Shields are described as temporary safeguards for the period while a patch is being tested and deployed. You still need to apply the real fix and then remove the shield with a signed unload directive.

### What license is Shirudo under?

Shirudo is licensed under BSD 2-Clause. Its BPF programs are dual-licensed under BSD and GPL.
