NOV 30, 2026

Visual Prompt Injection: The Hidden Security Risk in AI Images

visual prompt injection is an attack in which instructions are hidden in, or presented through, an image, screenshot or scanned document, so that a multimodal AI model reads them as commands instead of as content to analyse. It can distort the model’s output and, in systems connected to tools or sensitive data, cause more serious harm. Defences exist, but none is complete.

Key Takeaways

  • Visual prompt injection is the image-borne form of prompt injection: the attacker’s instruction travels in pixels rather than typed text.
  • Vision-language models read text inside images and combine it with the user’s request. They do not reliably separate material to describe from material to obey.
  • The evidence is real but uneven. Research has shown the attack against several commercial models, and researchers have demonstrated an image-scaling variant against production tools. No verified enterprise breach is cited here.
  • The impact depends on what the AI can see and do. A summariser with no tools can be misled; an assistant with document access and outbound actions can be steered further.
  • Reducing the risk means treating visual input as untrusted, limiting permissions, requiring human approval for consequential actions and testing with adversarial images.
  • Redacting sensitive data before sharing content with external AI tools is a separate privacy measure. It does not detect or stop malicious instructions.

What Is Visual Prompt Injection?

Prompt injection, as OWASP defines it, happens when inputs change a language model’s behaviour in ways its operators did not intend. Visual prompt injection applies that idea to the visual channel. Rather than typing “ignore your previous instructions”, the attacker places the instruction in an image and relies on the model’s vision component to read it.

The cause is architectural. A multimodal model converts an image into representations it can reason over, merges them with the text prompt and generates a reply. Nothing in that pipeline inherently marks text found in a picture as less authoritative than text the user typed. Researchers at Northern Arizona University and ByteDance put it this way: the vision-language pipeline treats visual text as meaningful input, so embedded cues can be read as prompts.

That is why an uploaded image should not inherit the trust given to the employee who uploaded it. The employee is trusted; the pixels are not. OWASP also notes that injected content does not need to be human-readable, only parseable by the model, which is what makes multimodal AI security harder than filtering typed text.

How Visual Prompt Injection Attacks Work

Most attacks follow the same short path. The attacker prepares an image that carries an instruction. It reaches a victim’s workflow, perhaps as an email attachment, a shared file, a web page or a supplier document. The victim, or an automated pipeline, submits it to a multimodal model together with a legitimate request. The model reads both and, depending on the model and the system around it, may follow the embedded instruction.

Note who the attacker is. Unlike someone typing into a chatbot, the person behind a visual attack usually never touches the AI system. The victim does the delivering, which is why Microsoft’s security team classes this family as indirect prompt injection: the attacker injects instructions into the interaction between a user and the model.

Whether it succeeds depends on four things: the model and its version, how the instruction is worded, how the text is hidden or presented, and what the surrounding system does with the output. That is why not every vision-language model is equally exposed, and why a result on one model should not be generalised to all.

Common Techniques Used in Visual Prompt Injection

The techniques below differ in how they conceal the instruction and in how strong the evidence behind them is. All are research or researcher demonstrations; none is presented here as a confirmed attack in the wild.

Overlaid or lightly disguised text. The simplest form is a caption, banner or note pasted into a screenshot or photograph. In a 2026 study, Nagaraja and colleagues embedded commands in ordinary photographs and tested GPT-4-turbo. Their two best prompts reported a 100% attack success rate when the text was clearly visible. It is one model in a lab, but it shows how little skill the basic version needs.

Low-contrast and tiny text. Hiding text from people is harder than it sounds, because the model has to keep reading it. The same study found a trade-off: text below roughly 0.20 of its font-scale setting produced negligible success, and the best result under stealth constraints was 64%. Clusmann and colleagues, covered below, found low-contrast and tiny text similarly harmful against several commercial models in a medical setting.

Image-scaling payloads. Many AI services shrink large images before the model sees them. In August 2025, Trail of Bits showed that an image can look harmless at full size and reveal a prompt injection once downscaled. They demonstrated it against Google’s Gemini CLI, Vertex AI Studio, the Gemini web and API interfaces, Google Assistant and the Genspark agentic browser, after fingerprinting each system’s downscaling method. This was a researcher demonstration, not an attack observed in use.

