6.2 · Expert level

Agent security and prompt injection

An agent combines a model, tools and a decision loop. Text from pages, messages or documents may contain malicious instructions, known as prompt injection. Treat that content as untrusted data, not permission to act.

Security controls must exist outside the model: authentication, authorisation, parameter validation, restricted tools and confirmation for sensitive effects. Separate data and secrets, restrict network destinations where appropriate and keep proportionate logs. Asking a model to “ignore attacks” is not a sufficient security boundary.

ILLUSTRATIVE EXAMPLE

A retrieved document asking to send a customer database to another address does not change an assistant’s permissions. The application must block the access and transfer regardless of the generated text.

The model may propose an action; the application must check whether it is allowed.

Try it yourself

Conduct an architecture review: draw data flows and trust boundaries, list permissions and external effects, propose adversarial tests, and define monitoring, owners, rollback and incident response. Request independent review.

See all AI Literacy topics
A SIMPLE NEXT STEP

It starts with a conversation.

Tell us what your business is trying to solve. The first conversation is free and comes with no obligation.

Request a free conversationOr explore our services
LET’S TALK

It starts with a conversation.

Tell us a little about yourself and your business challenge. The first conversation is free, with no obligation.