System Prompt Extraction against Vision-Language Models
Khanh Nguyen, Raouf Kerkouche, Mario Fritz, Dimosthenis Karatzas
Abstract
System prompts are a foundational component of deployed vision-language large models (VLLMs), enabling service providers to shape model behavior, enforce usage policies, and embed proprietary business logic through confidential instructions prepended to user inputs at inference time. As these instructions frequently encode competitive advantages and sensitive operational details, they are treated as protected assets by deploying organizations. Prior work has demonstrated that system prompts are susceptible to extraction attacks, wherein adversaries construct malicious queries to coerce a model into disclosing its hidden context. However, existing attacks operate exclusively in the textual modality, leaving the visual channel entirely unexplored as an attack vector. This is a significant oversight: visual tokens are projected into the text embedding space, making the image a co-equal input to the decoder that processes the system prompt, and an attack surface that text-only defenses miss. In this paper, we present the first system prompt extraction attack against VLLMs that operates entirely through the image modality. We introduce DISPEL, a DIffusion-guided System Prompt Extraction via reinforcement Learning that formulates adversarial image generation as a learned policy problem and fine-tunes a pretrained diffusion model with LoRA, encoding the adversarial signal in image semantics rather than an additive perturbation, so that generated images reliably elicit system prompt leakage while resisting purification-based defenses. Extensive evaluation across multiple VLLMs and datasets demonstrates that DISPEL successfully extracts hidden system prompts and significantly outperforms state-of-the-art text-based baselines on exact-match metrics, exposing a critical and previously uncharacterized attack surface in deployed multi-modal systems.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CR
- Comments
- Preprint
Related papers
Tracing Perceptual Transfer in Vision-Language Models via Model Merging
Shared title terminologycs.LGJiashu Li, Tianyu Gao, Qinglong Liu et al.
Source-Free Cross-Domain Continual Learning via Orthogonal Sharpness-Aware Vision Language Models
Shared title terminologycs.LGAmri Muhaimin, Mahardhika Pratama, Rizal Hamdan Arigusti et al.
When Does Fine-Tuning Overtake Prompting? An Accuracy and Cost Analysis of Small Language Models on Narrow Tasks
Shared title terminologycs.LGUrs Spiegelhalter, Jörg K. H. Franke, Frank Hutter
HypOC: Hypothetical Output Conditioned Prompting for Ranking-Based Classification
Shared title terminologycs.LGBenoît Ronval, Pierre Dupont, Siegfried Nijssen
Language Model Circuits Use Fewer Neurons at Higher Learning Rates
Shared title terminologycs.LGMarcos Hernanz
Do Large Language Models Chase Trends? Evidence from Look-Ahead-Free Daily Forecasts of the Nasdaq-100
Shared title terminologycs.LGYujing Liu