← Lab /AI/ML

Cochise provides a minimal Python harness for autonomous penetration-testing experiments

Their 597-line reference harness can effectively evaluate LLM-driven agents on a live AD testbed

AI/ML arXiv 12 May 2026 Benchmark Prototype evidence

Published as “Cochise: A Reference Harness for Autonomous Penetration Testing”

Why it matters

Researchers can now compare LLM-driven pentesting agents using a lightweight, reproducible harness and shared logs without needing the costly GOAD infrastructure.

Summary

Using the tiny 597-LOC Cochise harness, both Gemini-3-Flash and Claude-4.7-Opus were able to compromise all three Active Directory domains in 3 of 5 runs on the GOAD testbed, with Gemini-Flash achieving the same success at about one-tenth the cost per hour. The evidence comes from a limited set of five runs per model, so the result is promising but not definitive.

What they found 3

  1. Both Gemini-3-Flash and Claude-4.7-Opus compromised at least one AD domain in every run and all three domains in 3 of 5 runs.

    “Across all runs, both Opus and Gemini-Flash compromised at least one of the three Active Directory domains within GOAD; in 3/5 runs, both models were able to compromise all three Active Directory domains with average costs of Gemini-Flash being 12x lower.”

  2. Gemini-Flash achieved comparable compromise success at roughly one-tenth the hourly cost of Claude-Opus.

    “average costs of Gemini-Flash being 12x lower.”

  3. Cochise’s codebase (597 LOC) is 3-13× smaller than prior autonomous pentesting prototypes.

    “the results highlighted in Table 1 show that cochise’s 597 lines-of-code compare very favorable to other prototypes, typically being smaller by a factor of 3-13.”

Caveats 6

  • Full compromise of all three AD domains was achieved in only 3 out of 5 runs per model, indicating limited reliability.
  • The evaluation is based on a very small sample size (5 runs per model), which may not generalize.
  • Cochise does not address initial access (phishing, exploit-driven remote code execution, physical access).
  • The execution host is trusted; the testbed network is the only attack surface.
  • We do not model human-in-the-loop adversaries.
  • We cannot report on third-party adoption of the prototype.

What’s new here 4

  • Provides a minimal (597 LOC) reference harness that separates planning and execution with long-term state outside the LLM context.
  • Logs every interaction in a detailed JSON trajectory format enabling offline replay and cost/token analysis.
  • Includes open-source replay and analysis tools plus a corpus of GOAD runs, removing the need to provision the heavy testbed.
  • Supports easy swapping of LLM back-ends via the LiteLLM framework.