LEADCHAPTER 20

Fraud and abuse: where security meets the product

Some attacks break no code. They use your product as designed, with a stolen identity, to move value. Review every new feature for what a bad actor does with it, and agree who owns the seam before the first attack

45 MINSECURITYUPDATED 2026-11-21
PREDICT

Ojaline's login endpoint receives 52,000 attempts in an hour from about 7,000 addresses. Most accounts see a single attempt, and about 1,100 succeed on the first try. A code review of the login finds no flaw. What is this?

Security engineers are trained to ask whether a system can be made to do something its designers never allowed. A fraud analyst asks something else: what did someone do with what the system was built to do, and who were they pretending to be? A marketplace with a seller wallet gets both questions in the same week. Teams that answer only the first leave a seam, and the people who profit from fraud work in the seam.

At Lead level you own part of that seam. You decide which new features get an abuse review before launch, which controls security builds for the fraud team, and who is paged when an attack starts. The Fraud and Trust and Safety track, which has no written chapters yet, will teach the fraud analyst’s side: cases, rules, review queues and loss budgets. This chapter stays on the security side and shows where the two meet.

The model: breach, fraud and abuse

Three kinds of bad day look alike on a dashboard and need different owners.

Security breach Fraud Abuse (trust and safety)
What happens The system does something its designers never allowed The system does what it was built to do, for the wrong person, for gain A real user breaks the rules of the product or harms another user
At Ojaline An injection reads the sellers table A takeover sends a seller’s balance to a mule account A seller lists counterfeit phones
Evidence A bug, an exploit in the logs A pattern of normal-looking actions A report and a policy
Typical fix Patch, then hunt Rule, friction or hold, then recover the loss Policy and enforcement
First owner Security Fraud Trust and safety

The middle column is the one engineers misread. In a breach you can point at the vulnerable line. In fraud there is no such line, because every request was valid. The question becomes economic: what does the attack cost, what does it pay, and does a control raise the cost faster than it raises the friction for honest users? That makes fraud a trade, and the fraud function exists to run it on purpose. The adjacent-role note in this track’s ladder puts it the same way: security defends the systems from being broken into, and fraud defends the product from being used as designed against the company or its customers.

Two consequences follow. A scan and a pentest are the wrong instruments, because they look for defects. And because every control has a false-positive cost, some of the work is deciding what you will let through.

The surface at a marketplace: accounts and the wallet

Ojaline has two assets attackers want. Buyer and seller accounts hold identity, saved cards and a delivery address history. The seller wallet holds money that leaves by NIP every night, and credits a seller when a parcel is scanned delivered. Almost every abuse pattern is a way to reach one of them or to convert one into the other.

Pattern What it uses Who sees it first First control Where to learn more
Account takeover Stuffed or phished credentials Sellers and support Second factor, breached-password screening, hold on payout changes Identity, access and secrets, harden a login flow
Card testing Checkout authorisation, many small tries Payments operations, as a spike in failures Rate limits, challenges, fewer retries Authenticating the payer
Stolen-card orders Checkout, phones Disputes, weeks later Signal-based challenges, scoring ML fraud scoring, disputes and chargebacks
Fake and multiple accounts Sign-up, promotions, referral credit Marketing, as a strange conversion rate Device and phone signals, caps per person This chapter
Cash-out through a mule Payout to a new destination Banks, after the money has moved Holds and limits before the payout Fraud between banks
SMS pumping One-time-password and notification endpoints Finance, on a bill Per-number and per-country limits Twilio’s write-up in the reading

Two of these deserve a closer look because they look like engineering defects and are not.

Card testing. An attacker with a list of stolen card numbers needs to know which still work. Checkout is a free oracle. Stripe’s documentation says card testing shows up as a spike in failed authorisations, and recommends a CAPTCHA, rate limits on customer creation per address, and requiring login or session validation for certain actions. Notice what is missing from that list: a patch. The fix is friction placed where the attacker is cheap and the buyer is rare. Ojaline’s own history shows the other failure. After a month of fraud chargebacks on phones, it challenged every card payment, then moved to signal-based challenges once the cost to honest buyers showed. Authenticating the payer tells that story.

SMS pumping. Any form that sends a one-time passcode to a number the user typed can be turned into revenue for whoever collects the termination fee. Twilio describes the pattern as abuse of phone-number fields on sign-up and verification forms. Its warning signs are a spike of messages to a block of adjacent numbers, and verifications that do not complete after codes are requested. Provider tools help, but your own limits, including restricting sends to countries where you trade, still matter. Ojaline sends its sign-in codes and delivery notices through a messaging provider, so the bill grows with every unprotected form.

