# Shirudo

> An eBPF runtime that blocks an exploit on a live Linux system with a signed temporary shield until the real patch ships

- Category: Agents & Automation / Security Agents
- Language: C
- Licence: BSD-2-Clause
- Repository: https://github.com/shirudo-dev/shirudo
- Website: https://shirudo.dev
- Canonical page: https://ai-tldr.dev/tools/shirudo/
- Updated: 2026-11-23

## In short

Shirudo (Japanese for "shield") is an open-source runtime from OpenAI and Cisco that helps operators protect running Linux systems while a permanent patch is being tested and deployed. It sits in the Security Agents category of the Agents & Automation tools and is open-source, written in C and licensed BSD-2-Clause.

## Overview

Shirudo (Japanese for "shield") is an open-source runtime from OpenAI and Cisco that helps operators protect running Linux systems while a permanent patch is being tested and deployed. A shield is a temporary safeguard that blocks the behavior an exploit needs and lets legitimate requests through.

Shirudo is a BPF-based security platform. After boot-time initialisation it restricts BPF program loads from userspace to signed loaders. Operators ship signed micropatches called upatches, and a TPM-backed attestation step returns offline-verifiable evidence of which protections a target has loaded. Operators can monitor how a proposed shield would affect applications before they enforce it.

In a controlled test described by OpenAI, a shield generated with Codex blocked a Java4Shell exploit attempt against a running Elasticsearch service without a restart, by adding an input check to Java's Base64 decoder. The repository describes the project as pre-release. It is licensed BSD-2-Clause, with the BPF programs dual-licensed BSD and GPL.

## What it does

- Temporary shields that block exploit behavior at kernel hooks or in Java application code
- Signed upatches: loaders are verified by the kernel against a sealed keyring, and Java upatches are verified in userspace
- Boot-time enforcement started by `shirudo init` from the initrd
- TPM measurement, with `shirudo attest` returning evidence that can be verified offline
- Pull-based delivery from OCI registries, with telemetry exported to OpenTelemetry collectors
- Observability through the `kernel-obs` package (process, network and privilege activity)

## Getting started

The quickstart runs Shirudo in a local VM with a software TPM. It needs a Linux host on x86-64 or arm64 with KVM (on macOS, use a Lima VM), a C toolchain, clang/LLVM with the BPF target, OpenSSL 3.5 or newer and QEMU. The scripts stop at the first missing command and print how to install it.

1. Build and boot the test VM

   Run these from the checkout root, in order.

```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
make -C testing vm-ssh VM_NAME=quickstart
```

2. Check the runtime inside the VM

   In the VM shell, alias the runtime and check its status.

```bash
alias shirudo=shirudo-runtime
cd /workspace/shirudo
shirudo status
```

3. Build a sample upatch on the operator host

   The quickstart builds and signs the sample BPF fixture into a .upatch file.

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

4. Load it on the target and stop the VM

   Load the upatch inside the VM, then stop the VM when you are done.

```bash
shirudo upatch load basic.upatch

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

## When to use it

- Reach for it to cover the gap between a vulnerability disclosure and a tested permanent patch on services you cannot restart
- Reach for it to preview how a proposed mitigation affects applications before enforcing it
- Reach for it when you need signed, auditable protections with TPM-backed evidence of what is loaded
- Reach for it to try AI-drafted mitigations such as Codex-generated shields in a controlled setting, with security teams deciding what ships

## Version history

- 2026-11-23: OpenAI and Cisco introduced Shirudo, an open-source eBPF runtime that loads signed, temporary shields on running Linux systems.
