What Is Shirudo and How Does It Work?

Necco Ceresani
Necco Ceresani
·14 min read

Fifteen years building engineering platforms, currently focused on advanced AI infrastructure at yeet. I love turning the deeply complex topics into something everyone can understand. I relate deeply with the core yeet philosophy that you can just build things.

Last updated: November 2026

Quick answer. Shirudo is an open-source eBPF runtime from OpenAI and Cisco, announced on 23 November 2026, that mitigates vulnerabilities on running Linux hosts without waiting for a patch or a restart. It works by loading cryptographically signed BPF programs, called shields in the announcement and upatches in the repository, at kernel hooks or inside a running application. Its security model is unusually strong: only signed programs load, every load extends a TPM register, and the resulting record is verifiable offline. That model has a prerequisite. The documentation states a target needs "a bpf-next development kernel with the signed BPF loader interface and the BPF LSM", the project's own unmerged kernel patches, and a TPM 2.0, with "no unmeasured mode." No general-purpose distribution ships that kernel today, and the project calls itself "pre-release" with no named production users. So the teams with the most urgent need for live mitigation, those running vendor appliances and unpatchable PHP on stock kernels, are the teams least able to run it. PHP2Shell shows the gap precisely, because Shirudo's own PHP package says it does not close the hole.

I build eBPF tooling at yeet. Shirudo is the most serious thing to happen to host-based mitigation in years and I would rather describe it accurately than score points off it. The interesting question is not whether it works. It is who can run it in the window where it matters, and what the people outside that set should do in the meantime.

What is Shirudo?

An open-source runtime, announced by OpenAI and Cisco on 23 November 2026, that loads signed eBPF programs onto running Linux hosts to block a vulnerability's path before the patch is installed. OpenAI describes it as "an open-source runtime that helps teams protect Linux systems while they roll out patches".

The unit of deployment has two names depending on where you read. The announcement calls it a shield; the repository calls it a upatch, short for micropatch. It is a BPF program attached at a kernel hook or inside a running application, built and signed on an operator machine, pushed to an OCI registry and pulled by the target.

The demonstration was a Codex-written guard on a Java Base64 decoder that blocked an exploit against a running Elasticsearch, with no restart. That is a real capability and the agent-written part is not the hard bit. The hard bit is the trust model underneath, which is the most rigorous thing in the project.

It is genuinely open source, under the BSD 2-Clause licence with BPF programs dual-licensed BSD/GPL. The repository is public, carries over 1,800 commits, and its most active contributors are kernel BPF maintainers rather than a product team, which is visible in the engineering.

How does Shirudo work?

An operator builds and signs a mitigation on their own machine, pushes it to an OCI registry, and targets pull it; the target's kernel verifies the signature before anything loads. There is no daemon, no push channel and no fleet inventory, which is a deliberate design choice rather than a missing feature.

The flow runs in five steps:

  1. Author. A mitigation is BPF C, or a Java agent, describing what to block and where. In the launch demo an agent wrote it, but nothing requires that.
  2. Build and sign. The operator machine compiles it and signs it with a key the targets trust. Packages ship with an SBOM in SPDX format.
  3. Publish. The signed package goes to an OCI registry, the same distribution path container images already use.
  4. Pull and verify. The target runs a one-shot command to pull the package. The kernel checks the signature against a sealed .bpf keyring before the loader runs.
  5. Measure. Each load or unload extends a per-boot TPM register, so the set of running mitigations can be attested offline afterwards.

Attachment happens at one of several hook types, including fentry/fexit, fmod_ret, LSM hooks, tracepoints, kprobes and uprobes. Unloading is itself a signed artifact naming the payload digest, so removing a mitigation is as controlled as adding one and cannot be forged by a compromised host.

The property that follows from all this is the interesting one. The repository states that after boot-time initialization "it restricts BPF program loads from userspace to signed loaders", which means that on an enforcing target, root alone is not enough to load BPF. The FAQ is explicit: root "cannot load unsigned BPF, detach the enforcement or change shirudo's state" without the signing key.

Can I run Shirudo today?

