[Paper Review] Jailbreaking GPT-4V via Self-Adversarial Attacks with System Prompts
The paper reveals a system prompt leakage vulnerability in GPT-4V, introduces SASP to jailbreak MLLMs by using the model against itself, and shows that defensive system prompts can reduce jailbreak success.
Existing work on jailbreak Multimodal Large Language Models (MLLMs) has focused primarily on adversarial examples in model inputs, with less attention to vulnerabilities, especially in model API. To fill the research gap, we carry out the following work: 1) We discover a system prompt leakage vulnerability in GPT-4V. Through carefully designed dialogue, we successfully extract the internal system prompts of GPT-4V. This finding indicates potential exploitable security risks in MLLMs; 2) Based on the acquired system prompts, we propose a novel MLLM jailbreaking attack method termed SASP (Self-Adversarial Attack via System Prompt). By employing GPT-4 as a red teaming tool against itself, we aim to search for potential jailbreak prompts leveraging stolen system prompts. Furthermore, in pursuit of better performance, we also add human modification based on GPT-4's analysis, which further improves the attack success rate to 98.7\%; 3) We evaluated the effect of modifying system prompts to defend against jailbreaking attacks. Results show that appropriately designed system prompts can significantly reduce jailbreak success rates. Overall, our work provides new insights into enhancing MLLM security, demonstrating the important role of system prompts in jailbreaking. This finding could be leveraged to greatly facilitate jailbreak success rates while also holding the potential for defending against jailbreaks.
Motivation & Objective
- Identify vulnerabilities in GPT-4V system prompts that enable jailbreaking via API interactions.
- Develop SASP to automatically convert stolen system prompts into jailbreak prompts.
- Improve jailbreak effectiveness with human-in-the-loop enhancements.
- Evaluate defensive potential of modified system prompts against jailbreak attempts.
Proposed method
- System Prompt Access: extract internal system prompts using a meta-theft prompt including a simulated incomplete conversation and an image trigger.
- Self-Adversarial Iteration: use GPT-4V as red-teaming model to generate jailbreak prompts from stolen system prompts through iterative refinement.
- Jailbreak Prompt Enhancement: apply prefix injection, refusal suppression, hypothetical scenarios, and emotional appeals to boost jailbreak effectiveness.
- Jailbreak Evaluation: test SASP across GPT-4V and LLaVA-1.5v on facial recognition tasks and multilingual prompts (English, Chinese, Thai).
- Defense Evaluation: design safety-focused system prompts and test recall-based strategies to maintain safe outputs.
Experimental results
Research questions
- RQ1Can system prompts be leaked from GPT-4V via carefully crafted prompts?
- RQ2Can a self-adversarial process using the target model as red team generate effective jailbreak prompts?
- RQ3To what extent can human-modified jailbreak prompts surpass automated ones in success rate?
- RQ4Do system-prompt-based defenses meaningfully reduce jailbreak success rates across multilingual MLLMs?
- RQ5What is the role of system prompts in safeguarding or enabling jailbreaking in facial recognition tasks?
Key findings
- System prompt leakage vulnerability in GPT-4V was demonstrated using meta-theft prompts.
- SASP enables jailbreak prompts with a 59% attack success rate (ASR) in English jailbreak prompts.
- Manual modification of SASP prompts raised ASR to 99% and RSR to 95% in English tests.
- Two-iteration SASP attacks increased the likelihood of success, with an average ASR around 63% in ablation studies.
- System prompts designed for safety can reduce jailbreak success rates, indicating a defensive role for prompt design.
- Results show language and model differences in jailbreak effectiveness, with higher risk when system prompts are recalled or leaked.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.