DriftLock

Can Hidden Text in an Image Trick an AI Assistant?

Yes. Vision-capable AI models can read text in an image that a human would overlook or never see at all — text set in a color close to the background, shrunk to a size nobody would read, or embedded in metadata attached to the file — and that text is processed the same way as any visible instruction once the model analyzes the image. If the assistant has been asked to summarize, describe, or act on what's in the picture, hidden text framed as a command can be followed along with the legitimate content.

Vision models read more than a person would notice

When an AI assistant "reads" an image, it isn't looking at it the way a person does. It's extracting every character it can detect, regardless of whether that character is visible to a human at normal screen brightness and zoom level. Text set in near-white on white, shrunk to a handful of pixels, rotated, or placed outside the visible crop of a screenshot can all be picked up by the model even though nobody reviewing the image before sending it would ever see it. The model doesn't distinguish between text that was meant to be read and text that was meant to be hidden — it just extracts and processes.

Once that hidden text is part of what the model has absorbed from the image, it's treated the same as the legitimate content the model was asked to summarize or describe. If it's phrased as an instruction, the assistant has to decide whether to treat it as one, and that decision is made without any human in the loop having seen the instruction at all.

Where this shows up

  • Screenshots pasted into a chat assistant for a quick summary or explanation — a dashboard, an error message, a slide from a deck.
  • Scanned or photographed documents processed through an AI tool for data extraction, where a faint watermark-style layer carries instructions invisible on the printed page.
  • Browser AI agents that capture a page as an image before analyzing it, rather than reading the underlying page text — a technique some pages use specifically to get past text-based filtering.
  • Images embedded in email or chat that an AI assistant renders and analyzes as part of summarizing a thread.
  • QR codes and similar encoded content that decode to text or a link the assistant then treats as part of its task.

None of these require a sophisticated attack. A faint text layer added to an image before it's posted somewhere, or a scanned page with instructions printed in a color that photocopies and scans invisibly, is enough.

Why people don't catch it

The entire point of hiding text in an image is that a human glancing at it sees nothing unusual. Someone taking a screenshot of a web page to ask an assistant to summarize it has no reason to zoom in on every corner of the image looking for near-invisible text — that's not how screenshots are normally reviewed, if they're reviewed at all before being pasted into a chat window. The habit of skimming an image for its obvious content, rather than inspecting it for hidden content, is exactly what this kind of injection relies on.

The control that matters

Detecting every possible hidden-text technique is not something policy alone can guarantee, but the exposure can be managed:

  • Treat image content the same as any other untrusted input. An image pasted by an employee, captured from a web page, or extracted from a document is not more trustworthy just because it looks like a harmless picture.
  • Limit what a vision-capable assistant can do unattended. Summarizing or describing an image is low risk; letting that same assistant take an action — send a file, update a record, reply to someone — based on what it read in an image is where hidden text becomes consequential.
  • Keep approval in front of actions, not just inputs. The control that stops a hidden-text injection from doing damage isn't catching the hidden text — it's requiring a visible, human-reviewed step before the assistant's conclusion turns into an action.
  • Apply this consistently across every surface where AI reads images — chat assistants, browser agents, document processing tools — rather than assuming the risk is limited to whichever tool happens to get the most attention.

What to take away

  • Vision-capable AI models extract text a human reviewer would never notice, including near-invisible or metadata-embedded text.
  • The attack doesn't require special access — it only requires getting a manipulated image in front of the assistant, including one an employee pastes in themselves.
  • Screenshots, scanned documents, web pages captured as images, and embedded email images are all plausible carriers.
  • The meaningful control is limiting unattended action from image analysis, not trying to detect every hiding technique.
  • Govern this the same way across chat assistants, browser agents, and document tools — hidden-text injection isn't specific to one surface.

Related