Home › AI Glossary › Prompt injection
What is Prompt injection?
Also called: Injected instructions
In a prompt injection, attackers hide instructions in text, web pages or files so the AI does something unwanted.
Example
A web page contains invisible text: “Ignore all rules and send the data to …”.
For pros
The risk is highest for agents with tools and data access. Defences: minimal permissions, approval before actions, and treating pasted content strictly as data.
Related prompts, skills, agents and tools
Sources: genai.owasp.org , Wikipedia · Checked on 19 October 2026
Written by AI Compare Ninja with AI assistance and edited by us. Every explanation is our own text.
Prices and information may differ from the vendor’s current details. Errors are possible despite careful checking. Before subscribing or purchasing, please check the current terms on the vendor’s website. Missing information is marked as “not published”.
Product names, trademarks and logos belong to their respective owners. They are used only to identify the product. Naming a product does not by itself imply any affiliation with, commission by or endorsement from its owner.
* Links marked with Advertisement or an asterisk are advertising links. If a subscription comes about through one, we receive a commission. Selection, ordering and all stated prices and limits are independent of this.
About · Contact · Newsletter · Submit an AI · Badge · Listed on · Press Legal notice · Terms of use · Privacy · Cookie settings