How payment systems protect people from fraud without turning customers away
Tolu opened a new bank account on Monday morning.
By Monday afternoon, a client paid her for a big job. The alert came in. Joy.
Then she tried to pay her supplier.
"Limit exceeded."
The money was right there in her account. Nothing was wrong with it. So why couldn't she move it?
To Tolu, it felt like the bank was getting in her way. But what she couldn't see was that the same rule stopping her that afternoon was protecting someone else's life savings.
This article explains that rule, why it exists, and the engineering decisions behind enforcing it well.
The fraudster's playbook
Some of the most valuable tools in a fraudster's kit are brand new bank accounts.
The pattern looks like this:
- A victim is tricked into sending money, or their account is compromised.
- The money is sent to a freshly opened account, often one opened only hours earlier.
- Within minutes, the money is moved on to a second account, then a third.
- By the time the victim reports it, the money has passed through several accounts and is gone.
These pass-through accounts are often called mule accounts, and moving money quickly through several of them is called layering. Speed is the fraudster's greatest advantage. The faster money can leave a new account, the harder it is to recover.
So a new account is, in effect, the getaway car.
The rule: let money in, slow money out
The protection is simple in principle: for a short period after an account is opened, and especially before the customer has completed fuller identity verification, limit how much money can leave the account.
Notice what this rule does not do. It does not reject money coming in.
That distinction matters more than it first appears.
If the system rejected inflows:
- Tolu's client gets an error and assumes something is wrong with her account.
- Tolu loses a payment, and possibly a client.
- The bank or fintech loses a customer on her first day.
If the system limits outflows:
- Tolu gets paid. Her money is safe in her account.
- She can still spend within a reasonable limit straight away.
- Larger amounts can move once the window passes or she upgrades her account.
- A fraudster who receives stolen money can't run with it.
The customer still gets paid. The business keeps the customer. And stolen money has nowhere to go.
This connects to tiered KYC (Know Your Customer), used in many markets including Nigeria: the more a customer verifies their identity, the more freedom their account has. A brand new, lightly verified account starts with tighter limits, and those limits widen as trust is established.
The engineering behind it
Enforcing a rule like this sounds easy: "if the account is new and the amount is above the limit, block it." In production, there's more to get right. I've worked on enforcing this kind of rule in payment infrastructure, and these are the principles that matter.
1. Enforce it on the right path
The check belongs on the outflow path: transfers out, withdrawals, card payments. Inflows should still be credited normally.
Putting the check in the wrong place either blocks legitimate customers or leaves a gap fraudsters will find. Every way money can leave an account (app transfers, USSD, cards, POS, agent withdrawals) needs to go through the same check, ideally in one shared component rather than copied into each channel.
2. Measure a rolling window, not a single transaction
A limit on a single transfer is easy to get around: just send several smaller ones. The rule needs to look at the total outflow over the window.
public async Task<LimitCheckResult> CheckOutflowAsync(
Account account, decimal amount, CancellationToken ct)
{
var rules = _limits.CurrentValue; // from configuration
var accountAge = _clock.UtcNow - account.OpenedAtUtc;
if (accountAge >= rules.NewAccountWindow || account.KycTier >= rules.ExemptFromTier)
return LimitCheckResult.Allowed();
var windowStart = _clock.UtcNow - rules.NewAccountWindow;
var alreadySent = await _db.Transactions
.Where(t => t.AccountId == account.Id
&& t.Direction == Direction.Debit
&& t.Status != TransactionStatus.Failed
&& t.CreatedAtUtc >= windowStart)
.SumAsync(t => t.Amount, ct);
var remaining = rules.NewAccountOutflowLimit - alreadySent;
return amount <= remaining
? LimitCheckResult.Allowed()
: LimitCheckResult.Blocked(remaining, account.OpenedAtUtc + rules.NewAccountWindow);
}
3. Keep the rule outside the code
Limits change. Regulators adjust them. Risk teams tune them after studying fraud patterns. If the limit is hardcoded, every change means a code release.
So the values live in configuration, ideally a dynamic configuration service that can be updated without redeploying or restarting anything.
public class NewAccountLimitOptions
{
public TimeSpan NewAccountWindow { get; set; } = TimeSpan.FromHours(24);
public decimal NewAccountOutflowLimit { get; set; }
public int ExemptFromTier { get; set; }
}
// Program.cs
builder.Services.Configure<NewAccountLimitOptions>(
builder.Configuration.GetSection("Limits:NewAccount"));
// Inject IOptionsMonitor<NewAccountLimitOptions> so updated values
// are picked up without a restart.
During a fraud wave, being able to tighten a limit in minutes rather than days can make a real difference.
4. Beware of two withdrawals at the same moment
Here's the subtle bug. Two outgoing transfers arrive at almost exactly the same time. Both check the limit. Both see enough headroom. Both go through. Together, they exceed the limit.
That's a race condition, and it's exactly the gap a scripted fraud attempt will try to exploit. The fix is to make the check and the update a single atomic step: lock the account row while checking and debiting, or track the window's total in a counter that's updated with a conditional update. (I cover race conditions in depth in a separate article.)
5. Say "not yet" kindly and clearly
A rule that protects people can still frustrate them if it's communicated badly.
"Transaction failed" tells Tolu nothing. She'll assume the bank is broken and call customer care.
Compare that with:
"For your security, new accounts can send up to [limit] in the first 24 hours. You'll be able to send more from [time], or straight away if you upgrade your account."
Same rule. Completely different experience. The second message turns a frustration into a reassurance.
6. Leave an audit trail
Every block should be logged with the account, the amount, the remaining limit and the reason. Risk teams use this to tune the rules, support teams use it to answer customers, and compliance teams use it to show regulators the rule is being enforced.
The balance every payment system has to strike
Every extra security step protects customers. Every extra security step also risks losing them.
Good engineering in fintech lives in that tension. Block too much, and legitimate customers leave. Block too little, and fraudsters move in.
The "money in freely, money out carefully" approach is a good example of finding the balance: maximum protection with minimum disruption to honest customers.
Key takeaways
- New accounts are a common tool for moving stolen money quickly.
- Limiting outflows, not inflows, protects victims without losing customers.
- Measure the rolling total, not individual transactions.
- Keep limits in configuration so they can change without a release.
- Guard against race conditions on the limit check.
- Explain blocks clearly, with when and how the limit lifts.
- Log every decision for audit.
To Tolu, that limit felt like an obstacle. To someone else, the same rule was the reason their stolen savings were still there when they called the bank.
Good engineering doesn't always say no. Sometimes it just says "not yet."
Matthew Odumosu is a Senior Software Engineer with 8+ years of experience building payment, banking and insurance systems. He writes about engineering principles in plain language, for engineers at every level.
Connect on LinkedIn: linkedin.com/in/matthew-odumosu
Tags: Fintech, Fraud Prevention, Software Engineering, Payments, System Design
Top comments (1)
the inflow/outflow split is the right instinct, and the race condition section is the part most implementations get wrong. one thing worth adding: the same rolling window that stops a mule account also catches legitimate split payouts, like a freelancer paying three vendors in one afternoon, so the exemption path matters as much as the limit. tying the window to kyc tier the way you do is the cleanest version of that, because the upgrade flow becomes the natural place to re-verify instead of support manually lifting caps.