🔥 BLACK FRIDAY: 40% OFF every guide & bundle · auto-applied at checkout · 8 days left  Shop the bundles →Not sure? 60-sec quiz →

OpenAI Shirudo 2026: Block Linux Exploits Before You Can Patch

OpenAI Shirudo 2026: Block Linux Exploits Before You Can Patch - ailearningguides.com

Every Linux admin knows the worst stretch of a vulnerability’s life: the CVE is public, exploit code is on GitHub by lunch, and your patch is still days or weeks away. On November 23, OpenAI and Cisco released Shirudo, an open-source runtime built for that stretch. It loads small, signed “shields” into a running Linux system to block exploit behavior without a reboot. The timing matters because AI is closing the gap on the attacker side too. OpenAI’s own research pipeline produced 948 working Linux privilege-escalation exploits in a single experiment, so the time between disclosure and a working exploit is shrinking fast. This guide covers what OpenAI Shirudo Linux security actually does, what it needs to run, and what a small team on a VPS or WordPress server can realistically do with it this week.

Want the complete, hands-on version of this guide?Browse the Library →

What’s actually new with OpenAI Shirudo Linux security

Shirudo (Japanese for “shield”) is a BSD-2-Clause licensed security runtime. Its BPF programs are dual-licensed BSD/GPL, and the code lives at github.com/shirudo-dev/shirudo. Each protection is called a shield or “upatch,” and there are two kinds. BPF upatches hook into the kernel using eBPF. Java upatches are signed Java agents that guard application code inside the JVM. Shields ship as signed packages through an OCI registry. The kernel loads a shield only if its signature checks out against a sealed keyring, and it records every load or unload in a TPM register so you can prove afterward exactly what was running.

The AI part is in how shields get written. In the launch demo, OpenAI’s Codex acted as the control plane. It took in the vulnerability, reproduced the exploit, chose where to intervene, wrote the mitigation, and tested it, repeating until the fix held. The target was Elasticsearch 9.5.5, vulnerable to the “Java4Shell” bug. The resulting shield added an input check to Java’s Base64 decoder and attached to the running process. It blocked the exploit and the service stayed up. A human operator still approves every shield before it goes live. In Cisco’s words, the shield “only graduates to active blocking when the evidence says it’s safe, and it retires when the real patch lands.”

Cisco’s Isovalent team, which built the eBPF security tool Tetragon, calls Shirudo “a rewrite of Tetragon designed for agents.” Unlike Tetragon, it runs as a one-shot CLI with no permanent daemon, and every command takes and returns structured data that an AI agent can drive. Greg Brockman summed up the pitch: “finding a bug today doesn’t mean you can patch every system tomorrow.”

Why it matters

  • Pre-patch vulnerability protection becomes a product category. WAFs have done virtual patching for HTTP traffic for years. Shirudo does the same at the kernel and runtime level, where WAFs can’t reach.
  • Defenders get AI speed too. If AI can write an exploit in hours, defenders need to generate, test and deploy protections in hours as well. Shirudo is the first serious open-source attempt at that.
  • No reboot, no downtime. For a single-server WordPress shop, “reboot to patch the kernel” means an outage. Shields load into a live system.
  • Trust is built in, not bolted on. Signed loaders, TPM-backed records and offline-verifiable evidence (shirudo attest) mean root on the box can’t quietly load or remove shields without the operator’s signing key.
  • The hardware bar is high. Production use needs a patched bpf-next kernel and a TPM 2.0. Most $6/month VPS plans have neither, which limits what small teams can do today (see below).
  • It’s a bridge, not a replacement. Shields retire when the vendor patch lands. Your patching process matters as much as ever.

How to use it today

The repository labels Shirudo pre-release, and the docs state that it “has no compatibility mode and no fallback for an older kernel.” Your Ubuntu 24.04 droplet cannot run it in production. The practical path for an intermediate team: learn it in the official test VM now, and close the patch window with tools that already work on stock kernels.

  1. Check that your workstation can run the quickstart VM. You need an x86-64 or arm64 Linux host with KVM, OpenSSL 3.5 or newer, clang/LLVM 23, and an unlimited locked-memory limit. On a Mac, the docs point to a Lima VM.
    openssl version
    ulimit -l
    ls -l /dev/kvm
  2. Clone the repo, fetch the test kernel and build.
    git clone https://github.com/shirudo-dev/shirudo.git
    cd shirudo
    testing/vm/kernel-artifact.sh fetch
    make
    make shirudo-build
    export PATH="$PWD:$PWD/tools/shirudo-build:$PATH"
  3. Boot the test VM and SSH in. The first boot downloads an Ubuntu cloud image and uses a software TPM (swtpm).
    make -C testing vm VM_NAME=quickstart
    make -C testing vm-ssh VM_NAME=quickstart
    # inside the VM:
    cd /workspace/shirudo
    shirudo status --show-full
  4. Build and sign a shield on the operator side. This uses the sample BPF program that ships with the repo.
    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
  5. Load it on the target, list it, and later unload it.
    # on the target
    shirudo upatch load basic.upatch
    shirudo upatch list
    shirudo upatch unload basic.unload.upatch

    First build the unload package on the operator side with shirudo build --unload basic --payload-sha256 "$PAYLOAD" ..., as the quickstart shows. Unloading also requires a signed instruction, which is the whole point.

  6. Verify what’s running with the TPM. Auditors will care about this step.
    # operator
    NONCE=$(openssl rand -hex 32)
    # target
    shirudo attest --nonce=<nonce> --output=/mnt/shirudo-out/ev.json

    Then run shirudo attest verify on the operator machine against the evidence file. The quickstart lists the full flags.

  7. Use an AI agent to write shields, with guardrails. The repo includes AGENTS.md and agent skill folders, so Codex or another coding agent can work in the codebase. A prompt that matches the documented workflow:
    Read AGENTS.md and the upatch specification in this repo.
    Target: CVE-XXXX-XXXXX in [component, version].
    1. Reproduce the exploit inside the test VM only.
    2. Propose the narrowest hook point that blocks the exploit path.
    3. Write a BPF upatch, build it with shirudo build, load it in the VM.
    4. Re-run the exploit AND a normal-traffic test. Report both results.
    Do not sign with production keys. Stop for my approval before step 3.
  8. Close the window on your real servers today. While Shirudo matures, AI Linux server hardening on a normal VPS comes down to three moves: turn on automatic security updates, turn on rebootless kernel patching where available, and put virtual patching in front of WordPress with a WAF.
    # Ubuntu: automatic security updates
    sudo apt install unattended-upgrades
    sudo dpkg-reconfigure -plow unattended-upgrades
    
    # Ubuntu Pro (free for personal use on a few machines): kernel Livepatch
    sudo pro attach <your-token>
    sudo pro enable livepatch
    sudo canonical-livepatch status

    For WordPress, add a WAF rule set (Cloudflare, Wordfence, or ModSecurity with the OWASP CRS) to block plugin CVEs at the HTTP layer while you wait on the plugin author.

