ScopeJudge: Cost-Aware Pre-Execution Gating for Offensive Security Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
As LLM agents take on offensive security work, a single out-of-scope tool call can breach a client's engagement boundary, disrupt production, or void a bug-bounty finding. Unlike a fixed safety policy, the boundary that matters is declared in the user's request and must be inferred from intent. That challenge is sharpened by the adversarial nature of offensive security: the same tool call is in or out of scope depending not on the action itself but on the target it touches and the context in which it runs, which no fixed policy can enumerate in advance. We study pre-execution gating: a cheap, trusted LLM judge inspects each call proposed by a strong, swappable agent, and accepts or rejects it before it runs. We introduce ScopeJudge, a benchmark of 4,897 tool calls (7.7% scope violations) from agent trajectories on tasks engineered to tempt agents out of scope and labeled at the call level by professional penetration testers, with substantial inter-grader agreement (Fleiss kappa = 0.64) that sets an expert agreement reference point of F1 = 0.78. We evaluate eight judge models under five transcript strategies, varying how much context the judge sees, from the static policy alone to the full raw transcript, and chart the resulting cost-accuracy Pareto frontier. We find that a static policy is structurally insufficient for scope enforcement: blind to the user's request, judge recall collapses to near zero, confirming that scope lives in the request and that request-conditioned monitoring is necessary. Because a missed violation costs more than a spurious rejection, we report precision, recall, and F1 separately and recommend two operating points: a cost-sensitive configuration and a recall-first one for high-stakes deployments. We release the ScopeJudge dataset to support real-time monitoring and scalable oversight of autonomous security agents.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 16 of its 26 references that are in the map. First posted on arXiv 8 Jul 2026.
Builds on
16 of 26 references.
Closest ancestors · 3
Same direction, newest first
- 2026ToolSafe: Enhancing Tool Invocation Safety of LLM-based agents via Proactive Step-level Guardrail and Feedback15 Jan
- 2025PentestJudge: Judging Agent Behavior Against Operational Requirements4 Aug
- 2023Identifying the Risks of LM Agents with an LM-Emulated Sandbox25 Sep
Other references · 13
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
- 2025PaperBench: Evaluating AI's Ability to Replicate AI Researchcited by 321
- 2024Judging the Judges: A Systematic Study of Position Bias in LLM-as-a-Judgecited by 269
- 2023AI Control: Improving Safety Despite Intentional Subversioncited by 229
- 2022Measuring Progress on Scalable Oversight for Large Language Modelscited by 225
- 2024Cybench: A Framework for Evaluating Cybersecurity Capabilities and Risks of Language Modelscited by 164
- 2023PentestGPT: An LLM-empowered Automatic Penetration Testing Toolcited by 97
- 2024CalibraEval: Calibrating Prediction Distribution to Mitigate Selection Bias in LLMs-as-Judgescited by 34
- 2025EvilGenie: A Reward Hacking Benchmarkcited by 28
1 more
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026When Do Agent Loops Mistake Stagnation for Progress? Self-Evaluation Bias and Externally Grounded Verification in Long-Running Autonomous LLM Agent Loopscited by 4
- 2026ScopeBench: Do Agents Preserve Engagement Boundaries Under Goal Pressure?cited by 1
- 2026StealthBench: Measuring Operational Stealth in Autonomous Offensive-Security Agentscited by 0
- 2026ScopeBench: Do Agents Preserve Engagement Boundaries Under Goal Pressure?23 Sep 2026
- 2026StealthBench: Measuring Operational Stealth in Autonomous Offensive-Security Agents28 Jul 2026
- 2026When Do Agent Loops Mistake Stagnation for Progress? Self-Evaluation Bias and Externally Grounded Verification in Long-Running Autonomous LLM Agent Loops27 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2026Prompted to Discriminate: Generalizing Malicious-Input Probes in the Wild
- 2026Capability Gates Are Not Authorization: Confused-Deputy Failures in LLM Agent Frameworks
- 2026AttriGuard: Defeating Indirect Prompt Injection in LLM Agents via Causal Attribution of Tool Invocations
- 2026AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectories
- 2026Passing the Test You Trained On: Re-evaluating Prompt-Injection Detectors for LLM Agents
- 2026AgentSecBench: Measuring Prompt Injection, Privacy Leakage, and Tool-Use Integrity in LLM Agents
- 2026Silent Failures in Agentic Security Evaluation: A Validated Harness for Tool-Call Mediation Under Indirect Prompt Injection
- 2026ActGuard: Pre-execution Action Auditing against Indirect Prompt Injection in LLM Agents