Testing Language Model Agents Safely in the Wild
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
A prerequisite for safe autonomy-in-the-wild is safe testing-in-the-wild. Yet real-world autonomous tests face several unique safety challenges, both due to the possibility of causing harm during a test, as well as the risk of encountering new unsafe agent behavior through interactions with real-world and potentially malicious actors. We propose a framework for conducting safe autonomous agent tests on the open internet: agent actions are audited by a context-sensitive monitor that enforces a stringent safety boundary to stop an unsafe test, with suspect behavior ranked and logged to be examined by humans. We design a basic safety monitor (AgentMonitor) that is flexible enough to monitor existing LLM agents, and, using an adversarial simulated agent, we measure its ability to identify and stop unsafe situations. Then we apply the AgentMonitor on a battery of real-world tests of AutoGPT, and we identify several limitations and challenges that will face the creation of safe in-the-wild tests as autonomous agents grow more capable.
Key facts. Cited by 46 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 12 of its 25 references that are in the map. First posted on arXiv 17 Nov 2023.
Builds on
12 of 25 references.
References · 12
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,808
- 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,439
- 2023AgentBench: Evaluating LLMs as Agentscited by 1,267
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,251
- 2023Large Language Modelscited by 780
- 2022Teaching Models to Express Their Uncertainty in Wordscited by 751
- 2023A Real-World WebAgent with Planning, Long Context Understanding, and Program Synthesiscited by 353
- 2023Do Large Language Models Know What They Don't Know?cited by 243
- 2022Measuring Progress on Scalable Oversight for Large Language Modelscited by 225
- 2023An Overview of Catastrophic AI Riskscited by 222
- 2023Do the Rewards Justify the Means? Measuring Trade-Offs Between Rewards and Ethical Behavior in the MACHIAVELLI Benchmarkcited by 182
- 2020Formal Scenario-Based Testing of Autonomous Vehicles: From Simulation to the Real Worldcited by 39
Built on by
Citing papers per year: 2023: 1; 2024: 14; 2025: 16; 2026: 15.
46 papers.
Sort:
By area:
- 2024R-Judge: Benchmarking Safety Risk Awareness for LLM Agentscited by 288
- 2023AI Control: Improving Safety Despite Intentional Subversioncited by 229
- 2024PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Actioncited by 171
- 2024Black-Box Access is Insufficient for Rigorous AI Auditscited by 126
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 126
- 2024Survey on Large Language Model-Enhanced Reinforcement Learning: Concept, Taxonomy, and Methodscited by 116
- 2025PromptArmor: Simple yet Effective Prompt Injection Defensescited by 108
- 2024RedCode: Risky Code Execution and Generation Benchmark for Code Agentscited by 90
- 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detectioncited by 89
- 2024Detoxifying Large Language Models via Knowledge Editingcited by 87
- 2026SkillClaw: Let Skills Evolve Collectively with Agentic Evolvercited by 81
- 2024Visibility into AI Agentscited by 79
34 more
- 2024Safeguarding Large Language Models: A Surveycited by 78
- 2025MELON: Provable Defense Against Indirect Prompt Injection Attacks in AI Agentscited by 77
- 2024TrustAgent: Towards Safe and Trustworthy LLM-based Agentscited by 64
- 2024Large Language Model Safety: A Holistic Surveycited by 59
- 2024Risks of AI Scientists: Prioritizing Safeguarding Over Autonomycited by 49
- 2026Building Production-Ready Probes For Geminicited by 47
- 2026MetaClaw: Just Talk -- An Agent That Meta-Learns and Evolves in the Wildcited by 37
- 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Surveycited by 28
- 2025Monitoring Decomposition Attacks in LLMs with Lightweight Sequential Monitorscited by 25
- 2024Testing and Understanding Erroneous Planning in LLM Agents through Synthesized User Inputscited by 22
- 2025WebGuard: Building a Generalizable Guardrail for Web Agentscited by 21
- 2025OS-Sentinel: Towards Safety-Enhanced Mobile GUI Agents via Hybrid Validation in Realistic Workflowscited by 19
- 2025ToolFuzz -- Automated Agent Tool Testingcited by 18
- 2025Think Twice Before You Act: Enhancing Agent Behavioral Safety with Thought Correctioncited by 14
- 2026FORTIS: Benchmarking Over-Privilege in Agent Skillscited by 13
- 2026AgentGuardian: Learning Access Control Policies to Govern AI Agent Behaviorcited by 11
- 2025Mimicking the Familiar: Dynamic Command Generation for Information Theft Attacks in LLM Tool-Learning Systemcited by 10
- 2025RedCodeAgent: Automatic Red-teaming Agent against Diverse Code Agentscited by 9
- 2024Autonomous Workflow for Multimodal Fine-Grained Training Assistants Towards Mixed Realitycited by 8
- 2025Resource Rational Contractualism Should Guide AI Alignmentcited by 8
- 2024The Role of Governments in Increasing Interconnected Post-Deployment Monitoring of AIcited by 7
- 2025SafeAgent: Safeguarding LLM Agents via an Automated Risk Simulatorcited by 6
- 2026Training Agents to Self-Report Misbehaviorcited by 6
- 2026Capability Minimization as a Safety Primitive: Risk-Aware Causal Gating for Least-Privilege LLM Agentscited by 6
- 2025LumiMAS: A Comprehensive Framework for Real-Time Monitoring and Enhanced Observability in Multi-Agent Systemscited by 4
- 2026BeSafe-Bench: Unveiling Behavioral Safety Risks of Situated Agents in Functional Environmentscited by 4
- 2026Simulating Complex Multi-Turn Tool Calling Interactions in Stateless Execution Environmentscited by 3
- 2026SafeMCP: Proactive Power Regulation for LLM Agent Defense via Environment-Grounded Look-Ahead Reasoningcited by 3
- 2025AgentCrypt: Advancing Privacy and (Secure) Computation in AI Agent Collaborationcited by 2
- 2025Risks of AI-driven product development and strategies for their mitigationcited by 1
- 2026Execution-Grounded Security Testing for Coding Agents in Software Engineering Pipelinescited by 0
- 2026Safety Does Not Compose: Non-Decaying Loop State for Autonomous LLM Agentscited by 0
- 2026AURA-Eval: Evaluation Framework for Acting Under Risk Awareness in LLM Agent Trajectoriescited by 0
- 2026Universal Defenses for Tool-Integrated LLM Agents Against Adversarial Attackscited by 0
- 2026Universal Defenses for Tool-Integrated LLM Agents Against Adversarial Attacks14 Sep 2026
- 2026AURA-Eval: Evaluation Framework for Acting Under Risk Awareness in LLM Agent Trajectories6 Sep 2026
- 2026Safety Does Not Compose: Non-Decaying Loop State for Autonomous LLM Agents27 Aug 2026
- 2026Capability Minimization as a Safety Primitive: Risk-Aware Causal Gating for Least-Privilege LLM Agents11 Jun 2026
- 2026Execution-Grounded Security Testing for Coding Agents in Software Engineering Pipelines1 Jun 2026
- 2026SafeMCP: Proactive Power Regulation for LLM Agent Defense via Environment-Grounded Look-Ahead Reasoning1 Jun 2026
- 2026FORTIS: Benchmarking Over-Privilege in Agent Skills9 May 2026
- 2026SkillClaw: Let Skills Evolve Collectively with Agentic Evolver9 Apr 2026
- 2026MetaClaw: Just Talk -- An Agent That Meta-Learns and Evolves in the Wild17 Mar 2026
- 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Survey11 Mar 2026
- 2026Training Agents to Self-Report Misbehavior25 Feb 2026
- 2026BeSafe-Bench: Unveiling Behavioral Safety Risks of Situated Agents in Functional Environments30 Jan 2026
34 more
- 2026Building Production-Ready Probes For Gemini16 Jan 2026
- 2026AgentGuardian: Learning Access Control Policies to Govern AI Agent Behavior15 Jan 2026
- 2026Simulating Complex Multi-Turn Tool Calling Interactions in Stateless Execution Environments6 Jan 2026
- 2025AgentCrypt: Advancing Privacy and (Secure) Computation in AI Agent Collaboration8 Dec 2025
- 2025OS-Sentinel: Towards Safety-Enhanced Mobile GUI Agents via Hybrid Validation in Realistic Workflows28 Oct 2025
- 2025RedCodeAgent: Automatic Red-teaming Agent against Diverse Code Agents2 Oct 2025
- 2025LumiMAS: A Comprehensive Framework for Real-Time Monitoring and Enhanced Observability in Multi-Agent Systems17 Aug 2025
- 2025PromptArmor: Simple yet Effective Prompt Injection Defenses21 Jul 2025
- 2025WebGuard: Building a Generalizable Guardrail for Web Agents18 Jul 2025
- 2025Resource Rational Contractualism Should Guide AI Alignment20 Jun 2025
- 2025Monitoring Decomposition Attacks in LLMs with Lightweight Sequential Monitors12 Jun 2025
- 2025Risks of AI-driven product development and strategies for their mitigation28 May 2025
- 2025SafeAgent: Safeguarding LLM Agents via an Automated Risk Simulator23 May 2025
- 2025Think Twice Before You Act: Enhancing Agent Behavioral Safety with Thought Correction16 May 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025ToolFuzz -- Automated Agent Tool Testing6 Mar 2025
- 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection17 Feb 2025
- 2025Mimicking the Familiar: Dynamic Command Generation for Information Theft Attacks in LLM Tool-Learning System17 Feb 2025
- 2025MELON: Provable Defense Against Indirect Prompt Injection Attacks in AI Agents7 Feb 2025
- 2024Large Language Model Safety: A Holistic Survey23 Dec 2024
- 2024RedCode: Risky Code Execution and Generation Benchmark for Code Agents12 Nov 2024
- 2024The Role of Governments in Increasing Interconnected Post-Deployment Monitoring of AI7 Oct 2024
- 2024PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Action29 Aug 2024
- 2024Safeguarding Large Language Models: A Survey3 Jun 2024
- 2024Autonomous Workflow for Multimodal Fine-Grained Training Assistants Towards Mixed Reality16 May 2024
- 2024Testing and Understanding Erroneous Planning in LLM Agents through Synthesized User Inputs27 Apr 2024
- 2024Survey on Large Language Model-Enhanced Reinforcement Learning: Concept, Taxonomy, and Methods30 Mar 2024
- 2024Detoxifying Large Language Models via Knowledge Editing21 Mar 2024
- 2024Risks of AI Scientists: Prioritizing Safeguarding Over Autonomy6 Feb 2024
- 2024TrustAgent: Towards Safe and Trustworthy LLM-based Agents2 Feb 2024
- 2024Black-Box Access is Insufficient for Rigorous AI Audits25 Jan 2024
- 2024Visibility into AI Agents23 Jan 2024
- 2024R-Judge: Benchmarking Safety Risk Awareness for LLM Agents18 Jan 2024
- 2023AI Control: Improving Safety Despite Intentional Subversion12 Dec 2023
- 2024R-Judge: Benchmarking Safety Risk Awareness for LLM Agentscited by 288
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 126
- 2025PromptArmor: Simple yet Effective Prompt Injection Defensescited by 108
- 2024RedCode: Risky Code Execution and Generation Benchmark for Code Agentscited by 90
- 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detectioncited by 89
- 2026SkillClaw: Let Skills Evolve Collectively with Agentic Evolvercited by 81
- 2025MELON: Provable Defense Against Indirect Prompt Injection Attacks in AI Agentscited by 77
- 2024TrustAgent: Towards Safe and Trustworthy LLM-based Agentscited by 64
- 2026MetaClaw: Just Talk -- An Agent That Meta-Learns and Evolves in the Wildcited by 37
- 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Surveycited by 28
- 2024Testing and Understanding Erroneous Planning in LLM Agents through Synthesized User Inputscited by 22
- 2025WebGuard: Building a Generalizable Guardrail for Web Agentscited by 21
12 most cited of 27 All 27 (JSON)
- 2026Universal Defenses for Tool-Integrated LLM Agents Against Adversarial Attacks14 Sep 2026
- 2026AURA-Eval: Evaluation Framework for Acting Under Risk Awareness in LLM Agent Trajectories6 Sep 2026
- 2026Safety Does Not Compose: Non-Decaying Loop State for Autonomous LLM Agents27 Aug 2026
- 2026Capability Minimization as a Safety Primitive: Risk-Aware Causal Gating for Least-Privilege LLM Agents11 Jun 2026
- 2026Execution-Grounded Security Testing for Coding Agents in Software Engineering Pipelines1 Jun 2026
- 2026FORTIS: Benchmarking Over-Privilege in Agent Skills9 May 2026
- 2026SkillClaw: Let Skills Evolve Collectively with Agentic Evolver9 Apr 2026
- 2026MetaClaw: Just Talk -- An Agent That Meta-Learns and Evolves in the Wild17 Mar 2026
- 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Survey11 Mar 2026
- 2026Training Agents to Self-Report Misbehavior25 Feb 2026
- 2026BeSafe-Bench: Unveiling Behavioral Safety Risks of Situated Agents in Functional Environments30 Jan 2026
- 2026Simulating Complex Multi-Turn Tool Calling Interactions in Stateless Execution Environments6 Jan 2026
12 newest of 27 All 27 (JSON)
- 2023AI Control: Improving Safety Despite Intentional Subversioncited by 229
- 2024Safeguarding Large Language Models: A Surveycited by 78
- 2024Large Language Model Safety: A Holistic Surveycited by 59
- 2026Building Production-Ready Probes For Geminicited by 47
- 2025Monitoring Decomposition Attacks in LLMs with Lightweight Sequential Monitorscited by 25
- 2026Building Production-Ready Probes For Gemini16 Jan 2026
- 2025Monitoring Decomposition Attacks in LLMs with Lightweight Sequential Monitors12 Jun 2025
- 2024Large Language Model Safety: A Holistic Survey23 Dec 2024
- 2024Safeguarding Large Language Models: A Survey3 Jun 2024
- 2023AI Control: Improving Safety Despite Intentional Subversion12 Dec 2023
- 2024PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Actioncited by 171
- 2024Black-Box Access is Insufficient for Rigorous AI Auditscited by 126
- 2024Survey on Large Language Model-Enhanced Reinforcement Learning: Concept, Taxonomy, and Methodscited by 116
- 2024Detoxifying Large Language Models via Knowledge Editingcited by 87
- 2024Visibility into AI Agentscited by 79
- 2024Risks of AI Scientists: Prioritizing Safeguarding Over Autonomycited by 49
- 2026AgentGuardian: Learning Access Control Policies to Govern AI Agent Behaviorcited by 11
- 2024Autonomous Workflow for Multimodal Fine-Grained Training Assistants Towards Mixed Realitycited by 8
- 2025Resource Rational Contractualism Should Guide AI Alignmentcited by 8
- 2024The Role of Governments in Increasing Interconnected Post-Deployment Monitoring of AIcited by 7
- 2025Risks of AI-driven product development and strategies for their mitigationcited by 1
- 2026AgentGuardian: Learning Access Control Policies to Govern AI Agent Behavior15 Jan 2026
- 2025Resource Rational Contractualism Should Guide AI Alignment20 Jun 2025
- 2025Risks of AI-driven product development and strategies for their mitigation28 May 2025
- 2024The Role of Governments in Increasing Interconnected Post-Deployment Monitoring of AI7 Oct 2024
- 2024PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Action29 Aug 2024
- 2024Autonomous Workflow for Multimodal Fine-Grained Training Assistants Towards Mixed Reality16 May 2024
- 2024Survey on Large Language Model-Enhanced Reinforcement Learning: Concept, Taxonomy, and Methods30 Mar 2024
- 2024Detoxifying Large Language Models via Knowledge Editing21 Mar 2024
- 2024Risks of AI Scientists: Prioritizing Safeguarding Over Autonomy6 Feb 2024
- 2024Black-Box Access is Insufficient for Rigorous AI Audits25 Jan 2024
- 2024Visibility into AI Agents23 Jan 2024
Similar, not cited
Close in wording, no citation either way
- 2025OpenAgentSafety: A Comprehensive Framework for Evaluating Real-World AI Agent Safety
- 2026AgentWall: A Runtime Safety Layer for Local AI Agents
- 2026Who Tests the Testers? Systematic Enumeration and Coverage Audit of LLM Agent Tool Call Safety
- 2026ClawSentry: A Progressive Multi-Tier Security Monitor for Safeguarding Autonomous LLM Agents
- 2024Safeguarding AI Agents: Developing and Analyzing Safety Architectures
- 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents
- 2026Toward a Principled Framework for Agent Safety Measurement
- 2025SafeArena: Evaluating the Safety of Autonomous Web Agents