mlsanityData to 14 Oct 2026

ScopeJudge: Cost-Aware Pre-Execution Gating for Offensive Security Agents

arXiv 2607.07774 ↗First posted 8 Jul 2026cs.CRcited by 3

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

  1. 2026ToolSafe: Enhancing Tool Invocation Safety of LLM-based agents via Proactive Step-level Guardrail and Feedback15 Jan
  2. 2025PentestJudge: Judging Agent Behavior Against Operational Requirements4 Aug
  3. 2023Identifying the Risks of LM Agents with an LM-Emulated Sandbox25 Sep

Other references · 13

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  2. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  3. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
  4. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
  5. 2025PaperBench: Evaluating AI's Ability to Replicate AI Researchcited by 321
  6. 2024Judging the Judges: A Systematic Study of Position Bias in LLM-as-a-Judgecited by 269
  7. 2023AI Control: Improving Safety Despite Intentional Subversioncited by 229
  8. 2022Measuring Progress on Scalable Oversight for Large Language Modelscited by 225
  9. 2024Cybench: A Framework for Evaluating Cybersecurity Capabilities and Risks of Language Modelscited by 164
  10. 2023PentestGPT: An LLM-empowered Automatic Penetration Testing Toolcited by 97
  11. 2024CalibraEval: Calibrating Prediction Distribution to Mitigate Selection Bias in LLMs-as-Judgescited by 34
  12. 2025EvilGenie: A Reward Hacking Benchmarkcited by 28
1 more
  1. 2026Efficient and Sound Probabilistic Verification for AI Agentscited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Prompted to Discriminate: Generalizing Malicious-Input Probes in the Wild
  2. 2026Capability Gates Are Not Authorization: Confused-Deputy Failures in LLM Agent Frameworks
  3. 2026AttriGuard: Defeating Indirect Prompt Injection in LLM Agents via Causal Attribution of Tool Invocations
  4. 2026AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectories
  5. 2026Passing the Test You Trained On: Re-evaluating Prompt-Injection Detectors for LLM Agents
  6. 2026AgentSecBench: Measuring Prompt Injection, Privacy Leakage, and Tool-Use Integrity in LLM Agents
  7. 2026Silent Failures in Agentic Security Evaluation: A Validated Harness for Tool-Call Mediation Under Indirect Prompt Injection
  8. 2026ActGuard: Pre-execution Action Auditing against Indirect Prompt Injection in LLM Agents