Top 3 Prompt Attacks Canary Tokens Can't Prevent

Canary tokens primarily detect post-LLM data leakage but offer limited protection against direct prompt injection, jailbreaking attempts to bypass safety controls, or data poisoning that alters the model's core behavior during training.

The top 3

  1. Behavioral Override Without Canary Echo: Canary tokens primarily detect prompt *extraction* by monitoring for their unique string in the output. They cannot prevent or detect attacks that successfully override system instructions to alter the LLM's behavior (e.g., generating harmful content or ignoring safety rules) without explicitly leaking the embedded token.
  2. Obfuscated Malicious Output Generation: Attackers can manipulate an LLM to encode or obfuscate its malicious response (e.g., using Base64), which can bypass simple keyword or pattern-matching canary token detectors that rely on direct string comparison in the output, even if the underlying intent was to leak or manipulate information.
  3. Indirect Injections from Unmonitored Data Sources: Canary tokens are typically embedded in specific trusted contexts like system prompts or tool descriptions. However, indirect prompt injection attacks can originate from external data sources (e.g., documents, web pages) processed by the LLM that do not contain canary tokens, allowing the injection to occur undetected by this method.

Sources

Open the full topic