Sardine named a Leader in The Forrester Wave™: Financial Crime Management Solutions, Q3 2026

Learn More

Introducing Sardine Rule Recommender Tool: Find rules to catch fraud in one click

Headshot of a smiling woman with long blonde hair.
Annie Liegel
6 min read
bg-image
bg-image
Infographic by Sardine illustrating a "Before" and "After" comparison of fraud prevention methods using bandages: the "Before" side displays a messy, towering pile of adhesive bandages labeled "Manual Rules," while the "After" side shows three neatly arranged bandages labeled "Auto Rule Recommender."
Subscribe to newsletter
Share

When fraudsters hit Sardine's clients, our data scientists don't have the time to wait for a retrained ML model to stop the bleeding. They write new rules on the spot, and so do the clients' own fraud teams. Writing a good rule takes manual analysis first: pulling the data, finding the patterns that separate fraud from good traffic, backtesting every draft and then finalizing the set of rules to deploy.

Sardine customers can now run the Rule Recommender Tool on their own data. It identifies the rules that would catch your fraud without the manual analysis, so your team can respond to an attack quickly and review its rule set on a regular schedule. Our data science team built the tool for internal use, to take over the analysis they ran for each client, and leaned on it through client fraud attacks and periodic analysis before opening it up. You point it at the events and outcomes you already send to Sardine, or at a list of confirmed fraud from an active attack, and it returns candidate rules backtested against that history.

The tool scores every rule on precision, recall, fire rate, and lift, then writes a summary of the fraud patterns behind its picks that reviewers can attach to a rule change approval. Your team makes the final call on each rule before anything goes live.

The analysis our data scientists used to run by hand

Before the tool existed, the data science team ran the same analysis every time a client needed fraud analysis, and some of those clients needed it monthly or quarterly. They pulled and validated the data, explored how each feature was distributed, hunted for the patterns that separated fraud from good traffic, drafted rules, and backtested every one. Then they wrote up the findings and presented them. A data scientist spent about three days on each client, and only a handful of people on the team had the skills to do it.

The team noticed they were repeating roughly three quarters of that analysis step for step from one client to the next, and set out to automate it. The tool now handles the data analysis, pattern finding, rule generation, backtesting, impact evaluation, and write-up.

On our side, data scientists now finish in under a day what used to take three, and people outside the data science team can recommend rules to clients with confidence.

Two ways to run an analysis

Customers can run the tool in two modes, each built around a different question. Both modes run the same analysis and report the same metrics, though each one gets its fraud labels from a different place.

Portfolio analysis

Fraud attack analysis

The question

Where is fraud concentrated across my traffic, and which rules would catch it?

While under a fraud attack, what did this specific set of fraud have in common, and how do I block it quickly?

Where fraud labels come from

Outcomes you report to Sardine through your feedback integration

A list of confirmed fraud events you provide by customer ID, session key, or transaction ID

What it needs

Approved and confirmed-fraud outcomes for the scan window

A complete list of the confirmed fraud events, all inside the scan window

When to use it

Periodic rule reviews, finding fraud your current rules miss, coverage for a flow with enough outcomes

Incident response, a newly discovered fraud ring, bad actors with no labeled history behind them

Portfolio analysis compares approved events against confirmed fraud, which is why it needs both. Teams that run it on a regular schedule can see which fraud slips past their current setup and start paying down their fraud debt. Your feedback data pays off faster, too, since every approved and confirmed-fraud outcome you report can feed a review the next day.

In fraud attack mode, the tool treats every event in the window that isn't on your list as legitimate, so the list needs to be complete. Fraud you leave off ends up in the legitimate population, and every rule the tool recommends will look less precise than it actually is.

Screenshot of a data setup dashboard with a red box highlighting the “Seed Fraud IDs” button, annotated with text instructing users to click it to enter Fraud Attack Mode.

Fraud Attack Mode Inputs

Screenshot of a web dashboard interface titled "Load your data," displaying configuration fields including scan window date range, checkpoint and flow selectors, target ID inputs, and an option to undersample good events.

Inside a single analysis

You start by picking a date window, a checkpoint, and a flow. The window covers a rolling 90 days and has to end at least a day back, since the underlying tables refresh on a one-day lag. By default, the window runs from 120 days back to 30 days back, and you can change it. For a fraud attack analysis, you need to paste in the fraud IDs at this step. Teams on high-volume accounts may need to undersample their good events (somewhere between 5% and 20% usually gets a large dataset to load), and the tool adjusts the rule metrics for the sampling rate so the numbers stay honest.

