> status: mostly fine. patch anyway.practical AI security · est. 2026

Brief · Both

How Hidden Instructions Steer AI Agents, and How to Keep Them From Steering Yours

By alkizz ·

On Nov 5, Grok Bot's changelog listed a new warning for a problem most people never see: "When a web page hides instructions for AI agents, the Bot tells you it found them and didn't follow them." It's one example of vendors starting to flag this, and it's a good excuse to explain what those hidden instructions are and why they work on agents at all.

The short version is that an AI agent reads everything on the page, including the parts you never see. If someone tucks a line into a page, a document or an email telling the agent to do something you never asked for, the agent might treat it as an instruction instead of as text. That's prompt injection, and the hidden kind is sneaky because there's nothing on screen to make you suspicious.

What it looks like

Prompt injection is entry LLM01 in OWASP's 2025 list of risks for LLM applications, and OWASP makes a point that surprises people: "prompt injections do not need to be human-visible/readable, as long as the content is parsed by the model." So the instruction can be invisible on the page and still land, and OWASP notes it can even be embedded in an image the model processes alongside text.

One of OWASP's example scenarios is the one I'd keep in mind. A user asks an LLM to summarize a web page, the page contains hidden instructions, and those instructions make the model insert an image that links to an outside URL, which leaks the private conversation to whoever runs that URL. The user only asked for a summary.

OpenAI describes the same problem from the agent side. In its explainer on prompt injections, it says these attacks are "often hidden inside ordinary content such as a web page, document, or email." That's the uncomfortable part, since reading ordinary content is exactly what you hired the agent to do.

The stakes go up with what the agent can do. An agent that can only read and summarize can be misled, but an agent that can send, buy or delete can be talked into doing those things. I've written about what happens when an approval gate gets skipped, and about agent bugs where prompt injection is the way in and a weak allowlist does the rest. A repo you open can play the same role as a web page, because to a coding agent the repo's files are content it reads and might act on.

How common is it?

I don't have a current number. In November 2025, OpenAI wrote that "we have not yet seen significant adoption of this technique by attackers." That line is a year old, so treat it as a snapshot rather than a forecast, but it's a good reason to build habits now instead of panicking now.

What the defenses actually promise

Vendors are layering defenses, and none of them claims to stop everything. Grok Bot's security docs say outside content "is marked as untrusted data when presented to the model," and that "Auto Review checks Bot actions against the member's request when enforcement is on." The docs also list "controls that do not depend on any model's judgment, including the network policy, per-action approvals, and per-user isolation." Then they say the honest part out loud: "These controls reduce, but do not eliminate, risk from malicious content, which is another reason to keep consequential actions behind approval."

OpenAI says much the same about its own advice: "While this doesn't guarantee there won't be attacks, it makes it harder for attackers to be successful." I like that both of them say it, because a defense that promises to catch every injection is a defense I'd stop trusting the moment I read it. So the hidden-instruction warning is one layer that tells you something was there, and it isn't a guarantee that nothing else got through.

What to do

Sources

← All briefs