SandboxEval: Towards Securing Test Environment for Untrusted Code
Not on the map. Why?
Abstract (arXiv)
While large language models (LLMs) are powerful assistants in programming tasks, they may also produce malicious code. Testing LLM-generated code therefore poses significant risks to assessment infrastructure tasked with executing untrusted code. To address these risks, this work focuses on evaluating the security and confidentiality properties of test environments, reducing the risk that LLM-generated code may compromise the assessment infrastructure. We introduce SandboxEval, a test suite featuring manually crafted test cases that simulate real-world safety scenarios for LLM assessment environments in the context of untrusted code execution. The suite evaluates vulnerabilities to sensitive information exposure, filesystem manipulation, external communication, and other potentially dangerous operations in the course of assessment activity. We demonstrate the utility of SandboxEval by deploying it on an open-source implementation of Dyff, an established AI assessment framework used to evaluate the safety of LLMs at scale. We show, first, that the test suite accurately describes limitations placed on an LLM operating under instructions to generate malicious code. Second, we show that the test results provide valuable insights for developers seeking to harden assessment infrastructure and identify risks associated with LLM execution activities.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 35 of its 48 references that are in the map. First posted on arXiv 27 Mar 2025.
Builds on
35 of 48 references.
References · 35
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,002
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2024Executable Code Actions Elicit Better LLM Agentscited by 564
- 2023Identifying the Risks of LM Agents with an LM-Emulated Sandboxcited by 548
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 431
- 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 278
- 2022Do Users Write More Insecure Code with AI Assistants?cited by 192
- 2022GitHub Copilot AI pair programmer: Asset or Liability?cited by 152
- 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 138
23 more
- 2020You Autocomplete Me: Poisoning Vulnerabilities in Neural Code Completioncited by 131
- 2024CyberSecEval 2: A Wide-Ranging Cybersecurity Evaluation Suite for Large Language Modelscited by 89
- 2023AgentSims: An Open-Source Sandbox for Large Language Model Evaluationcited by 88
- 2023How Secure is Code Generated by ChatGPT?cited by 81
- 2023Refining ChatGPT-Generated Code: Characterizing and Mitigating Code Quality Issuescited by 79
- 2024A New Era in LLM Security: Exploring Security Concerns in Real-World LLM-based Systemscited by 77
- 2022Is GitHub's Copilot as Bad as Humans at Introducing Vulnerabilities in Code?cited by 67
- 2023LLMSecEval: A Dataset of Natural Language Prompts for Security Evaluationscited by 62
- 2024CYBERSECEVAL 3: Advancing the Evaluation of Cybersecurity Risks and Capabilities in Large Language Modelscited by 58
- 2023Data Quality for Software Vulnerability Datasetscited by 51
- 2023LLM Platform Security: Applying a Systematic Evaluation Framework to OpenAI's ChatGPT Pluginscited by 51
- 2023No Need to Lift a Finger Anymore? Assessing the Quality of Code Generation by ChatGPTcited by 47
- 2023SALLM: Security Assessment of Generated Codecited by 39
- 2023Demystifying RCE Vulnerabilities in LLM-Integrated Appscited by 37
- 2023Vulnerabilities in AI Code Generators: Exploring Targeted Data Poisoning Attackscited by 33
- 2023Assessing the Security of GitHub Copilot Generated Code -- A Targeted Replication Studycited by 26
- 2023Multi-target Backdoor Attacks for Code Pre-trained Modelscited by 23
- 2022A Hazard Analysis Framework for Code Synthesis Large Language Modelscited by 22
- 2020SourceFinder: Finding Malware Source-Code from Publicly Available Repositoriescited by 15
- 2023A User-centered Security Evaluation of Copilotcited by 15
- 2023Practices and Challenges of Using GitHub Copilot: An Empirical Studycited by 14
- 2024Towards Agentic Runtime Healingcited by 7
- 2023Assessing the Promise and Pitfalls of ChatGPT for Automated Code Generationcited by 2
Built on by
Citing papers per year: 2025: 3; 2026: 7.
10 papers.
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 28
- 2026A Framework for Formalizing LLM Agent Securitycited by 16
- 2026Do Coding Agents Understand Least-Privilege Authorization?cited by 6
- 2026CIBER: A Comprehensive Benchmark for Security Evaluation of Code Interpreter Agentscited by 5
- 2025LLM Agents Are the Antidote to Walled Gardenscited by 3
- 2025Running in CIRCLE? A Simple Benchmark for LLM Code Interpreter Securitycited by 2
- 2026OOM-RL: Out-of-Money Reinforcement Learning Market-Driven Alignment for LLM-Based Multi-Agent Systemscited by 1
- 2026Is Vibe Coding the Future? An Empirical Assessment of LLM Generated Codes for Construction Safetycited by 0
- 2026PYTHALAB-MERA: Validation-Grounded Memory, Retrieval, and Acceptance Control for Frozen-LLM Coding Agentscited by 0
- 2026The Balkanization of Execution-Security Research for AI Coding Agents: Isolation, Access Control, and Time-of-Check-to-Time-of-Use Vulnerabilitiescited by 0
- 2026The Balkanization of Execution-Security Research for AI Coding Agents: Isolation, Access Control, and Time-of-Check-to-Time-of-Use Vulnerabilities7 Jul 2026
- 2026Do Coding Agents Understand Least-Privilege Authorization?14 May 2026
- 2026PYTHALAB-MERA: Validation-Grounded Memory, Retrieval, and Acceptance Control for Frozen-LLM Coding Agents8 May 2026
- 2026Is Vibe Coding the Future? An Empirical Assessment of LLM Generated Codes for Construction Safety14 Apr 2026
- 2026OOM-RL: Out-of-Money Reinforcement Learning Market-Driven Alignment for LLM-Based Multi-Agent Systems13 Apr 2026
- 2026A Framework for Formalizing LLM Agent Security19 Mar 2026
- 2026CIBER: A Comprehensive Benchmark for Security Evaluation of Code Interpreter Agents23 Feb 2026
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challenges27 Oct 2025
- 2025Running in CIRCLE? A Simple Benchmark for LLM Code Interpreter Security25 Jul 2025
- 2025LLM Agents Are the Antidote to Walled Gardens30 Jun 2025