LLM Syntax Jailbreak
Large Language Models (LLMs) are vulnerable to structure transformation attacks, where malicious prompts are encoded in diverse syntax spaces (e.g., SQL, JSON, LLM-generated syntaxes) to bypass safety mechanisms. These attacks maintain the harmful intent while altering the linguistic structure, making detection based on token-level patterns ineffective.
Evaluated models: BERT, Claude 3.5 Sonnet, GPT-4o+5 more
- BERT
- Claude 3.5 Sonnet
- GPT-4o
- Llama 3 8B
- Llama 3.2 3B
- Llama 3.2 90B
- Mistral 7B
- o1