Blog / 14 October 2026

Industry series · Banks & fintech · 14 October 2026 · 5 min read

AI agents in banks & fintech: securing fraud, code and data

Picture an agent triaging a fraud alert that quotes a customer's full account number to an external model. Nothing malicious happened — and the data still left the bank. That is the risk banks are really managing.

AI agents in banks and fintechbanks and fintech AI securitysecure AI agents for banks and fintech

01The promise that keeps banks buying AI agents

Fraud‑detection teams now hand routine alerts to large language models that can read transaction streams, flag anomalies and suggest a case file in seconds. AML analysts use the same models to scan sanctions lists, generate suspicious activity reports and even draft regulator‑ready narratives. Customer‑service bots answer routine balance queries, while coding agents propose patches for core‑banking APIs and automate payment‑engine test suites. The common thread is speed: a single prompt can replace hours of manual work, freeing senior staff for higher‑value decisions.

From a risk perspective, that speed is attractive only if the underlying work never breaches the tight data‑handling rules that banks live under. Regulations such as PCI DSS, SOX, DORA and the FFIEC handbooks demand that financial records stay inside approved environments, that duties are clearly separated, that model risk is documented, and that every change is auditable. Any AI workflow that cannot be shown to respect those mandates will be blocked at the CISO desk.

02When an agent steps outside its fence

Imagine a coding agent with access to the production repository that fetches a helper script from the public internet to speed up a build. If the network is not locked down and the script hides a credential-stealer, a private key can leave quietly — and nobody notices until that key signs something it should not.

Or take a fraud-triage agent holding a general-purpose API key for an external model. Trying to be helpful, it quotes part of a customer email that includes the full account number. The data lands in a third party's logs, which is exactly the kind of exposure PCI DSS exists to prevent.

A third plausible failure: a reporting agent drafting an AML narrative invents case references to fill a gap. An examiner cannot verify them, and what began as a productivity tool becomes a model-risk finding under SR 11-7 guidance. None of these needs an attacker — only an agent with more reach than its task requires.

Fit map · Banks & fintechWhat banks & fintech needs, and what kosa8 does about it
  1. customer financial data never leaves approved systemsthe agent's machine sees only one folder and the network is closed except for hosts you write on an allow‑list
  2. segregation of dutiesrisky actions can wait for one or two named human approvers (the two‑person rule)
  3. model risk managementlocal models can be served behind internal APIs and checkpoints let you rewind any unexpected model behavior
  4. audit trails an examiner acceptsevery action is written to a hash‑chained, tamper‑evident audit log; kosa8 audit verify checks it
  5. third‑party riskthird‑party MCP servers each run in their own sandbox, behind one policy

03Control set that turns a sandbox into a regulator‑ready workflow

The first line of defence is to ensure the agent runs in an isolated microVM that sees only a single workspace folder. The host never shares its kernel, and the network is locked to an explicit allow‑list. This satisfies the “data never leaves approved systems” requirement and prevents accidental internet calls.

Risky actions – such as pulling code from an external repository or writing to a production database – should be gated by a two‑person rule. The agent can pause, surface a request, and wait for two named human approvers before proceeding. This implements segregation of duties and gives auditors a clear decision trail.

Every state change is captured in a hash‑chained audit log. A simple kosa8 audit verify command produces a signed proof that the log has not been tampered with, giving examiners confidence that the sequence of actions matches the documented process. Checkpoints before each risky step allow an instant rewind if something goes wrong, and the fork capability lets teams test multiple remediation paths in parallel without ever touching the production environment.

  • Network allow‑list only – all other connections refused.
  • API keys stay on the host; the sandbox receives a placeholder and an egress broker injects the real key only for approved calls.
  • Two‑person approval for any write to production code, databases or external services.
  • Hash‑chained audit log plus kosa8 audit verify for regulator‑accepted evidence.
  • Checkpoint and rewind to restore a sealed VM in about half a second.

04Getting started on Monday: practical steps with kosa8

Create a sealed sandbox for each new agent, limiting egress to the approved LLM endpoint. Example command: kosa8 sandbox create sealed --egress-allow api.anthropic.com. Pin the workspace folder to the specific data set the agent may read – no parent directory access.

Before the first risky operation, take a checkpoint with a clear label, for example kosa8 checkpoint sealed --label "before production write". If the operation fails or produces an unexpected output, run kosa8 rewind sealed to roll back instantly and re‑issue the request with a revised prompt.

  • Run kosa8 evidence export --sandbox api after each major batch to collect the full audit trail.
  • Use kosa8 fork api -n 8 when testing multiple remediation strategies for a fraud alert; keep the successful fork and discard the rest.
  • Schedule a weekly kosa8 audit verify run and attach the signed report to your model‑risk register.

Takeaways

  1. Isolate each AI agent in a sealed microVM with a single workspace folder.
  2. Lock network egress to a vetted allow‑list and inject real API keys only at the host level.
  3. Gate any production‑impacting step with a two‑person approval and checkpoint before execution.
  4. Export and verify a hash‑chained audit log daily to satisfy PCI, SOX and DORA auditors.
  5. Use forks to test multiple remediation paths without ever exposing production data.

Where kosa8 fits

kosa8 provides a sealed microVM for every agent, exposing only a dedicated workspace folder and an allow‑list‑driven network. API keys stay on the host and are injected by an egress broker, while checkpoints and rewinds let you revert instantly. Every action is recorded in a tamper‑evident log that can be verified with a single command, and each third‑party MCP server can run in its own sandbox, keeping the bank’s risk surface small and auditable.

Check yourself · +100 XP

Which control prevents an AI agent from inadvertently sending PII to an unauthorized internet endpoint?

Questions people ask

How can I prove to auditors that an AI‑generated report followed the bank’s AML procedures?

Export the sandbox’s audit log with kosa8 evidence export --sandbox api. The log shows every prompt, model response and human approval step, and can be verified with kosa8 audit verify.

Can I run a proprietary model inside the same environment as a third‑party LLM?

Yes. Each model runs in its own sealed sandbox behind a shared policy, so they never share a kernel or filesystem.

How this was written

Part of the kosa8 industry series, written with Cloudflare Workers AI and checked automatically: every claim about kosa8 comes from our fact sheet, no statistics are invented, and frameworks are named, never "certified". kosa8 helps you build the controls and evidence they ask for; your assessor decides the rest. Spotted a mistake? Tell us.

kosa8 for Banks & fintech

Let your agents work. Keep the evidence.

Start a 14-day trial on one machine today, or talk to us about a pilot, air-gapped installs, a security review or procurement paperwork — a person answers.