How shirudo-dev/shirudo works
shirudo is a BPF-based Linux security platform: operators build and sign upatches, targets pull and load them through kernel-verified loaders, and TPM-backed measurements support offline attestation. The graph also preserves documented Java-agent, package-management, image-integrity, and observability capabilities. The README supports the lifecycle links; source excerpts show selected implementation responsibilities, but not enough call sites to assert detailed internal wiring. Shared runtime primitives are grouped rather than expanded into speculative call chains.
Main entry points: builtin-bpm.c Package management · builtin-upatch.c Upatch commands · eventlog.c Event log · tpm.c TPM measurement
Components 21
Authoring and delivery
- Package builder
tools/shirudo-build/package.c - OCI registry
Target enforcement
- Upatch commands
builtin-upatch.c - Kernel load guards
bpf/bpf2.c - Sealed loader
bpf/seal.c - Java agents
util/java_agent.c - BPF upatch packages
upatches
Measurement and evidence
- Event log
util/eventlog.c - TPM measurement
util/tpm.c - Attestation
util/attest.c - Measurement chain
util/chain.c
Operations and integrity
- Package management
builtin-bpm.c - Image verity
util/dm_verity.c - Kernel observability
upatches/kernel-obs/obs_net.bpf.c - OTLP export
util/upatch_maps_otel.c - Upatch tree
util/bpm_tree.c
Runtime foundations
- TPM wire protocol
util/tpm_wire.c - Shared runtime primitives
util - OCI package interface
util/bpm_oci.c - Package format
util/bpm_package.c
Other components
- Operator
Connections 22
- Operator → Package builder: builds and signs
- Package builder → OCI registry: pushes packages
- OCI registry → Package management: target pulls
- Package management → Upatch commands: delivers upatches
- Operator → BPF upatch packages: authors mitigations
- Upatch commands → Kernel load guards: loads BPF
- Kernel load guards → Sealed loader: kernel verifies loader
- Upatch commands → Java agents: manages agents
- Upatch commands → Event log: records changes
- Event log → TPM measurement: extends register
- Operator → Attestation: requests verification
- Attestation → TPM measurement: checks TPM evidence
- TPM measurement → TPM wire protocol: uses TPM protocol
- Operator → Package management: operates packages
- Operator → Image verity: configures image integrity
- BPF upatch packages → Kernel observability: includes telemetry patches
upatches/kernel-obs/obs_net.bpf.c - Kernel observability → OTLP export: exports telemetry
- Package management → OCI package interface: uses OCI support
- Package management → Package format: uses package format
- Package management → Upatch tree: manages patch trees
- Measurement chain → Event log: supports replay
- Shared runtime primitives → Upatch commands: shared support
builtin-upatch.c