Skip to main navigation Skip to search Skip to main content

AdaPPA: Adaptive Position Pre-Fill Jailbreak Attack Approach Targeting LLMs

  • Lijia Lv
  • , Weigang Zhang
  • , Xuehai Tang*
  • , Jie Wen*
  • , Feng Liu
  • , Jizhong Han
  • , Songlin Hu
  • *Corresponding author for this work
  • CAS - Institute of Information Engineering
  • University of Chinese Academy of Sciences

Research output: Contribution to journalConference articlepeer-review

Abstract

Jailbreak vulnerabilities in Large Language Models (LLMs) refer to methods that extract malicious content from the model by carefully crafting prompts or suffixes, which has garnered significant attention from the research community. However, traditional attack methods, which primarily focus on the semantic level, are easily detected by the model. These methods overlook the difference in the model's alignment protection capabilities at different output stages. To address this issue, we propose an adaptive position pre-fill jailbreak attack approach for executing jailbreak attacks on LLMs. Our method leverages the model's instruction-following capabilities to first output pre-filled safe content, then exploits its narrative-shifting abilities to generate harmful content. Extensive black-box experiments demonstrate our method can improve the attack success rate by 47% on the widely recognized secure model (Llama2) compared to existing approaches. Our code can be found at: https://github.com/Yummy416/AdaPPA.

Keywords

  • Jailbreak Attacks
  • Large Language Models
  • Model Security
  • Pre-Fill Attacks

Fingerprint

Dive into the research topics of 'AdaPPA: Adaptive Position Pre-Fill Jailbreak Attack Approach Targeting LLMs'. Together they form a unique fingerprint.

Cite this