On a test machine yes, on a production fleet almost certainly not. The blocker is not maturity, which time fixes on its own, but a kernel interface that does not exist outside the project's own patches.

For evaluation there is a straightforward path. The repository ships a local test VM using a software TPM, and the quickstart states it "boots the way a production target does and enforces the same policy", differing only in that QEMU starts the kernel directly so nothing measures the boot phases into PCR 11. You can try the whole workflow this afternoon on a laptop.

Production is the different answer. A target needs a bpf-next development kernel carrying patches that are not merged upstream, plus a TPM 2.0, and the documentation states there is "no unmeasured mode" and no fallback for an older kernel. No general-purpose distribution ships that kernel, so unless you build and maintain your own kernels, the answer today is no. The sequence that changes it is long: the signed-loader interface has to merge upstream, reach an LTS kernel, then reach distributions.

Is there a Shirudo alternative for blocking CVEs today?

Yes. yeet covers both layers: signed eBPF mitigations at kernel hooks or in-process, the same shape Shirudo loads, plus a packet VM at XDP that refuses the exploit request before the vulnerable code ever parses it. The difference that matters operationally is that it runs on the kernel you are already running.

A rule compiles to bytecode and runs in an eBPF interpreter the kernel verified once, on a stock kernel from 6.1 onward, with no TPM, no patched kernel and no change to the boot chain. The limits belong here too: a request-layer rule matches patterns rather than understanding the application, it needs the request in cleartext so it sits behind TLS termination, and a novel encoding of the same attack is a rule you have not written yet. That is what the containment layer behind it is for.

Side by side:

Shirudoyeet programmable firewall
What it isSigned eBPF mitigations loaded at kernel hooks or in-processSigned eBPF mitigations loaded at kernel hooks or in-process, plus a packet VM at XDP running rule bytecode on the request path
Where it actsAt the vulnerable code path, after the request is parsedBoth: on the wire before the request is parsed, and at the vulnerable code path
OutcomeAttacker code runs, its consequences are constrainedThe exploit request is refused before the code runs, with containment behind it
Kernelbpf-next development kernel plus unmerged patchesStock kernel, 6.1 onward
HardwareTPM 2.0 required, no unmeasured modeNone
Boot chainMeasured boot, dm-verity, PCR bindingUnchanged
Changing a ruleRebuild, re-sign, push to registry, pullCompile and hot-swap into the running VM, 3 to 6 ms
Available on production fleetsNot yet, pending the kernel interface upstreamToday

The two layers compose rather than compete, and the argument for running both is the same whichever product provides them. A request filter is the cheaper and earlier control, refusing the exploit before the vulnerable code runs. Containment is the better backstop, because it does not depend on recognising the attack in the first place. The question is not which layer to pick but what your kernel will let you deploy, and on a stock distribution kernel today that answer is one of these two columns.

What does Shirudo require from a host?

A development kernel, the project's own kernel patches, and a TPM. These are not deployment preferences that a future release might relax, they are the foundation the security model rests on, and the documentation is admirably direct about all three. Every guarantee the project makes about what is running on a host traces back to one of them, which is why none can simply be made optional.

The requirements, quoted from the project's own documentation:

RequirementWhat the documentation saysWhy it exists
Kernel"A target needs a bpf-next development kernel with the signed BPF loader interface and the BPF LSM"Restricts BPF loads to signed loaders
Kernel patchesThe carried kernel patches, none of which are merged upstreamThe signed-loader ABI does not exist in mainline
TPM"Every target needs a TPM 2.0 with an active SHA-256 PCR bank. There is no unmeasured mode."Every load extends a per-boot register, making the record verifiable
Boot chainMeasured boot, with systemd binding to PCR 11 and configuration from dm-verity imagesThe measurement is only meaningful if the boot chain is too

None of this is a criticism. Signing, measurement and an offline-verifiable record are exactly what host-based security has been missing, and the project is explicit that it is "pre-release". The point is narrower: this is a property of the design rather than a packaging gap, so it will not be resolved by waiting for a release. The signed-loader interface has to merge upstream, then reach an LTS kernel, then reach distributions.

Is Shirudo safe to run?

