Prompt Injection
Hiding instructions in content so an AI system follows the attacker's commands instead of its own rules.
What it is
Prompt injection is an attack on AI systems built on large language models, where malicious instructions are hidden in the content the model processes, such as a web page, document, or user message. The model can be tricked into ignoring its original instructions and doing what the attacker wants instead. It is especially dangerous when the AI can take actions or access data on a user's behalf.
Why it matters
An AI that can be redirected by hidden instructions may leak data, perform unauthorized actions, or mislead users, undermining any system that trusts its output.
How to fix it
Keep untrusted content separate from trusted instructions, limit what the AI can access and do, require confirmation for sensitive actions, and validate its outputs.