EAAS blog · AI security

What is prompt injection, and how do you prevent it?

What is prompt injection? It is when text an AI model reads, typed by a user or hidden in a web page, email or file, changes what the model does in ways its builders did not intend. It cannot be fully prevented today, so limit what the model can access and require approval for risky actions.

EAAS blog graphic titled What is prompt injection, and how do you prevent it?, showing five steps: treat outside content as data, give the least access, approve risky actions, validate outputs in code, and test with injected inputs.

Ready to put an AI agent to work?

Tell us about the workflow. We’ll help you scope a safe first version.

Start a conversation