Cochise: A Reference Harness for Autonomous Penetration Testing
This paper introduces Cochise, a minimal 597-line Python reference harness that implements a separated Planner-Executor architecture for autonomous penetration testing, enabling researchers to evaluate LLM-driven agents against the Game of Active Directory (GOAD) testbed while providing open-source tools for replay, analysis, and trajectory data sharing.
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 are trying to teach a robot how to break into a digital fortress (a computer network) to find its weak spots. This is called "penetration testing." Recently, researchers started using super-smart AI brains (Large Language Models) to do this job automatically.
However, there was a problem: every time a new team built an AI hacker, they built their own unique workshop, tools, and rulebook. It was like comparing a car built in a garage to a spaceship built in a factory; you couldn't tell if the spaceship was faster because of its engine or just because it had better wheels.
Enter "Cochise."
Think of Cochise not as a super-spy, but as a standardized, transparent training gym for AI hackers. It is a small, simple "harness" (a set of tools and rules) that lets researchers test different AI brains under the exact same conditions.
Here is how it works, using some everyday analogies:
1. The Setup: The "Jump Host"
Imagine the AI needs to break into a castle (the target network), but it's too dangerous to let the AI stand right at the castle gate.
- The Solution: Cochise sets up a safe "jumping-off" platform (a separate computer) outside the castle.
- The Analogy: The AI sits in a control room and uses a long, secure walkie-talkie (SSH) to tell a robot on the jumping platform what to do. The robot then walks into the castle.
- Why? If the AI makes a mistake and accidentally blows up the castle, it only destroys the robot's instructions, not the AI's own brain or the control room. It keeps the experiment safe and contained.
2. The Team: The "Planner" and the "Executor"
Cochise splits the AI's brain into two distinct roles to keep things organized:
- The Planner (The General): This part of the AI sits back and looks at the big picture. It keeps a long-term to-do list (like a map of the castle) and decides what needs to be done next. It remembers the whole mission.
- The Executor (The Soldier): This part is short-term and focused. It gets a specific order from the General (e.g., "Try to open this door"), runs the commands, sees what happens, and then forgets everything once the job is done.
- The Analogy: Think of a movie director (Planner) and a stunt double (Executor). The director plans the scene. The stunt double does the dangerous jump, gets the result, and then the director wipes the slate clean for the next scene. This prevents the AI from getting confused by hours of old memories.
3. The "Black Box" Recorder
Every single thing the AI does is written down in a perfect, detailed diary (JSON logs).
- The Analogy: It's like a flight recorder on a plane. It records every button pressed, every thought the AI had, how much "fuel" (money/tokens) it used, and whether it succeeded.
- Why is this cool? Usually, to study these AI hackers, you need a massive, expensive computer lab (the "GOAD" testbed) that costs a fortune to run. Cochise gives researchers a free replay kit. You don't need the expensive lab; you can just watch the "flight recorder" data to see exactly how the AI behaved, how much it cost, and where it failed.
4. Why It Matters (The "Reference Harness")
The authors are very clear: Cochise is not the best hacker in the world. It's not trying to be the ultimate spy.
- The Analogy: Think of it like a standardized ruler. You don't use a ruler to build a house; you use it to measure how well other tools build houses.
- Because Cochise is tiny (only 597 lines of code, compared to thousands in other projects), it is easy for other researchers to read, understand, and change. This allows them to fairly compare different AI models to see which one is actually smarter, rather than just seeing which one had a fancier setup.
Summary
Cochise is a simple, open-source toolkit that lets researchers test AI hackers fairly. It separates the "thinking" from the "doing," keeps the experiments safe, and records every detail so anyone can study the results without needing a supercomputer. It turns the chaotic world of AI security research into a fair, measurable science.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.