SMS Spoofing, Hooking, and Injection: How Attackers Hijack the Mobile Banking Registration Flow

SMS Spoofing, Hooking, and Injection: How Attackers Hijack the Mobile Banking Registration Flow

SMS spoofing isn't just about making a text appear genuine. In mobile banking, attackers may also manipulate phone number verification to get an unauthorized device linked to an account.

By tampering with SMS records or using runtime hooking, attackers can fool the app's verification process. The app may then link an account to a compromised device or a phone number that hasn't been verified correctly.

Follow the registration process step by step to see how these attacks work and what banks can do to block them.

Key takeaways:

  • SIM binding alone cannot prevent mobile banking fraud because attackers can manipulate device signals and bypass registration checks.
  • Attackers can exploit mobile banking registration using SMS spoofing, SIM swaps, runtime hooking, or fake SMS records.
  • Banks should verify registration tokens, SIM status, and SMS records instead of relying only on information reported by the app.
  • Device integrity checks and server-side verification can help banks detect compromised devices and prevent unauthorized registration.
  • Banks can lower fraud risk by combining device binding, token expiry rules, and runtime threat monitoring.

How UPI SIM Binding Works and What It Trusts

UPI registration checks whether the SIM linked to the number is in the phone being used. The bank checks over two channels at once.

First, the app generates a dynamic device-binding token and initiates an SMS from the registered device to a designated virtual mobile number (VMN). The carrier stamps the text with the sender’s number. The app then sends the same token over the internet to the bind API. If both copies match, the bank binds the account to that device and issues a session token.

According to NPCI’s rules, SMS token expiry is capped at 45 seconds end-to-end, and each attempt needs a new token of at least 35 characters.

There are two assumptions that work here:

  • The bank trusts the carrier stamp as proof that the SIM is present.
  • It treats SIM presence as proof the device itself is clean.

UPI registration fraud, on the other hand, targets both.

Why SMS Spoofing Is a Registration Problem, Not a Sender-ID Problem

SMS spoofing typically fakes the sender name on a text that a user receives. But registration fraud works differently. Since the carrier stamp on the bank’s incoming SMS is real, there is nothing to forge.

To get around this, the attack changes what that stamp means. A trojan on the victim’s phone sends the silent SMS from the victim’s real SIM, but with a token given by the attacker. The bank sees a valid number and a valid token. It cannot tell that a remote attacker is behind them.

Mobile number spoofing covers the other half. On the attacker’s rooted phone, the OS is made to report the victim’s number. A forged entry in the Sent folder then passes the app’s own “SMS sent” check.

NPCI also covers phones that can’t run that check. On such phones, the app must auto-read the OTP, with manual entry blocked, and accept messages only from sender IDs it has whitelisted. A phone that supports neither of these capabilities can't register.

The weak spot isn't the sender ID, but what the bank infers from signals it cannot verify.

The UPI Registration Flow Step by Step

Here's what a multi-stage attack looks like where the attacker controls a modified device and has also compromised the victim's phone:

Step 1: Login OTP interception

The attack starts on the victim’s phone. A Trojan may arrive as a fake Vahan challan or wedding invite app and get read and write access to SMS.

The attacker then enters the victim’s number into a payment app on their own phone. The bank sends a login OTP to the victim, and the trojan forwards it to an attacker panel. The victim sees no alert.

Step 2: Binding token capture through hooking

Being logged in is not enough to pay. The attacker must bind the app, so they start UPI registration. The payment app generates a dynamic device-binding token and tries to text it. Here, hooking comes in.

An LSPosed module on the attacker’s rooted phone catches the SMS call, copies the token, blocks the text, and sends the token to a Telegram bot. The app's signature remains valid, even though its runtime is being manipulated. The attacker now has the token but no SIM behind it.

This attack highlights how device-binding tokens can be intercepted and manipulated even when the application passes basic integrity checks. It also raises questions about the security limitations of SIM-based verification mechanisms when runtime protections are bypassed. Our research examines these gaps and explains how attackers can exploit weaknesses in SMV-based verification flows.

Read our research paper: Silent Mobile Verification Is Not a Fraud Prevention Solution to understand how SMV bypass techniques work and why SIM verification alone may not be sufficient to establish device trust.

Step 3: Mobile number spoofing at the OS level

A token alone will not work. The app also reads the number from the SIM, and the attacker’s SIM is the wrong one. So the module hooks those calls and returns the victim’s number from its own configuration.

The app thinks it is registering the victim’s number and has no way to know the answer is false.

Step 4: Fabricated SMS records through injection

The proof of the SIM comes from the victim’s phone. The attacker copies the token from Telegram bot and commands the Trojan to send it as a silent SMS. The carrier stamps it with the victim’s real number, so the bank sees a valid token from a valid number.

The attacker’s app checks that the SMS was sent, and the module blocked it. So the module, taking orders over a live Socket.IO link, writes a fake row into the Sent folder, marked successful. As such, the app’s check finds a clean record.

Step 5: SIM swap fraud and re-binding abuse

A Trojan is not the only way to take over a number. In SIM swap fraud, attackers trick the carrier into transferring a number to a new SIM, allowing them to receive the victim’s OTPs. A correct code then proves only that the SMS reached a SIM, not who holds it.

This is why re-binding is important. When a SIM changes, an app can block login, ask for extra verification or start re-binding. If it skips the SIM state check, a deactivated SIM can still bind a device.

Step 6: SMS token expiry and the timing window

