Skip to content

Security Blog / patching

Shirudo: A Shield for the Days Before the Patch

OpenAI and Cisco's new open-source project blocks a known attack on a running Linux system while the real patch is still being tested. Here is how it works and where we are putting it to use.

On November 23, OpenAI and Cisco introduced Shirudo, an open-source project for protecting running Linux systems "without needing to wait for the patch or restarts." The name is Japanese for "shield," which is a reasonable mental model for what it does. It can shield a system from an attack payload until a patch arrives.

We have spent the time since reading the code and the documentation. This post is the short version of the problem it solves, how it works, what it looks like on Java and PHP applications, and where it is not ready yet.

The problem: the time to resolution

When a serious flaw is announced, the fix is usually published the same day. Getting that fix onto your systems can be slow and at times not straightforward at all. Someone has to test the patch, book a maintenance window, and restart the service. For systems that have been on old versions of libraries where patching to the latest can mean breaking changes, this can mean rewriting parts of the application.

Time is not on the side of defense teams. Attackers use this window to exploit your systems. During that wait, they know exactly where to push and you are still getting approvals. Remember! Defense and application teams need to be right all the time. Our applications run the business and downtime means lost revenue (even if it's for the sake of security). Hackers only need to be right once.

Without a shieldFlaw goes publicAttackers start probingTest and restartExposed, days or weeksPatch is liveProtected at lastWith a shieldFlaw goes publicAttackers start probingShield goes onNo restart neededPatch is liveOn your scheduleSame flaw, same patch. The difference is the exposed time in between.
The shield does not replace the patch. It covers the wait for it.

A business does not choose that wait out of carelessness. A grocery store can't stop processing checkout on the day before Thanksgiving. A hospital cannot restart its scheduling system at noon. A lender cannot take loan processing down in the last week of the quarter. The wait is the cost of keeping the business running.

How it works

A shield is a small, signed program that blocks one specific dangerous behavior. It is loaded into the running system using eBPF (extended Berkeley Packet Filter), a Linux feature that lets small programs run at chosen hooks inside the operating system allowing us to listen to events that get emitted from the kernel. The server is not rebooted and nothing is reinstalled.

Security teamYour serversWrite the shieldFor one specific flawTest and approveA person signs offSign itWith the team's keyCheck signatureUnsigned code refusedSwitch it onService keeps runningLog it in hardwareProof for an auditNothing loads on a server unless the team's key signed it.
How a shield reaches a running server.

Operationalizing this:

  • A person approves every shield. Teams can first watch what a shield would block, then turn on enforcement once they see it leaves normal traffic alone.
  • Only signed shields load. Each server checks the signature against the team's key before it accepts anything. Code without that signature is refused, even from an administrator on the machine.
  • Delivery is quick and quiet. Servers check for new shields on a timer, about once a minute by default. There is no agent listening on the network for someone to attack.
  • There is a hardware record. Every shield loaded or removed is recorded through the server's security chip (the TPM), so you can prove later what was protected and when.

Example: a Java application

Say an insurer runs its claims system on Java. A flaw is announced in the part of Java that decodes Base64 text, tracked as CVE-2026-114938. A crafted input can make the decoder write where it should not. The fix is a new Java release, which means regression testing and a restart of a system that adjusters use all day.

Shirudo ships a shield for this case. It adds one input check in front of the decoder and rejects the malformed input before it is processed. In a controlled test, OpenAI and Cisco used a shield like it to block an exploit attempt against a running Elasticsearch service.

The same approach covers flaws in your own code! Shirudo includes an example shield that watches database calls in a Java application and blocks SQL injection. Here is its output when the sample application is attacked:

[RASP ALERT] SQL Injection Attempt Detected: SELECT * FROM users WHERE username = 'admin' OR 1=1'
[App] RASP safely aborted execution: Request blocked by RASP: Malicious SQL patterns detected.

A normal request still goes through. For an older Java application whose developers have moved on, that buys time to fix the code properly.

Example: a PHP website

Now picture a retailer with a PHP storefront on Apache. A flaw appears that lets an attacker run their own PHP code on the server. What they do next is predictable...drop a hidden PHP file to keep their access, run other programs, and connect out to their own server.

Shirudo's sandbox for Apache and PHP takes away those three moves. The web server may no longer create or change PHP files, start other programs, or connect anywhere outside the private network.

Your web serverAttackerExploits a PHP flawApache + PHPInside the sandboxWrite shell.phpRefusedRun another programRefusedConnect to the internetRefusedThe flaw is still there. The attacker's next three moves are not.
The sandbox around Apache and PHP, from Shirudo's own demo.

The project includes a test page that tries each move from inside PHP. With the sandbox on, it reports:

write note.txt: ok
write shell.php: refused
rename note.txt note.php: refused
mkdir d.php: refused
run a command: did not run
connect 127.0.0.1 port 8443: ok
connect 1.1.1.1 port 80: errno 13

The site's own work, writing a text file and talking to the local network, still goes through. The web server is restarted once to enter the sandbox, and neither Apache nor PHP is changed. Remember that the sandbox does not close the hole in PHP, so you still upgrade PHP. But a break-in that would have become a foothold stays a single contained event.

Why we are bringing it to customer sites

We've been working on something similar to Shirudo for our customers as an internal tool that accelerates our service offering and makes us more effective against attackers. The vulnerabilities we find in our assessments normally can't be immediately patched, for reasons that make sense to the business. However, having Shirudo be an open source tool being built by the community is a huge benefit for us.

Where it stands today

Shirudo is new, it is pre-release, with no stable version yet. Today it needs a very recent Linux kernel and a TPM 2.0 chip, and it does not yet run alongside some common security and monitoring tools. The Java shields reach a Java process when it starts or when the shield is attached to it, so coverage has to be checked application by application.

So we are starting where the risk is low: in test environments that mirror a customer's Java and PHP systems, writing and rehearsing shields against the flaws that matter to them, so the work is done before it is needed.

If you want to see it yourself, the quickstart signs, loads, and verifies a test shield in a virtual machine. If you would rather talk through where it fits in your environment, get in touch.

Mailing list

Stay in the loop

Field notes, research, and tinkering from the BirdyFoot team.