Video coming

The recording isn’t out yet. It shows here as soon as the conference publishes it.

Black Hat USA 2026

When Agentic Glue Melts: Exploiting Cloudflare CodeMode and Workers

Yarden Porat, Cyata Security; Shahar Tal, Cyata SecurityCloud Security

When and where

Day
Thu 6 Aug 2026
Time
15:35 to 16:15 PDT
Room
Mandalay Bay G, Level 2

Speakers

  • Yarden PoratCyata Security

    Yarden Porat is a vulnerability researcher with nearly a decade of experience in cryptography, blockchain, reverse engineering, and low-level exploitation. He recently joined Cyata, a startup securing identity in the AI era, bringing his deep research background to strengthen the foundations of modern access management.

  • Shahar TalCyata Security

    Shahar Tal is a seasoned cybersecurity expert with extensive experience in vulnerability research and leadership roles within the industry. He co-founded Cyata Security in 2024, a startup specializing in agentic identity security. Prior to establishing Cyata, Shahar served as Vice President at Cellebrite, leading the Security Research Labs dedicated to unlocking, extraction, and digital forensic analysis. Before his tenure at Cellebrite, he managed malware and vulnerability research at Check Point Software Technologies. Shahar's journey began with a decade of service in the Israeli Defense Forces, where he held R&D and technological leadership roles in both the Air Force and Unit 8200.

Abstract

We began this research with a narrow goal: break Cloudflare Code Mode. What we found was much broader. Code Mode is Cloudflare's experimental orchestration layer for LLM-driven tool use. It converts tools into a typed API and lets the model generate TypeScript that runs inside workerd, the same lightweight JavaScript runtime behind Cloudflare Workers. Its security model relies on V8 isolates as the primary boundary, executing untrusted code in-process rather than behind traditional OS sandboxes. Our work quickly led us to uncover JSG, workerd's C++ "JavaScript Glue" layer, which bridges JavaScript to native code and implements core runtime APIs. While V8 has received years of public scrutiny, JSG has received almost none, despite living directly on the isolation boundary. Targeting that layer led us to five vulnerabilities that fundamentally weaken workerd's isolation model, two of them rated CRITICAL by Cloudflare. Starting from a basic prompt injection entry point, we show how to exploit a JSG use-after-free to escape the V8 isolate, build read/write primitives, shape the heap for reliable exploitation, and achieve native code execution in the host process. What looked at first like an escape from an experimental agent runtime proved to be a production cloud isolation failure. The same vulnerabilities also affected Cloudflare Workers, enabling cross-tenant information disclosure and undermining the security assumptions behind same-process multi-tenant execution. We will unpack the vulnerability chain and end with a full demo that extracts a sensitive private key from a different worker. The broader lesson is clear: in modern cloud sandboxes, the engine is only part of the boundary. The glue code around it is part of the boundary too.

Did you find what you came for?