Back to Blog
Kernel Security Nov 30, 2026 23 views

Shirudo: Defending the Kernel Before the Patch Arrives

A technical examination of OpenAI and Cisco's approach to agent-assisted vulnerability mitigation, signed eBPF micro-patches, and hardware-backed runtime integrity.

By Cytomate Threat Intelligence
30 November 2026 | Security engineering | Technical analysis
eBPFLinux LSMML-DSATPM 2.0
Technical research briefing

Shirudo - runtime vulnerability mitigation

A signed eBPF protection pipeline designed to reduce the exposure window between vulnerability discovery and permanent remediation.

01DiscoverIdentify vulnerable behavior
02GenerateDevelop a scoped upatch
03AuthorizeValidate and sign artifacts
04EnforceLoad verified BPF policy
05AttestMeasure runtime state
eBPFRuntime enforcement
ML-DSAArtifact signatures
TPM 2.0Attestation
OCIArtifact distribution

01. Finding a vulnerability is not the same as fixing it

Consider a production Linux server running an application that cannot be restarted without disrupting a critical business operation. A vulnerability is disclosed in one of its dependencies. The security team understands the attack, the vendor is preparing a fix, and the infrastructure team still needs to validate that fix before deploying it. What protects the server in the meantime?

This is one of the more interesting problems in modern vulnerability management. We can accelerate the discovery of vulnerabilities with AI, but the deployment of a permanent fix remains constrained by compatibility, change windows and availability. The attacker's timeline and the defender's timeline are fundamentally different.

On 23 November 2026, OpenAI and Cisco introduced Shirudo, an open-source runtime intended to narrow that gap. Rather than waiting for the vulnerable component to be replaced, the idea is to deploy a narrowly scoped protection at runtime, validate its effect, and remove it once the underlying defect has been corrected.[1]

The distinction that matters

Shirudo does not necessarily repair the vulnerable implementation. It attempts to make the dangerous execution path unreachable under a defined set of conditions. That is a compensating control, not proof that the vulnerability no longer exists.

02. Why eBPF makes this possible

Traditional endpoint security tools often observe an event after the operating system has already allowed it. Prevention, however, requires an interception point where the system can still refuse the operation. Extended Berkeley Packet Filter (eBPF) provides a mechanism for attaching restricted programs to selected kernel execution points without rewriting the kernel source for every new policy.

A BPF program is normally compiled into instructions by a compiler such as Clang. The kernel verifier analyzes register state, pointer provenance, memory bounds, control flow and helper usage. If accepted, the program can execute through an interpreter or JIT compiler, depending on the kernel configuration. BPF maps provide structured state shared across invocations and, where permitted, with userspace.

Attachment type Security relevance Important constraint
Tracepoints / kprobes Observe kernel execution Observation alone is not enforcement
BPF LSM Authorize or deny security-sensitive operations Requires supported hooks and kernel configuration
XDP Process inbound network packets early Limited application semantics
Uprobes Observe userspace function execution Not a general-purpose userspace patch mechanism

For example, a defensive LSM program could reject a particular operation only when its context matches a known unsafe condition. Returning a negative error from an appropriate authorization hook prevents the operation; it does not rewrite the implementation behind that hook.

// Conceptual policy, not a compilable Shirudo shield
if (previous_security_decision != 0)
    return previous_security_decision;
if (operation_matches_unsafe_condition && workload_is_affected)
    return -EPERM;
return 0;

The central engineering challenge is therefore not simply attaching BPF code. It is identifying a hook with sufficient semantic information to distinguish legitimate behavior from exploitation. A policy that denies every invocation might stop an attack while simultaneously creating a denial of service.

03. Inside Shirudo's architecture

Shirudo separates the system that authorizes a protection from the machine that executes it. Its public repository describes a BPF-based platform with signed micro-patches, referred to as upatches, and measurements that can be checked remotely.[2]

AI / research agent Propose and test Operator / signer Review and authorize OCI registry Signed artifacts ENROLLED LINUX TARGET Runtime / loader Kernel verification TPM measurement BPF enforcement Remote verifier
Figure 1. Conceptual trust and artifact flow for a BPF upatch. AI output is deliberately outside the signing boundary.

The build side uses a separate helper, shirudo-build, for compilation and signing. On enrolled targets, short-lived commands interact with the kernel, TPM and artifact repositories rather than depending on an always-running privileged listener. Published artifacts can be pulled from OCI registries; the signing authority remains on the operator side.[3]

This division matters because the machine being protected may already be compromised. A design in which a local administrative process can freely disable the protection would provide a much weaker assurance model.

04. What happens when root is no longer trusted?

