In brief
A payment fraud detection system assesses the risk of every transaction in real time and decides whether to let it through, ask the customer for additional authentication, hold it for review or reject it. A bank must have such mechanisms because Regulation 2018/389 under PSD2 requires them. The decision is usually made by rules and a machine learning model working together. Testing covers rule thresholds and time windows, model quality on data from a different period than training, response time under load and the system's behavior when a decision does not arrive in time.
What the regulations require
Commission Delegated Regulation (EU) 2018/389, the regulatory technical standards under PSD2, requires payment service providers in Article 2 to have transaction monitoring mechanisms that detect unauthorized or fraudulent payment transactions. The mechanisms must analyze transactions against the customer's typical behavior and take into account at least:
- lists of compromised or stolen authentication elements;
- the amount of each transaction;
- known fraud scenarios;
- signs of malware infection in the authentication session;
- a log of the use of a device or software provided to the customer by the bank, and its abnormal use.
The same system decides on the transaction risk analysis exemption from strong customer authentication (Article 18). A bank may use it only when its fraud rate for that payment type does not exceed the reference rate in the annex to the regulation, for example 0.13% for remote card payments up to EUR 100. The quality of fraud detection therefore directly affects how many customers have to be asked for additional confirmation. We cover this in the article on strong customer authentication.
PSD2 also requires providers to give their supervisor statistical data on fraud at least once a year. For an IT team this means every transaction marked as fraud must be correctly classified in the data, not just in an analyst's note.
For euro credit transfers, Regulation (EU) 2024/886 introduces verification of payee: before the transfer is authorized, the payer's bank checks whether the account number matches the payee's name. Banks in the euro area have had to offer it since October 9, 2025, and those in member states outside the euro area, such as Poland, must do so by July 9, 2027.
What kinds of fraud the system detects
| Type of fraud | What it looks like | Signals in the data |
|---|---|---|
| Account takeover | A criminal logs in with the customer's credentials and orders transfers | A new device, an unusual location, contact details changed just before the transfer |
| Authorized push payment fraud | The customer orders the transfer, persuaded by a fake bank employee, police officer or investment adviser | A new payee, an amount unusual for the customer, a long phone call during the session, haste |
| Card-not-present fraud | Stolen card details used at an online store | Many attempts in a short time, different merchants, card country not matching the device |
| Money mule accounts | An account receives proceeds of fraud and passes them on quickly | Fast outflow after an inflow, many new senders |
Authorized push payment fraud is the hardest, because the real customer approves the transaction with real authentication. Strong authentication does not help here, and the signals come mainly from behavior: typing pace, switching between apps, an unusual payee. Money mule accounts connect the fraud world with AML transaction monitoring.
Rules and models: how they share the work
Rules are readable and quick to deploy: “the first transfer to a new payee above a set amount within an hour of adding the payee requires additional confirmation.” A fraud analyst can add a rule within hours of spotting a new scheme. Their weakness is rigidity: criminals learn the thresholds and stay just below them.
Machine learning models combine hundreds of features no rule could cover: the customer's history, device attributes, the network of links between accounts. They handle new fraud variants better, but they are harder to explain and need labeled data that arrives with a delay, because a card dispute can come weeks later.
In practice the model score is one of the inputs to the decision rules, and the rules add hard limits the model cannot override. The scenario of a model for instant transfers and BLIK describes such a combination.
The AI Act lists creditworthiness assessment of natural persons as a high-risk use, but it explicitly excludes AI systems used to detect financial fraud from that category. A fraud model therefore does not go through the procedures for high-risk systems, but the bank still has to be able to explain to a customer why their payment was stopped.
Time to decide
Risk scoring sits on the critical path of a payment. With instant credit transfers the whole transfer has a few seconds, and the fraud system gets a fraction of that, as we describe in the article on instant payments. The architecture is usually built on an event stream, often Apache Kafka, and on features computed in advance: the number of transfers in the last hour, the day's total amount, the age of the device.
The most important design decision concerns timeouts. The system must have a documented behavior for when scoring does not finish in time: let the payment through, reject it or route it to simpler fallback rules. Each option has a cost and each has to be tested.
How to test a fraud system
- Rules at the boundaries. An amount just below and above the threshold, a time window at its edge, a payee added 59 and 61 minutes before the transfer, a time zone change.
- The model on data from another period. Validation on months the model did not see in training, because a random data split inflates the results. Metrics: precision and recall at the threshold used in production, not just the area under the ROC curve.
- Shadow mode. A new version of the rules or model scores production traffic in parallel with the old one but makes no decisions. Comparing the two shows how many alerts will be added and how many customers will get an extra prompt before the change affects anyone.
- Replaying known attacks. Every confirmed fraud scheme becomes a regression test case so the next change does not lose it.
- Performance and failures. A load test at peak traffic measuring response time percentiles, and a test with the risk scoring service switched off to check the fallback path.
Testing machine learning models has its own traps: data drift, information leaking from the future into features, instability between versions. We describe them in the article on testing AI systems.
Questions and answers
Does a bank have to have a fraud detection system?
Yes. Regulation 2018/389 under PSD2 requires payment service providers to have transaction monitoring mechanisms that detect unauthorized or fraudulent transactions, and it lists a minimum set of risk factors. The rules do not prescribe a technology, so a bank can use rules, models or both, as long as the mechanism analyzes transactions against the customer's typical behavior.
How does fraud detection differ from AML?
Fraud detection protects the customer and the bank against theft of funds and has to decide before the payment is executed, often in a fraction of a second. AML protects against the bank being used for money laundering and analyzes patterns over longer periods, and the result may be reported to the financial intelligence unit. The systems often share data and signals, because money mule accounts show up in both areas.
How can false positives be reduced?
First measure them separately for each rule, because a few rules usually account for most unnecessary blocks. Then test changes in shadow mode on production traffic and compare how many real fraud cases would have been let through. A model that takes into account the history of the individual customer instead of one threshold for everyone also helps.
What is verification of payee?
It is a service under Regulation (EU) 2024/886: before the customer approves a euro credit transfer, the bank checks with the payee's bank whether the account number matches the payee name given, and informs the customer of any mismatch. Banks in the euro area have offered it since October 9, 2025, and providers in member states outside the euro area, including Poland, must do so by July 9, 2027.