Documented Exercise · OBS.EX0010
CodeChameleon Encrypted Query & Decryption Reformulation Study
Lv et al. (2024) hypothesized that LLM safety operates via sequential intent recognition before generation and tested CodeChameleon across seven LLMs by encoding queries inside custom decryption routines formatted as code-completion tasks. By delegating decoding to in-context execution instructions, the framework bypassed pre-generation intent checks and reached an 86.6% attack success rate on GPT-4-1106. The results confirmed a major capability-safety gap whenever models possess stronger programmatic decoding skills than safety filters possess obfuscation coverage. Defensive pipelines must normalize encoded representations and enforce output-stage policy verification regardless of input obfuscation.
Exercise dossier metadata
- Case ID
OBS.EX0010- Classification
- Exercise
- Date
- Evaluation scope
- Code-Capable Aligned LLMs · Obfuscated Code-Completion Bypass
- Reference URI
https://arxiv.org/abs/2402.16717
Mapped AI security techniques
- LLM Jailbreak AML.T0054
- LLM Prompt Obfuscation AML.T0068
- LLM Jailbreak: CodeChameleon (published research family) ATO.T6236E94A
Mapped defensive controls
- Generative AI Guardrails AML.M0020
- Input and Output Validation for AI Agent Components AML.M0033
- AI Red Team AML.M0035
Source citation records
- CodeChameleon: Personalized Encryption Framework for Jailbreaking Large Language Models · arXiv (author preprint; peer-review status not inferred) ·