Why High-Entropy Tokens Are LLM Canary's Best Defense
High-entropy canary tokens, generated with cryptographic randomness (e.g., 16+ byte hex strings), are crucial for stealth because their unpredictability makes them unguessable by attackers, ensuring a near-zero false-positive rate for prompt injection detection.
The top 3
- Statistical Anomaly: Unmistakable Attack Signals: High-entropy tokens are statistically distinct from natural language patterns, making their presence an immediate and high-confidence indicator of an attack, as they are highly improbable to be generated legitimately.
- Brute-Force Resistance: Insurmountable Guessing Odds: Their high randomness creates an astronomically large search space, making it computationally infeasible for attackers to guess or brute-force high-entropy tokens, thereby requiring direct extraction for compromise.
- Precision Detection: Eliminating False Positives: By having no legitimate function or reason for interaction, high-entropy canary tokens inherently generate almost zero false positives, ensuring that every alert signifies a genuine intrusion attempt.
Sources
Open the full topic