Smoke and Mirrors: Jailbreaking LLM-based Code Generation via Implicit Malicious Prompts
The proliferation of Large Language Models (LLMs) has revolutionized natural language processing and significantly impacted code generation tasks, enhancing software development efficiency and productivity. Notably, LLMs like GPT-4 have demonstrated remarkable proficiency in text-to-code generation tasks. However, the growing reliance on LLMs for code generation necessitates a critical examination of the security implications associated with their outputs. Existing research efforts have primarily focused on verifying functional correctness, overlooking the crucial aspect of code security. This paper introduces a jailbreaking approach, CodeJailbreaker, targeting LLM-based code generation to expose security vulnerabilities. The basic observation is that existing security mechanisms for LLMs are built through the instruction-following paradigm, where malicious intent is explicitly articulated within the instruction of the prompt. Consequently, CodeJailbreaker explores to construct a prompt whose instruction is benign and the malicious intent is implicitly encoded in a covert channel, i.e., the commit message, to bypass the safety mechanism. Experiments on the recently-released RMCBench benchmark demonstrate that CodeJailbreaker markedly surpasses the conventional jailbreaking strategy, which explicitly conveys malicious intents in the instructions, in terms of the attack effectiveness across three code generation tasks. This study challenges the traditional safety paradigms in LLM-based code generation, emphasizing the need for enhanced safety measures in safeguarding against implicit malicious cues.
Wed 15 AprDisplayed time zone: Brasilia, Distrito Federal, Brazil change
14:00 - 15:30 | Software Engineering for AI 2Research Track / SE In Practice (SEIP) at Oceania VII Chair(s): Zhou Yang University of Alberta, Alberta Machine Intelligence Institute | ||
14:00 15mTalk | MazeBreaker: Multi-Agent Reinforcement Learning for Dynamic Jailbreaking of LLM Security Defenses Research Track Zhihao Lin , Wei Ma Singapore Management University, Mingyi Zhou Beihang University, Yanjie Zhao Huazhong University of Science and Technology, Haoyu Wang Huazhong University of Science and Technology, Yang Liu Nanyang Technological University, Jun Wang Post Luxembourg, Li Li Beihang University | ||
14:15 15mTalk | Checking Unsupervised Learning for Nondeterminism and Inconsistency via SMT Solving Research Track | ||
14:30 15mTalk | Smoke and Mirrors: Jailbreaking LLM-based Code Generation via Implicit Malicious Prompts Research Track Sheng Ouyang National University of Defense Technology, Yihao Qin National University of Defense Technology, Bo Lin National University of Defense Technology, Liqian Chen National University of Defense Technology, Xiaoguang Mao National University of Defense Technology, Shangwen Wang National University of Defense Technology Pre-print | ||
14:45 15mTalk | AtPatch: Debugging Transformers via Hot-Fixing Over-Attention Research Track Shihao Weng Nanjing University, Yang Feng Nanjing University, Jincheng Li Nanjing University, Yining Yin Nanjing University, Xiaofei Xie Singapore Management University, Jia Liu Nanjing University | ||
15:00 15mTalk | Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networks Research Track Sigma Jahan Dalhousie University, Saurabhsingh Rajput Dalhousie University, Tushar Sharma Dalhousie University, Masud Rahman Dalhousie University Pre-print File Attached | ||
15:15 15mTalk | Empirical Evaluation of PDF Parsing and Chunking for Financial Question Answering with RAG SE In Practice (SEIP) Omar El Bachyr University of Luxembourg, Yewei Song University of Luxembourg, Saad Ezzini King Fahd University of Petroleum and Minerals, Jacques Klein University of Luxembourg, Tegawendé F. Bissyandé University of Luxembourg, Anas Zilali BGL BNP Paribas, Ulrick Ble Banque BGL BNP Paribas, Anne Goujon BGL BNP PARIBAS | ||