Risk-based step-up rules for outgoing payments, written as a small TOML policy, and a false-positive analysis that shows which legitimate customers the rules stop, which single signal caused it, and what an exemption would let through.
The signals are the ones fraud teams already have: how old the session is, whether the device is new, whether the phone number's SIM changed recently, how the amount compares with the customer's usual largest payment, and whether the payee is new. A rule turns a combination of them into step up, hold or deny. The engine also picks the step-up method, and drops the ones a signal has made worthless: no SMS code after a SIM change, no device biometric on a device first seen yesterday.
Built and maintained by Art Akopian, CEO of Banrox.
Engineering checklist, not legal advice. The thresholds in
examples/are illustrations, not recommendations. The analysis runs a simple model of who can pass which step-up; it is a way to compare policies, not a prediction of your fraud losses. Tested on synthetic data only: every customer, payee, device and amount in this repository is made up.
Instant payments settle in seconds and cannot be pulled back by the sender's bank. The FedNow Service allows up to $10 million per credit transfer, with a $100,000 default that participants can change (FedNow Operating Procedures). So the last cheap moment to stop a takeover is before the payment is sent, and step-up authentication is the usual tool.
Two things make step-up harder than it looks:
- It annoys the wrong people. The rules that catch takeovers (new payee, large amount, fresh session) also catch a customer moving her savings to her own account at a new bank and then paying a car dealer the next day. She gets asked twice. Most fraud teams know their catch rate; fewer know how many good customers hit the same rule and what they were doing.
- It only stops someone who is not the customer. In a "phantom hacker" scam the FBI describes callers posing as tech support, then the bank, then the government, who get the victim to move savings to a "safe" account (IC3 PSA I-091223-PSA). The customer is on her own phone, in her own session, and passes any step-up. Only a hold, and the conversation it makes room for, has a chance.
On the method side, NIST SP 800-63B-4 lists out-of-band authentication over the phone network (SMS or voice codes) as its one restricted authenticator, and says verifiers should consider risk indicators such as device swap, SIM change and number porting before sending a code that way (NIST SP 800-63B-4). The FBI has warned about SIM swapping used to take over bank accounts (IC3 PSA I-020822-PSA). The interagency authentication guidance tells banks to assess these risks and layer controls; it does not prescribe a rule set (FFIEC, 2021).
[signals]
new_device_hours = 72
sim_change_hours = 72
[methods]
offer = ["passkey", "push_approve", "totp", "device_biometric", "sms_otp", "voice_otp", "callback"]
no_pstn_after_sim_change = true
no_device_biometric_on_new_device = true
step_up_memory_s = 0
[[rule]]
id = "SU-001"
action = "step_up"
when = { payee_new = true, amount_ratio_gte = 2.0 }
unless = { payee_kind = ["own_account"], payee_own_verified = true }A rule fires when every when condition holds and no unless block holds in full. The strictest rule wins (allow < step_up < hold < deny). For a step-up, the engine starts from offer (strongest first), narrows it to the methods every firing rule allows, drops the ones the signals have spoiled, and asks for the strongest method the customer has enrolled. If nothing is left, the payment is held. step_up_memory_s lets a step-up passed on the same device cover later ones for a while.
Conditions: payee_new, new_device, sim_change, payee_own_verified (true or false), session_age_s_lt, amount_cents_gte, amount_ratio_gte (numbers), channel and payee_kind (lists).
pip install 'stepup @ git+https://github.com/BanroxArt/step-up-policy'
stepup fp examples/payments.jsonl --policy examples/policy-base.toml --compare examples/policy-exempt.toml
stepup decide examples/journeys.jsonl --policy examples/policy-base.toml
stepup synth --out synthetic.jsonl -n 20000fp needs labelled payments: legit, ato (someone else is driving the session) or app (the customer is sending, directed by a scammer). For each policy it reports:
- legitimate payments interrupted, and how many legitimate customers were interrupted twice or more;
- takeovers stopped, and which got through;
- scam payments held, stepped up and sent anyway, or allowed;
- per rule, hits on each label and the takeovers that only that rule stopped;
- the most common legitimate interruptions, grouped by rules, payee type and channel, with an example;
- for each legitimate interruption, which single signal would have avoided it if it had been benign (payee not new, amount within the usual, older session, ownership verified, and so on).
With --compare it lists, payment by payment, what the second policy changes: good customers relieved, takeovers let through, scam payments that now meet no friction at all.
A step-up stops a takeover only if the method asked for is one the attacker does not control (attacker_controls in the data: a swapped SIM gives SMS and voice codes; a real-time phishing page relays SMS and TOTP codes). A step-up never stops a scam payment, because the customer is the one authenticating. Holds and denials stop the payment for now. Push approval is treated as out of the attacker's reach, which is generous: push fatigue attacks exist. Change the data if your threat model differs.
examples/journeys.jsonl has four payments:
| id | what happens | base policy | with the two exemptions |
|---|---|---|---|
| j1 | Maria moves $40,000 to her own, verified account at a credit union | step up (SU-001, SU-004) | step up (SU-004: large, five minutes after login) |
| j2 | Next day she wires $35,000 to the car dealer | step up (SU-001) | allowed: her step-up on this phone 26 hours earlier covers it |
| j3 | Walter sends $30,000 to an exchange account in his own name, coached by a fake fraud-team caller | step up by SMS, which he passes | allowed with no interruption |
| j4 | Dana's number is ported; a new phone pays a new payee 77 minutes later | hold (SIM change and new payee) | hold |
The exemption that spares Maria is the same one that waves Walter through. Ownership verification proves the account is his; it says nothing about who told him to open it.
On the 1,500 synthetic payments in examples/payments.jsonl the base policy interrupts 133 of 1,323 legitimate payments (10.1%), and 52 customers twice. The two exemptions cut that to 81 (6.1%) and no customer twice, stop the same 70 of 93 takeovers, and let 3 more scam payments through untouched. Of the 23 takeovers that get through either way, 18 passed an SMS code and 5 a TOTP code relayed by a phishing page: customers who had enrolled nothing stronger. These numbers describe the generator and nothing else.
Real, with sources in docs/sources.md: the FedNow limits, the NIST classification of SMS and voice codes and its SIM-change advice, the FBI descriptions of SIM swapping and phantom hacker scams, and the FFIEC guidance's risk-based approach.
Not real: every payment, customer and label; the thresholds; and the pass model, which is a deliberate simplification. Nothing here says how often any bank's customers are scammed or how well any authenticator performs.
The tool does not authenticate anyone, read device signals, or talk to a carrier. It takes the signals you already have and shows what a rule set does with them.
make check # ruff, content lint, mypy --strict, pytest
python bench/run.pyMIT licence. Copyright (c) 2026 Banrox Inc.