Masking for AI in Banks: 3 Decisions to Make Before You Start

Nihad Gurbanli

Banks want AI, but client data can’t leave the perimeter. In this article, we go through three decisions that help you start: which tasks to choose, what to do with sensitive data, and which setup fits your bank.

AI in finance: which banking tasks to give AI first

Most banks don’t start with an AI strategy. They start with a simple question from an employee: “Can I use AI for this?”

Here is what “this” usually means. A credit specialist needs a summary of a loan agreement: borrower obligations, penalties, early repayment terms. A compliance officer has to find the limits for operations without approval in a 2,000-page internal regulation. Someone in onboarding needs to pull a client’s name, passport number, address and employer from a KYC form. A lawyer compares a client’s contract with the bank’s template to find the differences. And the support team writes replies to complaints about charges every day.

These tasks look different, but they have a lot in common. They repeat often. They follow a clear structure. And the time saved is easy to measure. A summary that took an hour now takes a few minutes. A search through hundreds of pages comes back with the answer and the page numbers.

That’s why these tasks are good candidates to start with AI in finance.

But there is one problem. Almost every one of these requests contains client data. Names, passport numbers, account numbers and amounts are not extra details here. They are the task itself.

So banks usually react in one of two ways. Some ban AI completely. Then employees use public chatbots on their own, and nobody knows what data goes there. Others allow AI and hope nothing sensitive gets pasted. Neither works for long.

That’s why the first decision is “which tasks bring the most value, and how do we protect the client data inside them”.

A simple way to start: choose two or three processes where the volume is high and the result is easy to check. The next sections explain how to protect the data in these tasks, so you don’t have to choose between AI and bank secrecy.

Sensitive data in banking: what to mask and what to keep inside the perimeter

Personal data: what masking protects

Let’s start with the data that appears in almost every banking request: personal data about clients.

Masking finds this data in the text and replaces it with neutral labels, called tokens, before anything goes to the AI model. For example, “John Carter, account GB82 WEST 1234 5698 7654 32” becomes “[CLIENT_1], account [ACCOUNT_1]”. The model works with the tokens and never sees who the client is. When the answer comes back, the real values are put back in place.

Our solution recognizes 14 types of personal data:

- full name;

- passport number;

- tax ID (TIN) and FIN;

- SNILS;

- phone number and email;

- card number;

- account number and IBAN;

- date of birth;

- address;

- organization name;

- VIN and license plate;

- insurance policy number.

The rules are set up for the formats used in Azerbaijan, Russia, Kazakhstan, Uzbekistan and the United Kingdom. The system works with documents in Azerbaijani, Russian and English.

It also works with the files banks use every day: text and scanned PDFs, Word and Excel files, emails, text and CSV files, images, Jira tasks and Confluence pages.

One important point. We tested the solution on synthetic Azerbaijani data: contracts, statements, KYC forms and poor-quality scans. Every bank has its own documents and formats. That’s why, in a pilot, we test masking on your documents first, against success criteria we agree on before the start.

Trade secrets need separate rules

Personal data is only one part of what a bank needs to protect. There is another category that masking does not cover: trade secrets.

These are things like amounts, interest rates, internal limits, pricing, business strategy, details of mergers and acquisitions, and source code. None of this is personal data. There is no client name or passport number in it. But for the bank, this information can be just as sensitive.

Masking is built to find and replace the 14 types of personal data. It does not hide a loan amount or an internal limit, because the system does not see them as personal data. So if an employee sends a document about a planned acquisition to the AI model, the details of the deal will go to the model as they are.

That’s why trade secrets need their own rules, and these rules come before the start, not after.

The first step is data classification. Together with the bank, we decide which types of information can go to an external model after masking, and which must stay inside the bank’s perimeter. The most sensitive data, marked as restricted, is processed only by local models inside the bank.

If the bank has its own specific terms or formats, we can also extend the dictionaries and rules for that bank.

When you need a private LLM

Not all AI tasks in a bank are the same. In some tasks, AI needs to reason about a text: summarize a contract, find a rule in a regulation, write a reply to a complaint. In others, the task is to check the value itself: is this name the same in two documents, is this client on a sanctions list, is this IBAN correct.

For the first type of task, masking works well. The model doesn’t need to know who the client is to summarize the agreement.

For the second type, you need a different tool. If you replace a name or an account number with a token, there is nothing left to check. This is not a weak spot. It’s the right way to split the work.

This is exactly why Softgile offers On-Prem & Private AI. In this setup, checks like name matching, sanctions screening or IBAN validation are done by code or by a local model inside the bank’s perimeter. Claude joins only where reasoning and analysis are needed. We design this setup for each bank, based on its processes and rules.

What the bank gets from this approach:

  • Exact checks stay exact. Code doesn’t guess. When you need a 100% match, a rule-based check is more reliable than any language model.
  • Sensitive values never leave the bank. Names, IDs and account numbers used in checks stay inside your perimeter.
  • The best model works where it matters most. Claude is used for the tasks where it brings the most value: understanding, summarizing and writing.
  • One clear setup instead of compromises. Each task goes through the right tool, so you don’t have to choose between security and quality.

