Prompt injection is when untrusted text (a user message, web page, document or tool result) contains instructions that override the developer's intent; indirect injection hides them in retrieved content.
No prompt wording fully prevents it, so use layered controls: treat all external content as data, separate instructions from content, validate and sanitize inputs, and screen with an injection classifier.
Limit blast radius: least-privilege tools, no secrets in the prompt, human approval for sensitive actions, and application-side permission checks.
Validate outputs, log decisions, and red-team regularly.
Loading…