Linux root is powerful, but a security architecture need not treat UID 0 as an unconditional authorization token. Shirudo's documented bootstrapping establishes kernel-enforced restrictions early, before the ordinary host environment takes over. Its two principal embedded BPF components, bpf2 and seal, address BPF admission and runtime integrity respectively.

Admission and execution

The signed loader is the authorized route for installing subsequent BPF protections. Kernel keyrings establish which signing identities are trusted. Enforcement hooks restrict unauthorized access to protected runtime resources and BPF objects. Task marks distinguish the trusted runtime from arbitrary privileged processes; protected BPF links are retained through a private BPF filesystem.

Integrity of the runtime

Read-only dm-verity images bind runtime and configuration content to cryptographically authenticated roots. Writable state requires separate protection because a hash tree over read-only blocks cannot safeguard a mutable event log. The threat model must consequently address both memory-resident enforcement and persistent state.[3]

From a security engineering perspective, this is a shift from trusting a process because it runs as root to trusting a constrained execution identity established by an authenticated boot path. It is not protection against arbitrary kernel compromise, malicious firmware or every possible physical attack.

05. Post-quantum signatures in the deployment path

One of the more technically interesting aspects of the project is its choice of ML-DSA-87, the highest parameter set of the lattice-based digital signature standard defined in FIPS 204, for its signing tooling. This is a signature scheme, not an encryption mechanism.

Mechanism Purpose
ML-DSA-87 Operator authorization of signed artifacts
Detached CMS SignedData Signature container and signer identification
SHA-256 Artifact identification and measurement chaining
dm-verity Block-level integrity of protected images
Hybrid ML-KEM-768 TLS groups Transport key establishment

The documented signing implementation authenticates the loader instructions together with the associated frozen metadata. Kernel verification takes place on the BPF loading path. The project also documents TLS 1.3 hybrid key exchange using X25519 or P-256 combined with ML-KEM-768, with explicitly configured classical exceptions. Not every verifier enforces the same signature algorithm restriction, so it would be incorrect to characterize the entire trust chain as exclusively post-quantum.[4]

A valid signature establishes that an authorized key approved particular bytes. It cannot establish that the shield is logically correct. A stolen signing key or an authorized but defective policy remains a serious threat. Enterprises should consider isolated signing, approval separation, revocation procedures and independent review rather than exposing the signing key to an autonomous model.

06. From "the shield is installed" to verifiable evidence

Suppose a compromised host reports that every required security control is enabled. Should a remote security team trust that report? A local status command is useful for diagnostics, but its output is not inherently trustworthy.

Shirudo uses a TPM-backed measurement mechanism. The documented design maintains a non-volatile extend index associated with a boot measurement, alongside an event log. Conceptually, each authenticated state transition contributes to a cumulative digest:

event_i = SHA256(domain_tag || canonical_event_fields)
register_i = SHA256(register_(i-1) || event_i)

This simplified representation illustrates an extend operation; it is not a serialization specification. A verifier reconstructs the expected history from approved artifacts and checks signed evidence against that expectation. Freshness and device enrollment must also be validated. A matching measurement gives assurance about the recorded state, not that every application request was safe or that the host is entirely free of compromise.

Initial state R₀ Load A R₁ Load B R₂ Remove A R₃
Figure 2. Illustrative measurement history. Removing a protection creates a new event rather than restoring an earlier digest.

07. Two different vulnerabilities, two different enforcement surfaces

Case A: Copy Fail - CVE-2026-31431

The project's live-patching guide includes a kernel protection for Copy Fail. The shield targets an unsafe interaction involving the kernel's cryptographic userspace interface and splice operations. The defensive strategy is to deny the relevant operation at an LSM boundary rather than substitute the vulnerable kernel implementation.

In the documented test, the operation-specific probe changes from allowed to blocked after deployment. This is evidence that a chosen prerequisite can be denied, not evidence that every imaginable exploit variant has been eliminated. Applications legitimately dependent on the denied behavior must be included in compatibility testing.

Case B: Java4Shell - Java Base64 decoder

The launch demonstration used Codex to generate a protection for a Java decoder flaw and applied it to Elasticsearch. The mitigation adds input validation to the decoder before malformed input reaches the vulnerable logic. The reported controlled experiment blocked the attempted exploitation while the application remained running.[5]

There is an important distinction here: the Java mitigation is bytecode instrumentation, not an eBPF program rewriting Java instructions. Moreover, the repository's documented Java package delivery uses JVM startup configuration, which differs from the live-attachment experiment. Existing JVMs should not be assumed protected by simply publishing that package. The Java signature verification is performed in userspace and does not provide the same root-resistant enforcement boundary as the BPF loader.[6]

Property Kernel upatch Java upatch
Enforcement Linux kernel hook Instrumented JVM method
Validation Kernel loader trust and BPF verifier Userspace signature verification
Scope Operations reaching selected hook JVM instances receiving instrumentation

