OpenAI and Cisco have jointly released Shirudo — Japanese for "shield" — an open-source Linux runtime that enables AI agents to defend production systems without downtime. The core premise addresses one of the oldest pain points in vulnerability management: the gap between vulnerability disclosure and safe patch deployment. Instead of forcing defenders to choose between emergency patching (with its risk of breaking production) and running exposed, Shirudo lets AI agents author dynamic eBPF controls that block exploitation at the kernel level while teams test and stage patches properly.
As OpenAI stated in its announcement: "It lets agents write dynamic eBPF controls to shield systems from security issues, giving defenders more time to test and roll out patches."
For SOC teams and platform engineers, this is a significant shift. Virtual patching has existed for years at the network layer (WAF rules, IPS signatures), but Shirudo moves that capability into the kernel via eBPF — with AI agents doing the authoring. That power cuts both ways: the same eBPF subsystem that can shield a vulnerable service is also a well-documented attacker primitive for rootkits and stealthy persistence. If you deploy Shirudo — or any agentic eBPF tooling — you must simultaneously build detection coverage for eBPF abuse, or you've handed adversaries (and misbehaving agents) a loaded weapon.
This post breaks down how Shirudo works, the defensive value it delivers, the risks it introduces, and the detection and hardening controls your team should have in place before an AI agent ever loads a bytecode program into your production kernels.
Technical Analysis
What Shirudo Does
Shirudo is an open-source Linux runtime built around the extended Berkeley Packet Filter (eBPF) subsystem. Rather than statically shipping signatures, it allows AI agents to:
- Analyze a disclosed vulnerability — the affected component, syscall patterns, network behavior, or data flows involved in exploitation.
- Author a targeted eBPF program that intercepts and blocks the specific exploitation primitive (e.g., a malicious syscall sequence, an anomalous packet shape, an unexpected process exec from a vulnerable daemon).
- Load that program into the running kernel with zero downtime — no service restarts, no reboots, no maintenance windows.
- Buy time for proper patch validation — the eBPF control acts as a compensating control while the actual vendor patch moves through staging and regression testing.
This is functionally kernel-level virtual patching driven by an agentic AI workflow, with Cisco contributing the systems/networking engineering depth and OpenAI contributing the agent reasoning layer.
Why eBPF Is the Right (and Risky) Vehicle
eBPF programs run in a sandboxed virtual machine inside the Linux kernel, verified by the in-kernel verifier before loading. They can attach to kprobes, tracepoints, LSM hooks, XDP (network ingress), and cgroup hooks. That makes them ideal for surgical exploit mitigation:
- XDP/TC hooks can drop exploit-shaped packets before they reach a vulnerable userspace service.
- LSM/syscall hooks can deny a specific dangerous operation (e.g., a vulnerable parser spawning a shell) without touching the application's code.
- Tracepoints provide high-fidelity telemetry on exploitation attempts for the SOC.
The risk side is equally well established. Offensive tooling such as TripleCross, eBPF-based rootkits (ebpfkit, Boopkit), and C2 frameworks leveraging eBPF socket filters have demonstrated that eBPF enables syscall hijacking, covert network redirection, and file/process hiding that is nearly invisible to traditional EDR. eBPF abuse maps to MITRE ATT&CK T1014 (Rootkit) and T1059/TA0002 execution tradecraft. An AI agent with privileges to load eBPF programs is, architecturally, an AI agent with rootkit-class capability — which makes governance and monitoring non-negotiable.
Affected / Applicable Platforms
- Linux systems running kernels with eBPF support (modern distributions — RHEL 8+/9+, Ubuntu 20.04+, Debian 11+, and cloud-native/container hosts).
- Because eBPF program loading requires
CAP_BPF/CAP_SYS_ADMIN(or unprivileged BPF wherekernel.unprivileged_bpf_disabled=0), the runtime inherently operates at high privilege. - Containerized and Kubernetes environments are squarely in scope — eBPF is already the backbone of Cilium, Falco, Tetragon, and similar tooling, and Shirudo fits into that ecosystem.
Exploitation Status
Shirudo itself is a defensive tool release, not a vulnerability disclosure — there is no associated CVE and nothing to patch. The threat model here is twofold: (1) the vulnerabilities Shirudo is designed to shield, which continue to be exploited in the wild during patch windows, and (2) the risk of unauthorized or malicious eBPF program loading on any host — which your SOC should already be hunting for, and which becomes mission-critical once you legitimize agentic eBPF loading in your environment.
Detection & Response
Whether or not you adopt Shirudo, the detections below belong in a mature Linux monitoring stack. If you do adopt it, these controls are how you distinguish sanctioned agent-loaded programs from attacker-loaded ones — and how you detect a compromised or malfunctioning agent.
Sigma Rules
---
title: Suspicious eBPF Program Manipulation via bpftool
id: 8f2c1a94-3b7d-4e61-9c52-7d4a8f2b1c93
status: experimental
description: Detects use of bpftool to load, pin, or manage eBPF programs and maps. Legitimate on systems running eBPF security tooling (Shirudo, Tetragon, Cilium, Falco), but a strong indicator of rootkit activity elsewhere. Triage against an allowlist of sanctioned eBPF management hosts and service accounts.
references:
- https://attack.mitre.org/techniques/T1014/
- https://thehackernews.com/2026/11/openai-and-cisco-unveil-ai-assisted.html
author: Security Arsenal
date: 2026/11/15
tags:
- attack.defense_evasion
- attack.t1014
logsource:
category: process_creation
product: linux
detection:
selection_img:
Image|endswith:
- '/bpftool'
- '/bpftrace'
selection_args:
CommandLine|contains:
- 'prog load'
- 'prog pin'
- 'map create'
- 'struct_ops register'
- 'net attach'
condition: selection_img and selection_args
falsepositives:
- Shirudo runtime and sanctioned eBPF tooling (Cilium, Tetragon, Falco) on approved hosts
- Legitimate kernel/network engineering activity by platform teams
level: high
---
title: Unprivileged eBPF Syscall Enablement Attempt
id: 2b6d3e17-9a4f-4c28-b871-5e3d9c0a7f24
status: experimental
description: Detects attempts to enable unprivileged eBPF or inspect BPF-related kernel parameters via sysctl. Attackers and post-exploitation frameworks enable unprivileged_bpf to load eBPF programs without CAP_SYS_ADMIN.
references:
- https://attack.mitre.org/techniques/T1014/
- https://attack.mitre.org/techniques/T1562/
author: Security Arsenal
date: 2026/11/15
tags:
- attack.defense_evasion
- attack.t1562
- attack.t1014
logsource:
category: process_creation
product: linux
detection:
selection:
Image|endswith:
- '/sysctl'
- '/bash'
- '/sh'
CommandLine|contains:
- 'unprivileged_bpf_disabled'
- 'kernel.core_pattern'
- 'bpf_jit_enable'
condition: selection
falsepositives:
- Hardening scripts run by infrastructure teams (should set unprivileged_bpf_disabled=1, never 0)
level: high
---
title: Linux Kernel Module or BPF Load via insmod/modprobe by Non-Kernel Process
id: 4c9e2b58-1d6a-4f37-8d42-9b1c5e7a3f08
status: experimental
description: Detects kernel module loading initiated from shells or script interpreters rather than systemd/udev, a common companion behavior to eBPF rootkit deployment and ad-hoc kernel tampering.
references:
- https://attack.mitre.org/techniques/T1014/
- https://attack.mitre.org/techniques/T1547.006/
author: Security Arsenal
date: 2026/11/15
tags:
- attack.persistence
- attack.t1547.006
- attack.defense_evasion
logsource:
category: process_creation
product: linux
detection:
selection_img:
Image|endswith:
- '/insmod'
- '/modprobe'
- '/kmod'
selection_parent:
ParentImage|endswith:
- '/bash'
- '/sh'
- '/zsh'
- '/python'
- '/python3'
- '/perl'
condition: selection_img and selection_parent
falsepositives:
- Administrator-driven kernel debugging sessions
level: medium
KQL — Microsoft Sentinel / Defender
Even though this is a Linux-centric technology, most enterprise SOCs ingest Linux telemetry into Sentinel via Syslog/CEF or Defender for Endpoint. The query below hunts for eBPF manipulation tooling executing on Linux hosts, excluding your sanctioned eBPF management hosts — tune the allowlist to your Shirudo/Cilium/Falco infrastructure.
// Hunt for eBPF program management activity on Linux hosts
// Tune the ApprovedHosts list to your Shirudo/Cilium/Tetragon/Falco nodes
let ApprovedHosts = dynamic(["shirudo-node-01", "k8s-ingress-01"]);
let ApprovedAccounts = dynamic(["shirudo-agent", "cilium", "falco"]);
union isfuzzy=true
(Syslog
| where TimeGenerated > ago(7d)
| where ProcessName in~ ("bpftool", "bpftrace", "sysctl")
or SyslogMessage has_any ("prog load", "prog pin", "unprivileged_bpf_disabled", "bpf_jit_enable")
| extend Indicator = SyslogMessage, SourceHost = Computer, Account = "unknown"
| project TimeGenerated, SourceHost, ProcessName, Indicator, Account, SeverityLevel),
(DeviceProcessEvents
| where TimeGenerated > ago(7d)
| where FileName in~ ("bpftool", "bpftrace", "sysctl")
or ProcessCommandLine has_any ("prog load", "prog pin", "unprivileged_bpf_disabled", "bpf_jit_enable", "insmod", "modprobe")
| extend Indicator = ProcessCommandLine, SourceHost = DeviceName, Account = AccountName
| project TimeGenerated, SourceHost, FileName, Indicator, Account, InitiatingProcessAccountName)
| where SourceHost !in~ (ApprovedHosts) and Account !in~ (ApprovedAccounts)
| summarize FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated), Events=count()
by SourceHost, ProcessName = coalesce(ProcessName, FileName), Indicator, Account
| order by LastSeen desc
Velociraptor VQL
This hunt enumerates loaded eBPF programs and pinned BPF filesystem objects on Linux endpoints — exactly the forensic footprint an eBPF rootkit (or a rogue/duplicate Shirudo program) leaves behind. Collecting the bpftool prog show and bpffs pin inventory lets you diff against the set of programs your sanctioned tooling should have loaded.
-- Linux.EBPF.ProgramInventory
-- Inventory loaded eBPF programs, links, and bpffs pins for rootkit/agent auditing
LET bpf_progs = SELECT * FROM execve(
argv=["/usr/sbin/bpftool", "prog", "show"]
)
LET bpf_links = SELECT * FROM execve(
argv=["/usr/sbin/bpftool", "link", "show"]
)
LET bpffs_pins = SELECT FullPath, Mtime, Size
FROM glob(globs="/sys/fs/bpf/**/*")
SELECT "program" AS ArtifactType, bpf_progs.Stdout AS Detail, "" AS Path
FROM bpf_progs
UNION ALL
SELECT "link" AS ArtifactType, bpf_links.Stdout AS Detail, "" AS Path
FROM bpf_links
UNION ALL
SELECT "bpffs_pin" AS ArtifactType, str(str=Mtime) AS Detail, FullPath AS Path
FROM bpffs_pins
Remediation / Hardening Script
The following Bash script audits and hardens a Linux host for safe eBPF operations — appropriate whether you're preparing to run Shirudo or simply want to prevent unauthorized eBPF loading. It disables unprivileged BPF, inventories currently loaded programs, and checks for unsigned kernel module exposure.
#!/usr/bin/env bash
# Security Arsenal - eBPF Attack Surface Audit & Hardening
# Run as root. Safe to run before/after Shirudo deployment.
set -euo pipefail
REPORT="/var/log/ebpf_audit_$(date +%Y%m%d_%H%M%S).log"
echo "=== eBPF Audit & Hardening — $(date) ===" | tee "$REPORT"
# --- 1. Disable unprivileged eBPF (attackers love this toggle) ---
echo "[+] Hardening sysctl parameters..." | tee -a "$REPORT"
sysctl -w kernel.unprivileged_bpf_disabled=1 | tee -a "$REPORT"
grep -q 'kernel.unprivileged_bpf_disabled' /etc/sysctl.d/99-ebpf-hardening.conf 2>/dev/null || \
cat > /etc/sysctl.d/99-ebpf-hardening.conf <<'EOF'
# Security Arsenal eBPF hardening
kernel.unprivileged_bpf_disabled=1
kernel.kptr_restrict=2
kernel.perf_event_paranoid=3
EOF
sysctl --system >/dev/null 2>&1
echo " kernel.unprivileged_bpf_disabled = $(sysctl -n kernel.unprivileged_bpf_disabled)" | tee -a "$REPORT"
# --- 2. Inventory currently loaded eBPF programs (baseline for diffing) ---
echo "[+] Inventorying loaded eBPF programs..." | tee -a "$REPORT"
if command -v bpftool &>/dev/null; then
bpftool prog show | tee -a "$REPORT"
echo "--- Pinned objects under /sys/fs/bpf ---" | tee -a "$REPORT"
find /sys/fs/bpf -type f 2>/dev/null | tee -a "$REPORT" || echo " (no pins found)" | tee -a "$REPORT"
else
echo " bpftool not installed (good for attack surface; install only on mgmt hosts)" | tee -a "$REPORT"
fi
# --- 3. Audit: which processes hold CAP_BPF / CAP_SYS_ADMIN ---
echo "[+] Processes with CAP_BPF or CAP_SYS_ADMIN:" | tee -a "$REPORT"
for pid in $(ls /proc | grep -E '^[0-9]+$'); do
if [[ -r "/proc/$pid/status" ]]; then
cap=$(grep CapEff "/proc/$pid/status" 2>/dev/null | awk '{print $2}')
# CAP_SYS_ADMIN = bit 21 (0x200000); CAP_BPF = bit 39 (0x8000000000)
if [[ -n "$cap" && $((16#$cap & 16#200000)) -ne 0 ]]; then
echo " PID $pid ($(cat /proc/$pid/comm 2>/dev/null)) holds CAP_SYS_ADMIN" | tee -a "$REPORT"
fi
fi
done
# --- 4. Verify kernel lockdown / module signing state ---
echo "[+] Kernel lockdown mode: $(cat /sys/kernel/security/lockdown 2>/dev/null || echo 'unknown')" | tee -a "$REPORT"
# --- 5. If running Shirudo: pin and verify the agent's program set ---
if pgrep -f shirudo &>/dev/null; then
echo "[+] Shirudo runtime detected. Current program count: $(bpftool prog show 2>/dev/null | grep -c '^[0-9]')" | tee -a "$REPORT"
echo " ACTION: diff this inventory against Shirudo's sanctioned manifest." | tee -a "$REPORT"
fi
echo "=== Audit complete. Report: $REPORT ==="
Remediation & Deployment Guidance
If You're Evaluating or Deploying Shirudo
- Retrieve it only from official sources. Confirm the repository from OpenAI and Cisco's official channels (reference: The Hacker News coverage). Agentic security tooling is a prime target for typosquatting and malicious forks — verify signatures and commit provenance before running anything that loads code into your kernels.
- Constrain the agent's blast radius. Run the Shirudo agent under a dedicated service account with only the capabilities it needs (
CAP_BPFwhere your kernel supports it, rather than blanketCAP_SYS_ADMIN). Never run it with unauthenticated network exposure. - Require human-in-the-loop approval for production program loads. An AI agent autonomously writing and loading kernel-level controls on critical systems is a governance risk, not just a technical one. Stage generated eBPF programs in a test namespace or canary host, validate them against your application baseline, and require change-control sign-off for production attachment.
- Baseline and diff eBPF program inventory. Before enabling Shirudo, capture a clean
bpftool prog show/ bpffs pin baseline per host class. Every new program should map to a change ticket or an agent action log entry. Anything else is an incident. - Treat eBPF shields as compensating controls, not fixes. A Shirudo control blocks exploitation; it does not remove the vulnerable code. Track every shielded vulnerability in your VM program with a hard SLA — the shield buys you testing time, not a permanent exemption from patching.
For All Linux Estates (Regardless of Shirudo Adoption)
- Set
kernel.unprivileged_bpf_disabled=1on every host (persist via sysctl.d). There is almost no legitimate production need for unprivileged BPF. - Enable kernel lockdown mode (
lockdown=integrityorconfidentiality) on Secure Boot systems to constrain arbitrary kernel manipulation. - Forward auditd/Sysmon-for-Linux telemetry for the
bpf()syscall,bpftrace/bpftoolexecution, and/sys/fs/bpfaccess to your SIEM, and deploy the Sigma/KQL content above. - Restrict eBPF management tooling (
bpftool,bpftrace) to a small set of hardened jump/management hosts. Their presence on a random web server is itself an indicator.
If You Suspect eBPF-Based Compromise
- Do not reboot blindly — volatile eBPF state is evidence. Capture
bpftool prog show,bpftool link show,bpftool map dump, and bpffs pin contents first (the VQL artifact above automates this). - Isolate the host at the network layer rather than powering it down.
- Collect a memory image before remediation; eBPF rootkits are designed to evade disk-based forensics, and memory analysis (with frameworks such as Volatility plus eBPF-aware tooling) is often the only way to recover the loaded bytecode.
- Rebuild from known-good media if unauthorized programs are confirmed — you cannot reliably unload a rootkit that controls syscall visibility.
Shirudo is a genuinely promising development: it acknowledges the reality that patch cycles are slow and adversaries are fast, and it weaponizes the same kernel technology defenders have watched attackers exploit for years. But adopting agentic kernel-level defense without agentic kernel-level monitoring is only half the job. Deploy the shield — and instrument the hand holding it.
Related Resources
Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub
Is your security operations ready?
Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.