SQL Injection Jailbreak: A Structural Disaster of Large Language Models

Large Language Models (LLMs) are susceptible to jailbreak attacks that can induce them to generate harmful content.Previous jailbreak methods primarily exploited the internal properties or capabilities of LLMs, such as optimization-based jailbreak methods and methods that leveraged the model's contextlearning abilities.In this paper, we introduce a novel jailbreak method, SQL Injection Jailbreak (SIJ), which targets the external properties of LLMs, specifically, the way LLMs construct input prompts.By injecting jailbreak information into user prompts, SIJ successfully induces the model to output harmful content.For open-source models, SIJ achieves near 100% attack success rates on five well-known LLMs on the AdvBench and HEx-PHI, while incurring lower time costs compared to previous methods.For closed-source models, SIJ achieves an average attack success rate over 85% across five models in the GPT and Doubao series.Additionally, SIJ exposes a new vulnerability in LLMs that urgently requires mitigation.To address this, we propose a simple adaptive defense method called Self-Reminder-Key to counter SIJ and demonstrate its effectiveness through experimental results.Our code is available at https://github.com/ weiyezhimeng/SQL-Injection-Jailbreak.Warning: This paper contains examples of harmful results generated by LLMs.

Authors

Institutions

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.358
Primary Topic
Digital and Cyber Forensics
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

SQL Injection Jailbreak: A Structural Disaster of Large Language Models

Kejiang Chen, Nenghai Yu, Weiming Zhang, J. W. Zhao
Digital and Cyber Forensics
article

SQL Injection Jailbreak: A Structural Disaster of Large Language Models

Kejiang Chen, Nenghai Yu, Weiming Zhang, J. W. Zhao
article en

Abstract

Large Language Models (LLMs) are susceptible to jailbreak attacks that can induce them to generate harmful content.Previous jailbreak methods primarily exploited the internal properties or capabilities of LLMs, such as optimization-based jailbreak methods and methods that leveraged the model's contextlearning abilities.In this paper, we introduce a novel jailbreak method, SQL Injection Jailbreak (SIJ), which targets the external properties of LLMs, specifically, the way LLMs construct input prompts.By injecting jailbreak information into user prompts, SIJ successfully induces the model to output harmful content.For open-source models, SIJ achieves near 100% attack success rates on five well-known LLMs on the AdvBench and HEx-PHI, while incurring lower time costs compared to previous methods.For closed-source models, SIJ achieves an average attack success rate over 85% across five models in the GPT and Doubao series.Additionally, SIJ exposes a new vulnerability in LLMs that urgently requires mitigation.To address this, we propose a simple adaptive defense method called Self-Reminder-Key to counter SIJ and demonstrate its effectiveness through experimental results.Our code is available at https://github.com/ weiyezhimeng/SQL-Injection-Jailbreak.Warning: This paper contains examples of harmful results generated by LLMs.

University of Science and Technology of China (CN)
National Natural Science Foundation of China
Climate action
Openalex Percentile: Top 71%
Digital and Cyber Forensics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.