# Prompt injection

> Text hidden in content an agent reads, such as a web page, an issue or a file, that tries to make it follow instructions its user never gave.

_Updated November 23, 2026_

An agent cannot reliably tell your instructions from instructions it reads in a document. A malicious README can ask it to upload credentials; a web page can ask it to run a command.

The defenses are limits rather than filters: give the agent only the credentials the task needs, keep production secrets off its machine, and run it somewhere a bad command cannot reach anything valuable.

## Keep reading

- [Agent sandbox](https://envhaven.com/glossary/agent-sandbox)
- [YOLO mode](https://envhaven.com/glossary/yolo-mode)
- [Tool call](https://envhaven.com/glossary/tool-call)

Source: https://envhaven.com/glossary/prompt-injection
