NEWBravos is available: point it at a repo and see which threats an attacker can reach.Create your account
The Knowledge Base
11 min read

Shields You Can Prove: Driving Shirudo With Validated Context

Cisco and OpenAI released Shirudo, kernel-level shields that block a live exploit while you patch. We drove it with Bravos on a general-purpose model and tested each shield by running the exploit, shield on against shield off.

Summary

There is a hard window in every security program: the gap between a vulnerability going public and the moment you have tested and safely rolled out the real patch. Until then, the exposure is live.

Shirudo is a new open-source runtime from Cisco and OpenAI that narrows that window. It lets an engineer, or an agent, load a signed BPF "upatch": a small kernel-level mitigation that blocks a vulnerable path with no reboot, meant to be retired once the permanent fix ships. Shirudo signs the upatch, records its load state in the TPM, and lets you verify that evidence offline.

Bravos is BugB's proof-led security stack. It confirms a finding by running the real exploit, not by reading code and guessing. That makes it a natural partner for Shirudo, because a shield is only as good as the context behind it, and Bravos produces context that has already been proven.

This is a write-up of an independent proof of concept, where an agent used Bravos's confirmed findings to author and test Shirudo shields against VAMPI, a deliberately vulnerable API. It ran entirely on general-purpose models, with no security-specific fine-tuning. It is not a partnership with, or an endorsement by, Cisco or OpenAI.

A Shield Is Only as Good as Its Brief

Point a kernel-level control at a guess and you invite one of two failures. Too narrow, and the real attack walks past it. Too broad, and it blocks legitimate requests with kernel-level finality: someone gets paged, and the rule is gone by morning. Shirudo gives an agent a precise instrument, and precise instruments are the ones you least want driven by hunches.

Shirudo was built for an agent to hold that instrument. Its documentation describes upatches as programs that engineers and agents can read, generate and maintain, with commands that take and produce structured data. That suits an agent-driven workflow, and it puts real weight on one question: how good is the input the agent is working from? Placement, the rule's own correctness, and the runtime's assumptions all matter too, but the input is the part Bravos is built to get right.

So before a shield loads, three questions need real answers:

  1. Is the exposure real and reachable? Not "this pattern looks risky," but: can an untrusted request actually get there and do damage?
  2. Does the shield block the exploit without breaking legitimate traffic? Does it stop the attack without catching the real request that looks similar on the wire?
  3. When is it safe to retire? Has the real fix closed the hole, or are we about to expose ourselves again?

These are evidence questions. Shirudo's signing and measurement do not establish that a shield is effective or free of collateral damage; that still needs testing. Bravos answers them by running the exploit.

What Bravos Brings: Confirmed Context

Bravos is three parts that turn source code into context an agent can act on.

  • GuardLink holds the threat model in the repository: annotations cited to the file and line, versioned in Git, maintained as the code grows.
  • Codegraph answers reachability: can an untrusted entry point actually reach this sink, or is it dead code?
  • Cert-X-Gen separates a finding from a fact. It runs a real exploit against a running instance and grades the result with an oracle. It does not say "this looks like SQL injection." It sends the injection and reads back the data it was not supposed to get.

One rule makes the output usable downstream: only exploit-confirmed findings move forward. A finding Bravos cannot run and prove never becomes a shield. The confirmed finding is the brief the agent hands to Shirudo, and the shield it writes is then tested on its own, because a confirmed finding is a good brief, not a guarantee the rule is right.

flowchart LR G["GuardLink<br/>threat model in the code"] --> C["Codegraph<br/>rank by reachability"] C --> X["Cert-X-Gen<br/>prove the exploit on a live copy"] X -->|"only confirmed findings"| A["Agent writes<br/>+ tests the upatch"] A --> O["Operator signs"] O --> K["Shirudo kernel<br/>loads + enforces"] K -->|"measured state"| T[("TPM evidence<br/>verified offline")]

Two Threat Models, Two Layers

