Skip to content

Analysis3 min read

Banking copilots: testing an assistant that sits on core systems

An internal banking copilot is a new identity with inherited entitlements and no training. The findings are in what it can reach, not in what it says.

Sameer

Founding Engineer

The grid facade of a bank headquarters building
Photo: Dmitri Popov (CC0, via Wikimedia Commons)

Banks are deploying internal copilots faster than customer-facing ones, for sound reasons: the blast radius feels smaller and the regulator is less immediately interested. In practice the internal assistant is the more dangerous of the two, because it is wired into core systems, its entitlements were copied from a service account nobody audits, and the content it reads was written by customers.

Entitlement inheritance, the first thing to check

Assistants are typically integrated through a service account whose permissions were set to "whatever makes the demo work". We enumerate exactly what that identity can reach, and compare it against the entitlements of the least-privileged human who can invoke the assistant. The gap is the finding.

  • An assistant that can read any account while the operator can read only their branch’s is a privilege-escalation path with a friendly interface.
  • Row-level and field-level masking enforced in the banking UI but not in the API the assistant calls — full PAN, full Aadhaar, full account numbers reaching a context window that then goes to a model provider.
  • Entitlement checks performed when the conversation starts rather than at each tool call, so a long session outlives a revocation.
  • Break-glass and maker-checker controls bypassed because the assistant’s service account was exempted to avoid friction during the pilot.

Injection through records customers control

Customer names, addresses, transaction narrations, dispute descriptions, email bodies and uploaded documents all end up in the copilot’s context. Any of them can carry instructions. We seed injected text into fields a customer can actually write — a UPI transaction remark is the one that surprises teams most — and test whether it changes what a bank operator is shown or what the assistant does next.

The realistic objective is not "make the model say something rude". It is to get the assistant to reveal another customer’s details to the operator, to suppress a flag the operator should have seen, or to trigger a tool call the operator did not request. All three have worked in testing.

What we test, in order

  1. Enumerate the assistant’s identity and its full effective entitlements across every connected system.
  2. Compare those entitlements against each role that can invoke it, and test the gap directly.
  3. Verify masking and tokenisation on the APIs the assistant uses, not just in the human UI.
  4. Test tool-call authorisation per call against the operator’s session, including after an entitlement change mid-session.
  5. Inject instructions through every customer-writable field and attachment route.
  6. Attempt cross-customer and cross-branch retrieval through phrasing alone.
  7. Review audit completeness: is there a record of every question asked, every record touched and every action taken, attributable to a named human.
  8. Review egress: what leaves the bank’s boundary, to which provider, under what contract, with what retention, and whether the prompt log is itself a regulated data store.

Controls that hold up

  • The assistant acts as the operator, not as a service account — on-behalf-of tokens, with every downstream call carrying the human’s identity and entitlements.
  • Re-authorisation at each tool call, so revocation takes effect immediately.
  • Masking enforced at the data layer, so the context window never holds a full identifier the operator is not entitled to see.
  • Maker-checker preserved: the assistant may prepare an action, a second human approves it, and the record shows both.
  • Customer-written content extracted into a labelled untrusted block, with instruction-stripping and no tool invocation permitted from a turn whose context contains flagged injection patterns.
  • Full audit of questions, retrievals and actions in an immutable store, attributable to the human, retained to the banking record-keeping period.

What the examiners are asking

The questions arriving in audits are consistent: who is accountable for the assistant’s outputs, what entitlements does it hold, can you show the audit trail for a specific customer interaction, what leaves the bank, and has it been tested independently. CERT-In’s six-hour incident reporting obligation applies to incidents involving it, so the runbook has to name it. None of those questions are about the model.

Where to start

Get the list of entitlements held by the identity your copilot uses. If that list is longer than the entitlements of the most junior person who can ask it a question, stop and fix that before any other work on this page.

Questions we get asked

Is an internal copilot lower risk than a customer-facing one?
No — usually higher. It has deeper access, its inputs still contain customer-controlled text, and because it is internal it tends to ship with weaker authorisation and thinner audit than anything customer-facing.
Should the assistant use a service account or the operator’s identity?
The operator’s, propagated to every downstream call. A service account collapses accountability and almost always over-grants. If a service account is unavoidable, scope it per role and re-check entitlements at each call.
How do we keep full account numbers out of the model context?
Mask and tokenise at the data layer the assistant reads from, not in the presentation layer. The context window should receive the same masked view the operator is entitled to see, with detokenisation happening only in the backend when an authorised action requires it.
  • banking AI copilot security
  • LLM security for banks
  • financial services AI penetration testing
  • agentic AI banking
  • core banking integration security