CodeChameleon: A Personalized Encryption Framework for Jailbreaking Large Language Models
CodeChameleon: Personalized Encryption Framework for Jailbreaking Large Language Models
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
- The reports mention CodeChameleon
国防科大提出 JailExpert 越狱框架
News that mentions this paper
国防科大提出 JailExpert 越狱框架
- 公众号 为机器立心names the paper国防科大提出 JailExpert 越狱框架,攻击效率达最优基线 2.7 倍
经验来源:从LLM越狱基准测试EasyJailbreak的排行榜中,选取Top4黑盒方法(ReNeLLM、CodeChameleon、Jailbroken、GPTFuzzer),在JBB数据集(越狱测试数据集)上的攻击结果,转化为上述结构化经验。
- Checkmatecites the paper's id or linkPIChef:一款受 CyberChef 启发的提示注入工具
CodeChameleon: Personalized Encryption Framework for Jailbreaking Large Language Models — Huijie Lv, Xiao Wang, Yuansen Zhang, Caishuang Huang, Shihan Dou, Junjie Ye, Tao Gui, Qi Zhang, and Xuanjing
- 公众号 为机器立心names the paperUSENIX Security 26|JailbreakScope 用电路与表征分析解读大模型越狱机制
• DeepInception、ReNellm、CodeChameleon这类规则/演示类越狱欺骗能力最强,从浅层到深层全程被探针判定为安全;
Show 2 more news items
- Adversa AIcites the paper's id or linkAdversa AI 披露 Cryptographic Context Injection 攻击:Grok 零点击泄露聊天记录,Gemini 被绕过安全策略
CipherChat established that models decode ciphers well enough to answer through them, and CodeChameleon wrapped the payload in a reversible transform shipped with its own decryption function.
- 腾讯 AI-Infra-Guard 版本发布names the paper腾讯 AI-Infra-Guard v4.1.14 新增 Agent 红队技能与 9 种单轮越狱攻击方法
Prompt Security: Add 9 single-turn jailbreak attack methods: PrefillAttack, ICA, PastTense, Overload, Jailbroken, FlipAttack, DeepInception, CodeChameleon, JAM (d48e508)