mlsanityData to 14 Oct 2026

SandboxEval: Towards Securing Test Environment for Untrusted Code

arXiv 2504.00018 ↗First posted 27 Mar 2025cs.CR cs.LGcited by 10

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

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  3. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  4. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,002
  5. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  6. 2024Executable Code Actions Elicit Better LLM Agentscited by 564
  7. 2023Identifying the Risks of LM Agents with an LM-Emulated Sandboxcited by 548
  8. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 431
  9. 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 278
  10. 2022Do Users Write More Insecure Code with AI Assistants?cited by 192
  11. 2022GitHub Copilot AI pair programmer: Asset or Liability?cited by 152
  12. 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 138
23 more
  1. 2020You Autocomplete Me: Poisoning Vulnerabilities in Neural Code Completioncited by 131
  2. 2024CyberSecEval 2: A Wide-Ranging Cybersecurity Evaluation Suite for Large Language Modelscited by 89
  3. 2023AgentSims: An Open-Source Sandbox for Large Language Model Evaluationcited by 88
  4. 2023How Secure is Code Generated by ChatGPT?cited by 81
  5. 2023Refining ChatGPT-Generated Code: Characterizing and Mitigating Code Quality Issuescited by 79
  6. 2024A New Era in LLM Security: Exploring Security Concerns in Real-World LLM-based Systemscited by 77
  7. 2022Is GitHub's Copilot as Bad as Humans at Introducing Vulnerabilities in Code?cited by 67
  8. 2023LLMSecEval: A Dataset of Natural Language Prompts for Security Evaluationscited by 62
  9. 2024CYBERSECEVAL 3: Advancing the Evaluation of Cybersecurity Risks and Capabilities in Large Language Modelscited by 58
  10. 2023Data Quality for Software Vulnerability Datasetscited by 51
  11. 2023LLM Platform Security: Applying a Systematic Evaluation Framework to OpenAI's ChatGPT Pluginscited by 51
  12. 2023No Need to Lift a Finger Anymore? Assessing the Quality of Code Generation by ChatGPTcited by 47
  13. 2023SALLM: Security Assessment of Generated Codecited by 39
  14. 2023Demystifying RCE Vulnerabilities in LLM-Integrated Appscited by 37
  15. 2023Vulnerabilities in AI Code Generators: Exploring Targeted Data Poisoning Attackscited by 33
  16. 2023Assessing the Security of GitHub Copilot Generated Code -- A Targeted Replication Studycited by 26
  17. 2023Multi-target Backdoor Attacks for Code Pre-trained Modelscited by 23
  18. 2022A Hazard Analysis Framework for Code Synthesis Large Language Modelscited by 22
  19. 2020SourceFinder: Finding Malware Source-Code from Publicly Available Repositoriescited by 15
  20. 2023A User-centered Security Evaluation of Copilotcited by 15
  21. 2023Practices and Challenges of Using GitHub Copilot: An Empirical Studycited by 14
  22. 2024Towards Agentic Runtime Healingcited by 7
  23. 2023Assessing the Promise and Pitfalls of ChatGPT for Automated Code Generationcited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 7.

10 papers.