跳到主要导航 跳到搜索 跳到主要内容

JailGuard: A Universal Detection Framework for Prompt-based Attacks on LLM Systems

  • Xiaoyu Zhang
  • , Cen Zhang
  • , Tianlin Li
  • , Yihao Huang
  • , Xiaojun Jia
  • , Ming Hu
  • , Jie Zhang
  • , Yang Liu
  • , Shiqing Ma
  • , Chao Shen
  • Xi'an Jiaotong University
  • Nanyang Technological University
  • Agency for Science, Technology and Research, Singapore
  • University of Massachusetts

科研成果: 期刊稿件文章同行评审

19 引用 (Scopus)

摘要

The systems and software powered by Large Language Models (LLMs) and Multi-Modal Large Language Models (MLLMs) have played a critical role in numerous scenarios. However, current LLM systems are vulnerable to prompt-based attacks, with jailbreaking attacks enabling the LLM system to generate harmful content, while hijacking attacks manipulate the LLM system to perform attacker-desired tasks, underscoring the necessity for detection tools. Unfortunately, existing detecting approaches are usually tailored to specific attacks, resulting in poor generalization in detecting various attacks across different modalities. To address it, we propose JailGuard, a universal detection framework deployed on top of LLM systems for prompt-based attacks across text and image modalities.JailGuard operates on the principle that attacks are inherently less robust than benign ones. Specifically, JailGuard mutates untrusted inputs to generate variants and leverages the discrepancy of the variants’ responses on the target model to distinguish attack samples from benign samples. We implement 18 mutators for text and image inputs and design a mutator combination policy to further improve detection generalization. The evaluation on the dataset containing 15 known attack types suggests that JailGuard achieves the best detection accuracy of 86.14%/82.90% on text and image inputs, outperforming state-of-the-art methods by 11.81–25.73% and 12.20–21.40%.

源语言英语
文章编号8
期刊ACM Transactions on Software Engineering and Methodology
35
1
DOI
出版状态已出版 - 11 12月 2025

学术指纹

探究 'JailGuard: A Universal Detection Framework for Prompt-based Attacks on LLM Systems' 的科研主题。它们共同构成独一无二的指纹。

引用此