LLM Prompt Protection: Unguessable Strings Ensure Zero-FP

For LLM prompt injection, canary tokens use high-entropy, unique strings embedded in prompts; their appearance in output is an undeniable, zero-false-positive confirmation of data extraction.

The top 3

  1. Crafting Unguessable Strings: The Entropy Secret: Canary tokens achieve unguessability by using high-entropy, cryptographically random strings, typically 16 bytes or more, generated by secure random number generators, making them virtually impossible for attackers to guess or for LLMs to hallucinate.
  2. Zero-False-Positive: The Unambiguous Detection Logic: The zero-false-positive rate of unguessable strings stems from their design: legitimate users have no reason to input them, and LLMs are extremely unlikely to generate such a specific, high-entropy sequence randomly. Any appearance in output thus unequivocally confirms a prompt injection or data extraction attempt.
  3. The Unrivaled Edge: High-Fidelity LLM Leak Alerts: This zero-false-positive characteristic makes unguessable strings the 'most reliable last-line defense' or 'cheapest tripwire' for LLM prompt protection, providing high-confidence alerts that allow security teams to immediately block malicious output and investigate without being bogged down by false alarms common in other heuristic-based detection methods.

Sources

Open the full topic