Card testing is the quiet end of card fraud. An attacker holding a list of stolen or generated card numbers submits small purchases or zero-value authorisations to find which cards are live. The amounts are low, so rules written around large-value losses rarely fire. This article sets out a practical approach to card testing fraud rules tuning that uses decline data you already hold, and that leaves behind the evidence a PCI DSS assessor will ask for.
Why card testing passes large-value rules
Most rule sets grew around loss. Thresholds on amount, country or merchant category catch the transaction that hurts. Card testing hurts differently: it burns issuer and acquirer resources, drives up scheme and processing costs, and prepares the ground for larger fraud on the cards that prove valid.
The signal is in the pattern rather than any single transaction. Look for many attempts in a short time, a high share of declines, repeated amounts, sequential or closely related card numbers, and a narrow set of merchants or channels receiving the traffic.
Step 1: Pull a month of declines
Export one month of authorisation attempts, approved and declined, with the fields below. A month is long enough to include normal peaks and short enough to review properly.
- Response code and, where available, the issuer or scheme reason
- Merchant identifier, merchant category and acquiring channel
- BIN and card product
- Amount, currency and timestamp
- Channel: e-commerce, card-present, mobile wallet, recurring
- Device, IP or terminal attributes where captured
Record the extraction query, the date range and who ran it. That record becomes part of your evidence later.
Step 2: Read the declines by response code
Group declines by response code and look at the mix per merchant. Card testing tends to produce a distinctive blend: invalid card number, incorrect expiry, wrong security code and do-not-honour responses, concentrated in a short period and on few merchants. A legitimate merchant with an ordinary customer base shows a more scattered mix and a lower decline share.
Mark merchants whose decline profile departs sharply from their own history, not only from the portfolio average. Small merchants with sudden volume and a skewed code mix deserve the first look.
Step 3: Cut by merchant and BIN
Next, cross the flagged merchants with BIN ranges. Testing often draws on a few BIN ranges, either because a data set came from one issuer or because the attacker is generating numbers within a range. Two views help:
- For each flagged merchant, which BINs account for most declined attempts?
- For each concentrated BIN range, which merchants are receiving the attempts?
This gives you two kinds of control: merchant-level rules for the acquiring side, and BIN-level rules for the issuing side. Whichever side you sit on, the same data tells you where to place them.
Step 4: Set velocity windows per channel
A single velocity rule across all channels is a common gap. Customers behave differently on each, so a window that suits one will either miss attacks or flood analysts on another.
- E-commerce: attackers can automate at speed, so short windows, measured in minutes, on attempts per card, per device and per IP address are usually the starting point. Add a count of distinct cards per device or IP.
- Card-present: physical constraints limit speed, so look at repeated low-value attempts on one terminal and unusual decline runs.
- Mobile wallet and tokenised: watch for repeated provisioning or verification attempts rather than only purchases.
- Recurring and card-on-file: monitor small verification attempts and changes in the ratio of declines to approvals per merchant.
Use two or three window lengths per channel, for example a short burst window and a longer accumulation window, and set thresholds from your own history rather than a borrowed number. Where the monitoring system allows it, include a rule on the decline ratio per merchant as well as raw counts.
Step 5: Measure each change before and after
A rule is only an improvement if you can show it. For every proposed change, replay it against the month of history, and ideally a second, different month, before it goes live. Record:
- Alerts the rule would have generated
- Confirmed card-testing cases it would have caught
- Legitimate transactions or customers it would have affected, your false positives
- Analyst time implied by the new alert volume
Change one rule at a time where you can, so that the effect is attributable. After release, compare live alert volume and hit rate with the back-test, and keep the comparison. If a rule produces more false positives than expected, adjust or roll back, and note why.
Balance matters here. Tightening a window will catch more testing and also more genuine customers who retry a mistyped code. Consider a graduated response, such as step-up authentication or a temporary soft block, before a hard decline.
Step 6: Keep the PCI DSS evidence
PCI DSS is the payment card industry standard maintained by the PCI Security Standards Council. It expects, among other things, that audit logs of system components in the cardholder data environment are captured, protected, retained and reviewed, and that suspicious activity is detected and followed up. Assessors typically look for evidence that this happens in practice, not just a policy that says so. Check the current version of the standard for exact requirement wording.
For card-testing controls, a useful evidence pack contains:
- The log sources feeding the fraud system, and proof that they are complete and time-synchronised
- Retention settings and access controls for those logs
- Records of log and alert review: who reviewed, when, and what action followed
- A change record for each rule: the rationale, the back-test result, the approver and the release date
- Alert-handling records showing escalation of suspected card testing and the outcome
Change records matter most when tuning is frequent. They show that rule changes are controlled and that decisions were reasoned, which also supports any internal review under the SAMA Counter-Fraud Framework.
Typical gaps we see in this work
- Rules keyed to amount only, with no view of decline ratios
- One velocity window applied to every channel
- Decline data stored but never reviewed by merchant or BIN
- Rule changes made without back-testing or a written rationale
- Alert review done but not recorded in a way an assessor can follow
Closing: from method to a tuned rule set
The steps above can be run by a capable internal team. Where capacity or independence is the constraint, our Fraud Detection and Transaction Monitoring Optimization service covers the same ground. It reviews and tunes the rules, scores and workflows of your fraud monitoring system across cards, mada, SARIE, instant payments and digital channels. The work follows four stages: measure alert volumes, hit rates and losses by rule; analyze gaps against current typologies and channels; tune thresholds, logic and new scenarios, tested on history; and embed procedures, metrics and handover.
Every change is back-tested on your history first, and false-positive reductions are balanced against detection. The engagement is a project of 6–10 weeks and produces a detection coverage map, a tuned rule set with rationale, an alert quality metrics baseline and operating procedures for the fraud team. It works with any rule-based or score-based system, and with your vendor where configuration access is restricted.