Adversarial perturbations. Here the image is altered pixel by pixel, in ways people barely notice, to push a model toward a chosen output. A February 2026 paper by Schlarmann and Hein describes a visual memory injection in which the model behaves normally until a later trigger prompt, then outputs a prescribed message. It is more specialised than text overlays, and a May 2026 defence paper separates such perturbation-based attacks from structure-based ones that rely on visible layouts or text.

Scanned documents. A scanned contract or invoice reaches the model through OCR or vision processing, so text that a reader skims past can still be ingested. The research I reviewed focuses on photographs, medical images and screenshots rather than scanned business documents, so for scans this is an inference from the mechanism, not a documented case.

Realistic Enterprise Use Cases and Attack Scenarios

No verified, publicly documented enterprise incident of visual prompt injection is cited in this article. The four scenarios below are hypothetical and show how the research could translate into business settings.

Legal (illustrative). A law firm uses an AI tool to summarise scanned correspondence from a counterparty. The letter carries faint text telling the model to describe a settlement term as standard. If the lawyer relies on the summary, a material term may go unexamined. The harm is a manipulated output, not stolen data.

Financial (illustrative). An accounts payable workflow reads invoice images and drafts approvals. A forged invoice includes hidden text instructing the model to mark it pre-approved. Whether that matters depends on whether a person or a deterministic rule checks the result before payment.

Healthcare (illustrative). A clinic uses a vision-language model to draft a summary from a scanned referral letter and an attached image. Text embedded in the image tells the model to omit a finding. The risk here is clinical, because a reader may trust the draft and not return to the original.

A screenshot containing PII (illustrative). An employee pastes a screenshot of a customer record into an assistant to ask for help drafting a reply. The screenshot came from a third party and includes embedded instructions to produce a particular response. Two separate problems arise. The embedded instruction can steer the answer, and the screenshot itself exposes personal data to an external service whether or not any attack is present.

In each case, the severity is set less by the image than by the access and autonomy of the system reading it.

Visual Prompt Injection vs. Direct Prompt Injection

In direct prompt injection, the attacker is the person writing the prompt, or has persuaded the user to paste attacker text. The instruction arrives as typed language, which text-based filters can inspect directly. Visual prompt injection usually works as an indirect attack: a legitimate user submits content that a third party has prepared, and the instruction rides inside that content.

The end effect is the same in both cases: the model gives attacker-written text priority over its intended task. The difference is in the input channel. When the instruction is encoded as pixels, a text filter must first extract or interpret the image, and what the filter sees may differ from what the model perceives. OWASP warns that multimodal systems can face cross-modal attacks that are difficult to detect with current techniques. For a grounding in the text-based side, see Questa’s overview of privacy cafe article on prompt injection as an enterprise security problem.

Security and Privacy Risks for Businesses

OWASP states that the impact of prompt injection depends largely on the business context and the agency the model has been given. For visual inputs, three kinds of harm are worth separating.

Manipulated outputs and decisions. The most likely consequence is a wrong or incomplete answer that a person acts on. This matters most where AI saves time on documents people would otherwise read closely: contracts, statements, clinical notes.

Compromised workflows. Where model output feeds another step, such as an approval, a record update or a message, a manipulated reading can propagate. Microsoft lists data exfiltration and unintended actions on the user’s behalf among the possible impacts of indirect injection.

Sensitive information exposure. A malicious image does not automatically lead to stolen data. That outcome generally requires several conditions at once: the model can reach sensitive information, it has a way to send it elsewhere, no human or deterministic control sits in the path, and the injection works against that particular model. Trail of Bits’ Gemini CLI demonstration shows what that alignment can look like: hidden text triggered an email of calendar data in a setup where tool calls were approved automatically. Questa’s overview of AI agent data privacy risks covers how over-broad access creates that kind of path.

A fourth, independent privacy issue is worth keeping apart: images and scans often contain personal or confidential data in the first place. That exposure exists even when no one is attacking anything, and it is where redaction, discussed below, applies.

A Verified Research Example: Medical Imaging Under Attack

