Implementation Guide | Banking

Preventing jailbreaks in bank chatbots that create UDAAP exposure

To prevent jailbreaks in bank chatbots, do not rely on the system prompt or model safety training alone. Add enforceable controls outside the model: input screening, output policy checks for fee, product, advice, and customer-rights statements, tool-call and data-access restrictions under least privilege, human escalation, and per-decision logging. Then verify each control with repeatable adversarial tests.

A layered control architecture

The system prompt and model safety training are not enough on their own. Enforceable controls sit outside the model, so that each message, response, and action is checked at runtime rather than trusted by default.

Control layers between a customer and a bank chatbot
LayerWhat it does
Input and contextScreen messages and restrict retrieved content to approved sources.
Output policyCheck every response before delivery against defined rules.
Tool and data scopeValidate each tool call against least-privilege agent permissions.
EscalationRefuse or hand off to a human when a rule requires it.
Audit evidenceLog decisions and tie test results to specific controls.

Start with failure modes, not the attack technique

Define controls around the failure you need to prevent, not around the specific prompt that triggers it. The failures of concern here are UDAAP-relevant: statements about fees, products, advice, and customer rights that a bank chatbot should not make.

Mapping attack paths to failures and controls

For each jailbreak path, record the UDAAP-relevant failure mode it could produce and the control layer that limits it. Each path should map to at least one layer in the table above, and each layer should be tied to the failures it is meant to contain.

Write output policies as testable rules

Output policies check every response before it reaches the customer. Write them as rules that can be tested, covering:

  • Fee statements
  • Product statements
  • Advice
  • Customer-rights statements

Each rule should have an owner, a version, and a defined action, such as refusing the response or handing off to a human. Rules written this way can be rerun against the same adversarial tests after any change.

Test adversarially and keep the evidence

Verify each control with repeatable adversarial tests, and map those tests to the controls and failure modes they exercise. Log every policy decision per interaction, and keep dated test results so that the evidence reflects how the controls actually behave.

Audit evidence to assemble

  • A written output policy set with owners, versions, and defined actions
  • Per-interaction policy decision logs showing rule, action, and outcome
  • Tool-call and permission records tied to each agent identity
  • An adversarial test suite mapped to controls and failure modes, with dated results
  • Refusal and human escalation test results
  • Change records for models, prompts, retrieval sources, and policies

Review your chatbot control layers

Discuss how runtime policy enforcement, agent permissions, and audit logging can apply to your bank's customer-facing AI agents.

Request a Demo