Back to all articlesHow to build fraud detection checks from your operations team's own data
Josh KatowitzJosh Katowitz
Operations

How to build fraud detection checks from your operations team's own data

Fraud detection is the work of finding activity that suggests theft of money, goods, data, or services, early enough to stop it or recover the loss. IBM describes it as the process of identifying suspicious activity that indicates criminal theft of money, data, or resources. For an operations team, it usually comes down to two daily checks on data the team already holds: rule checks that flag a known pattern, and anomaly checks that flag activity far outside an account's or a location's normal range. A person reviews each flag and records the outcome.

The examples follow Maya, the compliance lead at a prepaid wireless brand that sells through five stores. Maya, the brand, and every count below are invented for this post, and none of it comes from a customer.

Start from the patterns your data already records

Fraud reaches an operations team from two directions. External fraud comes from customers or outsiders: stolen cards, fake accounts, promotion abuse, and account takeover. In telecom, the US Federal Communications Commission describes SIM swap and port-out fraud as two practices bad actors use to take control of consumers' cell phone accounts without gaining physical control of the phone. Internal fraud comes from staff, such as credits issued to friends or accounts opened to hit a target. The Association of Certified Fraud Examiners (ACFE) calls fraud against the organization a person works for occupational fraud.

Write each pattern down next to the data that would show it:

AreaExample patternData that shows it
Account securityA SIM change followed by a password reset within an hourSIM change log, login and reset events
PaymentsOne card used across several new accountsPayment tokens, account creation records
PromotionsMany signups from one device to reuse a new-customer offerDevice IDs, promotion redemptions
Refunds and creditsOne agent issues credits far above peersCredit ledger with agent IDs
Stores and channelsOne location's activations or SIM changes spikeTransactions by store and day

The ACFE's 2026 Report to the Nations, based on 2,402 occupational fraud cases, associates anti-fraud controls, including proactive data monitoring and analysis, with lower fraud losses and quicker detection. That is an association across organizations. It does not show that any single check pays for itself.

Write rules for the patterns you can describe

F5's fraud detection glossary describes rule-based systems as checking incoming data against predefined conditions and alerting when one is met, and anomaly detection as flagging deviations from a baseline of normal behavior. Most teams run both kinds.

Rule checkAnomaly check
CatchesKnown patterns you can describeChanges you did not predict
Written asA condition, such as "one card on 4 or more new accounts in 7 days"A baseline and a distance, such as "modified z-score above 3.5 against this store's last 14 days"
StrengthEasy to explain to reviewers and auditorsAdapts to each store's, agent's, or account's own normal
WeaknessMisses new patterns, and a fixed threshold ignores scaleFlags legitimate surprises, such as a promotion or a phone launch

A rule records a pattern someone has already confirmed, which makes it easy to defend to an auditor. An anomaly check covers what nobody predicted, and when a reviewer confirms an anomaly, the pattern behind it often becomes the next rule.

Give each store a baseline of its own

Maya's team watches daily SIM changes per store, because a burst at one location can mean changes bypass proper customer checks. She tries two ways to flag a store. The first is a fixed rule: flag any store with more than 15 SIM changes in a day. The second compares today's count with the same store's last 14 days, using the modified z-score from the NIST/SEMATECH e-Handbook of Statistical Methods:

Modified z = 0.6745 × (today - median) ÷ MAD

MAD, the median absolute deviation, is the median of each day's distance from the median. NIST cites Iglewicz and Hoaglin's recommendation to label values with an absolute modified z-score above 3.5 as potential outliers. Medians keep the baseline steady, since one large spike moves a median far less than it moves a mean.

To reproduce one row: Store C's 14 days were 4, 2, 5, 3, 4, 6, 3, 5, 5, 4, 3, 4, 6, 2. Sorted, the two middle values are 4 and 4, so the median is 4. The distances from 4, sorted, are four 0s, six 1s, and four 2s, so the MAD is 1. Today's 11 gives 0.6745 × (11 - 4) ÷ 1 = 4.72.

Store14-day medianMADTodayModified zFixed rule (above 15)Anomaly check (above 3.5)
Store A222240.67FlagNo flag
Store B61198.77FlagFlag
Store C41114.72No flagFlag
Store D91122.02No flagNo flag
Store E151160.67FlagNo flag

The fixed rule flags Stores A, B, and E. Two of those flags land on large stores having ordinary days: Store A was above 15 on all 14 baseline days, and Store E on 5 of them. The same rule misses Store C, where 11 SIM changes is 2.75 times its usual 4. The anomaly check flags only Stores B and C, the two that moved far from their own normal. One number for every store flags the busiest locations and misses the small ones.

Two situations break the formula. When most baseline days share one count, the MAD is 0 and the formula divides by zero, so set a floor, such as 1. When a store has been compromised for weeks, its own baseline already contains the fraud and looks normal, so compare each store with its peers as well as with itself.

