---
source: https://iinventedlight.com/library/notes/shirudo-ebpf-live-shields-linux.md
title: "shirudo: signed eBPF micropatches (upatches) with TPM attestation for Linux, from OpenAI and Cisco"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "BSD-2-Clause (shirudo-dev/shirudo README and Documentation, published at docs.shirudo.dev)"
attribution: "Summary by iinventedlight (AI-assisted). Sources: shirudo README; shirudo documentation."
author: "iinventedlight (AI-assisted)"
date: 2026-11-24
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-24
as_of: 2026-11-24
confidence: medium
untested: "Test VM not booted (2026-11-24); README and docs claims only."
category: how-to
topic_area: "how-to: shirudo eBPF upatches for Linux"
tags: ["ebpf", "linux", "tpm", "agent-security"]
client: Librarian
sources:
  - id: S1
    title: "shirudo (repository README)"
    publisher: "shirudo-dev on GitHub"
    url: https://github.com/shirudo-dev/shirudo
    accessed: 2026-11-24
    license: "BSD-2-Clause"
  - id: S2
    title: "shirudo documentation"
    publisher: "shirudo docs"
    url: https://docs.shirudo.dev/
    accessed: 2026-11-24
    license: "BSD-2-Clause"
  - id: S3
    title: "Quickstart"
    publisher: "shirudo docs"
    url: https://docs.shirudo.dev/start/quickstart.html
    accessed: 2026-11-24
    license: "BSD-2-Clause"
---
# shirudo: signed eBPF upatches for Linux
**Answer:** shirudo is a BPF-based security platform for Linux, announced on the OpenAI and Cisco blogs. Once boot-time initialization is done, only signed loaders may load BPF programs from userspace. Operators ship signed micropatches, called upatches, and verify each target's measured upatch state using TPM-signed evidence. It is pre-release.

## Properties

- Boot-time enforcement: on production targets, shirudo init attaches its guards from the initrd.
- Signed and sealed BPF: every upatch load or unload runs through a loader the kernel checks against the sealed .bpf keyring.
- TPM measurement: each change to the loaded upatch set extends a per-boot TPM register, and operators can verify the evidence from shirudo attest offline.
- Upatches are small BPF C programs that engineers and agents can read, generate and maintain.
- Pull in, push out: targets pull upatches from OCI registries and push telemetry to OpenTelemetry collectors; nothing on a target listens for connections.

## Limits

- Production targets need a TPM 2.0 and a Linux kernel that has the signed-loader ABI plus shirudo's kernel patches.
- shirudo trusts the kernel it runs on: a kernel bug that gives an attacker code execution can bypass every check, shirudo's included.
- Until a fixed kernel is deployed, upatches can block a known vulnerable code path; kernel mitigations are still needed.
- CI runs all test tiers on x86-64 and host tests on arm64; riscv64 target validation is pending.

## How to try it

- The quickstart builds shirudo from a checkout and boots a protected test target in a VM with a software TPM.
- It takes one upatch through its whole life: sign it as operator, load it, check the TPM record, unload it.
- Host: Linux on x86-64 or arm64 with KVM, with /dev/kvm readable and writable.
- Set the locked-memory limit (ulimit -l) to unlimited; root is not needed.
- Build tools: clang and LLVM 23 with the BPF target, OpenSSL 3.5 or later, libelf, zlib, libcurl, tpm2-tss and LuaJIT.
- On a Mac, use a Lima VM as the Linux host.

## License

BSD-2-Clause; BPF programs are dual-licensed BSD/GPL.

## See also

- [linux-user-namespaces](https://iinventedlight.com/library/notes/linux-user-namespaces/)

## Claims

- id: C1
  claim: shirudo restricts BPF loads from userspace to signed loaders.
  source: S1
  evidence: "it restricts BPF program loads from userspace to signed loaders"

- id: C2
  claim: shirudo is pre-release.
  source: S1
  evidence: "shirudo is pre-release."

- id: C3
  claim: Nothing on a target listens for connections.
  source: S2
  evidence: "nothing on a target listens for connections"

- id: C4
  claim: The quickstart test VM does not need root.
  source: S3
  evidence: "Root is not needed"

## Sources

- [S1] https://github.com/shirudo-dev/shirudo (BSD-2-Clause)
- [S2] https://docs.shirudo.dev/ (BSD-2-Clause; built from the repository's Documentation folder)
- [S3] https://docs.shirudo.dev/start/quickstart.html (BSD-2-Clause)

License: CC BY 4.0. Summary by iinventedlight (AI-assisted).

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
