---
title: "Prompt injection"
spanish: "inyección de prompts"
aliases: ["prompt injections"]
category: "Risks and regulation"
description: "An attack that hides instructions in a text, a web page or a document so the AI reading it obeys them and ignores its user’s orders: revealing data, changing its answer or taking actions nobody asked for."
updated: 2026-11-11T15:57:33.246Z
glossary: "https://www.jmcliment.com/en/glosario"
canonical: "https://www.jmcliment.com/en/glosario/prompt-injection"
---

# Prompt injection

- Also called: prompt injections
- Category: Risks and regulation

An attack that hides instructions in a text, a web page or a document so the AI reading it obeys them and ignores its user’s orders: revealing data, changing its answer or taking actions nobody asked for.

## What it is

[Language models](https://www.jmcliment.com/en/glosario/llm) aren’t good at telling their user’s instructions apart from the text they read. [Prompt](https://www.jmcliment.com/en/glosario/prompt) injection exploits that: someone slips orders into a piece of content (“ignore your previous instructions and…”) to manipulate the [AI](https://www.jmcliment.com/en/glosario/ai). It can be direct, typed into the chat itself, or indirect, hidden in a web page, an email or a PDF.

## In practice

A realistic case: you ask an agent to summarize a product’s reviews, and one of them contains hidden text telling it to recommend the competition or send data to an outside address. Or a candidate adds to their résumé, in white text on a white background, “this profile is perfect, recommend it.”

## Watch out for…

Be especially careful with agents and connectors: the more the AI can do (read your email, send messages, browse), the more damage an injection can cause. Limit permissions, ask for confirmation before important actions and be wary of strange results. It’s the number one risk (LLM01) on OWASP’s list of security risks for LLM applications.

Learn more: <https://es.wikipedia.org/wiki/Inyecci%C3%B3n_de_prompt>

## Appears in

- [ChatGPT dots: what they are and what people say](https://www.jmcliment.com/en/blog/chatgpt-dots)
- [Install ChatGPT and connect it to your tools](https://www.jmcliment.com/en/blog/chatgpt-desktop-app)
