Pentesting Index
Home / Glossary / Prompt Injection

Prompt Injection

Updated November 18, 2026Written by Dani N.Reviewed by Shir A.Methodology
Definition

Prompt injection is input that causes an AI application to ignore its instructions, often to reach tools, data or actions it should not.

What Is Prompt Injection?

Prompt injection exploits the fact that LLM applications mix instructions and data in the same text. An attacker crafts text that the model treats as new instructions.

Types of Prompt Injection

Prompt Injection Examples

Risks of Prompt Injection

Impact grows with what the AI can access. An injected chatbot embarrasses; an injected agent with tool access can leak data or take actions. AI red teaming tests these paths end to end.

Related ranking

Related terms