At the Discovery stage, we go through your processes together and decide which tasks go through masking and which go through a private model.

Claude Enterprise or Claude API: which setup fits a bank

There is no single right setup for every bank. This is where experience matters more than the product list. Softgile works with banks every day, and banking is our main focus. We are an Anthropic partner and the first company in Azerbaijan with Select Partner status in the Claude Partner Network.We look at your processes, your data and your regulator’s requirements first. Then we build a setup that fits your bank, not a standard package.

Claude Team and Claude Enterprise plans

When a bank decides to allow AI, IT usually asks one question first: where will employees use it?

Claude offers two business plans for this: Team and Enterprise.

What these plans solve

They give employees a shared, managed workspace instead of personal accounts. On both Team and Enterprise, model training on your data is off by default. The IT team gets central control: admin controls for connectors, usage analytics and user-level spend controls.

Enterprise adds what larger and regulated organizations usually need. It includes everything in the Team plan, plus SSO and domain capture, audit logs, SCIM user provisioning and custom data retention controls.

In short, these plans solve a big part of the “shadow AI” problem. Employees stop using personal chatbots, and the bank sees who uses AI and how.

What stays on the bank’s side

A business plan controls how Anthropic handles your data. But it does not decide what your employees put into a request. If someone pastes a loan agreement with a client’s name and passport number, that data goes to the model as it is.

Some other questions also stay with the bank:

  • which data can leave the perimeter at all, including trade secrets;
  • tasks where the value itself is the subject, such as name matching or sanctions screening;
  • the legal opinion on cross-border data transfer for your regulator;
  • connecting AI to your processes, documents and systems.

How we close these gaps

This is where Softgile’s work starts. We add masking, so personal data is replaced with tokens before a request leaves the bank. We set up a private LLM for the most sensitive tasks. And we connect Claude to your processes, from Jira and Confluence to internal documents.

We also sell Claude Team, Enterprise and API usage ourselves. So you get licences and implementation from the same partner: one contract, local contracting and one point of accountability.

Claude API with masking: control stays with the bank

Banks often ask us: “We already have Claude Enterprise. What does the API add?”

The difference is who talks to Claude. In Claude Enterprise, it’s the employee. Through the Claude API, it’s the bank’s own system or a separate application. This gives the bank two important things.

  1. You can add masking in between. This is exactly how Softgile’s solution works. An employee works in our interface or in Jira. The system first finds personal data and replaces it with tokens, and only then sends the request to Claude through the API. In the standard Claude Enterprise app, there is no such step: everything an employee pastes goes straight to the model.
  1. You can build AI into your processes, without manual work. For example, every new complaint in your system automatically gets a draft reply, and every KYC form gets its data extracted in the format you need. Nobody has to copy anything into a chat.

The bank also keeps control over the terms. It uses its own API key, so data handling is set by the bank’s own agreement with Anthropic. Only masked text leaves the bank, and only to the Anthropic API. Everything that was sent is visible in a “Sent to model” window, and this window can’t be hidden in the settings.

The table that links tokens to real values exists only in memory while the request is processed. It can’t be saved or copied. It is destroyed right after processing, on any error, or within 30 minutes at most. We don’t create any storage of personal data.

Logs without client data

Logs are usually the first thing a security team checks, and for good reason. A system can protect data in requests and still leak it through logs.

That’s why our logs contain only action codes, never the content of requests. Only fields from an approved list can be written to the logs. On top of that, an automated test regularly searches the logs for personal data. So your security team gets a full record of what happened, without client names or account numbers in it.

GDPR, pseudonymization and the legal opinion

There is one legal point banks should know from the start. Masking is pseudonymization: the data is replaced with tokens, but it can be linked back to the client. Under GDPR, pseudonymized data is still personal data.

This means that if masked data is processed outside your country, the bank needs a legal opinion on cross-border data transfer. This is the bank’s responsibility, because only the bank can agree it with its regulator. But you don’t have to do it alone. We help prepare the legal opinion and the technical description your lawyers need. Questions about data retention on Anthropic’s side, including zero data retention terms, are clarified directly with Anthropic under the bank’s agreement.

Next step

Bringing AI into a bank comes down to three decisions. Choose the tasks where AI saves the most time. Decide what happens to the data inside them: what gets masked, what follows separate rules, and what stays on a private LLM. And choose the setup: Claude Enterprise for everyday work, the Claude API with masking for your processes, or both.

Every bank will still have its own questions.

Write to us, and we’ll go through your case together. In a 30-minute call, we’ll look at your processes and show which tasks masking can cover first.

‍

Let’s structure your operations

Tell us about your current challenges and we’ll show where structure creates measurable business impact.

“Softgile helped us transform fragmented processes into a structured operational system. Their team understood both the technology and the business challenges behind it.”
Head of IT
Leading Enterprise
best deal
STRUCTURE OVER COMPLEXITY
Discover how Softgile helps organizations streamline operations, improve visibility, and scale with confidence through Atlassian-powered solutions.
Platinum Atlassian Partner
from 2017
50+ Projects Delivered
50,000+ Users Supported
15+ Countries Served
Get a personalized assessment and discover which solutions will create the biggest impact for your organization.
Book a Consultation with SOFTGILE