Enhancing Jailbreak Attacks on LLMs via Persona Prompts

Zheng Zhang, Peilin Zhao, Deheng Ye, Hao Wang
7/28/2025
cs.CRcs.AI

Official code: CjangCjengh/Generic_Persona (6 stars, last commit 2025-11-13).

Abstract

Jailbreak attacks aim to exploit large language models (LLMs) by inducing them to generate harmful content, thereby revealing their vulnerabilities. Understanding and addressing these attacks is crucial for advancing the field of LLM safety. Previous jailbreak approaches have mainly focused on direct manipulations of harmful intent, with limited attention to the impact of persona prompts. In this study, we systematically explore the efficacy of persona prompts in compromising LLM defenses. We propose a genetic algorithm-based method that automatically crafts persona prompts to bypass LLM's safety mechanisms. Our experiments reveal that: (1) our evolved persona prompts reduce refusal rates by 50-70% across multiple LLMs, and (2) these prompts demonstrate synergistic effects when combined with existing attack methods, increasing success rates by 10-20%. Our code and data are available at https://github.com/CjangCjengh/Generic_Persona.

View on arXivView PDF

Code Implementations(1)

61PythonJul 28, 202511 months ago

Similar Papers

Cite this paper

@article{zhang2025enhancing,
  title  = {Enhancing Jailbreak Attacks on LLMs via Persona Prompts},
  author = {Zheng Zhang and Peilin Zhao and Deheng Ye and Hao Wang},
  year   = {2025},
  eprint = {2507.22171},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.22171v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.22171.svg)](https://codeofpaper.com/paper/2507.22171)

Discussion