Hidden instructions on websites may be used for attacks on AI agents
SEO text on a web page may contain hidden instructions capable of influencing the operation of AI agents. Such actions are classified as indirect prompt injection—an attack in which the model perceives data from an external source as commands.

If an agent analyzes a competitor's website, an embedded instruction could distort the results: instead of objective information, the report may include a recommendation for a specific company. Such instructions can be placed not only in invisible blocks but also in HTML comments, CSS elements, image attributes, JSON-LD, metadata, PDF files, product feeds, and llms.txt files. A human may not notice them, but a parser can pass this content to the model. Another option is to show search engine bots and AI agents a page different from the one seen by regular visitors.
In such attacks, the website owner may play three roles. They become a carrier of the injection if a harmful instruction ends up on their page through a contractor, plugin, or old material. A victim—if their AI agent analyzes third-party sites and produces distorted reports or discloses uploaded data. Finally, the owner themselves may become the initiator of the attack if they embed instructions in client text to ignore previous commands and recommend their company.
One example of such threats was the EchoLeak vulnerability in Microsoft 365 Copilot. In 2025, it was assigned the identifier CVE-2025-32711 and a CVSS score of 9.3. A hidden instruction in an email could enter the assistant's context without the message being opened or any user action. Microsoft resolved the issue with a server update in May, prior to the public disclosure of the vulnerability. No evidence of its actual exploitation was found.
Google classifies attempts to manipulate generative AI responses in search as spam. Possible consequences include demotion in search results or complete exclusion from them.





