[Paper Review] Abusing Images and Sounds for Indirect Instruction Injection in Multi-Modal LLMs
The paper shows how adversarial perturbations embedded in images or audio can indirectly inject prompts into multi-modal LLMs, enabling targeted outputs or dialog poisoning against open-source models like LLaVA and PandaGPT.
We demonstrate how images and sounds can be used for indirect prompt and instruction injection in multi-modal LLMs. An attacker generates an adversarial perturbation corresponding to the prompt and blends it into an image or audio recording. When the user asks the (unmodified, benign) model about the perturbed image or audio, the perturbation steers the model to output the attacker-chosen text and/or make the subsequent dialog follow the attacker's instruction. We illustrate this attack with several proof-of-concept examples targeting LLaVa and PandaGPT.
Motivation & Objective
- Demonstrate that images and sounds can carry adversarial prompts that steer multi-modal LLMs.
- Introduce two attack modalities—targeted-output and dialog poisoning.
- Evaluate the feasibility of these attacks on open-source models LLaVA and PandaGPT.
- Highlight the stealthiness of perturbations that preserve input semantics while injecting instructions.
Proposed method
- Formulate an optimization to blend a prompt into an image/audio so the model outputs a chosen text.
- Apply adversarial perturbations using cross-entropy-based loss and gradient methods (Fast Gradient Sign Method) to craft x^I* or x^A*.
- Iteratively generate first responses token-by-token using teacher-forcing to ensure the model outputs the attacker’s target text.
- Exploit the auto-regressive, context-retaining nature of dialog systems to poison future interactions with an injected instruction.
- Demonstrate two injection modes: targeted-output (specific text) and dialog poisoning (instruction embedded in initial or subsequent history).
- Show that perturbations can be applied with full or partial input perturbations without drastically altering semantic content.
Experimental results
Research questions
- RQ1Can adversarial perturbations embedded in images or audio induce an LLM to reveal attacker-chosen text when queried about the input?
- RQ2Can injected prompts influence ongoing dialog by poisoning the model’s conversation history in multi-turn interactions?
- RQ3How do open-source multi-modal LLMs like LLaVA and PandaGPT respond to such indirect instruction injections?
- RQ4What are the constraints and limitations of these injection methods in terms of stealth, perturbation size, and model retention of input content?
Key findings
- Adversarial perturbations blended into images or audio can induce attacker-chosen outputs in multi-modal LLMs.
- Two attack types were demonstrated: targeted-output and dialog poisoning against LLaVA and PandaGPT.
- Perturbations can preserve the input’s semantic content while steering the model to follow injected instructions.
- The injection methods are independent of the original prompt and input and can function with limited computational resources.
- The attacks are demonstrated under stochastic model responses and without strict perturbation bounds, indicating practical risk in real deployments.
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.