eBPF-based security platform
Update README.md
Martynas Pumputis85066ae96473
diff --git a/README.md b/README.mdindex 6ea7a437..a7e6b5a3 100644--- a/README.md+++ b/README.md@@ -3,65 +3,62 @@<img src="Documentation/logos/shirudo-horizontal-for-light-back.png" width="350" alt="shirudo"></picture>-\-[](https://github.com/shirudo-dev/shirudo/actions/workflows/packages.yml)-[](https://github.com/shirudo-dev/shirudo/actions/workflows/tests.yml)-[](https://github.com/shirudo-dev/shirudo/actions/workflows/sanitizers.yml)-[](https://github.com/shirudo-dev/shirudo/actions/workflows/proofs.yml)-[](https://github.com/shirudo-dev/shirudo/actions/workflows/codeql.yml)-[](https://github.com/shirudo-dev/shirudo/actions/workflows/docs.yml)<br/>-[](https://coveralls.io/github/shirudo-dev/shirudo?branch=main)-[](https://scan.coverity.com/projects/shirudo-dev-shirudo)-[](LICENSE)-[](https://www.bestpractices.dev/projects/17035)-[](https://scorecard.dev/viewer/?uri=github.com/shirudo-dev/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](https://docs.shirudo.dev/upatches/learn/concepts.html),+and verify a target's measured upatch state with TPM-signed evidence.shirudo (Japanese シールド, pronounced “shee-roo-doh”) means “shield”.-shirudo is a BPF-based security platform: Linux targets run only the BPF-their operator signed, every change is measured into the TPM, and-functionality ships as signed-[upatches](https://docs.shirudo.dev/upatches/learn/concepts.html)-(“micropatches”) that targets pull from OCI registries.+## Quickstart++- [Open the online getting-started lab](https://labs.isovalent.com/#/lab/shirudo-getting-started).+- [Try shirudo in a local VM](https://docs.shirudo.dev/start/quickstart.html).+ The VM uses a software TPM.+- [Read the documentation](https://docs.shirudo.dev/).++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](https://docs.shirudo.dev/operate/plan/system-requirements.html).++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](https://docs.shirudo.dev/contribute/arch-support.html).## Use cases-Users, developers and agents write upatches on top of shirudo, and-shirudo makes sure that only signed upatches run and that every change-is on record.--- **Live patching for kernel and userspace.** Security mitigations that- block vulnerable code paths. They complement traditional kernel live- patching with a faster rollout and bridge kernel and userspace- deployment cycles.-- **System hardening.** Sandboxes for containers, Kubernetes Pods and- LLM agents, and kernel hardening implemented as upatches.-- **Runtime security and observability.** For kernel and userspace- applications, LLM agents included. Data is collected and aggregated- in BPF maps and pushed over OpenTelemetry into collectors.-- **Embedded and edge devices.** Devices that are hard to patch get- upatches the same way servers do. shirudo runs on x86-64, arm64 and- riscv64 and adds little to the trusted computing base beyond the- kernel.+- **Runtime security and observability.** Observe process executions,+ network activity, and privilege changes with the included+ [`kernel-obs` package](upatches/kernel-obs/README.md).+- **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-- Always on: the platform is part of the trusted computing base and- starts from initrd in early boot-- Signed and sealed: BPF is admitted only through loaders signed- against the sealed BPF keyring, and the platform guards its own- assets against a root user who does not hold the signing key-- In-kernel control plane: every load and unload is a signed loader the- kernel verifies before it runs-- Measured: a TPM-backed register records every operation on upatches,- and the TPM signs it for a remote verifier-- Lightweight core: shirudo protects its own assets and nothing else.- Everything else ships as upatches-- Plain BPF C: upatches are small BPF C programs that engineers and+- **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](https://docs.shirudo.dev/upatches/write/java-agents.html).+- **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 andagents can read, generate and maintain. Commands take and produce- structured data-- Pull in, push out: targets pull upatches from OCI registries and push- telemetry to collectors; nothing on a target listens for connections+ 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](https://docs.shirudo.dev/security/threat-model.html)states where each of these mechanisms stops.@@ -70,15 +67,12 @@ states where each of these mechanisms stops.[](https://docs.shirudo.dev/start/how-it-works.html)-The life of a upatch. Only the operator host holds the signing key, and-only the target's TPM signs evidence.-[How it works](https://docs.shirudo.dev/start/how-it-works.html) follows-one upatch through each numbered step.+BPF upatch lifecycle, from signing through offline verification.+[Follow the numbered steps](https://docs.shirudo.dev/start/how-it-works.html).## By role- New to shirudo:- [Quickstart](https://docs.shirudo.dev/start/quickstart.html), then[FAQ](https://docs.shirudo.dev/start/faq.html)- Operators, who deploy and run targets:[Deployment checklist](https://docs.shirudo.dev/operate/deploy/deployment-checklist.html),@@ -97,7 +91,7 @@ one upatch through each numbered step.- [Beefile](https://docs.shirudo.dev/reference/formats/beefile.html):the Beefile that describes a package- [.upatch format](https://docs.shirudo.dev/reference/formats/upatch-format.html):- the signed `.upatch` container+ the little-endian container with an architecture-neutral signature- [upatch tree](https://docs.shirudo.dev/reference/formats/upatch-tree.html):the operations, segments and publication document of a upatch tree- [Keepalive](https://docs.shirudo.dev/reference/formats/keepalive.html):@@ -105,41 +99,39 @@ one upatch through each numbered step.[body](https://docs.shirudo.dev/reference/formats/keepalive.html#keepalive-body-format)and its TPM quote-## Documentation--The documentation is at **[docs.shirudo.dev](https://docs.shirudo.dev/)**.-## Releases-**There is no shirudo release yet.**-[main](https://github.com/shirudo-dev/shirudo/commits/main/) is the-development branch and no stable branches are maintained at this point.-Until the first release, every push to main builds the packages in the-[Build packages](https://github.com/shirudo-dev/shirudo/actions/workflows/packages.yml)-workflow, where they are available as run artifacts. Once releases-start, each release tag publishes its packages on-[GitHub Releases](https://github.com/shirudo-dev/shirudo/releases)-and the actively maintained releases are listed here.+development branch. Development packages are available as run artifacts+from the [Build packages](https://github.com/shirudo-dev/shirudo/actions/workflows/packages.yml)+workflow. Release tags publish their packages on+[GitHub Releases](https://github.com/shirudo-dev/shirudo/releases).For upgrades of shirudo and the kernel on a target, consult[Upgrade shirudo and the kernel](https://docs.shirudo.dev/operate/maintain/upgrade.html).-### Architectures--shirudo supports x86-64, arm64 and riscv64. Operator and target may be-on different architectures; the upatch format is little-endian and-the signature is architecture-neutral.-### Software Bill of MaterialsEvery package comes with a Software Bill of Materials (SBOM) in[SPDX](https://spdx.dev/) format.+## Project status++[](https://github.com/shirudo-dev/shirudo/actions/workflows/packages.yml)+[](https://github.com/shirudo-dev/shirudo/actions/workflows/tests.yml)+[](https://github.com/shirudo-dev/shirudo/actions/workflows/sanitizers.yml)+[](https://github.com/shirudo-dev/shirudo/actions/workflows/proofs.yml)+[](https://github.com/shirudo-dev/shirudo/actions/workflows/codeql.yml)+[](https://github.com/shirudo-dev/shirudo/actions/workflows/docs.yml)<br/>+[](https://coveralls.io/github/shirudo-dev/shirudo?branch=main)+[](https://scan.coverity.com/projects/shirudo-dev-shirudo)+[](https://www.bestpractices.dev/projects/17035)+[](https://scorecard.dev/viewer/?uri=github.com/shirudo-dev/shirudo)+## Licenseshirudo is licensed under the [BSD-2-Clause License](LICENSE). BPF-programs are dual-licensed BSD/GPL. Each source file holds a SPDX+programs are dual-licensed BSD/GPL. Each source file holds an SPDXlicense identifier. The tree vendors a few source files fromthird-party projects under different but compatible licenses; thosefiles retain their original SPDX identifier and copyright notices.