Alpha: working software, ready to be put to work. The demos on this site use sample data and demo keys for an invented company.

Use case · Kernel shields written by AI

An AI wrote a fix for your running kernel. Who told it to go in, and did the machine end up where it was supposed to?

Agents can now write small shields that block an exploit inside a live Linux kernel, with no reboot. Rootz Receipts makes each shield change a signed instruction that moves the machine from a known state to a known state. The machine's own TPM proves it arrived.

From a known state to a known state, in two minutes. Watch on YouTube

What is happening

Shields at the speed of the exploit.

In November 2026 Cisco and OpenAI released Shirudo, an open-source runtime for "upatches". These are small eBPF programs, written by an AI agent, that block an exploit's code path on a running host while the real patch is prepared. The design is careful. The agent never holds the signing key, the kernel loads only signed code, and every load is measured into the machine's TPM, so the operator can verify a TPM-signed report of what was loaded.

Shirudo's own threat model is clear about what it leaves to the operator: who authorized a change, on what evidence, and for which machines. Its build file reads the author fields and ignores them.

The question

"Upgrade, then look" is not enough.

The usual model is to apply the change, take a new measurement, and decide afterwards whether you like it. By then the code is already running in the kernel. What an owner wants to say before anything runs is: this machine, starting from exactly this state, may make exactly this change, and must end in exactly that state.

What we add

From a known state to a known state.

  • A signed instruction for every change. It names the exact shield, the machines it applies to and the evidence behind it: the advisory, the build, and observation on a canary ring. It also names who signed it and under whose authority.
  • Bound to where the fleet is now. The instruction carries the state of the shield list before the change and the state it must produce. The change goes in only if the list is still in the starting state. An instruction signed against a list that has since moved is refused, and nothing is published.
  • Bound to where each machine is now. The machine's TPM register after the change can be computed before the change runs, from the register it reports today. The owner approves that exact trip.
  • A key that opens only on arrival. A key for the machine can be released before the upgrade, locked by the machine's own TPM to the predicted end state. The machine can open it only by arriving exactly there. Anything else on the way changes the value, and the TPM refuses.
  • A record for every change. Each change the machine measured gets a row: instructed, measured without an instruction, or loaded outside the list. A missing instruction shows up as a row, not as silence.

It needs no change to Shirudo. Rootz Receipts runs beside it.

Run on a real machine

What happened when we tried it.

Shirudo test machine with a software TPM, one boot, 25 November 2026. Every row can be re-checked from the published run files.
StepWhat happenedResult
Stale instructionSigned against the shield list as it was one change earlier. It was refused and nothing was published.as designed
Current instructionPublished. The list ended in exactly the state the instruction predicted.as designed
Key, before the upgradeReleased by the owner and locked to the predicted end state. The machine tried to open it, and the TPM refused.as designed
The upgradeThe shield went in and the exploit probe was blocked. The TPM then unlocked the key, and its fingerprint matched.as designed
Arrival checkSame boot, exactly the predicted steps, and the predicted end value.as designed
Second change, with a rogue one slipped inAn uninstructed change was published around the approval step. The machine held the sync. When root forced it anyway, the end value moved, the TPM refused the second key, and the arrival check showed four steps where two were planned.as designed

We also checked the prediction on an earlier run. From the TPM-signed register after one change, we predicted the TPM-signed values after the next two changes exactly, before seeing them.

Run it yourself

The checker is open source.

rootz-shirudo-verify (BSD-2, no dependencies) rebuilds a Shirudo machine's TPM register from its own report. It predicts the register a change will produce before the change runs, and checks afterwards that the machine arrived on plan. The real run above is in the repository, with tests that reproduce every verdict.

git clone https://github.com/rootz-global/rootz-shirudo-verify
cd rootz-shirudo-verify && npm test
node src/cli.ts plan  examples/after-seq1.evidence.json examples/publication.json --to-seq 2 > plan.json
node src/cli.ts arrival plan.json examples/after-seq2.evidence.json      # arrived: true

The signed instructions, the approval step, the check on the machine and the machine's own key wallet are Rootz Receipts.

Honest limits

What it does not do.

  • Root on the machine can still force a change. Nothing here prevents that. What changes is the consequence: the end state is wrong, the key stays locked, and the record shows it.
  • The run above used a software TPM on a test machine. It shows how the system works. It is not a hardware measurement, and every record says so.
  • We predict only changes a machine actually applies. We have not yet observed what Shirudo measures for a change that doesn't match a machine's selector, so the planner refuses rather than guess.
  • Shirudo itself is pre-release. Production needs its patched kernel and a TPM 2.0.

Talk to us · How receipts work · Other examples