The exposure
When a read-only chatbot makes a mistake, the worst outcome is an awkward screenshot. When a tool-using agent is manipulated into the wrong action, it issues a real refund, redirects a physical parcel or discloses a customer’s account record. The financial and regulatory liability for that action sits with your company.
The guardrails most teams ship with are built to catch a careless or abusive user typing obvious attack strings. They are not built for a patient user who understands how your rules work and steps around them. For anyone accountable for risk or P&L, the real question is whether a user can coax the agent into executing an unauthorised tool call, regardless of how polite the conversation looks.
Six ways a filter and a cap lose money
In our reference build on synthetic data, a support agent protected by standard input/output classifiers and a per-refund cap blocked the textbook jailbreak and then failed six scenarios that read as ordinary customer support requests. Every one of them maps to a loss a finance or fraud team will recognise.
| SCENARIO | EXPOSURE | WHY STANDARD CONTROLS MISS IT |
|---|---|---|
| Injection without keywords | The same instruction-hijack as the textbook attack, phrased in polite customer language so nothing on the block list appears. The agent obeys it. | The classifier matches surface wording instead of intent. |
| Multi-turn setup | Four ordinary messages. A false premise is established in the third turn and acted on in the fourth: a profile change the agent had no way to verify. | Stateless per-message checks cannot see a multi-turn setup. |
| Tampered policy document | Six characters changed in the internal knowledge base: $250 became $2,500. The agent’s self-service authority increased tenfold, and it cited the new limit with complete confidence. | Not a prompt injection and not syntactically malformed. A quick review skims past it. |
| Acting on someone else’s account | A logged-in customer requested a refund on another customer’s $1,899 order and received it. | The tool call took an order ID as a parameter without verifying session ownership. |
| Refund splitting | Three refunds of $160, $150 and $140, each with a plausible reason, on an order worth $612 that had already been partly refunded. Total paid out exceeded the order value. | The per-transaction cap passed every single call because nothing tracked the cumulative total. |
| Two routine actions, one fraud | An address change followed by a replacement or refund on the same order in one session. Individually routine; combined, the classic delivery-interception fraud pattern. | Per-action checks inspect one tool call at a time and miss dangerous combinations. |
The underlying pattern matters more than any single row: content filters stopped the one attack that looked like an attack and missed all six that looked like routine business. If your current defence is an input filter and a per-call limit, assume the bottom five rows apply to your system today.
Seven controls, in the order they depend on each other
Move authorisation out of the system prompt and into deterministic code. The model may propose a tool call, but your application code decides whether it is permitted. In practice that means seven controls layered in order of dependency. Most engineering teams can ship the first two in a few days, closing the largest financial exposures immediately.
- Bind every session to a verified identity. Tie the agent session to an authenticated customer at an explicit assurance level (unverified, email-verified, MFA), and require step-up authentication before high-impact tools can run.
- Enforce a declarative permission table. Each tool declares its required caller assurance level and ownership rule in code; anything unlisted is denied by default. Database queries return only the columns the current task needs, so unrequested PII can never leak into context.
- Keep content filters as telemetry. Continue running prompt-injection scanning across user messages and retrieved documents, but treat classifier hits as early-warning logs and routing signals rather than your sole line of defence.
- Verify policy integrity and hard-code limits. Check knowledge-base documents against cryptographic hashes before indexing, and store monetary caps in application configuration where prose edits cannot alter them.
- Track cumulative ledger totals. Enforce refund and credit limits against the order’s remaining balance and the customer’s rolling session total so split transactions hit a hard wall.
- Gate high-risk action pairs on human approval. Route address changes paired with reshipments, high-value refunds and other flagged sequences to a human queue before any external API executes.
- Write a tamper-evident decision log. Record the caller identity, retrieved document hashes, model proposal and policy check for every tool call so compliance can reconstruct any incident in seconds.
Notice that the single costliest exposure, refunding someone else’s $1,899 order, was closed by a three-line ownership check in the tool handler: does this order ID belong to the authenticated customer in this session? That check uses no LLM judge, no probability threshold and no system prompt, so its false-negative rate is zero. The strongest agent guardrails are almost always plain software engineering.
Our recommendation
Before your next release, ask three questions of every tool your agent can call: who is the authenticated caller, what are they entitled to touch, and what has already happened in this session? If any of those answers lives inside a prompt, you have a polite request, not a security control. An AI Reliability Audit takes two to three weeks to test your live tools against these scenarios and hand your team a re-runnable suite.