Incident · Aug 2026 · Prompt injection

xAI Grok

Researchers placed encrypted instructions and their key on a web page. The guardrail scanner missed them, the model decrypted and followed them, and chat history and profile data left the session.

What happened

Researchers placed encrypted instructions and their key on a web page. The guardrail scanner missed them, the model decrypted and followed them, and chat history and profile data left the session.

Source: AI incident timeline ↗. Follow it for the full account.

The cause: prompt injection

Text the assistant reads (an email, a web page, a file name) carries instructions, and the assistant follows them as if they came from you.

Framework entries that cover it: OWASP LLM01: Prompt Injection · MITRE ATLAS: LLM Prompt Injection

The solution
  1. 1

    What would have caught this one

    Injection tests that include encoded, split and obfuscated instructions.

  2. 2

    Prevent the whole class

    Treat everything the assistant reads as untrusted. Separate reading from acting, and require confirmation before any action that sends data out.

  3. 3

    Test for it

    Plant instructions in every field the assistant can read, including encoded and split ones, and check whether any action or data leaves.