SQL Injection Jailbreak: A Structural Disaster for Large Language ModelsSQL Injection Jailbreak: A Structural Disaster of Large Language Models
Researchers propose a jailbreak method named SQL Injection Jailbreak (SIJ), which injects jailbreak information into the user prompt and exploits the external property that large language models construct input prompts to induce the model to output harmful content, differing from previous methods that exploit the model's internal capabilities or in-context learning. On the AdvBench and HEx-PHI benchmarks, SIJ achieves an attack success rate close to 100% against five well-known open-source large models, with lower time cost than previous methods; against five closed-source models in the GPT and Doubao series, the average attack success rate exceeds 85%. The authors also propose a simple adaptive defense method, Self-Reminder-Key, and verify its effectiveness through experiments. The code is open-sourced at https://github.com/weiyezhimeng/SQL-Injection-Jailbreak。