RallyPay

How I cut card-testing attacks 99% at RallyPay

Thousands of public donation pages made RallyPay an easy target for card testers. I designed a service that scores every transaction, and new attacks fell 99% without adding a fee to each donation.

Company
RallyPay · Payment facilitator
Role
Chief Operating Officer
Team
About 30 people across two engineering teams and customer success
When
2024
Read
5 min
  • −99%new card-testing attacks, against the height of the first
  • −32%chargebacks
  • 5–10¢per transaction that a bought fraud service would have added
  • ~6 monthsof iteration to get there

The short version

Context
RallyPay was a payment facilitator for political candidates, non-profits and their vendors. I was COO and its only product person, running about 30 people across two engineering teams and customer success.
Problem
Thousands of public donation pages where anyone could post a payment. Card testers ran tens of thousands of attempts through them, and we had no way to see an attack while it was happening.
What I did
I designed a service that scores every transaction and then approves it, queues it for a person to review, or rejects it, with the dashboards and reporting to spot an attack. My engineering teams built it.
Impact
New attacks fell 99% and chargebacks 32%. The card testers moved on to softer targets.

The problem

An attack we couldn’t see

RallyPay was a payment facilitator. Its customers were mostly political candidates, non-profit organizations and their vendors. We processed donations across many channels, digital, telemarketing and physical mail, and gave campaigns the tools to manage their fundraising.

The feature that made us useful also made us a target. A candidate could start taking donations quickly by sending donors to a donation page we hosted. That left thousands of public pages where anyone could post a payment.

Card testers use pages like these to find out which stolen card numbers still work. An attack showed up as tens of thousands of attempts, with a few successful charges buried among pages of failed ones.

We had no metric that told us we were under attack, and no dashboard to spot one. We first heard about it from our customers.

What it cost

Each failed attempt cost a couple of cents. Each success was a ticking time bomb: a charge that could come back as a chargeback, with a fee of about $15 that was passed on to the customer.

Customer success was swamped. So was I, hunting for the successful charges so we could refund them before they became chargebacks.

The damage went past the fees. Card testing is bad for a gateway’s reputation and for its compliance programs, and with political donations it carries a legal risk of its own: straw donors.

The only defense in place was blocking transactions from outside the United States. Attackers with automated systems and spoofed IP addresses went straight through it.

Decision 01 of 04

Build it, don’t buy it

The fix has to fit inside the margin it protects.

We were the low-cost provider for our customers. Every security service we could have engaged would have added 5 to 10 cents to each transaction. When the company makes about 1% gross profit on a transaction, those margins cut deep.

So I researched the fraud tools that were popular at the time, and designed our own.

The temptation

Buy a fraud service

Proven and quick to switch on, at 5 to 10 cents on every transaction.

My call

Design our own scoring service

Built by my engineering teams, with no fee added to each donation.

Decision 02 of 04

Score every transaction

Decide how far to trust each payment, then act on the score.

We took our inspiration from Stripe and started grading the validity of every transaction. The signals included how fast a payment was entered, which separates a person from a machine, along with rate limits, device fingerprinting, the card type, the time of day, and how busy that customer’s page normally was. A payment on a page that had been quiet was rated riskier than one on a page that was fundraising normally.

The amount was a signal too. Most donations are flat amounts, $5 or $10. A card tester is more likely to try something like $10.23, to look like a retail purchase, so we started limiting off-dollar donations.

Each transaction got a score, and thresholds decided what happened next: approved, sent to a queue for a platform admin to review, or rejected.

My engineering teams built it. The overall design, the metrics considered and the grading weights were mine.

The temptation

Keep blocking by location

Geo-blocking was already in place. Spoofed IP addresses made it useless against automated attacks.

My call

Grade each payment on several signals

Three outcomes in place of two: approve, review by a person, or reject.

Decision 03 of 04

Make the attacks visible

You can’t stop what you can’t see.

Scoring alone wasn’t the fix. The first problem had been that we couldn’t see an attack at all, so we built the dashboards, the review queue and the reporting needed to find fraud quickly and act on it.

An attack now showed up while it was happening, and a platform admin had one place to work through the payments that needed a person’s judgment.

The temptation

Wait for customers to tell us

That was how we had learned about the first attacks.

My call

Dashboards, a review queue and reporting

So fraud is found quickly, and someone can act on it.

Decision 04 of 04

Hold the line on the platform

Shore up the platform before trying to grow on it.

The trade-off was false positives. A legitimate donation that wasn’t approved meant pushback from the customer, and however good the tool was, it would never be perfect. Customers still had to be able to take donations with low friction on every channel.

There was internal pushback too. The work was taking extensive engineering time, and those were valuable engineering dollars going into shoring up the platform when they could have gone toward product development and new customers.

My position was that we had to shore up the platform before we could expand our footprint in any meaningful way. It was not a comfortable position to hold: every successful attack was a critique of the decision.

The temptation

Spend the engineering budget on new product

New features and new customers were the other claim on the same engineering time.

My call

Fix the foundation first

Keep the teams on the scoring service through about six months of iteration.

New card-testing attacks
At the height
100%
By 2025
1%

Results

Impact of the work

What changed

The improvement came in steps, over about six months in the latter part of 2024. By 2025 we had largely stopped the problem: new attacks were down 99% against the height of the first one, and chargebacks were down 32%.

What lasted

It held up. At a certain point we were too hard a target, and the card testers moved on to softer ones. I’m sure it could have been circumvented, but these attackers are looking for easy targets.

What I’d do differently

I would have started training a machine learning model at the same time we were scoring transactions with deterministic rules. Every decision made in the review queue could have improved the model, and we could probably have relaxed the fixed rules in favor of something more adaptive.

The prevalence of AI today would change that conversation altogether.