The runtime itself is held to a higher standard of verification than almost any shipping security software, and the project is careful to state what that verification does not cover. Both halves matter, because the second is where operational risk actually lives.

On the verification side, the repository carries Lean 4 and CBMC proofs with a dedicated CI job. The documentation draws the distinction precisely: "CBMC proves properties of the C itself" while "Lean 4 proves properties of a model of an algorithm", and a Lean proof "holds for every input, but of the model" and "carries over to the C as far as the model matches the C". The stated limits are equally direct: a proof "says nothing about the kernel, the compiler's code generation, time, or other threads", and "it holds only within its bounds".

The more important limit is about mitigations rather than the runtime. The threat model states plainly that "None of them says that a upatch is correct: shirudo establishes provenance, not correctness", and the documentation index says the platform "does not understand what a upatch does". The signature proves who built a mitigation and that nobody altered it. Whether it actually blocks the vulnerability, and whether it breaks the application while doing so, is the author's problem. The threat model is blunt about the consequence: "A upatch does what its author wrote, disabling enforcement included."

So the honest answer has two parts. The loading and attestation machinery is rigorously built and formally checked in places. The mitigations it loads carry exactly as much assurance as whoever wrote and signed them, which in an agent-written workflow is a question worth asking out loud.

Is anyone using Shirudo in production?

No named production users have been announced, and the project's own answer to the readiness question is "Not yet." That is the expected state for software announced in November 2026, and it should be read as a maturity statement rather than a criticism.

The FAQ says Shirudo "is pre-release and has no stable releases or supported release branches, and the architectures are not all at the same stage", noting that "no riscv64 target has booted yet". The README confirms CI runs all test tiers on x86-64 and host tests on arm64, with riscv64 target validation pending.

Interest, as distinct from deployment, is substantial and moving fast. The repository passed 1,300 stars and 115 forks within two days of launch, with 41 open issues and 21 open pull requests. The contributor list is the more meaningful signal: the most active committers are upstream kernel BPF maintainers, which is why the kernel-side design is as coherent as it is. What has not happened yet is anyone running it on a fleet, which the kernel requirement largely explains.

Why can appliance and vendor-managed fleets not run measured boot?

Because urgency and infrastructure maturity are inversely correlated in practice. The fleets that patch slowly are slow for structural reasons, not from negligence, and those same structural reasons are what rule out running a development kernel with a measured boot chain. The constraint that produces the exposure is the constraint that blocks the remedy, which is what makes this a design problem rather than an adoption problem.

Consider who was actually exposed during PHP2Shell. NCSC-NL's inventory tracked 976 products containing PHP on 18 November 2026, of which 211 were still vulnerable. Those are appliances and management interfaces: devices where you do not choose the kernel, cannot install a TPM-backed boot chain, and in many cases cannot upgrade PHP yourself because the vendor ships the runtime inside the product. Unit 42 reported PHP2Shell "being actively exploited against PAN-OS management interfaces that are exposed to the internet". A security appliance is the exact machine where you cannot roll a bpf-next kernel.

The same holds for the long tail of ordinary estates: a Debian or RHEL fleet on a vendor kernel, hosts in a cloud whose images you do not control, an environment where changing the boot chain means a change-advisory board and a quarter of lead time. These are not teams who lack discipline. They are teams whose constraints are the reason the patch is slow in the first place, which is precisely the condition live mitigation exists to address.

A commenter on Hacker News put the trade-off more bluntly than I would: they noted that organisations already running TPM 2.0 with UKI and measured boot are generally the ones who can already patch fast. The capability is most available where it is least needed.

What does Shirudo not cover?

The vulnerability itself. A Shirudo mitigation constrains what the attacker's code can do once it is running, which is a real control, but the code still runs. The project states this about its own work rather than leaving a fixes field to imply otherwise, and the clearest example is its PHP package.

Shirudo ships an app-sandbox package whose Beefile lists fixes = ["CVE-2026-109618", "CVE-2026-109619"], the two PHP2Shell CVEs. The README describes the sandboxes as keeping a web application from writing the PHP files it serves, from starting other programs, and from reaching beyond the networks it names. Then it says:

The sandboxes do not close the hole in PHP: a request can still run the attacker's code in the application.

