Abstract
Large Vision-Language Models (LVLMs) have become powerful and widely adopted in some practical applications. However, recent research has revealed their vulnerability to multimodal jailbreak attacks, whereby the model can be induced to generate harmful content, leading to safety risks. Although most LVLMs have undergone safety alignment, recent research shows that the visual modality is still vulnerable to jailbreak attacks. In our work, we discover that by using flowcharts with partially harmful information, LVLMs can be induced to provide additional harmful details. Based on this, we propose a jailbreak attack method based on auto-generated flowcharts, FC-Attack. Specifically, FC-Attack first fine-tunes a pre-trained LLM to create a step-description generator based on benign datasets. The generator is then used to produce step descriptions corresponding to a harmful query, which are transformed into flowcharts in 3 different shapes (vertical, horizontal, and S-shaped) as visual prompts. These flowcharts are then combined with a benign textual prompt to execute a jailbreak attack on LVLMs. Our evaluations using the Advbench dataset show that FC-Attack achieves over 90% attack success rates on Gemini-1.5, Llaval-Next, Qwen2-VL, and InternVL-2.5 models, outperforming existing LVLM jailbreak methods. Additionally, we investigate factors affecting the attack performance, including the number of steps and the font styles in the flowcharts. Our evaluation shows that FC-Attack can improve the jailbreak performance from 4% to 28% in Claude-3.5 by changing the font style. To mitigate the attack, we explore several defenses and find that AdaShield can largely reduce the jailbreak performance but with the cost of utility drop.
Introduction
While Large Language Models (LLMs) have undergone extensive safety alignment to refuse harmful requests, their multimodal counterparts, Multimodal Large Language Models (MLLMs), introduce a significant new attack surface: the visual modality. Previous research has shown that MLLMs are often more permissive when harmful instructions are embedded in images rather than text. However, as models evolve, simple text-in-image attacks are becoming less effective.
This research investigates whether the structure of information—specifically flowcharts with boxes, arrows, and sequential logic—can bypass a model's safety filters. The core discovery is that MLLMs struggle to apply safety alignment consistently to structured visual information, often prioritizing the "helpful" completion of a structured task over safety constraints.
The FC-Attack Framework
The authors propose FC-Attack, a two-stage framework designed to automate the creation of effective visual jailbreak prompts.
1. Step-Description Generator Building
To avoid the manual labor of writing harmful steps, the researchers fine-tuned a Mistral-7B model (using LoRA) on a dataset of 5,000 benign step-by-step instructions. This "Generator" learns the structural logic of task decomposition. When prompted with a harmful query, it produces a detailed, multi-step breakdown of the malicious activity without being explicitly trained on harmful data.
2. Jailbreak Deployment
The generated steps are automatically converted into flowcharts using Graphviz. The attack evaluates three primary shapes: Vertical, Horizontal, and S-shaped. These flowcharts are then paired with a "benign wrapper"—a harmless-sounding textual prompt such as: "You are participating in a high-stakes quiz... your task is to analyze and complete the steps in the provided flowchart." This framing tricks the model into a "helpful" reasoning mode, focusing on the structural completion task rather than the underlying harmful content.
Key Insights and Experimental Results
The effectiveness of FC-Attack was evaluated using the Advbench dataset across several state-of-the-art MLLMs.
- High Attack Success Rates (ASR): FC-Attack achieved remarkable success, with ASRs of 94% on Gemini-1.5, 92% on Llava-Next, and 90% on Qwen2.5-VL. In many cases, models that successfully blocked text-only harmful queries (0% ASR) were easily jailbroken when the same information was presented as a flowchart.
- The "Structure" Premium: The structural elements of flowcharts play a critical role. Adding boxes to the text improved ASR by 18%, and adding directional arrows further increased it by 38%. These cues appear to trigger the model's reasoning capabilities, which can override safety filters.
- Typography as a Cloak: For highly resistant models like Claude-3.5, font style became a significant factor. Changing the font from standard "Times New Roman" to stylized Google Fonts like "Pacifico" or "Shojumaru" increased the ASR from 4% to 28%.
- Video Modality Vulnerability: The attack is also highly effective in video format. By presenting flowchart steps sequentially over a 3-second video, the researchers achieved an 88% success rate on models like Qwen-VL-Max, representing one of the first systematic jailbreaks of the video modality.
Defense and Utility Trade-offs
The study explored several defense mechanisms to mitigate these attacks. While AdaShield-A proved highly effective at stopping FC-Attack, it came with a significant "utility drop"—a degradation in the model's performance on benign tasks (measured via MM-Vet). This highlights the ongoing challenge of developing safety mechanisms that are both robust against structural visual attacks and non-disruptive to general model intelligence.
Conclusion and Future Work
FC-Attack demonstrates a critical vulnerability in current MLLMs: the inability to maintain safety alignment when faced with structured visual logic. Future work will need to address the scope of these vulnerabilities across different languages and decoding strategies. Most importantly, there is an urgent need for more surgical defense mechanisms that can identify and neutralize flowchart-based attacks without compromising the model's overall utility.
Summary updated