← Latest papers
💻 computer science

uGen: An Agentic Framework for Generating Microarchitectural Attack PoCs

This paper introduces uGen, the first retrieval-augmented, multi-agent framework that leverages large language models to automatically generate functional, portable, and cost-effective microarchitectural attack proofs-of-concept by addressing critical domain knowledge gaps.

Original authors: Debopriya Roy Dipta, Thore Tiemann, Eduard Marin, Thomas Eisenbarth, Berk Gulmezoglu

Published 2026-05-18
📖 5 min read🧠 Deep dive

Original authors: Debopriya Roy Dipta, Thore Tiemann, Eduard Marin, Thomas Eisenbarth, Berk Gulmezoglu

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a very smart, well-read robot assistant (a Large Language Model, or LLM) that can write computer code. You ask it to build a very specific, tricky machine: a "microarchitectural attack."

Think of these attacks not as viruses, but as sleight-of-hand tricks performed on a computer's brain. Just like a magician might distract an audience to swap a card, these attacks trick the computer's processor into revealing secret information (like passwords) by watching how fast it does things or how it uses its memory.

The problem is, building these tricks is incredibly hard. It requires knowing exactly how the computer's brain works at a microscopic level. If you move one tiny part of the code even a fraction of a second too early or too late, the trick fails completely.

This paper introduces uGen, a new system designed to help these robot assistants build these tricky computer tricks successfully. Here is how it works, broken down into simple concepts:

1. The Problem: The Robot's "Hallucination"

When you ask a standard robot assistant to write this code, it often gets the "big picture" right but messes up the tiny details.

  • The Analogy: Imagine asking a robot to bake a cake. It knows the ingredients (flour, eggs, sugar) and the general steps. But because it doesn't actually feel the heat of the oven or the texture of the batter, it might put the eggs in after the cake is baked, or forget to preheat the oven. The result looks like a cake, but it's inedible.
  • The Reality: The robot writes code that looks correct but fails because it doesn't understand the precise timing and order required to trick the computer's hardware.

2. The Solution: uGen (The "Expert Team")

Instead of asking one robot to do everything, uGen sets up a team of specialized robots working together, guided by a massive library of expert notes.

  • The Team (Multi-Agent System):

    • The Builder: Writes the code.
    • The Inspector: Runs the code to see if it actually works. If it fails, the Inspector tells the Builder exactly why (e.g., "You put the timing check in the wrong spot").
    • The Librarian: Keeps a special library of notes on exactly how to fix specific mistakes.
  • The Library (RAG - Retrieval-Augmented Generation):

    • The Analogy: If the Builder is stuck, they don't just guess. They open a specific book in the library that says, "For this specific type of trick, you must wait 50 milliseconds here, or the computer will catch you."
    • The Reality: The system pulls up precise, technical instructions about how the computer hardware behaves, feeding that information directly to the robot so it doesn't have to guess.

3. The Process: Trial, Error, and Learning

The system doesn't just write the code once. It goes through a loop:

  1. Try: The Builder writes a draft.
  2. Test: The Inspector runs it on real hardware.
  3. Check: If it fails, the system checks the "Library" to see what was missed.
  4. Fix: The Builder updates the code using the specific advice from the library.
  5. Repeat: This happens until the trick works perfectly.

4. The Results: How Well Did It Work?

The researchers tested this system on three different types of robot assistants (Claude, GPT, and Qwen) and two different types of computer tricks (Spectre and Prime+Probe).

  • Before uGen: The robots were terrible at this. They could barely get the code to work on their own (success rates were often near 0% or very low).
  • After uGen: The success rate skyrocketed.
    • For one type of trick (Spectre), the Claude robot succeeded 90% of the time.
    • For another (Prime+Probe), the Qwen robot succeeded 80% of the time.
  • Speed and Cost: The system could generate a working trick in under 4 minutes for about $1.25.

5. Why This Matters (According to the Paper)

The authors argue that this tool is primarily for defenders (security experts), not attackers.

  • The Analogy: Think of uGen as a "stress test" machine. Instead of a security guard trying to guess where the weak spots in a building are, they use a machine that can quickly try thousands of different ways to break in to find the weak spots before a real bad guy does.
  • The Claim: Because these attacks are so hard to build, bad guys usually can't do them easily. uGen lowers the barrier, allowing security teams to test their systems against these complex attacks much faster and more thoroughly than before.

In short: uGen is a smart, team-based system that helps AI assistants learn the tiny, tricky details of computer hardware attacks by consulting a specialized library and testing their work repeatedly, turning a nearly impossible task into a reliable, automated process for security testing.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →