A one-time passcode only proves that someone had the code, and fraudsters have built automated services that get the real customer to hand it over within seconds of it being sent. OTP bots place spoofed calls or texts that impersonate a bank or service and ask the victim to read or type the code they have just received, while phishing kits relay codes typed into a lookalike page straight to the attacker. Both defeat SMS, voice, email and authenticator app codes without breaking any cryptography. This guide is for fraud teams and customer identity (CIAM) owners: it explains the attack flow at a high level, why code hygiene does not fix it, and which controls actually stop it, from message wording and transaction binding to passkeys and risk signals. For code design, delivery and SMS pumping, see the OTP security guide, which this page builds on rather than repeats.
Key takeaways
- Relay beats every code setting. NIST SP 800-63B-4 states that OTP and out-of-band authentication are not phishing-resistant, because a manually entered code is not bound to the session it is typed into.
- The victim is the weak link by design. OTP bots turn a stolen password into account takeover by asking the real customer for the code at the moment the attacker needs it, so the fix cannot rely on customer vigilance alone.
- Say what the code does. A message that names the action, the amount and the payee, and says "we will never call you to ask for this code", gives the customer a fair chance to refuse; EU PSD2 rules already require codes to be specific to amount and payee.
- Passkeys end the attack class. WebAuthn binds the credential to the site's domain, so there is nothing for the victim to read out and nothing for a lookalike page to relay.
- Detect the relay pattern. A code requested from one device and network and entered moments later from another, or a burst of code requests followed by a sensitive change, is a strong signal you can act on before money moves.
How OTP bots and relay work
Both attack styles start after the criminal already holds something: usually a username and password bought from a breach dump or harvested by phishing, or card details for a 3-D Secure purchase. The OTP is the last barrier. Threat intelligence reporting from Intel 471 (December 2022) and Recorded Future (July 2022) describes OTP bots as rentable, largely automated services run through chat platforms, which lowers the skill needed to run them.
Voice and SMS bots (code talked out of the user)
- Trigger: the criminal starts a real login, password reset, payment or card purchase, which makes the genuine service send a code to the genuine customer.
- Pretext: at the same moment the bot calls or texts the customer, with caller ID spoofed to look like the bank, a payments firm or a government body, using a recorded or synthetic voice.
- Ask: the script says something like "to block a suspicious payment, enter the code we have just sent you". The customer sees a real code from the real sender and complies.
- Relay: the code reaches the criminal almost instantly and is used before it expires. Some services also automate the login step.
Phishing relay (code typed into a fake page)
Here the victim is lured to a lookalike login page. The kit forwards the username and password to the real site in real time, the real site sends a code, the victim types it into the fake page, and the kit forwards that too. In the Twilio breach 2022, the phishing kit captured employees' passwords and one-time codes and relayed them to the attackers through a chat bot so they could be used before expiry. More advanced kits proxy the whole session and steal the session cookie, covered in the AiTM Phishing Guide.
In MITRE ATT&CK terms these map to T1111 Multi-Factor Authentication Interception and T1566.004 Spearphishing Voice, with T1078 Valid Accounts as the outcome. Push approval spam is a different technique, T1621 Multi-Factor Authentication Request Generation, covered in the MFA Fatigue and Bypass Guide.
Who is targeted
| Target | What the code unlocks | Typical pretext |
|---|---|---|
| Retail banking customers | Login, new payee, faster payment, raising a transfer limit | "Fraud team" blocking a suspicious payment |
| Card holders | 3-D Secure challenge for an online card purchase | Card provider "confirming" a transaction is not theirs |
| Crypto exchange and wallet users | Login, withdrawal address change, withdrawal | Security team reporting an unknown login |
| Retail, marketplace and delivery accounts | Account takeover to use stored cards or loyalty points | Delivery problem or refund |
| Telecom and email accounts | Password reset, which then unlocks other accounts | Provider verifying a SIM or account change |
| Employees | Corporate SSO, VPN, help desk password reset | IT support or security team |
Consumers carry most of the volume, but the same playbook works against staff, as the Twilio case shows. Older and less digitally confident customers are not the only victims: the pretext succeeds because the code is genuine and the timing matches a call that claims to be protecting them. Wider takeover patterns are in the Account Takeover Prevention Guide.
Why OTP codes fail here
NIST SP 800-63B-4 section 3.2.5 defines phishing resistance as protecting authenticator outputs from an impostor verifier "without relying on the vigilance of the claimant". Codes that a person reads and retypes cannot meet that bar because nothing ties the code to the site or session where it is entered. The usual code controls each solve a different problem:
| Control | What it stops | Effect on a live relay |
|---|---|---|
| Short expiry (NIST: out-of-band secrets invalid after 10 minutes) | Reuse of an old code | None: the relay completes in seconds |
| Single use (NIST 3.1.3, 3.1.4) | Replay | None: the attacker uses it first |
| Attempt throttling (NIST upper bound 100; PSD2 RTS Art. 4: 5 consecutive failures) | Guessing | None: the attacker has the right code |
| Code bound to the request (OWASP ASVS 5.0 V6.6.2) | Using a login code to approve a payment | Partial: limits what a stolen code can do |
Origin-bound SMS format @example.com #123456 | Browser autofill into a lookalike domain | Partial: the user can still type or read it out |
| App-based TOTP instead of SMS | SIM swap and SS7 interception | None: CISA notes app OTP is still vulnerable to phishing |
NIST also classes SMS and voice delivery as a restricted authenticator (section 3.1.3.3): organisations that keep it must assess the risk, offer at least one unrestricted alternative, tell users about the risk and hold a migration plan (section 3.2.9). SIM swap and number porting, the other big SMS weakness, are covered in the SIM Swap Fraud Guide.
Phishing-resistant alternatives
The CISA fact sheet on implementing phishing-resistant MFA calls FIDO/WebAuthn "the only widely available phishing-resistant authentication". WebAuthn uses what NIST calls verifier name binding: the signature is bound to the site's domain, so a lookalike domain receives nothing usable, and there is no code a caller could ask for.
| Option | Stops OTP bots | Stops phishing relay | Best fit | Trade-off |
|---|---|---|---|---|
| Synced passkeys | Yes | Yes | Consumer login and step-up at scale | Recovery flow becomes the new target |
| Device-bound passkeys and security keys | Yes | Yes | Staff, administrators, high-value customers | Hardware cost and distribution |
| In-app approval with transaction details and number transfer | Mostly: nothing to read out | No: still not phishing-resistant under NIST | Banking apps for payment confirmation | Needs app install and good push hygiene |
| SMS or voice OTP with risk controls | No | No | Fallback only, for users with no alternative | Restricted authenticator under NIST |
Decision guidance: for staff, go straight to passkeys or security keys; NIST requires AAL2 verifiers to offer at least one phishing-resistant option and AAL3 requires one. For consumers, offer passkeys at sign-up and after a successful login, make them the default for returning users, and keep OTP as a fallback that triggers stronger risk checks. Smaller services can rely on platform passkeys with no hardware; large banks usually need in-app confirmation for payments as well, because many payments start outside the browser. Rollout detail is in the Passkey Rollout Guide and the Phishing-Resistant MFA Guide.
Protect the side doors. Once passkeys are in place, criminals move to account recovery, phone number changes and the contact centre. NIST treats changing a registered phone number as binding a new authenticator, so require a strong factor for it. See Passkey account recovery and Caller Authentication in Contact Centres.
Transaction signing and context in messages
Where codes remain, make them specific and make the message do the defending. The EU PSD2 regulatory technical standards on strong customer authentication (Commission Delegated Regulation (EU) 2018/389, Article 5) require "dynamic linking" for remote payments: the payer is made aware of the amount and the payee, the code is specific to that amount and payee, and any change to either invalidates it. That is a useful design rule well outside the EU.
Message wording that works against bots
- Name the action first: "Code to ADD A NEW PAYEE" or "Code to CHANGE YOUR PHONE NUMBER", not "Your verification code is".
- State amount and payee for payments: "to send GBP 2,400.00 to J Smith, account ending 4471". A customer told the code will "cancel" a payment can see it will send one.
- Put the refusal line in every message: "We will never call, text or message you to ask for this code. If anyone asks, it is a scam: hang up." Intel 471 notes the message must handle the case where the customer called you, so say "never ask on a call we started".
- Bind to the origin for web codes: end SMS with
@example.com #123456(WICG origin-bound one-time codes, a Draft Community Group Report, not a W3C standard) so browsers only autofill on the right domain. - Keep it short and consistent: one sender ID, one format, no links in code messages, so anything different stands out.
| Weak message | Stronger message |
|---|---|
| Your code is 482913. | Code 482913 to ADD NEW PAYEE J Smith. We will never call you to ask for this code. |
| Use 771204 to verify. | Code 771204 to SEND GBP 2,400.00 to J Smith. Expires in 5 min. Never share it. |
| Verification code: 330918 | Code 330918 to sign in on a new device near Leeds. Not you? Do not enter it. |
Better still, show the transaction details inside your app and ask for an in-app approval or passkey signature, so no code exists to be read out.
Detection signals
Relay leaves a timing and device fingerprint that a single code check never sees. Score these signals together and act before a sensitive change or payment completes.
| Signal | Why it points to relay or a bot | Suggested response |
|---|---|---|
| Code entered from a different device, IP or ASN than the session that requested it | The real customer received it; someone else typed it | Block, require a passkey or in-app approval |
| Correct code entered within a few seconds on a new device after a password-only login | Automated login plus live relay | Step-up, hold sensitive actions |
| New device login followed quickly by new payee, phone, email or address change | Classic takeover sequence | Cooling-off period on payee and contact changes |
| Several code requests for one account across login and reset flows | Bot retrying while the call is in progress | Cap sends, alert the customer through the app |
| Customer reports an automated call asking for a code | Active campaign against your brand (Intel 471) | Raise risk scores, warn customers, report spoofed numbers |
| Credentials for your service offered on criminal markets | Bots need passwords first | Force resets, prioritise passkey enrolment |
| Phone number recently ported or SIM changed | NIST lists device swap, SIM change and porting as risk indicators | Do not send codes to that number for sensitive actions |
Metrics to track:
- Relay-pattern rate: share of OTP verifications where requesting and entering contexts differ.
- Passkey coverage: percentage of active customers and of all staff who sign in with a passkey.
- OTP dependency for sensitive actions: share of payee additions, contact changes and high-value payments still approved by code alone.
- Fraud loss per thousand OTP-approved transactions, trended before and after message and binding changes.
- Time from first customer report of a bot call to brand-wide warning and rule change.
How to implement
- Map every flow that sends a code: login, reset, phone and email change, payee, payment, card 3-D Secure, contact centre verification. Record what each code authorises.
- Rewrite messages first: the cheapest change. Pilot new wording on one flow, measure completion rates and fraud reports, then roll out.
- Bind codes to one request (ASVS V6.6.2) and, for payments, to amount and payee; invalidate on any change.
- Add the relay signals in monitor-only mode for two to four weeks, tune false positives, then enforce step-up on the highest-confidence signals.
- Launch passkeys for staff, then for customers via enrolment prompts after login; keep OTP as a fallback with stricter risk rules.
- Harden recovery and the contact centre so a cooling-off period applies after phone or email changes.
- Roll back safely: keep each rule behind a feature flag with a documented threshold, so a false-positive spike can be reverted in minutes without removing logging.
Framework mapping
| Framework | Reference | Relevance |
|---|---|---|
| NIST SP 800-63B-4 | Sec. 3.1.3, 3.1.4, 3.2.5, 3.2.9 | OTP not phishing-resistant; PSTN restricted; phishing resistance definition |
| NIST SP 800-53 Rev. 5 | IA-2, IA-8, AC-7, SI-4 | Authentication of staff and external users, attempt limits, monitoring |
| NIST CSF 2.0 | PR.AA-03, DE.CM-03 | Authentication; monitoring activity for adverse events |
| OWASP ASVS 5.0 | V6.6.1 to V6.6.4 | PSTN OTP conditions, binding to request, rate limiting, push bombing |
| EU PSD2 RTS (2018/389) | Art. 4, Art. 5 | Attempt limits; dynamic linking to amount and payee |
| MITRE ATT&CK v20 | T1111, T1566.004, T1078 | MFA interception, voice phishing, valid accounts |
Common failure patterns
- Generic code messages. "Your code is 123456" lets a caller claim it will cancel a payment when it actually approves one.
- Training customers to read codes to staff. If your own agents ask for codes on calls you start, bots sound exactly like you. Use in-app verification instead.
- Switching SMS to app TOTP and calling it solved. It fixes SIM swap, not relay; the Twilio kit relayed codes typed into a fake page, which works for any code type.
- Passkeys added but OTP left as an equal option. Criminals simply choose the OTP path; fallback must carry stronger risk checks.
- No cooling-off after contact changes. A relayed code changes the phone number, and every later code goes to the criminal.
- Fraud reports not fed back. Customer reports of bot calls sit in the contact centre instead of raising risk scores the same day.
Practitioner checklist
- Inventory every flow that sends a code and what each one authorises.
- Rewrite code messages to name the action, amount and payee, with a "we will never ask for this code" line.
- Bind each code to a single request and, for payments, to amount and payee.
- Use the origin-bound SMS format on web login codes.
- Detect codes entered from a different device or network than the requesting session.
- Apply a cooling-off period to payee, phone and email changes after a new-device login.
- Move all staff to passkeys or security keys and offer passkeys to every customer.
- Stop agents asking for codes on outbound calls.
- Feed customer reports of bot calls into risk scoring and brand warnings within a day.
Standards and references
- NIST: SP 800-63B-4 Authentication and Authenticator Management
- EUR-Lex: Commission Delegated Regulation (EU) 2018/389 on strong customer authentication
- CISA: Implementing Phishing-Resistant MFA
- FIDO Alliance: Passkeys
- OWASP: Application Security Verification Standard
- WICG: Origin-bound one-time codes delivered via SMS
- Intel 471: Countering one-time password bots
- Recorded Future: Bots for stealing one-time passwords simplify fraud schemes
Related NHI Mgmt Group resources: OTP security · Phishing-Resistant MFA Guide · SIM Swap Fraud Guide · MFA Fatigue and Bypass Guide · Authorised Push Payment (APP) Fraud Guide