QueryAttack: Jailbreaking Aligned Large Language Models Using Structured Non-natural Query Language

Recent advances in large language models (LLMs) have demonstrated remarkable potential in the field of natural language processing.Unfortunately, LLMs face significant security and ethical risks.Although techniques such as safety alignment are developed for defense, prior researches reveal the possibility of bypassing such defenses through well-designed jailbreak attacks.In this paper, we propose QueryAttack, a novel framework to examine the generalizability of safety alignment.By treating LLMs as knowledge databases, we translate malicious queries in natural language into structured non-natural query language to bypass the safety alignment mechanisms of LLMs.We conduct extensive experiments on mainstream LLMs, and the results show that QueryAttack not only can achieve high attack success rates (ASRs), but also can jailbreak various defense methods.Furthermore, we tailor a defense method against QueryAttack, which can reduce ASR by up to 64% on GPT-4-1106.Our code is available at https:// github.com/horizonsinzqs/QueryAttack.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.298
Citations
1
Primary Topic
Digital and Cyber Forensics
Type
article
Field-Weighted Citation Impact
3.25
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

QueryAttack: Jailbreaking Aligned Large Language Models Using Structured Non-natural Query Language

Jingyu Xiao, Kuofeng Gao, Yan Zhi, Qingsong Zou et al.
1 citations
Digital and Cyber Forensics
3.25
article

QueryAttack: Jailbreaking Aligned Large Language Models Using Structured Non-natural Query Language

Jingyu Xiao, Kuofeng Gao, Yan Zhi, Qingsong Zou, Qing Li, Yuhang Wang, Wenxuan Wang, Li Xu, Yong Jiang, Ruoyu Li
article en
1 citations

Abstract

Recent advances in large language models (LLMs) have demonstrated remarkable potential in the field of natural language processing.Unfortunately, LLMs face significant security and ethical risks.Although techniques such as safety alignment are developed for defense, prior researches reveal the possibility of bypassing such defenses through well-designed jailbreak attacks.In this paper, we propose QueryAttack, a novel framework to examine the generalizability of safety alignment.By treating LLMs as knowledge databases, we translate malicious queries in natural language into structured non-natural query language to bypass the safety alignment mechanisms of LLMs.We conduct extensive experiments on mainstream LLMs, and the results show that QueryAttack not only can achieve high attack success rates (ASRs), but also can jailbreak various defense methods.Furthermore, we tailor a defense method against QueryAttack, which can reduce ASR by up to 64% on GPT-4-1106.Our code is available at https:// github.com/horizonsinzqs/QueryAttack.

Openalex Percentile: Top 7%
Digital and Cyber Forensics
3.25
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.

QueryAttack: Jailbreaking Aligned Large Language Models Using Structured Non-natural Query Language — Jingyu Xiao, Kuofeng Gao, et al. · (2025) | TGRS Research Map | TGRS