PentestJudge: Judging Agent Behavior Against Operational Requirements
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
We introduce PentestJudge, a system for evaluating the operations of penetration testing agents. PentestJudge is a large language model (LLM)-as-judge with access to tools that allow it to consume arbitrary trajectories of agent states and tool call history to determine whether a security agent's actions meet certain operating criteria that would be impractical to evaluate programmatically. We develop rubrics that use a tree structure to hierarchically collapse the penetration testing task for a particular environment into smaller, simpler, and more manageable sub-tasks and criteria until each leaf node represents simple yes-or-no criteria for PentestJudge to evaluate. Task nodes are broken down into different categories related to operational objectives, operational security, and tradecraft. LLM-as-judge scores are compared to human domain experts as a ground-truth reference, allowing us to compare their relative performance with standard binary classification metrics, such as F1 scores. We evaluate several frontier and open-source models acting as judge agents, with the best model reaching an F1 score of 0.83. We find models that are better at tool-use perform more closely to human experts. By stratifying the F1 scores by requirement type, we find even models with similar overall scores struggle with different types of questions, suggesting certain models may be better judges of particular operating criteria. We find that weaker and cheaper models can judge the trajectories of pentests performed by stronger and more expensive models, suggesting verification may be easier than generation for the penetration testing task. We share this methodology to facilitate future research in understanding the ability of judges to holistically and scalably evaluate the process quality of AI-based information security agents so that they may be confidently used in sensitive production environments.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 25 of its 34 references that are in the map. First posted on arXiv 4 Aug 2025.
Builds on
25 of 34 references.
Closest ancestors · 1
Same direction, newest first
- 2024EnIGMA: Interactive Tools Substantially Assist LM Agents in Finding Security Vulnerabilities24 Sep
Other references · 24
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2023Let's Verify Step by Stepcited by 3,598
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
- 2016Concrete Problems in AI Safetycited by 1,582
- 2022Solving math word problems with process- and outcome-based feedbackcited by 871
- 2024Improve Mathematical Reasoning in Language Models by Automated Process Supervisioncited by 426
- 2025The Lessons of Developing Process Reward Models in Mathematical Reasoningcited by 402
- 2024JudgeBench: A Benchmark for Evaluating LLM-based Judgescited by 294
12 more
- 2025PaperBench: Evaluating AI's Ability to Replicate AI Researchcited by 286
- 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 246
- 2024Agent-as-a-Judge: Evaluate Agents with Agentscited by 223
- 2024Magentic-One: A Generalist Multi-Agent System for Solving Complex Taskscited by 221
- 2024DigiRL: Training In-The-Wild Device-Control Agents with Autonomous Reinforcement Learningcited by 210
- 2025Survey on Evaluation of LLM-based Agentscited by 190
- 2022Defining and Characterizing Reward Hackingcited by 184
- 2024NYU CTF Bench: A Scalable Open-Source Benchmark Dataset for Evaluating LLMs in Offensive Securitycited by 90
- 2024LLM-Rubric: A Multidimensional, Calibrated Approach to Automated Evaluation of Natural Language Textscited by 81
- 2025No Free Labels: Limitations of LLM-as-a-Judge Without Human Groundingcited by 50
- 2025Can LLMs Hack Enterprise Networks? Autonomous Assumed Breach Penetration-Testing Active Directory Networkscited by 12
- 2025AIRTBench: Measuring Autonomous AI Red Teaming Capabilities in Language Modelscited by 7
Built on by
Citing papers per year: 2026: 7.
7 papers.
- 2026ScopeJudge: Cost-Aware Pre-Execution Gating for Offensive Security Agentscited by 3
- 2026Redefining AI Red Teaming in the Agentic Era: From Weeks to Hourscited by 1
- 2026From Capability to Assurance in Autonomous Penetration-Testing Harnesses: A Framework and Reference Implementationcited by 1
- 2026ScopeBench: Do Agents Preserve Engagement Boundaries Under Goal Pressure?cited by 1
- 2026From Controlled to the Wild: Evaluation of Pentesting Agents for the Real-Worldcited by 0
- 2026StealthBench: Measuring Operational Stealth in Autonomous Offensive-Security Agentscited by 0
- 2026The Hard Part Comes After Search: Benchmarking Web Agents on Synthesizing, Organizing, and Displaying Knowledgecited by 0
- 2026The Hard Part Comes After Search: Benchmarking Web Agents on Synthesizing, Organizing, and Displaying Knowledge24 Sep 2026
- 2026ScopeBench: Do Agents Preserve Engagement Boundaries Under Goal Pressure?23 Sep 2026
- 2026From Capability to Assurance in Autonomous Penetration-Testing Harnesses: A Framework and Reference Implementation19 Sep 2026
- 2026StealthBench: Measuring Operational Stealth in Autonomous Offensive-Security Agents28 Jul 2026
- 2026ScopeJudge: Cost-Aware Pre-Execution Gating for Offensive Security Agents8 Jul 2026
- 2026From Controlled to the Wild: Evaluation of Pentesting Agents for the Real-World11 May 2026
- 2026Redefining AI Red Teaming in the Agentic Era: From Weeks to Hours5 May 2026
Similar, not cited
Close in wording, no citation either way
- 2026Calibrated Decision Models for Autonomous Penetration-Testing Harnesses: JEV and Laya as System One Decision Layers for LLM-Driven Pentest Agents
- 2024PentestAgent: Incorporating LLM Agents to Automated Penetration Testing
- 2025AutoPentester: An LLM Agent-based Framework for Automated Pentesting
- 2026Pen-Strategist: A Reasoning Framework for Penetration Testing Strategy Formation and Analysis
- 2026PenForge: On-the-Fly Expert Agent Construction for Automated Penetration Testing
- 2024AutoPenBench: Benchmarking Generative Agents for Penetration Testing
- 2026What Makes a Good LLM Agent for Real-world Penetration Testing?
- 2026Big Enough to Break Out: Tracking the Rising Capability of LLM Penetration-Testing Agents