All of this must finish before the token expires. NPCI caps SMS token expiry at 45 seconds end to end. That is the compliance limit, but organizations in practice allow less than 20 seconds. A PSP bank can also shorten it if it sees controls being bypassed. The live server link helps the attacker here, since it allows real-time moves inside time-sensitive windows.

Which Control Closes Each Gap

Stage What the attacker does Control that closes it
Login OTP Trojan forwards the OTP by SMS. Auto read OTP with manual entry blocked, so an attacker needs a Zygisk or LSPosed module to bypass it. Move sensitive steps off SMS. The server pushes to the app, and the app replies over HTTPS.
Token capture A hook blocks the SMS and copies the token. Hook detection and a strong Integrity verdict. Trust API Bind stops API calls from a tampered app.
Mobile number spoofing The OS returns the victim’s number. Hook detection. It spots tools like LSPosed that change the number the phone reports, and ends the session.
Injected record A fake Sent entry says “success.” SMS hooking check. It checks what is calling the SMS send function, and ends the session if a hooking tool like LSPosed shows up.
SIM swap fraud The number moves to the attacker’s SIM. Check SIM state. Block deactivated SIMs. Check for a recent port before sending an OTP, and step up verification if one is found.
SMS token expiry A live server link races the timer. Compliance cap of 45 seconds but under 20 in practice, a new token every attempt, token tied to its VMN, same token from two numbers rejected

None of the controls prevents UPI registration fraud alone. Why? Because trusted signals can fail. This is why layers are essential. ThreatLens adds the monitoring layer. It shows runtime threats by device, OS and app version, and lets teams push supported control updates over the air.

What the App Can Verify Without the Carrier

Only the carrier can confirm if a text crossed the network. An app cannot. A hooked app will report whatever it is told to. So the bank has to stop taking the app’s word and ask the device and the platform for proof. Here are three ways to do this:

  • Hardware backed Attestation

The server sends a random challenge. The app then asks the phone’s secure hardware to create a key tied to that challenge. The hardware signs a certificate chain that shows the key is hardware-backed and how the device booted. The server checks that the chain leads back to Google’s root. This check has to run on the server, because one inside the app can be hooked.

  • Platform integrity checks

Both Google and Apple offer server-side checks. On Android, Play Integrity gives the server a verdict on the app and the device. A missing verdict can. App Attest does a similar job on iOS. The app creates a key, Apple vouches for it, and the server checks it. Each later request is signed and carries a counter, ensuring a replayed request gets caught.

On iOS, App Attest allows the server to validate an attested app instance and verify signed assertions tied to requests. Its counter can also help spot replay attacks. These checks add security, but banks still need to validate the registration process on the server.

  • Request-level trust

Trust API Bind ties every API call to a trusted app instance, a live runtime token and a real user session. Stolen tokens and cloned apps fail.

An LSPosed setup needs an unlocked bootloader or a compromised system partition. A strong integrity verdict can help flag devices that support this attack. Mobile number spoofing and fake Sent entries then start from a device the server already distrusts.

Attestation is still one layer. Verdicts can be spoofed, a hooked app can lie about anything it checks on its own. So pair it with hook detection and the request-level trust. When you compare binding approaches, ask which of these checks the server runs for itself.

What to Ask Before Choosing a Binding Approach

SIM binding is one control inside the app. It's effectiveness depends on the security around it. These six questions can help you check that:

  • Does it hold up on a compromised device? SIM binding alone cannot stop fraud once an attacker controls the runtime.
  • Does the app have RASP? It should spot hooks and a changed runtime. Since the payment app stays untouched on disk, signature checks will not catch these attacks.
  • Is the app protected from Zygisk and LSPosed modules? The attack in this guide relies on an LSPosed module. Bugsmirror MASST protects apps from them.
  • Does trust continue after registration? Check whether each API call is tied to a verified app instance and a live session.
  • Can your team see attacks and respond quickly? Look for threat visibility by device and app version, and control updates that don’t wait for a release.
  • Has it been tested against real attack paths? Red teaming that simulates SMS interception, device spoofing, and workflow bypass shows what a spec sheet won’t.

The End Note

ATO fraud happens because the bank trusts what the device reports. SMS spoofing, hooking, and injection each abuse that trust in different ways, so no single check closes the gap. The controls that work verify the device, the app, and every request, and they don’t take the app’s word for any of it.

Bugsmirror covers this at the runtime layer. Trust API Bind ties each API call to a verified app instance and a live session. ThreatLens shows threats by device and app version, so your team can see attacks and act on them. If you are reviewing your binding approach, test it against the six questions above.

FAQs:

  1. Can SIM binding alone stop UPI registration fraud?

    Ans: No. SIM binding treats SIM presence as proof of a clean device. Once an attacker controls the runtime, that proof stops meaning anything. Add runtime threat detection, and don’t rely only on what the app reports locally.

  2. Is a shorter SMS token expiry enough?

    Ans: It helps, but it doesn’t solve the problem. NPCI caps the timer at 45 seconds, and a PSP bank can shorten it if it sees controls being bypassed. Attackers with a live server link can still work inside that window. Pair expiry with the other token rules, like a new token per attempt and a token tied to its VMN.

  3. What should the server check instead of the app’s success callback?

    Ans: It should confirm that the SMS reached the bank’s gateway with the right timestamp, carrier source number and matching payload. A fake Sent entry fools the app, but it doesn’t pass that check.

Share this article

Help others discover this content

Don’t give fraud a way in. Secure every layer of your mobile app.

100M+

Users Protected

100+

Apps Secured

1000+

Apps Hardened

Emulator detected
Session blocked