Brief · Both
How Hidden Instructions Steer AI Agents, and How to Keep Them From Steering Yours
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
-
Give your agent narrow, specific tasks.
- Why: OpenAI says "It's safer to ask your agent to do specific things," and I'd add that a broad instruction leaves more room for something on the page to fill in the rest.
- How: Ask for "summarize this page" or "find the cancellation fee on this page," not "go through my inbox and handle whatever needs doing."
-
Keep approvals on for anything that sends, buys or deletes, and actually read them.
- Why: OpenAI says "When an agent asks you to confirm an action, carefully check that the action looks right," and Grok Bot's docs say risk from malicious content is another reason to keep consequential actions behind approval.
- How: Leave confirmations switched on for email, purchases and deletions. When an approval card shows up, check the recipient, the amount and the files against what you actually asked for, and say no to anything you didn't ask for.
-
Use logged-out or limited access for research.
- Why: OpenAI recommends limiting what an agent can reach, including a "logged out" mode for research. A hidden instruction can only misuse the access the agent actually has.
- How: When the job is reading the web, run the agent without your email, payment or work accounts connected. Connect them only for the tasks that need them.
-
Treat a hidden-instruction warning as a cue to check what the agent was reading.
- Why: A warning means someone put instructions for agents on that page, which tells you something about the page even if the agent ignored them.
- How: Look at the page or file the warning came from and decide whether you trust it. If it's a site you were about to buy from or share data with, that's worth a second look before you go ahead.
Want the next one?
One email, weekly-ish. The week's briefs, how worried to be, and what to do about it. No doom.
Subscribe on Beehiiv ↗Free. Opens Beehiiv in a new tab. Unsubscribe whenever, I won't be offended.