Skip to content
Projects

About

eBPF-based security platform

Security

How these counts are measured

Measured star growth

in 24h
+236
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original
shirudo

shirudo is a BPF-based security platform for Linux. After boot-time initialization, it restricts BPF program loads from userspace to signed loaders. Operators ship signed micropatches, called upatches, and verify a target's measured upatch state with TPM-signed evidence.

shirudo (Japanese シールド, pronounced “shee-roo-doh”) means “shield”.

Read the announcements of shirudo on the blogs of OpenAI and Cisco.

Quickstart

shirudo is pre-release. Production targets require a Linux kernel with the signed-loader ABI and shirudo's kernel patches, plus a TPM 2.0. See the system requirements.

CI runs all test tiers on x86-64 and host tests on arm64. The test VM also boots locally on arm64. Target validation for riscv64 is pending. The operator and target may use different architectures. See architecture support.

Use cases

  • Runtime security and observability. Observe process executions, network activity, and privilege changes with the included kernel-obs package.
  • Live mitigations. Use BPF upatches to block vulnerable paths at kernel hooks or Java upatches to guard application code.
  • System hardening. Use BPF upatches to enforce policies for containers, Kubernetes Pods, and LLM agents.
  • Embedded and edge devices. Deliver signed mitigations to devices with long update cycles.

Properties

  • Boot-time enforcement. On production targets, enforcement starts when shirudo init attaches its guards from the initrd. The guards protect shirudo's runtime and state from root on the target without the operator's signing key.
  • Signed and sealed BPF. BPF upatch loads and unloads go through loaders that the kernel verifies against the sealed .bpf keyring.
  • Signed Java agents. shirudo verifies Java upatches in userspace. Configured JVMs load the agents at startup. See Java agent upatches.
  • TPM measurement. Changes to the loaded upatch set extend a per-boot TPM register. shirudo attest returns evidence that operators can verify offline.
  • Upatches are small logically contained programs that engineers and agents can read, generate and maintain. Commands take and produce structured data.
  • Pull-based delivery. Targets use one-shot commands to pull packages from OCI registries and export telemetry to configured OpenTelemetry collectors.

The threat model states where each of these mechanisms stops.

How it works

The operator host builds, signs and pushes to an OCI registry. The target pulls, its kernel checks the signature and runs the loader, its TPM extends the register and signs evidence, which the operator verifies.

BPF upatch lifecycle, from signing through offline verification. Follow the numbered steps.

By role

Specifications

  • Beefile: the Beefile that describes a package
  • .upatch format: the little-endian container with an architecture-neutral signature
  • upatch tree: the operations, segments and publication document of a upatch tree
  • Keepalive: the record a target sends its collector, its body and its TPM quote

Releases

main is the development branch. Development packages are available as run artifacts from the Build packages workflow. Release tags publish their packages on GitHub Releases.

For upgrades of shirudo and the kernel on a target, consult Upgrade shirudo and the kernel.

Software Bill of Materials

Every package comes with a Software Bill of Materials (SBOM) in SPDX format.

Project status

Build packages CI suite Sanitizers Proofs CodeQL Documentation
Coverage Status Coverity Scan Build Status OpenSSF Best Practices OpenSSF Scorecard

License

shirudo is licensed under the BSD-2-Clause License. BPF programs are dual-licensed BSD/GPL. Each source file holds an SPDX license identifier. The tree vendors a few source files from third-party projects under different but compatible licenses; those files retain their original SPDX identifier and copyright notices.

Explore related projects

Loading…