What is prompt injection?
Prompt injection is an attempt to control an AI agent through the text it reads. The command may come directly from the person chatting or be hidden in an email, a document or a web page. The agent risks taking it as part of the task. That is why protection relies not on prohibitions in the instruction but on limited rights and code checks of actions.
More in the guide to AI agent security.