The next sentence is "Upgrade PHP as well." That is the correct engineering description of a containment control, and describing containment as a fix is how security tooling loses credibility, so stating the limit plainly deserves credit.

It also draws the distinction that organises this whole problem. There are two places to act, and they are not interchangeable:

LayerWhat actsWhat it stopsWhat still happens
The request on the wireA filter reading bytes before the application parses themThe exploit request never reaches the vulnerable codeNothing, if the pattern matches
The process after exploitationA sandbox restricting exec, network and file writesLateral movement, dropped web shells, outbound connectionsAttacker code has already executed in the application

Shirudo operates at the second layer only. That layer is the better backstop against an attack nobody anticipated, since containment does not depend on recognising the attack, and it is worth having. It is not a fix, and the difference matters to anyone counting a sandboxed host as remediated on a compliance report. Covering the first layer as well is what turns containment into prevention.

Which mitigation can run on your kernel before the next CVE window opens?

Shirudo's trust model is the right destination and I would like the industry to end up there. Signed mitigations, hardware-rooted measurement and an offline-verifiable record of every change are precisely what host-based security has lacked, and having OpenAI and Cisco put that stake in the ground raises the floor for everyone working in this space, yeet included.

The gap is one of timing, not direction. The kernel interface it depends on is not upstream, which puts a general-purpose distribution carrying it some years out. Meanwhile PHP2Shell was exploited four days before the patch existed, against appliances whose kernels nobody can change. For those hosts the question is not which mitigation model is more rigorous. It is which one can be running before the next window opens, and that means both layers on the kernel you already have, rather than either layer on a kernel you cannot deploy.

Frequently asked questions

What is Shirudo?

An open-source runtime from OpenAI and Cisco, announced 23 November 2026, that loads signed eBPF programs onto running Linux hosts to mitigate vulnerabilities before a patch is installed. OpenAI calls the unit a shield while the repository calls it a upatch, so the two names refer to the same thing. Every load and unload extends a per-boot TPM register, which produces a record of what is running that can be verified offline rather than taken on trust.

What kernel does Shirudo require?

A bpf-next development kernel carrying the signed BPF loader interface, the BPF LSM, and the project's own kernel patches, which are not merged upstream. The documentation states there is no compatibility mode or fallback for an older kernel, so no current general-purpose distribution kernel can run it.

Does Shirudo need a TPM?

Yes. The documentation states "Every target needs a TPM 2.0 with an active SHA-256 PCR bank. There is no unmeasured mode." It adds that init refuses a TPM whose SHA-256 bank lacks PCR 9 or PCR 11, so a partially configured TPM will not do either. The TPM is what makes the record of loaded mitigations verifiable in the first place, which makes it integral to the design rather than an optional hardening step.

Is Shirudo production ready?

The repository states "shirudo is pre-release". Its FAQ answers the readiness question directly in the negative. That is a statement about maturity rather than quality, and the two should not be confused here: the project carries Lean 4 and CBMC proofs over its runtime and models, which is considerably more formal verification than most shipping security software ever receives. The limits on adoption today are the kernel and hardware requirements, not the engineering.

Is Shirudo open source?

Yes. It is published under the BSD 2-Clause licence, with BPF programs dual-licensed BSD/GPL, in a public repository at github.com/shirudo-dev/shirudo. Packages ship with an SBOM in SPDX format. The most active contributors are upstream kernel BPF maintainers rather than a dedicated product team, which shows in how closely the design tracks kernel mechanisms.

Is Shirudo safe?

The runtime is verified unusually carefully; the mitigations it loads are not verified at all. The repository carries Lean 4 and CBMC proofs in CI, though the documentation is clear that a proof "says nothing about the kernel, the compiler's code generation, time, or other threads". For the mitigations themselves the threat model is explicit: "shirudo establishes provenance, not correctness", and "A upatch does what its author wrote, disabling enforcement included." A signature tells you who wrote a mitigation, not whether it works or whether it breaks your application.

Is Shirudo a Linux firewall?