Shirudo ships a threat model of its own, careful to state not just what its mechanisms do but where each one stops. GuardLink, the threat-model half of Bravos, works in the same vocabulary: assets, trust boundaries, the control meant to guard each one, and where that control falls short.

They describe different layers. GuardLink records the application's exposures and controls; Shirudo documents the runtime's mechanisms, assumptions and limits. Those shared concepts make the handoff easy to reason about, though they are a conceptual fit, not a shared schema. In this proof of concept an agent read Bravos's confirmed findings and wrote the upatch; we did not build an automatic integration between the two.

One Loop, From Exploit to Fix

Put the two together and a clean lifecycle appears: confirm the exploit, raise the shield, validate it against real traffic, deploy and validate the source fix, then retire the shield.

flowchart LR C["Confirm exploit<br/>Bravos"] --> S["Shield up<br/>Shirudo · eBPF"] S -->|"test vs legit traffic"| V["Shield validated"] V --> F["Fix the source"] F -->|"re-test, shield off"| R["Exploit fails"] R -->|"operator unloads"| Z["Retire shield"]

We Ran It

To show it rather than assert it, we ran the lifecycle against VAMPI, a deliberately vulnerable API with recognizable injection and authorization flaws. It is a controlled proof of concept, not a production workload. Bravos's annotations named the candidates; we selected three and confirmed each with a live exploit.

FindingEndpointClassSeverity
SQL injectionGET /users/v1/{username}CWE-89Critical
Broken object-level authorizationGET /books/v1/{book_title}CWE-639High
User enumerationPOST /users/v1/loginCWE-204Medium

For each finding, Cert-X-Gen confirmed the exploit against the live instance, and an agent used that confirmed finding to write a native Shirudo upatch. We then ran two tracks. In the source-fix track, we wrote the real fix and re-ran the same exploit against it with the shield bypassed; it failed. In the native-enforcement track, we loaded the signed upatch into a running Shirudo test VM and used a load/unload control to isolate its effect.

Here is how each finding behaved across the lifecycle. With the shield loaded, the scanner re-ran each exploit and refuted all three: the tested attack no longer got through.

FindingBaseline, no shieldShield loadedShield unloadedLegitimate trafficAfter source fix, shield offScanner verdict, shield loaded
SQL injectionExploit confirmed on the live instanceAttack dies at the kernelLeaks againPreservedExploit failsRefuted
Broken object-level authorizationExploit confirmed on the live instanceAttack dies at the kernelLeaks againPreservedExploit failsRefuted
User enumerationExploit confirmed on the live instanceFirst shield blocked the probe but was too blunt (see below)Leaks againFirst shield dropped real failed logins; the second preserved themExploit failsRefuted

That test VM ran Shirudo's real signing, loading and attestation path: signed upatches, with loads and unloads recorded in a per-boot TPM measurement register. We collected the evidence with shirudo attest and checked it offline with shirudo attest verify, and the signature and replay checks passed. To be precise about scope: this was a software-TPM lab (QEMU with swtpm), and the verification did not pin every production policy input, such as the expected configuration root and boot bindings. It demonstrates Shirudo's verification path working end to end, not a fully trusted production machine.

The load/unload control is the causation evidence: with the shield loaded, the tested attacks die at the kernel; with it unloaded, the same attacks leak again. Legitimate requests kept working across the toggle, with one important exception we hit on the first enumeration shield.

When the First Shield Was Too Blunt

Our first user-enumeration shield ran straight into the tension Shirudo's own launch flags: blocking an exploit while preserving legitimate traffic. It worked by dropping the matching response at the kernel, which blocked the initial probe. But a drop is blunt. It would also drop a real user's failed-login message, because the two look identical on the wire. And later testing found it still leaked: when the response arrived as split packets, the differing Content-Length (81 versus 57 bytes) gave the username away. Correct as emergency cover, wrong as a permanent fixture, and not even a complete block.

