uGen : An Agentic Framework for Generating Microarchitectural Attack PoCs
Debopriya Roy Dipta, Thomas Eisenbarth, Thore Tiemann, Eduard Marin, Berk Gulmezoglu · 2026
Read uGen : An Agentic Framework for Generating Microarchitectural Attack PoCs by Debopriya Roy Dipta, Thomas Eisenbarth, Thore Tiemann, Eduard Marin, Berk Gulmezoglu (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-15503.txt.
Introduction
Debopriya Roy Dipta, Thore Tiemann, Eduard Marin, Thomas Eisenbarth, and Berk Gulmezoglu present uGen, a tool that writes attack test code for chips. Top models often botch key attack steps, so the team maps where chip lore runs thin. uGen adds fetched lore and a multi-agent build to fill those gaps. Tests span cache and speculative-execution attacks on varied chips and platforms. It hits full success on one Spectre form and 80 percent on a Prime-plus-Probe attack. One working test cost 1.25 dollars and took under four minutes.
Catalog record
| CREATOR | Debopriya Roy Dipta, Thomas Eisenbarth, Thore Tiemann, Eduard Marin, Berk Gulmezoglu |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 92097 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2605.15503
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
uGen : An Agentic Framework for Generating Microarchitectural Attack PoCs Debopriya Roy Dipta, Thomas Eisenbarth, Thore Tiemann, Eduard Marin, Berk Gulmezoglu Abstract Microarchitectural attacks continue to evolve, uncovering new exploitation vectors in modern processors. From a defensive perspective, assessing a system’s susceptibility to such attacks remains challenging. Developing functional attack implementations is labor-intensive, requires deep microarchitectural expertise, and is highly sensitive to execution environments. Consequently, existing attacks often lack portability, limiting systematic and scalable vulnerability assessment. Recent advances in large language models (LLMs) suggest a potential avenue for lowering these barriers. However, it remains unclear whether LLMs can reliably generate functionally correct microarchitectural attack code suitable for rigorous vulnerability testing. In this work, we present uGen , the first LLM-driven framework for automated microarchitectural attack code generation. A key challenge we address is identifying attack-specific knowledge gaps in LLMs. Through a systematic study of state-of-the-art models (GPT, Claude, and Qwen3), we find that LLMs frequently misgenerate or misplace critical attack primitives. Guided by this analysis, uGen employs a retrieval-augmented, multi-agent design that injects missing domain knowledge to synthesize functionally correct microarchitectural attack PoCs tailored to defender requirements. We evaluate uGen on cache-based and speculative-execution attacks across diverse set of microarchitectures, vulnerable functions, and LLM platforms. In the deployment stage, uGen achieves up to 100% success rate for Spectre-v1 (Claude Sonnet-4) and 80% for Prime+Probe (Qwen3-Coder). Finally, we demonstrate that uGen can generate a successful PoC code with a cost of $1.25 in under four minutes. BHB branch history buffer BPU branch prediction unit BTB branch target buffer iBTB indirect branch target buffer CPU central processing unit ISA instruction set architecture L1 level-1 cache LLC last-level cache LLM large language model PHT pattern history table PoC proof-of-concept RAG retrieval-augmented generation RSB return stack buffer I Introduction Microarchitectural side-channel attacks have long posed a fundamental challenge to computer security. Cache-based attacks such as Prime+Probe [ 15 ] were demonstrated as early as 2006, but the disclosure of transient execution attacks such as Spectre [ 21 ] in 2018 marked a turning point, showing that speculative execution itself can be abused to leak sensitive data. The attack surface has since expanded rapidly, with increasingly sophisticated variants targeting key microarchitectural components, including cache hierarchies [ 12 , 13 ] , branch predictors [ 3 ] , and speculative execution mechanisms [ 23 ] . Yet, mounting such attacks remains difficult, demanding deep microarchitectural and low-level programming expertise. Successful exploitation depends on subtle hardware effects, such as cache state manipulation and speculative timing, where even minor implementation errors can eliminate observable leakage. Worse, these effects are tightly coupled to specific microarchitectural behaviors, making cross-platform adaptation non-trivial. \Acp llm have already demonstrated strong potential across a range of software engineering tasks, including code completion [ 8 ] , program repair [ 19 ] , code transformation [ 7 ] and translation [ 54 ] , and debugging assistance [ 27 ] . Their integration into code generation workflows can substantially reduce development cost and time-to-deployment [ 35 ] . These capabilities can be further enhanced by injecting external knowledge through rag ( rag ) or by fine-tuning on domain-specific data [ 39 , 49 ] . Among these approaches, rag is particularly attractive due to its lower cost, as fine-tuning requires repeated training cycles, substantial computational resources, and high-quality labeled datasets [ 43 ] . Generating functional microarchitectural poc with llm , however, remains an open problem. Existing training corpora contain few complete, end-to-end attack implementations, leaving models with little exposure to the structure and subtleties of such exploits. More fundamentally, microarchitectural attacks rely on precise instruction ordering and fine-grained timing behavior deep within the processor pipeline. Unlike conventional software vulnerabilities, successful exploitation depends on speculative windows, cache state manipulation, and other side effects that are invisible at the source-code level and must be empirically calibrated on the target platform. Synthesizing correct microarchitectural attack poc is therefore intrinsically difficult for llm . We hypothesize that, in their current form, llm tend to generating poc that omit critical attack metrics, misplace them along attacker-controlled execution paths, or reorder instructions in ways that render the attack ineffective. Our Work To address these shortcomings, we introduce uGen , a rag -empowered llm -driven multi-agent framework that systematically assesses and improves the ability of llm to generate microarchitectural attack implementations across diverse attack classes (e. g., cache-based and speculative-execution attacks), victim function variants, host microarchitectures, and underlying llm . uGen decomposes the poc synthesis into four steps: (1) Knowledge Gap Profiler, (2) rag -Document Generator, and (3) rag Validation & Refinement and (4) Deployment. Across these stages, uGen builds a dynamically evolving knowledge hub of side-channel insights, enabling llm to resolve complex attack metrics through retrieval-augmented reasoning. In summary, • We present the first analysis of llm for synthesizing microarchitectural side-channel attacks, identifying recurring reasoning, knowledge, and instruction-placement errors that prevent successful end-to-end poc exploit synthesis. • We introduce uGen , a retrieval-augmented, multi-agent framework that addresses these limitations by explicitly profiling llm knowledge gaps and injecting attack-specific guidance, enabling more reliable synthesis of complex microarchitectural attack implementations • We propose a metric-driven evaluation methodology and conduct an extensive empirical study across multiple attack classes, microarchitectures, victim functions, and state-of-the-art llm , providing the first reproducible benchmark for assessing llm capabilities in microarchitectural attack generation. II Background We provide an overview of targeted microarchitectural attacks, evaluated llm , and rag pipeline. II-A Microarchitectural Attacks Prime+Probe Attack Attacks in this category monitor a cache set by crafting a set of memory addresses, called eviction set , such that all ways of a cache set are filled after accessing the eviction set [ 33 ] . The attacker first builds the eviction set, then repeatedly accesses it and measures access times to infer the victim’s access pattern. A prerequisite for eviction-based attacks is that attacker and victim must share a cache structure. While being susceptible to noise if the underlying system experiences a huge load, prior work has shown that the leaked information suffices to break cryptographic implementations [ 33 , 25 , 14 , 46 , 36 , 6 ] , and to mount website fingerprinting attacks [ 32 ] . Spectre Attacks Spectre attacks exploit bpu in modern processors to steer execution down incorrect or non-existent code paths. We categorize 1 1 1 We exclude Spectre attacks exploiting the memory disambiguator (Spectre-v4/Spectre-STL [ 18 ] ) as it does not involve the bpu . Spectre attacks by the prediction unit they exploit, namely the pht ( pht ), the btb ( btb ) and ibtb ( ibtb ), the bhb ( bhb ), and the rsb ( rsb ). These attacks work by training the bpu to issue an attacker-controlled prediction during the execution of a victim program. The misprediction allows the attacker to perform computation on victim data and encode the result into a covert channel before the speculative execution is squashed. Most Spectre attacks use Flush+Reload [ 21 , 23 , 26 , 51 , 40 , 3 , 50 , 53 ] as the covert channel, though alternatives such as port contention [ 4 ] , or Foreshadow [ 16 ] have also been demonstrated. II-B Large