Score each check by what reviewers confirm

After 30 days, Maya's team compares its checks by what reviewers found. The table assumes 30 minutes of review per flag.

CheckFlagsConfirmedPrecisionReview hoursConfirmed per review hour
R1: SIM change, then password reset within 1 hour401845.0%20.00.90
R2: One payment card on 4 or more new accounts in 7 days251040.0%12.50.80
R3: Store above 15 SIM changes in a day4624.3%23.00.09
A1: Store modified z-score above 3.56466.7%3.01.33

Precision is confirmed cases divided by flags. R3 used 23.0 of the 58.5 review hours, or 39.3%, and found 2 of the 34 confirmed cases, or 5.9%. The team retires R3 and keeps R1, R2, and A1. A1 rests on only six flags, so the team watches it for another month before trusting its precision.

Precision says nothing about fraud that no check flagged. To find those misses, count the confirmed cases that arrived another way, such as a chargeback, a customer complaint, or a tip, and ask which check should have caught each one first.

Collect the data the checks depend on

  • Events, each with a timestamp, an account ID, the store or agent ID, and the event type.
  • Identity links such as device IDs, payment tokens, and contact details, which connect accounts that belong together. Hash sensitive values where the check needs only to match them.
  • Review outcomes: every flag with the check name, the reviewer, the decision (confirmed or cleared), and the date. Without outcomes, no one can measure precision.
  • A calendar of known reasons for spikes, such as promotions, phone launches, store openings, and outages, kept where the checks can read it.
  • Late labels. Chargebacks and complaints arrive weeks after the event, so recalculate precision once those labels settle.

Check the pipeline before a reviewer calls a store. A renamed event, a delayed load, or two stores merged in the system can produce a spike that looks like fraud.

Give every flag an owner and a deadline

Assign each check an owner, a review deadline, and fixed outcome codes. A check that sends alerts to a shared inbox with no named reviewer builds a backlog that nobody works. Keep detection separate from the decision to hold an account or freeze a store, so a reviewer confirms the evidence before anyone acts on a customer. Log every change to a rule or threshold with its date, so precision can be compared before and after the change.

When a flag holds up, the next question is why that store or account moved. Our post on AI root cause analysis explains how to split a move into its drivers.

How Maya's team would run the checks in Orion

Dedicated fraud tools score an event as it happens and can stop it. Stripe Radar, for example, evaluates transactions, accounts, and customers in real time with AI algorithms that assess fraud risk, and its rules can allow, block, or review a payment, or request 3D Secure authentication. That kind of tool belongs at the point of payment. A spreadsheet works while volumes are small, and a notebook suits a data scientist who builds and maintains a scoring model. Orion, the analytics platform, fits the daily review across the team's own data, including activity a payment tool never sees, such as store SIM changes and agent credits.

Suppose Maya's team moved its daily review into Orion. The setup starts with what Maya knows. She tells Orion how her team judges a flag: the rules, the baseline window, the MAD floor, what counts as confirmed, and which stores spike for known reasons. Orion writes each of those into Context pages and reads them whenever it runs the checks. Her first request in chat reads:

"Using the fraud check definitions in Context, list yesterday's accounts that match each rule. For each store, compare yesterday's SIM changes with the median and MAD of the prior 14 days, flag modified z-scores above 3.5, and treat a MAD of 0 as 1. Then join last month's review outcomes and show flags, confirmed cases, and precision by check, with the SQL."

Orion answers with a notebook whose SQL and Python Maya can read, edit, and rerun, and it suggests making the store comparison a daily check. Once its numbers match her own reference calculation, she asks Orion to build the Workflow, reviews the dry run, and approves it.

On Monday at 7:00 the review list from the approved Workflow is in the compliance group's inbox by email, with Sunday's rule matches and every store whose modified z-score passed 3.5. One store's score looks too high for a quiet weekend. Orion has a question card waiting for Maya: did that store run a promotion or a launch over the weekend? The store had opened a new phone display on Saturday. She answers, Orion proposes adding the launch to the Context page of known spike reasons, and she applies the change. Her reviewers work the rest of the list by noon and record each outcome. On the first Monday of each month, Maya asks for flags, confirmed cases, and precision by check, and the team decides which checks stay.

One telecom compliance team runs this pattern in Orion: a daily check flags the accounts that need a review, and the list goes to the people who work it.

Keep, rewrite, or retire each check

Bring each check to the monthly review with its flags, confirmed cases, and review hours. Retire or rewrite any check that spends review time and finds no cases, and name an owner for each check that stays.

Then list the confirmed cases that no check caught. For each one, decide which rule or baseline would have found it first, and add that check before the next review.

Keep reading

View all