08. Where exactly does AI fit?

The most useful way to understand Shirudo is not as an LLM running inside the kernel. The model operates in the research and policy development plane; the deployed protection is a conventional executable artifact operating under the runtime's constraints.

Imagine an agent receives a vulnerability report, relevant source code and a regression test suite. It can inspect control flow, identify an interception point, propose a policy and run controlled experiments. The security engineer evaluates whether the proposed invariant holds across supported versions and workloads before granting signing authorization.

Vulnerability analysis -> candidate shield -> isolated testing
-> independent review -> signing -> staged deployment
-> evidence verification -> permanent fix -> shield retirement

That is a proposed operational workflow, not a claim that the repository ships a fully autonomous vulnerability research model. The kernel verifier checks properties such as valid memory access; it cannot decide whether a generated policy accidentally blocks a business-critical request. Behavioral assurance needs negative tests, representative benign traffic, resource measurements and explicit deployment criteria.

09. The security limitations we should not ignore

The attractive part of runtime mitigation is also its greatest risk: it changes production behavior without a conventional software release. A defective shield can cause a widespread outage, even when its instructions are perfectly valid.

Failure mode Recommended control
Incomplete hook coverage Test alternative paths and document the mitigation's exact scope.
Overbroad denial Exercise benign workloads; use canary targets and rollback thresholds.
Kernel or verifier defects Maintain kernel patching and review trusted computing base assumptions.
Signing key compromise Isolate signing authority; rehearse revocation and recovery.
AI prompt injection through research inputs Separate untrusted analysis content from approval and signing capabilities.
Stale attestation Verify freshness and compare against expected policy state.
Configuration mismatch Inventory kernel versions, hooks, architecture and workload variants.

Another limitation is platform readiness. The project documents particular kernel interfaces and carried kernel patches; a stock production distribution cannot be assumed compatible. Establishing the initial trusted runtime may require a modified boot environment and a restart. The no-restart benefit concerns supported runtime mitigations after onboarding, not universal installation on any Linux host.[7]

10. What this means for enterprise security

In a hospital, a financial institution or critical infrastructure environment, taking a system offline may itself create unacceptable risk. Runtime mitigation offers another option between accepting exposure and immediately replacing a component. However, it needs to be integrated into vulnerability management rather than treated as an independent patching strategy.

A pilot should begin with disposable virtual machines and a pinned project revision. Validate trusted boot, artifact provenance, unauthorized modification resistance, state reporting and recovery before evaluating business workloads. Measure both security outcomes and operational impact: time to mitigation, legitimate request rejection, p95/p99 latency, CPU overhead, memory use and the percentage of enrolled targets that attest to the expected policy.

Compare the approach with existing controls rather than assuming it replaces them.

Control Role
EDR / runtime detection Visibility, investigation and response
WAF / IPS Filtering at network or application boundaries
Shirudo Targeted runtime mitigation and evidence of protection state
Conventional live patching Replacement of supported vulnerable code while running
Vendor update Permanent remediation of the underlying defect

Every temporary shield should have an owner, a documented threat assumption, an approved target set and a retirement condition. A successful mitigation must not silently turn into an indefinitely deferred patch.

11. Conclusion: a different defensive timeline

For years, the defender's response to a newly discovered vulnerability has largely depended on how quickly the affected software can be updated. Shirudo explores a different model: change the security behavior of a running system before the permanent fix is ready, while preserving a cryptographically accountable deployment path.

The interesting contribution is not AI in isolation, nor eBPF in isolation. It is the integration of vulnerability analysis, narrowly scoped enforcement, authorization and independent evidence into a single defensive workflow. Whether that workflow scales safely depends on the quality of its policies, the integrity of its trust anchors and the discipline with which organizations validate and retire temporary protections.

AI may reduce the time required to understand a vulnerability and propose a defense. The responsibility for proving that defense is safe remains an engineering problem.

References

  1. OpenAI - Introducing Shirudo, 23 November 2026.
  2. Shirudo source repository.
  3. Shirudo - Architecture overview.
  4. Shirudo - Cryptography.
  5. Isovalent - Cisco and OpenAI introduce Shirudo.
  6. Shirudo - Live patch a kernel and a JVM.
  7. Shirudo documentation - kernel requirements, internals and threat model.
  8. Cisco - Project announcement.

More from the Blog

Threat Intelligence Dec 2, 2026

Inside the Binance Developer Compromise: What the NullReceiver Investigation Reveals

Read More
Deception Nov 30, 2026

The Deception Paradox: Why Decoys Keep Working When Attackers Know They're There

Read More
Kernel Security Nov 30, 2026

From TCP Handshake to Root: CVE-2026-98432

Read More