Skip to main content
QUICK REVIEW

[Paper Review] Image-based Prompt Injection: Hijacking Multimodal LLMs through Visually Embedded Adversarial Instructions

Neha Nagaraja, Lan Zhang|arXiv (Cornell University)|Mar 4, 2026
Adversarial Robustness in Machine LearningComputer Science0 citations
TL;DR

The paper introduces Image-based Prompt Injection (IPI), a black-box attack that embeds adversarial prompts within natural images to hijack Multimodal LLM outputs, achieving high attack success with stealthy visuals.

ABSTRACT

Multimodal Large Language Models (MLLMs) integrate vision and text to power applications, but this integration introduces new vulnerabilities. We study Image-based Prompt Injection (IPI), a black-box attack in which adversarial instructions are embedded into natural images to override model behavior. Our end-to-end IPI pipeline incorporates segmentation-based region selection, adaptive font scaling, and background-aware rendering to conceal prompts from human perception while preserving model interpretability. Using the COCO dataset and GPT-4-turbo, we evaluate 12 adversarial prompt strategies and multiple embedding configurations. The results show that IPI can reliably manipulate the output of the model, with the most effective configuration achieving up to 64\% attack success under stealth constraints. These findings highlight IPI as a practical threat in black-box settings and underscore the need for defenses against multimodal prompt injection.

Motivation & Objective

  • Highlight the vulnerability of Multimodal LLMs to visually embedded adversarial prompts.
  • Develop an end-to-end IPI pipeline to convert textual prompts into visually embedded instructions.
  • Evaluate how embedding parameters (font size, color, placement) affect attack stealth and effectiveness.
  • Demonstrate attack transferability in black-box settings and discuss defenses against multimodal prompt injection.

Proposed method

  • Propose a modular end-to-end pipeline that converts adversarial prompts into visually embedded instructions.
  • Use Segment Anything Model (SAM) to select and rank injection regions.
  • Embed prompts with background-aware rendering and adaptive font sizing.
  • Experiment with three font coloring strategies to balance invisibility and readability.
  • Evaluate 12 adversarial prompts on the COCO dataset using GPT-4-turbo in a black-box setup.

Experimental results

Research questions

  • RQ1RQ1: Can a black-box attacker reliably coerce LLM outputs via near-invisible embedded prompts in natural images?
  • RQ2RQ2: How do visual attributes—such as font size, color contrast, spatial placement, and region variance—affect attack success and stealth?

Key findings

  • IPI can reliably hijack model outputs in black-box settings with high success rates.
  • Prompt repetition (Prompt 5) achieves 100% ASR on several prompts and remains effective across contexts.
  • Font size above about 0.3 generally improves attack success, revealing a stealth vs. effectiveness trade-off.
  • Global region-averaged coloring with object-aware prefixes yields the strongest balance of stealth and ASR (up to 64%).
  • Three embedding strategies show varying trade-offs: patch coloring offers some stealth with modest ASR; pixel-level blending yields high stealth but low ASR; region-averaged coloring provides best overall performance.
  • The attack persists across diverse image contexts and model settings, underscoring broader multimodal security concerns.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.