How it compares

Tool Layer Blocks before a patch? Runs on a stock VPS kernel? AI-generated protections Cost
Shirudo (OpenAI + Cisco) Kernel (eBPF) + JVM Yes, via signed shields No: needs a patched bpf-next kernel + TPM 2.0 Yes, designed for agents like Codex Free, open source
Tetragon (Isovalent/Cisco) Kernel (eBPF) Yes, via hand-written policies that can kill processes Yes, on modern kernels with BTF No, written by hand Free, open source
Canonical Livepatch Kernel No, it applies the real fix without a reboot Yes, on supported Ubuntu kernels No Free tier for personal use
WAF (Cloudflare, Wordfence, ModSecurity) HTTP Yes, virtual patching for web exploits Yes, no kernel requirements Some vendors use ML for detection Free to paid

Our take: Shirudo is the most ambitious of the four, but today it’s a lab tool. For eBPF-level exploit blocking on a production VPS this month, Tetragon is the practical stand-in. Learn Shirudo now so you’re ready when it ships for stock systems.

What’s next

OpenAI’s stated goal is to “make tested shields available alongside vulnerability disclosures.” Picture a CVE going public with a signed, ready-to-load shield published next to it. If that happens, Shirudo exploit blocking stops being something you build and becomes something you subscribe to, much like WAF rule feeds today. The open question is who signs those shields and how operators decide to trust third-party code in their kernel.

Adoption depends on the kernel work landing upstream. Shirudo currently relies on patches carried in its own kernel repository, including an mm_read_access LSM hook, a tpm_command hook, and BPF LSM xattr reads. Until those reach mainline and flow into distro kernels, mainstream VPS providers can’t offer it. Watch the bpf-next mailing list and the Shirudo releases page. riscv64 validation is also still pending.

Short term, OpenAI runs a technical deep-dive webinar on December 15, and Isovalent offers a “Shirudo: Getting Started Lab” on labs.isovalent.com. Keep perspective on the demo: the Java4Shell result came from a single controlled test run by the team that built the tool. We want independent red-team results before calling this battle-tested.

Frequently Asked Questions

Is OpenAI Shirudo free?

Yes. Shirudo is open source under the BSD-2-Clause license, with BPF programs dual-licensed BSD/GPL. Using Codex or another AI agent to generate shields may cost money depending on your plan, but you can also write upatches by hand.

Can I install Shirudo on my DigitalOcean or Hetzner VPS?

Not for production yet. It needs a bpf-next kernel with Shirudo’s patches, a systemd/dracut initrd, and a TPM 2.0 at /dev/tpmrm0. The docs state “There is no mode without a TPM.” Use the local test VM to learn it, and run Livepatch, unattended upgrades, a WAF, or Tetragon on your live servers in the meantime.

Does Shirudo replace patching?

No. Shields are temporary protections for the gap between disclosure and patch, and they retire once the vendor fix is applied. Keep your update process tight.

How is this different from a WAF’s virtual patching?

A WAF inspects web requests and only stops attacks that arrive over HTTP. Shirudo works inside the kernel and the JVM, so it can block privilege escalation, malicious payloads already past the web layer, and non-HTTP attack paths. Virtual patching on Linux in 2026 works best with both layers in place.

Is it safe to let AI write code that runs in my kernel?

Shirudo’s design assumes it isn’t safe by default. Shields must be signed with the operator’s key, verified by the kernel before loading, tested against both exploit and normal traffic, and approved by a human. The TPM records every change. Treat AI-written shields like a junior engineer’s pull request: test them in the VM and review them before signing.

Where do I learn more?

Start with the OpenAI announcement, the Isovalent technical post, and the quickstart at docs.shirudo.dev.

Go deeper than this article

This article covers the essentials. Our premium eguide library gives you the full step-by-step playbooks — prompts, workflows, and copy-paste recipes you can put to work today.

Browse Premium Eguides →

SSL SecurePrivacy Protectedvisamastercardamericanexpressdiscovergooglepay
Scroll to Top