← Lab /Security & privacy

Code interpreter agents are far more vulnerable to implicit semantic attacks

Code interpreter agents are significantly weaker against implicit semantic hazards than explicit threats, and that natural language inputs increase attack success by 14.1%

Security & privacy arXiv 23 Feb 2026 Benchmark Prototype evidence

Published as “CIBER: A Comprehensive Benchmark for Security Evaluation of Code Interpreter Agents”

Why it matters

The results guide developers and platform maintainers to prioritize secure interpreter architectures and robust model alignment, and warn that natural-language inputs can bypass existing syntax-based defenses.

Summary

The study finds that interpreter architecture combined with model alignment establishes the security baseline, while high-capability models can be more vulnerable to sophisticated prompts. Contextual attacks (memory poisoning, indirect prompt injection) achieve the highest attack success rates, and natural-language descriptions outperform code snippets by 14.1% ASR, bypassing syntax filters. Evidence comes from a systematic evaluation of six foundation models on two agents across 25 scenarios (54,000 test instances), showing up to a 20.2-point drop in success when moving from an execution-first to a secure-by-design architecture.

What they found 2

  1. Switching from an execution-first interpreter (OI) to a secure-by-design interpreter (OCI) reduces Memory Poisoning attack success by 20.2 percentage points.

    “By switching from OI to OCI, the ASR for Memory Poisoning drops by 20.2 percentage points (87.1% →66.9%).”

  2. Contextual attacks achieve higher success than direct injection, with Memory Poisoning at 73.3% ASR and Indirect Prompt Injection at 71.8% ASR versus Direct Prompt Injection at 59.4% ASR.

    “Memory Poisoning (73.3% ASR) and Indirect Prompt Injection (71.8% ASR) prove far more dangerous than Direct Prompt Injection (59.4% ASR).”

Caveats 4

  • Higher-capability models (e.g., GPT-4o) sometimes exhibit higher attack success than less capable models, indicating that intelligence can increase susceptibility.
  • OCI, despite its secure architecture, is more vulnerable to Indirect Prompt Injection than OI (76.5% vs 65.5% ASR), showing that architectural defenses are not uniformly effective.
  • Our study focuses on representative architectures and discrete metrics for known vulnerabilities.
  • Zero-day attacks and subtle side-channel leaks remain open frontiers requiring future exploration.

What’s new here 4

  • Automated adaptation of four adversarial attacks (direct/indirect prompt injection, memory poisoning, prompt-based backdoor) for agents with real code execution privileges.
  • Deployment of agents in a dockerized sandbox that captures actual runtime side-effects rather than static text matching.
  • Systematic isolation of architectural constraints from model capabilities to assess their separate impact on security.
  • Identification of a “Natural Language Disguise” effect where descriptive text bypasses syntax-based defenses.