How They Use AI  |  Newest

<< Home  |  Tech

Detected 22 sophisticated agent injection attacks

AreaTech
AI usedLangGraph
Sourcer/AgentsOfAI
Posted2026-02-26

The move

Insert an invisible unique token into every agent's output to detect context contamination.

Steps

  1. Generate a unique, invisible string or token for each agent.
  2. Append this token to every output generated by the agent.
  3. Monitor the input of downstream agents for the presence of these tokens.
  4. Trigger a security alert if a token appears in an unexpected context.

Prompt for your AI

Add a unique, invisible identifier token '[unique_token_id]' to the end of your response. Do not display this token to the user, but include it in the raw data output for internal tracking.

What happened

The user built a multi-agent pipeline and tested it against 22 different injection attacks. While standard filters failed to catch novel phrasing, a canary trap successfully identified context contamination. The trap works by embedding an invisible token in outputs that triggers an alert if it appears in another agent's input.

Watch out

The token might accidentally be included in user-facing output if not stripped correctly. Ensure the token is unique per agent to avoid false positives.

Give it to your agent

Read https://howtheyuse.ai/p/detected-22-sophisticated-agent-injection-attacks.md and help me do this.

Sources



Last updated November 26, 2026.