Before generating any rules, the tool lays out how fraud is distributed in the data you loaded. It puts fraud rate and fraud amount rate side by side so you can compare them. A low event rate next to a high dollar rate means fraud is concentrated in large transactions. The week-over-week and month-over-month trend lines show whether fraud has been steady or spiking. A flat line suits a portfolio review, while a sharp recent climb usually means a discrete incident, which is what attack mode is built for. The last view breaks fraud down by risk level under your current configuration. Your existing setup already surfaces whatever lands in the higher levels, so the tool earns its keep on fraud in the low levels, the events passing through today without a flag.

Dashboard displaying fraud statistics with key metrics at the top and a month-over-month trend chart below showing a declining fraud rate.
Chart and data table showing percent volume and fraud rate across low, medium, high, and very high risk levels, illustrating that transaction volume decreases as fraud rates sharply increase with higher risk.

From there, you pick a path. Generate Rules Now runs the full analysis on Sardine's default settings for column filtering, data types, and screening thresholds, and it's the right call for almost every run. Tune It Yourself opens up each intermediate step instead. You can see which columns the tool excluded and why, change how it reads a column's data type, and loosen the screening criteria when a default run returns fewer rules than you expected. Either way, the output looks the same, because tuning changes the inputs and leaves the analysis alone.

User interface selection prompt asking "How do you want to finish?" with the recommended option "Generate rules now" selected alongside an alternate option, "Tune it yourself."

Every rule arrives backtested

The top of the results page lists the bar every rule had to clear. By default, a single value needs 2x lift or better and at least 10 fraud events to qualify. Further down the page, you'll find single-feature rules, built on one signal and one value or range, and dual-feature rules that pair two signals when the combination beats either one alone. The tool measures each rule against your events on these metrics:

Metric

What it measures

Fire rate

Share of all events the rule would trigger on, and your best proxy for operational and customer friction

Precision

Share of triggered events that are fraud

Recall

Share of total fraud the rule would catch

Lift

How much more concentrated fraud is among triggered events than across the whole dataset

Fraud count

Number of fraud events the rule captures

Percentile

For numeric features, where the rule's threshold falls in that feature's distribution

A single run can turn up a long list of qualifying rules, and plenty of them catch the same fraud. Auto Select trims that list to the subset that covers the most fraud with the least overlap between rules. You can still pick rules by hand, though you'll reach a deployable set faster if you start from Auto Select. Keeping overlap low also stops a new round of rules from becoming the next layer of bandaids.

Once you settle on a set, the tool reports combined fire rate, precision, recall, fraud amount captured, and fraud dollars prevented for those rules working together. Evaluate the set on those combined numbers, since overlapping rules don't add up to the sum of their individual recall figures.

Dashboard interface displaying overall impact metrics and a per-rule breakdown table for fraud detection rules.

Generate Summary, the final step, writes up the account's risk profile, the fraud patterns the analysis found and what connects them, and the distribution behind every feature in the recommended rules, so a reviewer can see why each threshold landed where it did. Teams can attach it to rule change approvals or circulate it for internal review. If you want to know why the tool recommended a rule, or skipped one you expected, expandable sections on the results page document the methodology, including how the tool screened signal values and how Auto Select decides which of two overlapping rules to keep.

Tested on live attacks

Earlier this year, fraudsters recruited a mule ring through social media and used it to open 1,500 accounts in coordination at an APAC digital lender. Sardine's data science team ran the Rule Recommender Tool on the lender's data, comparing signals on the ring's accounts against signals on good accounts. The team had four generalized rules ready in under 1 hour.

With attack mode, the fraud team that spots a ring can run that playbook itself. They list the confirmed accounts, set a window, and review backtested rules without waiting on a data science engagement.

Where the Rule Recommender Tool fits alongside models and agents

In our testing, the tool needs a certain amount of fraud in the data before it can find a pattern. Once a dataset's fraud rate drops below roughly 0.4% to 0.5% (40 to 50 basis points), it finds fewer rules that clear the bar, and teams get more out of Sardine's machine learning models.

Agent Hub's Rule Assistant Agent approaches rule writing from the opposite end. You describe what you want to catch in plain language, and the agent finds relevant features and drafts a rule. The Rule Recommender Tool starts from your labeled outcomes and finds the pattern on its own, which helps most when a team knows which accounts went bad and can't yet say why.