DEV Community

Cover image for OpenAI and Cisco Open-Source Shirudo — Agent eBPF Shields Still Leave the Windows Capture Path to You
devs
devs

Posted on

OpenAI and Cisco Open-Source Shirudo — Agent eBPF Shields Still Leave the Windows Capture Path to You

On 23 November 2026 OpenAI and Cisco open-sourced Shirudo (Japanese for “shield”), a runtime that lets agents generate and load signed eBPF “upatches” or Java agents into a running Linux system. The goal is temporary protection against a known exploit path while the real patch is tested and rolled out—no reboot required. A controlled test showed a Codex-generated shield blocking a Java4Shell attempt against a running Elasticsearch instance. The project is still pre-release: it needs a patched kernel, TPM 2.0, and signed loaders. After boot the kernel only accepts BPF from those signed loaders; every change is measured into the TPM.

That is a clean demonstration of agent-speed mitigation on the kernel side. It does not change the capture budget if you are shipping a live overlay on Windows that needs short suggestions or translations during a technical interview or sales call in another language.

Why the shield still waits on the buffer

Shirudo’s upatch is a small verified BPF program (or Java bytecode agent) attached at a hook. The verifier already proved it terminates and stays in bounds. Load is fast once the signature checks out. On the Windows side of a real-time tool the dominant cost is still the audio path before any local model or agent sees data:

  1. Microphone: what you say.
  2. Loopback of the render endpoint: what the remote party says through the call client.

Both must stay in shared-mode WASAPI so the call client keeps the device. Exclusive mode would break the call. The audio engine (audiodg.exe + audioeng.dll) mixes and applies any APOs. Typical shared period is 10 ms. You can request less via IAudioClient3; the engine often ignores it under load.

Rough budget once samples leave the callback (modern laptop, enhancements off):

Stage Typical cost
WASAPI shared period 10 ms
Callback → lock-free ring + convert 1–3 ms
Resample to 16 kHz mono + light VAD 2–5 ms
Local STT first partial 40–120 ms
Small local polish / suggestion model 20–80 ms
Overlay paint <16 ms

A signed eBPF shield that blocks a kernel path in microseconds does not move this floor. Drop enhancements, pin the capture thread, and keep a lock-free SPSC ring or the first usable partial still waits on the buffer.

eBPF program lifecycle

Minimal dual-track sketch

// Shared-mode loopback + mic (error handling omitted)
IMMDeviceEnumerator* enumerator = nullptr;
CoCreateInstance(__uuidof(MMDeviceEnumerator), nullptr, CLSCTX_ALL,
                 __uuidof(IMMDeviceEnumerator), (void**)&enumerator);

IMMDevice* defaultRender = nullptr;
enumerator->GetDefaultAudioEndpoint(eRender, eConsole, &defaultRender);

IAudioClient* loopbackClient = nullptr;
defaultRender->Activate(__uuidof(IAudioClient), CLSCTX_ALL, nullptr, (void**)&loopbackClient);

WAVEFORMATEX* format = nullptr;
loopbackClient->GetMixFormat(&format);
loopbackClient->Initialize(AUDCLNT_SHAREMODE_SHARED,
                           AUDCLNT_STREAMFLAGS_LOOPBACK | AUDCLNT_STREAMFLAGS_EVENTCALLBACK,
                           100000, 0, format, nullptr);  // request ~10 ms

// Mirror for capture endpoint without LOOPBACK.
// Callback copies to SPSC ring only. Consumer thread resamples, VAD, feeds STT or local model.
Enter fullscreen mode Exit fullscreen mode

From the ring you can feed a local STT (faster-whisper, Whisper.cpp, Windows ML Speech Recognition Task, or a small GGUF) then a short polish pass. The model never sees the samples until the capture side is correct. The same pattern holds if you later pipe a transcript chunk into an agent that could, in principle, generate a temporary mitigation—exactly the Shirudo loop, just on the audio side instead of the kernel.

Architecture notes and tradeoffs

  • Shared mode is non-negotiable if the call client must keep the device. Exclusive mode is a non-starter for overlays.
  • The 10 ms period is the hard floor on most systems. IAudioClient3::InitializeSharedAudioStream can request smaller periods; success is not guaranteed under load or with enhancements enabled.
  • Lock-free SPSC ring in the callback, heavy work (resample, VAD, model) on a consumer thread. Anything else in the callback risks glitches.
  • Local models remove the network hop. They do not remove the buffer. A 200 tok/s GGUF is fast for text; the first partial is still gated by framing.
  • Shirudo-style signed, verified, measured loading is attractive for any agent that mutates running systems. On Windows the equivalent for audio is still the shared-mode client + ring, not a kernel hook.

Audio waveforms

Agents that can write and load a verified shield in seconds are useful. They do not rewrite the WASAPI period or the audio engine’s mixing. For a live overlay the practical order remains: get clean dual-track PCM out of shared mode first, then let the local model or agent polish the text. Everything else is secondary.

I'm building Talkaside, a Windows app for job interviews and calls in another language.
Drafted with AI assistance from this project's code and logs.

Top comments (0)