EMNLP 2024main3 citations

BaitAttack: Alleviating Intention Shift in Jailbreak Attacks via Adaptive Bait Crafting

Rui Pu, Chaozhuo Li, Rui Ha, Litian Zhang, Lirong Qiu, Xi Zhang

Abstract

Jailbreak attacks enable malicious queries to evade detection by LLMs. Existing attacks focus on meticulously constructing prompts to disguise harmful intentions. However, the incorporation of sophisticated disguising prompts may incur the challenge of “intention shift”. Intention shift occurs when the additional semantics within the prompt distract the LLMs, causing the responses to deviate significantly from the original harmful intentions. In this paper, we propose a novel component, “bait”, to alleviate the effects of intention shift. Bait comprises an initial response to the harmful query, prompting LLMs to rectify or supplement the knowledge within the bait. By furnishing rich semantics relevant to the query, the bait helps LLMs focus on the original intention. To conceal the harmful content within the bait, we further propose a novel attack paradigm, BaitAttack. BaitAttack adaptively generates necessary components to persuade targeted LLMs that they are engaging with a legitimate inquiry in a safe context. Our proposal is evaluated on a popular dataset, demonstrating state-of-the-art attack performance and an exceptional capability for mitigating intention shift. The implementation of BaitAttack is accessible at: https://anonymous.4open.science/r/BaitAttack-D1F5.

BibTeX
@inproceedings{pu-etal-2024-baitattack,
    title = "{B}ait{A}ttack: Alleviating Intention Shift in Jailbreak Attacks via Adaptive Bait Crafting",
    author = "Pu, Rui  and
      Li, Chaozhuo  and
      Ha, Rui  and
      Zhang, Litian  and
      Qiu, Lirong  and
      Zhang, Xi",
    editor = "Al-Onaizan, Yaser  and
      Bansal, Mohit  and
      Chen, Yun-Nung",
    booktitle = "Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing",
    month = nov,
    year = "2024",
    address = "Miami, Florida, USA",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.emnlp-main.877/",
    doi = "10.18653/v1/2024.emnlp-main.877",
    pages = "15654--15668"
}
BaitAttack: Alleviating Intention Shift in Jailbreak Attacks via Adaptive Bait Crafting · EMNLP 2024