← Latest papers
🤖 AI

Do Agents Dream of Root Shells? Partial-Credit Evaluation of LLM Agents in Capture The Flag Challenges

This paper introduces DeepRed, an open-source benchmark that evaluates LLM agents on realistic Capture The Flag challenges using partial-credit scoring and automated log analysis, revealing that current models achieve limited success (averaging 35% checkpoint completion) and struggle with non-standard discovery and long-horizon adaptation tasks.

Original authors: Ali Al-Kaswan, Maksim Plotnikov, Maxim Hájek, Roland Vízner, Arie van Deursen, Maliheh Izadi

Published 2026-04-22
📖 5 min read🧠 Deep dive

Original authors: Ali Al-Kaswan, Maksim Plotnikov, Maxim Hájek, Roland Vízner, Arie van Deursen, Maliheh Izadi

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've built a brilliant, hyper-intelligent robot detective. You give it a map, a magnifying glass, and a list of tools, and you ask it to solve a series of locked-room mysteries. The question isn't just, "Did it find the treasure?" but rather, "How far did it get before it got confused?"

This paper, titled "Do Agents Dream of Root Shells?", is about testing exactly that: how good are today's AI "detectives" at solving cybersecurity puzzles called Capture The Flag (CTF) challenges?

Here is the breakdown of their research, explained through simple analogies.

1. The Setup: A Safe "Playground" for AI

The researchers built a digital playground called DeepRed.

  • The Attacker: They put an AI agent inside a virtual computer (a "Kali" machine), which is like giving the detective a fully stocked toolbox and a uniform.
  • The Target: They connected this to a separate, isolated virtual machine containing the "mystery" (the CTF challenge).
  • The Rules: The AI can only talk to the target through a text terminal (like an old-school command line) and can occasionally use a search engine. It cannot cheat by looking at the answer key or breaking the walls of the simulation.

Think of it like putting a chess grandmaster in a room with a locked safe. They can try every combination, pick the lock, or hotwire the door, but they can't just walk out the back door.

2. The Problem: The "All-or-Nothing" Trap

In the past, researchers only cared if the AI solved the whole puzzle.

  • The Old Way: If the AI found the flag, it got 100 points. If it failed at step 1, it got 0.
  • The Reality: Current AI is like a student who can solve the first half of a math problem but gets stuck on the final equation. Under the old system, that student gets a zero, even though they did 80% of the work. This makes it hard to see if the AI is actually getting smarter.

3. The Solution: The "Partial Credit" System

The authors introduced a new way to grade the AI, similar to a teacher grading a long essay.

  • Checkpoints: Instead of just looking for the final "Flag," they broke every challenge down into smaller milestones (e.g., "Found the server," "Got a username," "Escalated to admin").
  • The Grading Machine: Since humans can't watch every single second of the AI's work (it would take forever), they built an automated grading system.
    • Step 1 (The Summarizer): An AI reads the messy, long log of what the detective did and writes a neat summary.
    • Step 2 (The Judge): Another AI reads that summary and checks off the boxes: "Did it find the server? Yes. Did it get the password? No."
  • The Result: They can now say, "This AI got 35% of the way there," which is much more useful than just saying "It failed."

4. The Findings: The "Smart but Clumsy" Detective

They tested 10 different commercial AI models on 10 different puzzles. Here is what they found:

  • The Score: The best AI only managed to complete about 35% of the checkpoints on average. None of them solved the puzzles from start to finish.
  • The Strength: The AIs were good at the "easy" stuff. If the puzzle was a standard web hack (like finding a hidden door in a website), the AI did well.
  • The Weakness: The AIs struggled with long-term planning.
    • Analogy: Imagine the AI is a dog chasing a ball. It runs fast to get the ball (finds the first clue), but then it forgets why it's running, runs in circles, or gives up when the ball rolls behind a bush.
    • They often failed to connect the dots between steps. They would find a clue, forget it, and start over.
  • The Cost: Some models used a massive amount of "brain power" (tokens) to get very little done, while others were efficient but still got stuck.

5. Why This Matters

This paper is a reality check.

  • For Security: It shows that while AI is getting better at hacking, it's not yet a "super-hacker" that can autonomously break into complex systems without human help. We don't need to panic about AI taking over the internet today, but we need to keep watching.
  • For AI Research: It proves that we need to stop grading AI only on "Did it win?" and start grading them on "How did it think?" The new "partial credit" system helps researchers see exactly where the AI is failing so they can fix it.

The Bottom Line

The AI agents are like promising apprentices. They have the tools and the knowledge to start the job, but they lack the patience and the long-term memory to finish the whole house. The researchers built a better ruler to measure their progress, showing us exactly where they are stumbling so we can help them learn to finish the job.

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 →