New video: AI Coded This Anime Fight, Plus 12 More Prompt-Made Films →
Muddaser

Shirudo Setup Guide: Test OpenAI & Cisco’s Linux eBPF Shield Safely

Direct answer: Shirudo is a new open-source, eBPF-based Linux security platform from OpenAI and Cisco. It can load signed temporary protections—called upatches—into running systems while a permanent patch is tested. However, Shirudo is pre-release, not production-ready, and not a replacement for normal patching. The safest way to try it now is the official browser lab or the project’s isolated KVM test VM.[1][2][7]

Shirudo at a glance

  • Best first step: use the browser-based Isovalent lab.
  • Local test: Linux x86-64 or arm64 host with KVM, QEMU, a software TPM and a long dependency list.
  • Production use today: no—the project has no stable release or supported release branch.
  • Permanent fix: still install the vendor’s real patch; a Shirudo upatch only covers the waiting period.
  • Main trust controls: signed loaders, a sealed BPF keyring, Linux’s eBPF verifier and TPM-backed measurements.
  • License: BSD 2-Clause; BPF programs are dual-licensed BSD/GPL.[1][2][7]

Safety warning: Treat every upatch as privileged security code. Build and test only on systems you own or are explicitly authorized to assess. Do not copy a demo shield onto a production host.

What is Shirudo?

Shirudo is designed to reduce the dangerous gap between learning about a vulnerability and completing a tested patch rollout. Instead of restarting a service immediately or blocking a broad Linux operation, an operator can evaluate a narrow shield that targets the vulnerable behavior, approve it and load it while the service keeps running.[1]

The project uses eBPF for kernel-level controls and also supports application-oriented mitigations such as Java upatches. On the operator machine, a shield is compiled and signed. Targets can receive signed packages through an OCI registry, verify them and record changes in a TPM-backed measurement chain.[2][5]

OpenAI and Cisco demonstrated the concept in a controlled Java4Shell test. A Codex-assisted workflow generated a Java mitigation, attached it to a running Elasticsearch instance and rejected the tested exploit input without stopping Elasticsearch. This was a vendor-controlled demonstration—not proof that every future vulnerability can be safely shielded.[1][5]

What Shirudo does—and does not do

It can help with

  • Loading narrowly targeted, signed BPF or application protections.
  • Keeping a service running while the permanent fix passes compatibility testing.
  • Recording upatch state changes through TPM measurements.
  • Producing evidence that an operator can verify separately.
  • Observing process, network and privilege activity through included packages.[1][2]

It does not

  • Replace kernel, library or application updates.
  • Prove that an authorized upatch is logically correct or safe.
  • Run on an ordinary production kernel without Shirudo’s required signed-loader ABI and kernel patches.
  • Provide a compatibility fallback when required kernel features are absent.
  • Make a compromised kernel, TPM, operator host or signing key trustworthy.[6][7]

Choose the right test path

Option 1: Browser lab—recommended for most people

Use the official self-guided lab linked from the Shirudo quickstart. It avoids changing your workstation’s kernel and is the fastest way to understand package verification, TPM measurement and operator-side evidence checks.[1][3]

Option 2: Local KVM test VM—advanced users

Use this if you need to inspect the source, build the CLI and run the complete load/verify/unload lifecycle. The official VM uses a test kernel and software TPM. It is intentionally separate from production deployment.[3]

Option 3: Production target—not recommended yet

The project explicitly says it is pre-release. A real target currently requires a patched bpf-next kernel, TPM 2.0, a suitable measured boot design and exact userspace, cryptographic and build requirements. Wait for a stable release and perform a formal security review before considering production.[2][6][7]

Prerequisites for the local VM

Before cloning the repository, verify the host can meet these requirements:

  • Linux on x86-64 or arm64.
  • Read/write access to /dev/kvm.
  • Unlimited locked memory (ulimit -l).
  • OpenSSL 3.5 or newer.
  • Clang and LLVM 23 with the BPF target.
  • Docker or Podman.
  • QEMU, swtpm, TPM tools, dracut, libguestfs, cloud-image tools and the listed development libraries.
  • curl, Python 3, dpkg-deb, jq, make and pkg-config.
  • Network access for the Ubuntu cloud image and pinned test-kernel artifact.[3]

Run these non-destructive checks first:

uname -m
ls -l /dev/kvm
ulimit -l
openssl version
clang --version

If a version or device check fails, stop and use the browser lab instead. Do not replace your host kernel merely to complete an experimental quickstart.

How to test Shirudo in an isolated VM

The following sequence summarizes the official quickstart. Read the live documentation before running it because the project is under active development.[3]

1. Clone and enter the repository

git clone https://github.com/shirudo-dev/shirudo.git
cd shirudo

For repeatable security testing, record the commit you tested:

git rev-parse HEAD

2. Fetch the pinned test kernel

testing/vm/kernel-artifact.sh fetch

The helper selects the pinned CI kernel bundle for your architecture and verifies its SHA-256 before staging it.[3]

3. Build Shirudo and its operator helper

