Skip to content

CodeChameleon: A Personalized Encryption Framework for Jailbreaking Large Language Models

CodeChameleon: Personalized Encryption Framework for Jailbreaking Large Language Models

arXiv· arXiv:2402.16717· Huijie Lv, Xiao Wang, Yuansen Zhang, Caishuang Huang, Shihan Dou, Junjie Ye, Tao Gui, Qi Zhang, Xuanjing Huang·Indexed by this site · 12 days ago· Originally publishedAttacks
AI summary

Researchers propose a jailbreak framework, CodeChameleon, that uses personalized encryption to rewrite queries into code completion tasks in order to bypass the safety mechanisms of large language models, achieving an attack success rate of 86.6% on GPT-4-1106. The framework is based on a hypothesis that the safety mechanisms of aligned models consist of two stages: intent safety recognition and response generation. To evade intent safety recognition, the framework has users encrypt queries with a personalized encryption function; to ensure response generation, a decryption function is embedded in the instruction so that the model can decrypt and execute the encrypted query. The authors conduct experiments on 7 large language models and report achieving the best average attack success rate (ASR).

Related events and news

1 events · 5 news mentions

News that mentions this paper

国防科大提出 JailExpert 越狱框架

Show 2 more news items
Read originalarxiv.org