TL;DR
DriftNet is a novel dual-head trajectory Transformer designed to detect and localize prompt injection attacks in large language model (LLM) agents. It achieves a trajectory-level F1 score of 0.983, significantly outperforming existing methods in identifying compromised actions and injection points.
✦ Why It Matters
Implement DriftNet to enhance your LLM agents' security against prompt injection attacks today.
Key Takeaways
How It Works
DriftNet employs a dual-head architecture where one head classifies the entire trajectory as compromised or benign, while the second head assigns specific labels to each step, such as benign, injection point, hijacked, or failed injection. This allows for a detailed understanding of how and where an attack has influenced the agent's behavior.
Related