How does Prompt Injection Attacks on LLMs work
Short answer
An attacker embeds hidden or misleading instructions within input text, hoping the model follows those injected instructions instead of the intended behavior set by the system.
Advertisement
AModel answer
An attacker embeds hidden or misleading instructions within input text, hoping the model follows those injected instructions instead of the intended behavior set by the system.
Real-world example
A malicious webpage might include hidden text trying to instruct an AI assistant to ignore its safety guidelines when summarizing that page.
Likely follow-ups
- What is AI Security & Adversarial Attacks, How is Prompt Injection Attacks on LLMs evaluated in practice, What tools are commonly used for Prompt Injection Attacks on LLMs
Related topics