Use case
Protecting OTP and SMS 2FA flows end to end
SMS one-time passcodes are only as trustworthy as the number receiving them. A phone check belongs at two points in the flow: when a number is enrolled for SMS 2FA, and immediately before a high-risk action relies on a code. Each point uses a different signal, and neither replaces the other.
Why SMS OTP is a weaker factor than it looks
SMS as a second factor assumes the number is a good proxy for possession of the customer's device. See PSD2 SCA and the weakness of SMS OTP for how this undermines the independence strong customer authentication relies on.
Two points in the flow where a check helps
Before accepting a number for SMS 2FA, check numberType. Mobile is the expected value; premium and tollFree numbers are unusual for a personal SMS 2FA enrolment. VoIP and virtual numbers return null, so null is not proof either way.
Before honouring an OTP for a sensitive action such as a password reset, a new device enrolment or a high-value transaction authorisation, check SIM swap recency. A number can pass the enrolment check and still have been swapped since. Telebase detects recent SIM swaps with a single API call. See how to detect a SIM swap before sending an OTP for the decision logic, or the SIM swap API reference.
Signals used in this flow
- numberType: flags premium and toll-free numbers at enrolment
- simSwap: confirms recency before a high-risk action relies on the code