Adaptive Defense: Pinpointing Attacks with Multi-Location Canaries

By deploying distinct canary tokens in various segments of an LLM's context—such as the system prompt, specific tool descriptions, or individual retrieved data chunks—the system gains granular insight. When a particular token is triggered, it precisely identifies which part of the trusted context was compromised, enabling highly targeted adaptive learning and defense hardening.

The top 3

  1. Top 3 Canary Token Placement Strategies for LLM Defense: Effective multi-location canary placement includes embedding unique tokens in system prompts, retrieved RAG documents, and tool descriptions to maximize detection surface and pinpoint the specific compromised component.
  2. How Multi-Location Canaries Pinpoint Prompt Attack Origins: Multi-location canaries pinpoint attacks by distributing distinct, high-entropy strings across different trusted contexts and monitoring for their unexpected appearance in model outputs or unauthorized tool calls.
  3. Key Benefits of Multi-Location Canaries for Attack Attribution: Multi-location canaries enable precise attack attribution by identifying not just if an injection occurred, but where (e.g., specific agent, RAG source, or prompt segment) it originated, significantly narrowing incident response.

Sources

Open the full topic