Lune

EMNLP Findings2025

MOCHA: Are Code Language Models Robust Against Multi-Turn Malicious Coding Prompts?

Muntasir Wahed, Xiaona Zhou, Kiet A. Nguyen, Tianjiao Yu, Nirav Diwan, Gang Wang, Dilek Hakkani-Tür, Ismini Lourentzou

摘要

Recent advancements in LLMs have significantly enhanced code generation.However, their robustness against multi-turn malicious coding jailbreaks remains underexplored.In this work, we introduce code decomposition attacks, where a malicious coding task is disguised as a sequence of benign subtasks across multiple conversational turns to bypass safety filters.To facilitate systematic evaluation, we curate MOCHA, a large-scale benchmark of 10K single-turn and multi-turn jailbreak coding prompts spanning 13 real-world threat categories.Experiments on open-and closedsource models reveal persistent vulnerabilities, particularly in multi-turn settings where rejection rates drop sharply.Fine-tuning on MOCHA improves robustness while preserving coding ability, and generalizes to external adversarial datasets, yielding up to 32.4% increase in rejection rates without additional supervision.* This paper was developed by a subset of the UIUC team that participated in the Amazon NOVA AI Challenge.For a comprehensive account of the full team effort, see the accompanying Amazon technical report (Liu et al., 2025a).45 50 55 60 65 70 75 80 85 Pass@1 (%)

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 1 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • When "Correct" Is Not Safe: Can We Trust Functionally Correct Patches Generated by Code Agents? 引用了 AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models
  • Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generation 引用了 CodeT5+: Open Code Large Language Models for Code Understanding and Generation
  • AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models 引用了 HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper1

  1. When "Correct" Is Not Safe: Can We Trust Functionally Correct Patches Generated by Code Agents?Yibo Peng, James Song, Lei Li, Xinyu Yang 等ACL 2026 · 2 次引用

它引用的 Paper22

  1. LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu 等ICLR 2022 · 18,833 次引用
  2. Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code GenerationJiawei Liu, Chunqiu Steven Xia, Yuyao Wang, Lingming ZhangNeurIPS 2023 · 2,317 次引用
  3. HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust RefusalMantas Mazeika, Long Phan, Xuwang Yin, Andy Zou 等ICML 2024 · 1,031 次引用
  4. AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language ModelsXiaogeng Liu, Nan Xu, Muhao Chen, Chaowei XiaoICLR 2024 · 722 次引用
  5. CodeT5+: Open Code Large Language Models for Code Understanding and GenerationYue Wang, Hung Le, Akhilesh Gotmare, Nghi D. Q. Bui 等EMNLP 2023 · 339 次引用

相关 Paper

  1. LLMs Caught in the Crossfire: Malware Requests and Jailbreak ChallengesHaoyang Li, Huan Gao, Zhiyuan Zhao, Zhiyu Lin 等ACL 2025
  2. Chain of Attack: Hide Your Intention through Multi-Turn InterrogationXikang Yang, Biyu Zhou, Xuehai Tang, Jizhong Han 等ACL Findings 2025 · 3 次引用
  3. MultiBreak: A Scalable and Diverse Multi-turn Jailbreak Benchmark for Evaluating LLM SafetyJialin Song, Xiaodong Liu, Weiwei Yang, Wuyang Chen 等ICML 2026 · 5 次引用
  4. Exploiting Task-Level Vulnerabilities: An Automatic Jailbreak Attack and Defense Benchmarking for LLMsLan Zhang, Xinben Gao, Liuyi Yao, Jinke Song 等USENIX Security 2025
  5. Analogy-based Multi-Turn Jailbreak against Large Language ModelsMengjie Wu, Yihao Huang, Zhenjun Lin, Kangjie Chen 等NeurIPS 2025 · 9 次引用
黄昏的海面,两侧是细线勾勒的悬崖