The clearest peer-reviewed demonstration is Prompt injection attacks on vision language models in oncology, by Jan Clusmann, Dyke Ferber, Isabella Wiest, Carolin Schneider, Titus Brinker, Sebastian Foersch, Daniel Truhn and Jakob Nikolas Kather, researchers at institutions including TU Dresden, Heidelberg University Hospital and University Hospital Aachen. It was published on 1 February 2025 in Nature Communications after appearing as a preprint in July 2024.

The team tested four models available at the time: Claude-3 Opus, Claude-3.5 Sonnet, Reka Core and GPT-4o. They gave each an image of a liver lesion and tried to make the model ignore it, comparing a text injection, a visual injection and a “delayed” visual injection placed in a preceding image. For the visual versions they also tried low-contrast and tiny text that the authors describe as not obvious to human observers.

Across 594 attacks, all tested models proved susceptible. In the authors’ preprint, text injection was harmful in nearly every observation, visual injection was similarly harmful for most models (Claude-3.5 Sonnet was less affected), and delayed visual injection was less harmful. Hiding the text did not noticeably reduce harm.

What this establishes: instructions people could not easily see altered the output of several leading models, with no access to the models’ internals. What it does not establish: that this happens in deployed clinical systems, or that today’s model versions behave the same way. It was a controlled experiment on models that have since been superseded. Its value to other sectors is structural. Wherever an image feeds a consequential decision, the same exposure exists in principle.

How Organisations Can Reduce Visual Prompt Injection Risks

No published control eliminates the problem. OWASP says it is unclear whether fool-proof prevention exists, and Microsoft recommends layering probabilistic and deterministic defences while assuming some attacks will succeed. A May 2026 paper proposing a new visual defence adds that work aimed specifically at this threat has received comparatively little attention next to text-only research, which argues for caution about any single product claim.

Treat images and scans as untrusted, and inspect them. Handle external and forwarded images as hostile content. OCR-based screening can flag instruction-like text, and replacing raw images with sanitised, query-aware descriptions is another option suggested by Nagaraja and colleagues. Neither is foolproof, because attackers adapt and a screen may not see what the model sees. Trail of Bits advises avoiding downscaling, capping upload dimensions and showing users the exact image the model receives.

Separate instructions from untrusted content. OWASP recommends segregating and clearly marking external content, and Microsoft’s Spotlighting uses data marking toward the same end. The published evidence for these methods is mainly about text; I did not find equivalent evidence for image inputs, so do not assume the same effect.

Limit what the model can reach and do. This is arguably the highest-value control because it caps the damage when everything else fails. Give the model only the access and tool functions the task needs, and keep privileged operations in application code.

Require human approval for consequential actions. Trail of Bits’ guidance is that text inside an image should never trigger sensitive tool calls without explicit confirmation. The weakness is reviewer fatigue, so reserve approvals for steps that matter.

Monitor, then test. Log what the model received, what it produced and which tools it called. Run adversarial tests that include image cases such as low-contrast text and resized images, treating the model as an untrusted user, as OWASP advises. Monitoring finds problems after the fact; testing finds them before deployment. Neither stops an attack in progress.

Before adopting any multimodal system, it is also worth asking a vendor what image preprocessing it performs, whether it has been tested against image-borne injection and which actions it can take without confirmation.

The Role of Sensitive Data Redaction in Multimodal AI Workflows

Preventing visual prompt injection and protecting sensitive information are different jobs. The first is a model security problem: stopping malicious instructions in visual content from steering the AI. The second is a privacy measure: concealing confidential information before content is shared with an external AI system. Redaction does not detect, remove or prevent malicious visual instructions, and a redacted image can carry an injected instruction as readily as an unredacted one.

Where redaction helps is in limiting what is exposed if something goes wrong, and, separately, in limiting what leaves the organisation at all. Consider the examples above. A law firm’s scanned letter contains client names and matter details. A bank’s statement image shows account and transaction numbers. A referral letter carries patient identifiers. A customer-record screenshot is full of PII. Whether or not any of these is ever attacked, sending them unredacted to an external AI tool is an exposure that a security control against injection will not address. Questa’s analysis piece of content on AI data leak examples shows how often that exposure arises from ordinary use.