No. It is a vulnerability mitigation runtime, not a firewall, and nothing in the announcement or the repository README mentions a firewall, a packet or XDP. Its hook types include fentry/fexit, LSM hooks, tracepoints and probes, plus cgroup_skb and an IPv6-only netfilter hook, but it ships no traffic rule language, no L7 decoding and no packet capture. It acts on the code path a request reaches, not on the request.

Can you try Shirudo without a TPM and a patched kernel?

For evaluation, yes. The repository ships a local test VM that uses a software TPM, and the quickstart states it "boots the way a production target does and enforces the same policy", with the single difference that QEMU starts the kernel directly so nothing measures the boot phases into PCR 11. Production targets still require real hardware and the patched kernel; the FAQ states "There is no mode without one" regarding the TPM.

Does Shirudo fix PHP2Shell?

No, and it says so. Its app-sandbox package lists both PHP2Shell CVEs in a fixes field, but the README states "The sandboxes do not close the hole in PHP: a request can still run the attacker's code in the application", and advises upgrading PHP as well. The package contains what the attacker's code can do next rather than preventing its execution.

How does Shirudo work, step by step?

An operator authors a mitigation as BPF C or a Java agent, compiles and signs it on their own machine, and pushes it to an OCI registry. Targets pull it with a one-shot command, and the kernel verifies the signature against a sealed keyring before the loader runs. Each load or unload extends a per-boot TPM register, so the running set can be attested offline. There is no daemon, no push channel and no fleet inventory; unloading is itself a signed artifact naming the payload digest.

Is anyone using Shirudo in production?

No production users have been named, and the project's FAQ answers the readiness question "Not yet", adding that it "is pre-release and has no stable releases or supported release branches". Interest is moving quickly: the repository passed 1,300 stars and 115 forks within two days of the 23 November 2026 launch. Deployment is a different matter, since the bpf-next kernel requirement rules out general-purpose distributions today.

Can Shirudo run alongside other eBPF tools?

Not without signing them. After boot-time initialization it restricts BPF program loads from userspace to signed loaders, so on an enforcing target only programs signed by the operator are able to load at all. Its FAQ notes that tools like Cilium, Falco and bpftrace cannot run as they are, and that some systemd BPF settings quietly stop applying, which is worth knowing before adoption if your hosts already run eBPF tooling.

Can I run Shirudo today?

For evaluation yes, on a production fleet almost certainly not. The repository ships a local test VM with a software TPM that enforces the same policy as a production target. Production needs a bpf-next development kernel with unmerged patches and a TPM 2.0, which no general-purpose distribution ships, so unless you build your own kernels the answer today is no.

Is there a Shirudo alternative for blocking CVEs today?

yeet covers both layers: signed eBPF mitigations at kernel hooks or in-process, and a packet VM at XDP that refuses the exploit request before the vulnerable code parses it. It runs on stock kernels from 6.1 onward with no TPM, no patched kernel and no boot-chain change, which is the operational difference. The request-layer rule matches patterns rather than understanding the application and needs the request in cleartext, so the containment layer sits behind it as the backstop.

Can a firewall rule block PHP2Shell before PHP parses the request?

Yes, because both exploits carry distinguishable cleartext patterns in the first kilobytes of the request body. A filter matching multipart/form-data together with PHP_SESSION_UPLOAD_PROGRESS, or a chunked multipart body with no content length, refuses the request before the interpreter runs. The rule needs the request in cleartext, so it sits behind TLS termination.

What is the difference between stopping an exploit and containing the process?

Stopping means the vulnerable code never runs, which is what a request filter does when it refuses the exploit at the wire. Containing means the code runs and its consequences are limited, which is what a sandbox does by restricting what the compromised process may execute, write or connect to. Containment survives attacks you did not anticipate; stopping avoids the compromise entirely.

What can you deploy today on a stock kernel?

A filter on the request path runs on stock kernels from 6.1 onward with no TPM, no kernel patches and no change to the boot chain, so it can be deployed inside a maintenance window rather than a hardware refresh cycle. That covers the appliances and vendor-managed hosts where the kernel is not yours to change, which is exactly where PHP2Shell's remaining exposure was concentrated according to the NCSC-NL inventory.

Sources

Related resources