Field Note 010 / AI Security

The prompt is not a security boundary.

A system prompt is a suggestion to a model, not a control. Anything the model can read can steer it, and anything it can call, the text that steers it can call. Put the authorization check in the tool and the data layer, where it's enforced by code. "The model was told not to" is not an access-control policy.

Instructions and data share one channel

A language model receives its instructions and the content it is working on as one stream of text. It has no reliable way to tell which parts are orders from the developer and which are a customer message, a web page, or a document. Text that says "ignore the above and do this instead" sometimes works, and no amount of wording in the system prompt makes it never work.

What that means for access

If a model can call a tool, then whoever can get text in front of the model can try to call that tool. If the tool runs with broad permissions and relies on the prompt to stay in its lane, the prompt is the only thing between an attacker and those permissions.

The same applies to data. A model given every customer's records and told to discuss only the current customer's will eventually be talked into discussing someone else's.

Where the control belongs

In code. Tools run with the permissions of the user who is asking, never with a shared service account. Retrieval filters by what that user may see before anything reaches the model. Actions that cannot be undone wait for a human. Outputs are treated as untrusted before they are rendered or executed. Prompts and filters are still worth having as a second layer. They are a seat belt, and the brakes are somewhere else.

Related: AI security & red teaming →AI engineering →

← Note 009All field notesNote 011 →

Have this problem
for real?

Book a callSend a message