Questa AI can redact supported sensitive information from images and documents before they are shared with external AI tools. The key word is supported: it covers the categories of sensitive data it is built to handle, and it does not redact an entire image or guarantee that every piece of confidential content is removed, so redacted output should still be reviewed for high-risk material. Blackbox is a privacy control. It does not identify malicious instructions in images, and it is not a defence against image-based prompt injection or multimodal attacks generally. Questa’s explanation of privacy cafe article on AI privacy firewalls versus broader AI firewalls draws the same line.

In practice the two work as separate layers: security controls to make the model harder to hijack and to limit what it can do, and redaction to make sure less sensitive data reaches it in the first place.

Frequently Asked Questions

It is an attack where instructions are hidden in or shown through an image, screenshot or scanned document so a multimodal AI model reads them as commands. It is the image-based counterpart of text prompt injection.

The attacker embeds an instruction in visual content that reaches a victim’s AI workflow. When the model processes the image with the user’s request, it may read the embedded text and follow it. Success depends on the model, the wording, how the text is hidden and the surrounding system.

Yes. Research has demonstrated instructions placed in low-contrast and tiny text, and in images that reveal text only after being downscaled. Whether people can see them varies, and so does how well they work on different models.

Direct prompt injection comes through text typed or pasted into the model. Visual prompt injection carries the instruction in an image, usually prepared by a third party and submitted by an unwitting user, which makes it a form of indirect injection.

The main risks are manipulated outputs that people rely on, compromised workflows where output triggers further steps and, under specific conditions, exposure of sensitive data. Those conditions include model access to sensitive information, permission to act on it and the absence of human or technical checks.

No single control prevents it. Combine untrusted-input handling and image inspection, least-privilege permissions, human approval for consequential actions, monitoring and adversarial testing, and assume some attempts will get through.

No. Redaction conceals confidential information before content is shared with an external AI tool. It does not detect or remove malicious instructions in an image. It is a complementary privacy measure.

Conclusion

Visual prompt injection shows that a multimodal model cannot tell, by itself, the difference between an image to be read and an image trying to give orders. The research so far, from the oncology study to the image-scaling demonstrations, supports caution rather than alarm: the attacks are demonstrable, the conditions for serious harm are specific and the defences are partial.

That makes visual inputs part of AI security practice, not an afterthought. Test multimodal systems with adversarial images, scope permissions tightly, keep people in the loop for consequential actions and monitor what models do. Alongside those controls, organisations should limit the sensitive information that reaches external AI tools, and that is where redaction, including with Questa AI Blackbox, fits. It addresses privacy exposure, not the manipulation itself. Teams that keep the two jobs distinct will be better placed than those that assume one tool covers both.

Abhi Author

About the author:

Abhiroop Sharma

Ex. Distinguished technology leader

Distinguished technology leader with 18+ years of progressive experience spanning AI, Web3, SaaS, eCommerce, and blockchain governance. Demonstrated success in driving digital transformation across global markets, with expertise in scaling enterprise solutions from concept to implementation. Proven track record of reducing implementation timelines by 50% and building high-performing teams across multiple organizations. Currently focused on pioneering AI implementation and Web3 integration strategies for emerging technology ventures.
Follow the expert:

Related Articles

View More
Third-Party Cybersecurity Risks: Who Protects Your Data?
NOV 20, 2026
Privacy Cafe

Third-Party Cybersecurity Risks: Who Protects Your Data?

Third-party cyberattacks can expose customer information without breaching a company’s own systems. Understand the risks and how to protect sensitive data.

Read More
Source Code Protection: Secure Code in the AI Era
NOV 06, 2026
Privacy Cafe

Source Code Protection: Secure Code in the AI Era

AI assistants, agents and pipelines gave source code new ways out. Here is where code leaks today and how to protect it with NIST's SSDF, OWASP's 2025 guidance and a privacy layer before prompts.

Read More
Prompt Injection in AI: Cybersecurity Risks & Prevention
MAY 11, 2026
Privacy Cafe

Prompt Injection in AI: Cybersecurity Risks & Prevention

Prompt injection can turn a manipulated AI response into a data leak or unauthorized action. See how attacks work, direct vs. indirect risks, and defenses.

Read More