← Lab /Security & privacy

LLM framework uGen generates functional microarchitectural attack PoCs with up to 100% success

uGen can automatically produce correct Spectre-v1 and Prime+Probe PoC code with up to 100% and 80% success rates respectively

Security & privacy arXiv 15 May 2026 Method Prototype evidence

Published as “uGen: An Agentic Framework for Generating Microarchitectural Attack PoCs”

Why it matters

Defenders can more easily generate accurate microarchitectural attack PoCs for testing and hardening systems, while the barrier for attackers remains non-trivial.

Summary

uGen raises the success rate of LLM-generated microarchitectural attack PoCs from a native maximum of 20% to as high as 90% for some models, though the improvement varies by model and attack type. The evidence comes from a benchmark on Spectre-v1 and Prime+Probe across AMD, Intel and ARM CPUs showing 70-80% success for most models and 90% for Claude Sonnet-4 on Spectre, but also reveals higher runtime, cost, and occasional failures.

What they found 2

  1. uGen increases the success rate up to 90% for certain models.

    “uGen increases the success rate up to 90% for certain models.”

  2. Native LLMs without RAG achieve at most 20% success in generating functional PoCs.

    “The evaluated LLMs natively achieve success rates of only up to 20%.”

Caveats 5

  • GPT-4o only reaches 70% success for Spectre-v1 and requires expert feedback for many metrics, showing the improvement is not uniform.
  • Qwen3-Coder, while cheapest, attains only 80% success for Spectre-v1 and 80% for Prime+Probe, indicating the 90% ceiling is model-specific.
  • Runtime can be as high as 427.5 s (Qwen3-Coder on Prime+Probe) and cost varies, so the gains come with higher computational expense.
  • most failures are due to reasoning and implementation errors in the generated PoC code.
  • the degree of effectiveness varies across models: while Claude Sonnet-4 and Qwen3-Coder benefit from RAG with minimal refinement, GPT-4o frequently requires expert feedback to resolve ambiguities.

What’s new here 4

  • Introduces a retrieval-augmented, multi-agent framework that profiles LLM knowledge gaps and injects attack-specific guidance.
  • Provides a metric-driven evaluation benchmark for microarchitectural PoC generation across multiple attacks, CPUs, and victim functions.
  • Demonstrates cross-ISA portability (x86 and AArch64) by automatically calibrating platform-specific parameters.
  • Shows that automatically generated RAG documents can close metric-level gaps without expert feedback for most models.