Abuse cases: the review for a new feature

Threat modelling asks how an attacker breaks a design. An abuse case asks what a legitimate account can do with a feature that its designers did not intend, and what that is worth. The threat modelling chapter gives you STRIDE for the first. For the second, use five triggers. A feature needs an abuse review if it does any of these:

  1. Moves value: a payout, a refund, a credit, a transfer.
  2. Sends a message that costs money: an SMS, a call, an email at scale.
  3. Creates an identity or a credit: sign-up bonuses, referral credit, vouchers.
  4. Lets one party affect another’s money: a dispute, a rating that unlocks payouts, a hold.
  5. Changes where money goes: a bank account, a phone number, an address.

For each trigger, write the abuse case as a short story from the attacker’s side: who they are, what they want, the steps the feature lets them take, what it costs them, and what it costs you. Then answer three questions that engineers often skip.

What is the ceiling? The most that one attacker can take in one night, given the caps you set. A ceiling is a number you can compare with a control’s price, which a severity label is not.

What will we see, and when? Name the signal and the delay. A takeover shows within minutes in login and payout-change events. A stolen-card order shows weeks later as a chargeback. Control timing has to beat signal timing. The fraud between banks lab shows why: the first onward transfer from a mule account comes 3.4 to 12.9 minutes after the credit, and the reports arrive 118 to 332 minutes after it. Recall after the fact finds little. A hold before the payout finds the money.

Who decides, and how fast? If a rule fires at 02:00, who can turn it off at 02:05 when it is blocking honest sellers?

OWASP’s Abuse Case Cheat Sheet is the standard template, and it now carries a note that abuse cases are rarely used in practice. Take that as a warning about format: a table nobody reads fails. Keep the review to one page, held in the same review as the design, and tie each case to a control with an owner.

Account takeover: the case on the seam

Account takeover is the clearest example, because security’s tools and fraud’s tools both apply and neither is enough alone.

How accounts are lost. Credential stuffing, as in the Predict. Phishing, which takes both password and one-time code. SIM swap, where the attacker moves the seller’s number to a new SIM and receives the codes. Session theft from a compromised device. And social engineering of support, where someone talks an agent into changing an email address. Each defeats a different control, and you need to know which your logs can distinguish.

What the security side builds. These are the controls in identity, access and secrets and the login lesson, applied to the seller. Screen new passwords against breached lists. Offer passkeys or an authenticator app and make them the default for sellers who hold money. Rate-limit on several keys at once: the account, the address, the device and the pattern across accounts, using the ideas in the rate limiting lesson. OWASP’s credential stuffing cheat sheet treats multi-factor authentication as the strongest single defence, and says no single control is enough.

What the fraud side builds. Rules and holds that act on what the account does next. A new device, followed within minutes by a payout destination change, followed by a withdrawal, is a pattern no login control sees. The responses are graded: allow, challenge with a fresh factor, hold the payout for a review window, or block.

The seam. The change of payout destination is the highest-leverage moment, and it belongs to both teams. Security owns how strongly the seller proves who they are at that moment. Fraud owns the rule that holds money for a new destination. Payments engineering owns the mechanism that holds it safely: a ledger entry before the NIP call, with an idempotency key, so a hold and a retry cannot pay twice. Ojaline’s old seller wallet paid ₦12,000 from a ₦10,000 balance when a withdrawal read and then wrote the balance; the double spend lesson explains the race, and a hold that has the same flaw is worse than none. Add a notice to the old phone and email whenever the destination changes. The real owner is often the best detector you have.

Friction is a budget

Every control moves honest users as well as attackers. A seller locked out on a Saturday loses sales and writes to support. A buyer challenged on every payment abandons the cart. So the useful question is how much friction a loss is worth.

Most teams work with four responses, from cheapest to dearest for the honest user: allow and watch, challenge, hold, block. A good rule uses the cheapest response that changes the attacker’s arithmetic. Measure both sides, because a number that only shows attacks stopped will push you towards blocking everything. Track the share of honest sessions that were challenged, the share of challenges abandoned, and the time a held payout waits.

Treat any figure for an acceptable false-positive rate as a rule of thumb that depends on your margins and your sellers’ tolerance, not as a standard. Fraud teams set it with the business. Your part is to give them controls whose false-positive rate you can measure, which usually means building a way to run a rule in shadow mode first, logging what it would have done without doing it.

Where practitioners disagree

