arXiv:2609.09404cs.CRSep 2026

Manuscript Offprint

arXiv:2609.09404

An Experimental Evaluation of Multimodal Prompt Injection Attacks on Agentic AI Frameworks

Viet K. Nguyen, Mohammad I. Husain

Viet K. Nguyen

California State Polytechnic University, Pomona

Pomona, CA 91768, USA

vietknguyen@cpp.edu

Mohammad I. Husain

California State Polytechnic University, Pomona

Pomona, CA 91768, USA

mihusain@cpp.edu

Abstract—Agentic AI frameworks let a language model plan, keep memory, and call tools that reach real files, mail, and services. Most of these agents also read images, which gives an attacker a way to put text into the agent's context without going through the user. We present MMPIBench, a reproducible benchmark that measures what happens next. It delivers a fixed set of attacks through six visual carriers (OCR text, overlays, EXIF metadata, QR codes, fake interfaces, and hybrids) and records how far each injected instruction travels through the agent, from perception through planning to the tool call. Across 720 runs covering six frameworks, five foundation models, six carriers, and four attacker objectives, attacks complete in approximately 1% of runs but are attempted in 12.8%, and the gap is closed almost entirely at the planning step, where the model reads the injected instruction and declines to act on it. The model matters far more than the framework for whether an instruction is acted on. One model never attempts an attack and recognizes the injection in 59.7% of runs, while two others attempt in 23.6%. We then extend the benchmark to audio, the only other raw perceptual channel current frontier models accept. Only two of the five models ingest audio and only three of the six frameworks deliver it, but where the signal arrives the attack completes in 49% of cells, and in 75% for one model. Reporting completion alone therefore understates exposure, and perceptual channels beyond vision are narrower but much less defended.

Index Terms—prompt injection, multimodal attacks, agentic AI, large language models, vision-language models, AI security

I. INTRODUCTION

Language models are no longer only used to write text. Frameworks such as LangGraph, CrewAI, AutoGen, the OpenAI Agents SDK, Semantic Kernel, and LlamaIndex wrap a model in a loop that plans, calls tools, keeps memory across turns, and hands work to other agents. The tools reach real systems: file stores, email, databases, browsers, and cloud APIs. A model that produces a bad sentence is a nuisance. An agent that makes a bad tool call deletes a file or sends an email.

Most of these agents also read images. They process screenshots, scanned invoices, slides, charts, and photographed documents, either through an OCR step or through a vision encoder built into the model. This is useful, and it is also a way for text an attacker controls to enter the agent's context without going through the user.

Prompt injection is the underlying weakness. Models do not reliably tell the difference between an instruction from the operator and text that merely appears inside the content they are working on. Most published work on this treats the injected text as arriving in the user prompt, in a retrieved document, or in a web page. Much less is known about what happens when the instruction arrives as pixels and passes through a perception step first.

Agentic deployments raise the stakes in two ways. The consequence of following an injected instruction is an action rather than a paragraph, and many frameworks write to persistent memory, so an instruction absorbed once can keep influencing later sessions after the image itself is gone.

There is no shared benchmark for this setting. Existing studies either test a vision-language model on its own, with no planner, tools, or memory behind it, or test one agent against one kind of screen. Neither tells a developer which stage of their pipeline actually stopped an attack, or whether swapping the framework or the model would change the answer.

We built MMPIBench to answer those questions. It is a fixed set of multimodal attacks paired with one harness that runs the identical attack, tool set, and system prompt through six agentic frameworks, so a difference in outcome can be attributed to the framework, the model, or the carrier rather than to configuration. The attacks are delivered through six visual carriers: text rendered into an image, an overlay on a photograph, EXIF metadata, a QR code, a fake user interface, and a combination. For every run we record how far the injected instruction travelled, from perception through planning to the tool call, so the result is a location rather than a bit. We then extend the benchmark to audio, which with vision is one of only two inputs current frontier models tokenize as a raw signal, and report the first cross-framework measurements of spoken injection against agents.

This paper makes the following contributions. First, we present MMPIBench, a reproducible benchmark pairing a fixed multimodal attack set with a unified harness that runs the identical attack, tool set, and system prompt across six agentic frameworks. Second, we report a controlled sweep of 720 runs over six frameworks, five foundation models, six carriers, and four attacker objectives, with per-stage instrumentation that locates where each attack ends. Third, we adopt a two-layer judging protocol that separates what an agent attempts from what it completes, and show that attempts exceed completions by an order of magnitude, so a benchmark reporting completion alone badly understates exposure. Fourth, we extend the benchmark to the audio channel and show that the attack surface is gated at three independent points: whether the model accepts the modality, whether the framework delivers it, and how the model responds once it arrives. The attack set, the harness, and the complete execution traces will be released on publication, so the sweep can be reproduced and extended as models begin to accept further modalities. This study measures attack surface rather than mitigations; evaluating defenses is left to future work.