# prompt-injection

Source: https://startwithidentity.com/glossary/prompt-injection/
Last updated: 2026-10-16
License: content by Start with Identity. Cite the source URL.

---

Prompt injection is a vulnerability in which input to a large language model alters its behavior or output in ways its developer did not intend, for example making it ignore its instructions, disclose data or take actions it should not. OWASP ranks it first in its Top 10 for LLM applications as [LLM01:2025](https://genai.owasp.org/llmrisk/llm01-prompt-injection/).

OWASP separates direct injection, where the user's own prompt carries the instructions, from indirect injection, where they arrive in content the model reads, such as a web page, file, email or tool result. Indirect injection is the identity problem, because an agent acts with its user's or its own credentials, so instructions hidden in fetched content can make it read secrets and send them out. In October 2026 Adversa AI showed an encrypted web page [steering GitHub Copilot CLI into leaking a .env file](https://startwithidentity.com/blog/2026-10-06-encrypted-web-page-tricks-github-copilot-cli-into-leaking-env-secrets/), and Zenity Labs showed one prompt making an [Amazon Bedrock AgentCore agent return its execution role credentials](https://startwithidentity.com/blog/2026-10-08-one-prompt-pulled-aws-agentcore-role-credentials-from-imds/). No input filter catches it reliably, so the containment is on the identity side: short-lived, least-privilege credentials for each agent, no standing secrets within its reach, and human confirmation before sensitive actions.

See also: [agent instruction injection](https://startwithidentity.com/techniques/agent-instruction-injection/), [agentic identity](https://startwithidentity.com/glossary/agentic-identity/), [securing AI agent identities](https://startwithidentity.com/guides/machine-identity/securing-ai-agent-identities/), [instance metadata service](https://startwithidentity.com/glossary/instance-metadata-service/)