Hard rules or scores. Security engineers like deterministic controls they can test. Fraud teams like scores, because attackers adapt to fixed thresholds. The usual compromise: hard rules for what must never happen (a payout to a destination changed in the last hour, above a cap), scores for the grey area. The ML fraud scoring chapter covers how a model is graded, and why labels arrive late.

Whether to explain a block. A clear message helps an honest seller and teaches an attacker. Most teams give the honest user a route to a human and say little about the reason.

Sharing signals. Device and phone data make fraud rules sharper, and they are personal data. Decide with your privacy lead what you collect and for how long. Do not discover this limit during an attack.

Who owns the number. Some firms make fraud own all takeover loss; others make security own the login and fraud the money. The Decide at the end of this chapter takes a position.

Where it goes wrong

The seam stays unowned. Each team has a dashboard and neither has the whole loss. The first sign is a quarterly meeting where both say the other’s number is the real one.

The control ships before anyone can switch it off. A rule with no kill switch and no owner overnight turns one bad deployment into a lost weekend of seller sales.

Review happens after launch. A referral credit or instant payout goes live, an attack finds it within days, and the fix is a rushed cap. Put the abuse review at design, when changing the feature is cheap.

Findings are filed as bugs. A takeover ticket goes into the vulnerability queue with no patch to write and drifts past its SLA. Fraud events need their own queue and clock.

The attacker learns faster than the process. Rings test a control, find the threshold, and stay under it. Plan for that: vary thresholds, and review rules on a schedule, not only when they fail.

Day to day

Weekly, thirty minutes. A sync with the fraud analysts, led from the security side every other week: takeovers and holds from the last seven days, rules that fired, false-block complaints from support, any attack that changed shape. Bring login and payout-change events to the meeting, not summaries.

Per feature. The abuse review sits inside the design review. Engineers or champions (see security champions and paved roads) apply the five triggers; you review only the features that hit one. Aim for a one-page review in a day.

During an attack. Run both playbooks at once. Security tightens the door: stricter limits, forced re-authentication, session revocation. Fraud acts on the money: holds, review, recovery. One person coordinates, and the detection and incident response chapter covers the shape of that call. Agree beforehand who can change a limit at night.

Monthly. A joint report to engineering and finance: takeovers per 10,000 logins, loss in naira, time from first bad login to containment, and the false-block rate. Keep takeover counts next to honest-seller friction, never alone.

Quarterly. Read the cases, not only the counts. Pick one pattern that got past you and rewrite the control. Revisit the abuse reviews of features shipped in the quarter and compare the ceilings you estimated with what happened.

Yearly. Review ownership with the heads of security, fraud and payments. New products move the seam, and an agreement written for last year’s wallet will not fit a new payout rail.

If your fraud analysts and security engineers have never been in the same room outside an incident, expect the first six weeks of this routine to be a negotiation about definitions: what counts as a takeover, who raises the ticket, where the number lives.

BY ORG SIZE
STARTUPunder 30 people

Nobody is called a fraud analyst. The founder or the first payments engineer reads the failed-payment dashboard and the support inbox. Do the cheap things first: a managed login with breached-password screening, rate limits at checkout and on any form that sends a text, a cap on withdrawals, a hold on the first payout to a new bank account, and one named person who looks at payout events each morning. Write the five triggers on a card and ask them at every design. The loss you cannot afford is the first big one.

SCALE-UP30 to 300

A fraud analyst or two exist, often inside payments operations, and the first rules are a spreadsheet of thresholds. Security’s job is to turn the manual checks into controls with logs, a shadow mode and a kill switch. The seam is first drawn here, so draw it in writing: who owns the login, who owns the payout hold, who owns the takeover loss number. Launches such as referral credits and instant payouts start to attract rings, so the abuse review becomes a gate on the feature calendar.

ENTERPRISE300 and up

A fraud function, a trust and safety team and a security team report to different leaders, with their own tooling and budgets. The work is joints and politics: shared signals across business units, one event stream both teams can query, a rule change process that fraud can run at night without security’s sign-off, and one agreed definition of a takeover. Attackers move between products, so the same ring appears in the marketplace, the wallet and a lender. Intelligence sharing with banks and peers matters more than any single control.

ARTEFACT Review a new feature for abuse ~60 MIN
YOU PRODUCEAbuse-case review

Template

# Abuse-case review: <feature>
Author · Reviewers (security, fraud, payments) · Date · Launch date

## What the feature does
<Two sentences. Who uses it, what value moves, what is new.>

## Triggers
<Which of: moves value, costs-money message, creates identity or credit, affects another's money, changes where money goes.>

## Abuse cases
| ID | Attacker and goal | Steps the feature allows | Cost to attacker | Ceiling (one attacker, one night) | Signal and delay | Control, grade, owner |
|---|---|---|---|---|---|---|

