Prompt injection
Not every capability described on this wiki is available today.
Quick answer
Prompt injection is when text an AI system reads, such as a web page or email, contains instructions meant to make it behave in ways its user did not intend. Limiting permissions and requiring approval reduces the harm.
Summary
AI agents often read content from outside sources. If that content includes hidden or direct instructions, an agent may follow them. Prompt injection is a known risk, and the main defences are limiting what an agent can do, treating outside content as data and requiring approval for consequential actions.
Key takeaways
- Outside content can carry instructions aimed at an AI agent.
- Agents that can act are at higher risk than ones that only read.
- Limit permissions and treat outside content as data.
- Require approval for money and irreversible steps.
In context
Prompt injection is one reason the AI agent safety checklist says not to act on instructions found inside web pages, emails or documents without checking. Limiting what an agent can do is covered in AI agent permissions explained. It is related to, but different from, AI hallucination.
Mitra OS limits language-model calls to reading and drafting and audit-logs them. See AI safety and auditability.
Frequently asked questions
People also ask
- How do I use an AI agent safely? (AI agent safety checklist)
- What should an agent never do without asking? (AI agent safety checklist)
- Can I trust an agent's answers? (AI agent safety checklist)
- What information should I keep from an agent? (AI agent safety checklist)
- What is least privilege? (AI agent permissions explained)
Related topics
Glossary terms on this page
- MITRA: MITRA is the orchestration platform behind Mitra OS. Mitra is the name you talk to, and Mitra OS, Inc. is the company that builds it.
- AI hallucination: An AI hallucination is output from a model that sounds confident but is wrong or invented, such as a false fact, a fake source or an incorrect figure.