Research map / Multi-agent systems and games / LLM agents
RedCoder: Automated Multi-Turn Red Teaming for Code LLMs
Wenjie Jacky Mo, Qin Liu, Xiaofei Wen, Dongwon Jung, Hadi Askari, Wenxuan Zhou, Zhe Zhao, Muhao Chen
University of Southern California · University of California, Davis
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use RedCoder multi-turn agent instead of direct prompting | Code LLM attack · CodeGemma-7B, 170 tasks | vulnerability rate: 23.52% -> 61.18% | Improved |
| use RedCoder instead of strongest baseline (GCG) | Code LLM attack · Qwen2.5-Coder-7B, 170 tasks | vulnerability rate: 33.14% -> 65.29% | Improved |
| apply existing red-teaming baselines (AutoDAN, CoA-Feedback, ActorAttack) instead of no attack | Code LLM attack · CodeGemma-7B | vulnerability rate: 23.52% -> 0.59% (AutoDAN) | Hurt |
| use a reasoning-focused victim model | DeepSeek-R1-Distill-Llama-8B victim · RedCoder attack | vulnerability rate: 40.00% | No clear effect |
| add retrieval of strategy summaries (any variant) to the attack (ablation) | RedCoder · CodeGemma-7B and CodeLlama-7B | vulnerability rate | Improved |
| derive strategies from failed-to-successful transitions instead of successful conversations only (ablation) | RedCoder retrieval · CodeGemma-7B and CodeLlama-7B | vulnerability rate | Improved |
| retrieve a strategy at every turn instead of once after the first turn (ablation) | RedCoder retrieval · CodeGemma-7B and CodeLlama-7B | vulnerability rate | Improved |
| add strategy arsenal retrieval in the OOD CWE setting (ablation) | RedCoder · Qwen2.5-Coder-7B, 20 OOD CWE tasks | vulnerability rate: 58.75% -> 65.00% | Improved |
| test on 20 unseen CWE tasks instead of original 43 | RedCoder · Qwen2.5-Coder-7B | vulnerability rate: 65.29% -> 65.00% | No clear effect |
| add a single-turn guardrail to the victim | Code LLM victim · CodeGemma-7B under RedCoder | vulnerability rate: 61.18% -> 61.18% | No clear effect |
| add a multi-turn guardrail to the victim | Code LLM victim · CodeGemma-7B under RedCoder | vulnerability rate: 61.18% -> 25.00% | Improved |
| add a multi-turn guardrail to the victim | Code LLM victim · Qwen2.5-Coder-7B under RedCoder | vulnerability rate: 65.29% -> 54.69% | Improved |
Open problems in agent safety and attack benchmarks
Do agent attacks and defenses still hold against adaptive attackers, on deployed systems and at low cost?
- Evidence comes from sandboxes and synthetic data, not deployed agent systems. · 24 papers state it
- Attack and safety scores depend on LLM judges with little human checking. · 20 papers state it
- Defenses are tested only against fixed attacks, not adaptive attackers. · 18 papers state it
Closest papers by meaning
- RedCodeAgent: Automatic Red-teaming Agent against Diverse Code Agents (ICLR 2026 · similarity 0.91)
- Automated Red Teaming with GOAT: the Generative Offensive Agent Tester (ICML 2025 · similarity 0.90)
- CoP: Agentic Red-teaming for Large Language Models using Composition of Principles (NeurIPS 2025 · similarity 0.89)
- There are Levels to It: Red Teaming LLMs with Hierarchical Reinforcement Learning (NeurIPS 2026 · similarity 0.89)
- HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal (ICML 2024 · similarity 0.89)
- Co-RedTeam: Orchestrated Security Discovery and Exploitation with LLM Agents (ICML 2026 · similarity 0.89)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.