Monday, November 23, 2026

shirudo for signed BPF runtime mitigations and kernel attestation

shirudo for signed BPF runtime mitigations and kernel attestation

shirudo is a BPF-based Linux security platform that ships signed micropatches into the kernel and Java runtimes, with TPM-attested evidence for defenders running authorized hardened infrastructure.

Toolshirudo-dev/shirudo — BPF-based security platform for Linux applying signed, TPM-attested upatches at boot and runtime
CategoryKernel-level runtime security and integrity (eBPF, LSM, live patching)
Primary UseDeploying signed upatches that block vulnerable paths at kernel hooks, guard Java application code, and observe process, network and privilege events via kernel-obs
Safe UseHardening and observability on systems you own or operate: production fleet defense, labs with the quickstart VM, and authorized blue-team deployments
Telemetry NotePurely defensive: targets export telemetry to configured OpenTelemetry collectors via keepalive records containing TPM quotes; upatch-set changes extend a per-boot TPM register observable by operators

shirudo — Japanese for shield, pronounced shee-roo-doh — is a BPF-based security platform for Linux that takes an unusual position in the eBPF ecosystem: instead of treating BPF as an open observability substrate, it locks the door behind itself. After boot-time initialization it restricts BPF program loads from userspace to signed loaders, meaning that once the platform is armed, arbitrary bpf() program loads from root are off the table unless they come through a path the kernel has verified. Operators then ship signed micropatches, called upatches, and can verify a target's measured upatch state with TPM-signed evidence. The repo sits at 668 stars, is written primarily in C, carries a BSD-2-Clause license with BPF programs dual-licensed BSD/GPL, and its topics read like a design document: bpf, kernel, live-patching, lsm, observability, security.

The core primitive is the upatch: a small, logically contained program that engineers — and, notably, agents — can read, generate and maintain. The README frames them as micropatches, and the use cases make the intent concrete. BPF upatches can block vulnerable paths at kernel hooks, effectively acting as live mitigations that ship faster than a kernel rebuild; Java upatches load as signed agents into configured JVMs at startup to guard application code. This is virtual-patching territory, but with a supply-chain story attached: every upatch is signed, and only signatures the kernel accepts can result in a load.

What makes shirudo more than an LSM-and-BPF wrapper is the integrity chain. On production targets, enforcement begins when shirudo init attaches its guards from the initrd, and those guards protect shirudo's own runtime and state from root on the target without the operator's signing key. That is a meaningful property: a compromised host with root cannot simply unload the defenses or tamper with the sealed .bpf keyring that the kernel checks loaders against. Changes to the loaded upatch set extend a per-boot TPM register, and shirudo attest returns evidence operators can verify offline. The attestation flow, the threat model documentation, and the specification set read like a project designed for auditable deployment rather than ad-hoc experimentation.

The delivery model is deliberately pull-based. Targets use one-shot commands to pull packages from OCI registries and export telemetry to configured OpenTelemetry collectors. The operator host builds, signs, and pushes; the target pulls, its kernel checks the signature and runs the loader, its TPM extends the register and signs evidence, and the operator verifies — a lifecycle the README illustrates in a numbered walkthrough. For environments with intermittent connectivity this shape makes sense, and the stated use case of embedded and edge devices with long update cycles confirms the design target: signed mitigations delivered to hardware that may not see a full OS update for months.

Observability is handled by the included kernel-obs package, which surfaces process executions, network activity, and privilege changes. For defenders, this positions shirudo as a combined detection-and-response substrate: the same hook points that let a BPF upatch block a vulnerable path also produce structured events, and commands take and produce structured data throughout. A third hardening use case worth noting is policy enforcement for containers, Kubernetes Pods, and LLM agents — the explicit mention of LLM agents is a telling signal of where the project sees runtime guardrails heading.

The specification documents reveal the engineering rigor. A Beefile describes a package; the .upatch format is a little-endian container with an architecture-neutral signature, which is what allows the operator and target to use different architectures; the upatch tree defines operations, segments, and the publication document; and the Keepalive record defines what a target periodically sends its collector, including its body format and TPM quote. Every package ships with an SBOM in SPDX format. This is the level of format documentation you expect from infrastructure intended to survive audit, not a weekend project.

Deployment requirements are non-trivial and worth flagging for anyone evaluating it: the project is explicitly pre-release, and production targets require a Linux kernel with the signed-loader ABI plus shirudo's kernel patches, and a TPM 2.0. The quickstart mitigates this for evaluation with a local VM using a software TPM. Architecture support currently covers x86-64 for all test tiers and arm64 for host tests and local VM boots, with riscv64 validation pending — a matrix that suggests edge and embedded ambitions.

The CI posture is unusually strong for a pre-release project. Beyond the expected build and test suites, the badge row shows sanitizers, formal proofs, CodeQL, coverage via Coveralls, Coverity Scan, OpenSSF Best Practices, and an OpenSSF Scorecard. A proofs workflow in particular hints at verification work on the security-critical paths, which is exactly where you want it in a system whose entire value proposition is that its guards cannot be bypassed by root.

The project's credibility is reinforced by announcements on the blogs of OpenAI and Cisco (via Isovalent), which is an unusual provenance signal for a GitHub security tool and suggests real institutional backing rather than a solo effort. Documentation is clearly a first-class concern: role-based entry points exist for newcomers, operators, upatch authors, security reviewers, and contributors, including a deployment checklist, a first-upatch guide, and a tutorial on converting a kernel fix into an upatch.

Where this fits in an authorized workflow is straightforward: it is defensive infrastructure. Blue teams running fleets they own can use it to push signed virtual patches ahead of vendor fixes, enforce policy on containerized and agent-driven workloads, and attest remote targets' patch state without trusting the target itself. There is nothing here for offensive operators; the tool's entire design goal is making runtime tamper resistance and measured state verifiable. For security engineers evaluating runtime defense platforms, shirudo is one of the more architecturally interesting entries in the current eBPF security wave, and the signed-loader restriction on BPF loads is a design decision worth studying even if you never deploy it.

Official project repository for shirudo-dev/shirudo.
Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.

Sponsored
Share articleFacebookXLinkedIn

Continue exploring

Browse all articles →

0 comentários:

Post a Comment

Note: Only a member of this blog may post a comment.