So we asked a question the setup makes possible. The shield is written by an agent from a fixed, confirmed finding. If we give a stronger model more room against that same finding, does the shield get better?

First-pass shieldStronger-model shield
MechanismDrop the packet (cgroup_skb)Rewrite the response (XDP)
Attacker: present vs. absent userInitial probe times out (~8s)Same normalized 200; username not disclosed in message or length
Legit user mistypes passwordAlso dropped, times outUniform error; ~6 ms fast path, ~12% delayed by retransmit
Correct loginWorksWorks
What changedLeaked length on split headersRemoved that split-header length leak

The stronger model's rule, attached at an XDP hook on the plaintext hop in front of VAMPI, rewrote the two tested failed-login responses into one uniform message, so neither the message nor its length told a real username from a fake one. It kept legitimate failed logins returning a usable error instead of hanging them, and it removed the split-header length leak. The honest limits: the rewrite only handles recognized failure responses on that plaintext hop and falls back to a drop for shapes it cannot safely rewrite, and a residual backend timing difference remains, so this is not perfect indistinguishability.

The confirmed finding never changed. We reused it across both designs and got a better rule the second time. We changed two things between the designs, a stronger model and more room to work, so we cannot cleanly credit the model alone for the gain. What we can stand behind is narrower and more useful: the same confirmed finding supported both designs, and the second tested better. That does not mean every model upgrade improves every rule for free; each new shield still has to be authored, tested, signed and deployed. But the confirmed context is the durable asset, and it carried over unchanged.

Why a General-Purpose Model

We ran the whole proof of concept on general-purpose models, with no security-fine-tuned model anywhere in the stack. Shirudo's own launch demo used a Codex-generated shield, which is a fine way to do it; this is a point about where the trust comes from. Here it does not come from a model blessed for security. It comes from validation by execution: Bravos confirms each exploit by running it, re-tests the fix against the same exploit, and Shirudo provides signed, measured evidence of what loaded. You check the exploit results and the upatch-state evidence independently of whatever model wrote the rule. That does not remove the work; every generated shield still needs testing, and the runtime's own assumptions still have to hold.

What We're Not Claiming

Shirudo is pre-release, and this is a bounded proof of concept. A few things to keep straight.

  • A shield is cover, not a cure. It buys the window between disclosure and patch. The source fix is the remedy, and in our source-fix track the exploit only stopped succeeding once the real fix was in.
  • A refuted scan with the shield up is not a clean bill of health. With the shield loaded, the scanner re-ran each exploit and refuted all three, meaning the tested attack no longer got through. That is the shield doing its job against the attacks we tested, not proof the vulnerability is gone. The source fix is the remedy, which is why we re-ran each exploit against the fixed code with the shield off.
  • These are known-shape rules, not general protection. The rules match specific inputs, objects and response shapes in the lab. They blocked the confirmed attacks; they are not a general cure for a vulnerability class.
  • Mind the trust boundary. A prepared Shirudo VM fronted VAMPI over a plaintext HTTP hop, and the TPM was software, not physical hardware. Shirudo measures its own upatch lifecycle, not the entire kernel or boot chain beneath it.

Shirudo Enforces. Bravos Proves.

The reason to put these together is a clean division of labor between two jobs that were always separate.

  • Shirudo owns enforcement: signed BPF upatches with measured load state, used here as temporary mitigations and removed once the fix is validated.
  • Bravos owns the context: confirmed, not suspected, versioned in the repo and proven by running the exploit. It decides what to shield, tests the shield against the confirmed attack and real traffic, and shows when the fix has held.
  • Neither needs a specialized security model. The trust comes from running the exploit and from signed, measured evidence.

Put a shield behind a guess and you get something blind or blunt. Put it behind context that has been validated by execution, and the cover you raise in that window is one you have tested, not one you are hoping holds.

Need help hardening your environment?

Talk to the Bugb security team directly.

Book a session