Latest

Cybersecurity

Shirudo, an eBPF shield that protects the Linux kernel without patching it

OpenAI and Cisco launch Shirudo, an open runtime that loads signed protections into the kernel to cover flaws while the patch arrives.

Translated from Spanish by an automated system. The Spanish original prevails. Read the Spanish original

Shirudo, an eBPF shield that protects the Linux kernel without patching it
Shirudo, an eBPF shield that protects the Linux kernel without patching it

OpenAI and Cisco presented Shirudo on November 23, an open source project that loads small protections into the Linux kernel to cover a vulnerability while the patch takes time to arrive. The name comes from Japanese and means shield. The idea is simple to state and hard to execute: block the behavior that enables the attack without shutting down the service that must keep being used, and do so with a verifiable record of what has been loaded.

The demonstration accompanying the announcement is not a diagram. An agent built on Codex generated a mitigation for Java4Shell, the Java virtual machine vulnerability, and applied it to an Elasticsearch 9.5.5 that was running. The exploitation attempt failed and the service kept responding. In the node logs a line remained that sums up the episode: the Base64 guardian rejected the candidate.

For the reader who administers servers, the problem Shirudo attacks is an everyday one. Between the alert for a critical vulnerability and the effective update, days or weeks pass, and in that gap the system is exposed. Traditional tools force a choice between blocking the operation and risking breaking the application, with no middle ground.

An AI-powered shield for the Linux kernel

Shirudo does not replace the patch. What it does is insert a temporary layer that prevents the vulnerable path from being executed, replaces the affected code with a corrected version or adds the visibility needed to detect the attack. These three ways of mitigating are chosen according to the flaw and according to what the application needs to keep working.

The technical piece that makes it possible is eBPF, the technology that allows small programs to run at specific points in the operating system. The kernel verifies each program before loading it, so flexibility does not come at the cost of stability. The Shirudo announcement for Linux insists on that point: without the verifier, loading code into the kernel would be reckless.

The difference from a normal patch lies in timing and scope. A patch changes the software for everyone and requires a restart; a shield changes the behavior of a specific process and can be removed without touching the rest. The trade-off is that it must be designed for each vulnerability, and that is where automation comes in.

From Tetragon to the agents that write code

Shirudo does not start from scratch. Its roots are in Tetragon, the eBPF-based security platform that Isovalent published in 2022 and that today underpins the mitigation capability in Cisco products. The difference is the recipient: Tetragon spoke in the policy language a human understands, and Shirudo is designed for an agent to write code directly.

That decision has a logic the team explains bluntly. An agent does not need a console or a configuration file; it generates code and absorbs context at great speed. Putting an interface designed for people in front of it limits what it can do, so Shirudo gives it access to machine interfaces and lets it produce the shield as a program.

The full flow is described in the Isovalent technical analysis. The agent receives or searches for information about a flaw, generates a reproducer of the attack, validates it, chooses the most effective mitigation point and tests the resulting shield. When it succeeds, the package is signed and distributed to the affected nodes, which verify it before loading it.

The architecture does not need a permanent daemon. There is a command-line tool on the operator's machine, which builds shields and delivers them as signed packages through a container registry. At the destination, an eBPF program loaded at startup receives and validates each package with the help of the trusted platform module.

The day the Base64 guardian said no

The Java4Shell example serves to understand the scope and the limits. The vulnerability lives in OpenJDK and allows the Base64 decoder to be manipulated to write outside the intended bounds. An eBPF shield could intercept the call, but the team chose another route: modifying the Java bytecode to add a check in that decoder.

The choice matters because it shows that Shirudo is not only eBPF. When the weak point is in an application's code or its runtime, the shield can be written as a bytecode modification and attached to a running process. The published example includes the node logs, with two timestamps from November 18: the guardian installed in the decoder and, twenty-two milliseconds later, the rejection of a candidate for suspicious length and padding.

The mitigation was applied to an Elasticsearch 9.5.5 without restarting the service, and that is the part that interests those who operate systems. A JVM patch in production requires a window, coordination and testing; a shield of this kind is tested live and removed if it breaks something. The cost shifts from the maintenance window to the design of the shield. Coverage is not universal: it protects Java applications running on OpenJDK as long as the library remains vulnerable.

The Java4Shell vulnerability had already shown how quickly the step from alert to exploitation happens. The novelty here is not the flaw, but the automated response and the fact that the shield lives in an open repository that anyone can audit.

Trust, TPM and the problem of the eternal patch

The least flashy part of the design is the one that decides whether this works in a large company. Shields are signed and verified before loading, the eBPF verifier checks that the program complies with the kernel's rules and the trusted platform module leaves a verifiable record of each protection loaded or removed. Without that chain, a shield would be an open door with good intentions.

The project is published under a two-clause BSD license and the eBPF programs under a dual BSD and GPL license. There is a quick start guide with a virtual machine and a self-guided lab.

The GitHub repository remains open to contributions from the kernel, platforms and security teams, which is precisely the audience the announcement appeals to. The promise is that tested shields will arrive alongside vulnerability alerts, so that the operator can evaluate them while preparing the definitive patch.

The context that justifies the project is the one Isovalent itself describes: the average time to exploitation has turned negative, meaning that more and more flaws are attacked before they become public. Against that, a patch that takes weeks is a late response, and the debate over whether AI accelerates attackers stops being theoretical.

There remains a tension the announcement does not resolve. An agent that writes eBPF and modifies bytecode can protect a system, and can also introduce a subtle change that no one reviews. Signing and hardware logging reduce the risk, but they do not replace an operator who understands what has just been loaded. Machine-speed defense works when someone with judgment decides what gets deployed, and that someone is still human.

José Maldonado

Author

José Maldonado

Activist and blogger on technology, free software and blockchain.

The latest
Google Willow passes the quantum test that Bitcoin fears

Keep reading