make
make shirudo-build
export PATH="$PWD:$PWD/tools/shirudo-build:$PATH"

The separate operator helper performs compilation and signing; the signing component is not placed on the target.[3]

4. Boot the test VM

make -C testing vm VM_NAME=quickstart

The first run builds the target bundle, prepares the Ubuntu image and starts QEMU with a software TPM. The official example allocates four CPUs and 4 GB of memory.[3]

5. Connect to the target

make -C testing vm-ssh VM_NAME=quickstart

Inside the target shell:

cd /workspace/shirudo
shirudo status

Look for Status: ok and check that the listed conditions report OK. For automation, use shirudo status --check; the normal status command can exit successfully even when its verdict is not healthy.[3]

6. Build and sign the harmless example upatch

On the operator host:

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

The example attaches to do_nanosleep() and returns without changing behavior. Inspect the reported name, payload digest, signature and sections before loading it.[3]

7. Load and verify it in the VM

Inside the target:

shirudo upatch load basic.upatch
shirudo upatch list
shirudo status --show-full

Confirm that one upatch is loaded, its status is successful and the TPM measurement chain has advanced. Do not treat the target’s status text alone as remote attestation; the full quickstart shows how to request evidence with a fresh nonce and verify it on the operator side.[3]

8. Unload and clean up

Build the signed unload directive as described in the official quickstart, unload the matching payload, then stop and remove the disposable VM state:

make -C testing vm-stop VM_NAME=quickstart
make -C testing vm-clean VM_NAME=quickstart

An unload is signed too. The measurement register moves forward to record both load and unload events; it does not simply return to its boot value.[3]

Production-readiness checklist

Do not move beyond a lab until every answer below is documented:

  • [ ] Is there a stable, supported release rather than the development branch?
  • [ ] Has your security team reviewed the project threat model and residual risks?
  • [ ] Is the exact target kernel build supported and reproducible?
  • [ ] Does shirudo init --check-only pass all pre-flight checks?
  • [ ] Is TPM 2.0 available through the required kernel interface?
  • [ ] Are Secure Boot, measured boot, the initrd and kernel command line configured as required?
  • [ ] Is the signing private key isolated from targets and protected on a trusted operator host?
  • [ ] Can you test the upatch against exploit reproducers and normal workload traffic?
  • [ ] Can you roll back the shield and deploy the permanent vendor patch?
  • [ ] Have you checked conflicts with existing BPF tools?

That last point matters: the official FAQ says Cilium, Falco and bpftrace cannot run unchanged on a Shirudo target because Shirudo admits only BPF loaded by signed loaders.[7]

A safer operational policy

If Shirudo later becomes suitable for your environment, use it as a temporary mitigation layer:

  1. Reproduce the vulnerability in an isolated environment.
  2. Build the narrowest possible shield.
  3. Review the source and signing chain manually.
  4. Test malicious and legitimate workload cases.
  5. Deploy to a canary target first.
  6. Verify TPM-backed evidence with a fresh nonce.
  7. Monitor application health and shield hit counts.
  8. Continue the permanent patch rollout.
  9. Remove the temporary shield after the fixed software is verified.
  10. Preserve an audit record of the load, verification and unload events.

Frequently asked questions

Is Shirudo ready for production?

No. The official repository and FAQ describe it as pre-release, with no stable releases or supported release branches.[2][7]

Does Shirudo patch Linux without a reboot?

It can load a signed temporary eBPF mitigation into a running supported target. That mitigation is not the permanent kernel or application patch.[1][7]

Does every target need a TPM?

Yes. The current requirements specify TPM 2.0 and state that there is no target mode without it.[6][7]

Can I try Shirudo without installing it locally?

Yes. The official quickstart links to an Isovalent browser lab.[1][3]

Can ordinary root disable Shirudo?

The design aims to stop root without the signing key from loading unsigned BPF or detaching enforcement. However, a kernel-level exploit or other trusted kernel code can bypass checks enforced by that kernel.[7]

Does Shirudo replace emergency patching?

No. Use it, if appropriate, only to reduce exposure while the real vendor fix is tested and deployed.[7]

Which architectures are supported?

The project lists x86-64, arm64 and riscv64 at different testing stages. The local test VM is documented for x86-64 and arm64; riscv64 target validation remains less mature.[2][6][7]

Is Shirudo free and open source?

Yes. The repository uses the BSD 2-Clause license, while its BPF programs are dual-licensed BSD/GPL.[1][2]

Bottom line

Shirudo is a technically significant attempt to make the patching gap less dangerous with signed, measurable live mitigations. Its practical value today is in controlled learning and evaluation—not production deployment. Start with the browser lab, use the isolated VM only if you can satisfy the dependencies, and keep permanent patching as the final objective.[1][3][7]

Sources

  1. OpenAI and Cisco introduce Shirudo
  2. Shirudo GitHub repository
  3. Shirudo VM quickstart
  4. Cisco and OpenAI introduce Shirudo – Isovalent
  5. Shirudo system requirements
  6. Shirudo FAQ


Leave a Comment