## Friction
<Who of the honest users is slowed by each control; the expected false-positive rate and how you will measure it.>

## Switches
<Who can loosen or tighten each control at night, and how.>

## Blind spots and measures after launch
<What this review cannot see. The three numbers you will watch for 30 days.>

## Decision
Launch / launch with changes / delay, because <reason>. Review again on <date>.
WORKED EXAMPLE

Ojaline is the marketplace with the seller wallet. Payments proposes Pay now, an instant payout: a seller can withdraw delivered balance by NIP at any hour, up to ₦150,000 a day, instead of waiting for the nightly run. Inuwa, from security, writes the review with Kubura from fraud. Triggers: it moves value, it changes where money goes, and it sends a confirmation code by SMS. (All figures are illustrative.)

ID Attacker and goal Ceiling Signal and delay Control, owner
A1 Takes over 200 seller accounts with stuffed passwords and cashes out 200 × ₦150,000 = ₦30m Login and payout-change events, minutes A new destination gets a ₦20,000 limit for 24 hours (200 × ₦20,000 = ₦4m, 7.5 times lower); alert to the old phone. Fraud
A2 Seller and rider fake delivery scans to credit the wallet One seller’s daily cap Dispute weeks later, too late Instant payout only for balances older than 24 hours. Payments
A3 Many sellers pay out to one account (a mule collector) Cap per seller times number of sellers Destination reuse, minutes Review when more than three sellers share one destination. Fraud
A4 Two simultaneous withdrawals read one balance ₦150,000 per race Ledger mismatch, next morning Ledger hold with an idempotency key before the NIP call. Payments
A5 Bots trigger confirmation codes to premium numbers Message bill Spike on the provider invoice, daily Limits per number and per country. Security

Friction: honest sellers who change bank accounts wait a day for their full balance. Measure how many contact support. Blind spot: a seller who sells real goods and cashes out quickly looks like A2. Decision: launch with changes.

Now you

You work in security at Ojaline. Marketing wants a referral credit to launch next sprint: when a new buyer’s first order of at least ₦10,000 is delivered, both the referrer and the new buyer receive ₦2,000 of credit. The quarter’s budget is ₦60m, which pays for 15,000 pairs. Credit can be spent on any seller’s goods. Kubura, a fraud analyst in payments operations, reports that on the last promotion about a fifth of redemptions came from accounts sharing a device with another account. Sellers are also buyers, so a seller can open accounts, order their own goods and be paid into the seller wallet, which pays out by NIP every night. Delivered scans trigger the credit, and the delivery fleet’s scan can be faked in collusion with a rider. Write the abuse-case review: at least five cases, with ceilings in naira, the controls, the owners, and your decision on the launch date.

Self-check

DECIDE

Ojaline sellers are being taken over with stuffed credentials. In one month 140 seller accounts had their payout bank account changed within ten minutes of a login from a new device. Sellers or support caught 96 before the nightly payout; 44 were paid out, ₦7.9m in all. Inuwa in security calls it a login attack and wants mandatory two-factor authentication. Kubura in fraud calls it a loss and wants fraud to own the rules. Payments engineering says the wallet is theirs. The head of engineering asks you who owns takeover, so the next attack has one answer. What do you recommend?

READING
  1. DOC
    OAT-001 Carding, from the OWASP Automated Threats to Web Applications handbook OWASP

    The handbook names 21 automated threats, among them carding and credential stuffing, each with a definition and countermeasures. Read this entry to see the shared vocabulary security and fraud can use for the same attack.

  2. DOC
    Credential Stuffing Prevention Cheat Sheet OWASP

    Defines stuffing, treats multi-factor authentication as the strongest defence, and states the limits of CAPTCHAs and address blocking. The security half of the takeover case.

  3. DOC
    Protect yourself from card testing Stripe

    A payment provider's own guidance: watch for spikes in failed authorisations, add a CAPTCHA and rate limits, require login for sensitive actions, and supply more signals. A model of friction placed where the attacker is cheap. It is a provider's view and promotes its own tools.

  4. POST
    What Is SMS Pumping Fraud and How to Stop It Twilio

    Explains how phone-number fields become revenue for attackers, and the warning signs. It is vendor content, so read its product claims as claims, and take the pattern and your own limits from it.

  5. DOC
    Abuse Case Cheat Sheet OWASP

    The template for tracking abuse cases, now marked historical with a note that the technique is rarely used in practice. Read it for the structure, then keep your own review to a page.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Running a security incident: command, customer updates, postmortems and tabletops →