The agent can read the ticket. Who can change the account?
How a product team can protect an AI support assistant against prompt injection by validating actions outside the model and enforcing account-level permissions.
Adrian Dunkley · · AI engineering
A support assistant reads a customer ticket and proposes updating the address on an account. The application needs its own answer to a simple question. Does this customer have authority to change this account?
OWASP describes prompt injection as attempts to change a model’s behaviour through unauthorised instructions. Its guidance puts credentials and reserved operations in “application code”. A ticket can be untrusted content while a support workflow still uses it as evidence for a draft. OWASP prompt injection guidance
Give the reader and the updater different permissions
Use a restricted service identity for reading tickets. Keep the account-change operation behind a service that verifies the authorised user, the account in scope and the proposed fields. An assistant can prepare the requested change while the application determines whether anyone can execute it.
Review the actual action
Show what will change and whose record it affects
Give the operator the current and proposed values alongside the customer’s verified request. When the operator approves, attach that decision to the exact record and proposed values. If a field changes before execution, require a fresh decision. Then keep the application’s result alongside the explanation the model generated.
Test the boundary in an isolated environment
Collect sample support cases that include genuine and unauthorised requests. Inspect the record the tool leaves, including when the application denies the change. Use synthetic accounts and disable connections to live communications and billing during the exercise. NCSC secure AI deployment guidance
Make the duty team able to pause writing
Give operations an approved way to disable the write capability while still taking support tickets. Ask someone on call to show when a queued update would be rechecked after access returns. The next deployment review should name the account owner and the evidence that permits restoring writes.