Mobile Security & Privacy

SIM Swapping Attacks: How They Work and Prevention Strategies

David Okonkwo Embedded Systems Engineer August 28, 2026 8 min read

Your phone number was never designed to be an identity credential. Yet for banks, email providers, and crypto exchanges, it often is. SIM swapping exploits that design flaw — transferring your number to an attacker’s SIM in minutes and bypassing SMS-based security without ever touching your device.

From an embedded systems perspective, the SIM is elegant: a tamper-resistant UICC containing an IMSI, Ki key, and authentication algorithms that prove to the network you are who you claim to be. The vulnerability isn’t in the cryptography on the card. It’s in the human-operated provisioning systems that bind that IMSI to your phone number (MSISDN) in the carrier’s HLR/HSS database — and the fact that so much of modern authentication trusts that binding implicitly.

Core insight: SIM swapping is not a radio exploit. It’s an identity provisioning attack. The attacker doesn’t clone your SIM’s Ki key — they convince the carrier to remap your MSISDN to a new IMSI they control.

1. The Attack Chain: From OSINT to Account Takeover

Most SIM swaps follow a predictable five-stage pipeline. Understanding each stage helps you break the chain.

Stage 1 — Reconnaissance & Data Harvesting

Attackers start with open-source intelligence (OSINT): data broker listings, breach dumps, LinkedIn, and previous phishing. They need the target’s full name, phone number, carrier, date of birth, last four of SSN, and billing zip — often enough to pass a carrier’s knowledge-based verification. For high-value targets, spear-phishing or SIM-adjacent malware on cross-platform framework apps can collect this directly.

Stage 2 — Social Engineering the Carrier

The attacker contacts carrier support via phone, chat, or in-store visit, impersonating the victim. Pretexts vary: “my phone was stolen,” “I need to activate my new eSIM while traveling,” or “port my number to this new carrier.” Weak verification is the enabler — answers to security questions, recent call history, or a photocopied ID that store reps are not equipped to authenticate. In some documented cases, attackers have bribed retail employees directly, bypassing verification entirely.

Stage 3 — HLR/HSS Remapping

Once verified, the agent performs a SIM change: dissociating the victim’s MSISDN from the original IMSI and linking it to the attacker’s SIM/eSIM profile. This update propagates through the Home Location Register (HLR) for 2G/3G or Home Subscriber Server (HSS/UDM) for LTE/5G. No over-the-air signal attack is needed. Unlike vulnerabilities in the mobile RF frontend architecture, the network itself considers this a legitimate administrative action.

Stage 4 — Interception & Enumeration

Within minutes, SMS and voice calls route to the attacker. The victim’s phone drops to “SOS” or “No Service” — often mistaken for poor signal reception. The attacker now triggers password resets on email, banking, and social accounts. Any service that sends an OTP or reset link via SMS delivers it straight to the hijacked number.

Stage 5 — Lateral Takeover

Email is the master key. Once the primary email is recovered via SMS, the attacker enumerates other accounts, disables 2FA, and exfiltrates funds or data. Crypto wallets, payment apps, and enterprise SSO accounts are prime targets because they historically defaulted to SMS fallback even when stronger factors were enrolled.

2. Why the Cellular Trust Model Is Broken

The global SS7/Diameter signaling system that interconnects carriers was designed in the 1970s-80s for trusted operators, not adversarial environments. While modern mobile GPU architecture and baseband isolation have hardened device security, the carrier identity layer remains soft.

Mobile Connectivity Standards Comparison
Feature 5G NR Wi-Fi 7 Bluetooth 5.4
Peak Throughput20 Gbps46 Gbps2 Mbps
Latency1–4 ms1–2 ms3–6 ms
RangeSeveral km30–50 m100–400 m
Power DrawHighMediumUltra-low
Primary UseCellular dataLocal networkingPeripherals/IoT
SIM ≠ Identity

The SIM authenticates a device to the network. Carriers repurposed the phone number as a user authenticator for third parties — a role it was never designed for.

Porting vs. SIM Swap

Porting moves a number between carriers (regulated). SIM swap reassigns a number within the same carrier. Both remap the MSISDN-IMSI binding and have the same security impact.

Three structural weaknesses persist:

eSIM and 5G SA have not fixed this. While eSIM enables remote provisioning via SM-DP+ servers, it adds another remote social-engineering surface. The fundamental issue is logical, not physical: whoever controls the HLR/HSS entry controls your number.

3. Visualized: SIM Swap Attack Flow

SIM Swap Attack Flow Block Diagram Five-stage block diagram showing the SIM swap attack chain from OSINT to account takeover. 1 OSINT & Data Harvest Breach data, SSN, carrier, DOB 2 Social-Engineer Carrier Impersonate victim, bribe insider 3 HLR / HSS Remap MSISDN → attacker IMSI/eSIM profile 4 Intercept OTP & Calls Victim = SOS / No Service 5 Account Takeover Email, bank, crypto drained TIME → 10 TO 30 MINUTES TYPICAL • VICTIM DETECTION AT STAGE 4
Figure 1: SIM swap attack lifecycle. The critical remapping occurs in carrier core databases (HLR/HSS/UDM), not over the air. All later stages are automated OTP harvesting.

4. Authentication Methods Compared

Not all second factors are equal. The key metric is whether control of your phone number compromises the factor. From a firmware perspective, SMS is a clear outlier: it relies on network state rather than device-bound cryptography.

Factor Bound To Vulnerable to SIM Swap? Phishing Resistant Recommendation
SMS OTP Phone number (MSIDN) Yes — Directly No Deprecate. Remove as fallback if possible.
Voice Call OTP Phone number Yes — Directly No Avoid. Same routing as SMS.
TOTP App (Authenticator) Device secret + time No Partial Good. Enable cloud backup carefully.
Push Approve (e.g., Duo) Device + app instance No Partial (prompt bombing risk) Good. Require number matching.
FIDO2 / Passkey (Hardware) Secure enclave + origin No Yes Best. Eliminates bearer-token risk.

If you take one action after reading this, make it this: migrate off SMS 2FA to a TOTP app or passkey, and then remove your phone number as a recovery option where services allow it. Keeping SMS as a fallback negates the upgrade.

5. Defense in Depth: Three-Layer Prevention

As with RF design, defense is layered. No single control is sufficient against a motivated attacker with breached PII. You need carrier-level, account-level, and operational controls.

Layer 1 — Harden the Carrier

Layer 2 — Harden the Accounts

// VULNERABLE: SMS as authentication fallback if (user.verify(smsOtp)) { grantAccess(); // attacker who controls MSISDN passes here } // ROBUST: WebAuthn - phishing-resistant, device-bound const credential = await navigator.credentials.get({ publicKey: { challenge: serverChallenge, rpId: "yourbank.com", // bound to origin userVerification: "required" } }); // Private key never leaves secure enclave; SMS interception is irrelevant

Layer 3 — Harden Your Operations

6. If You’ve Been Swapped: 15-Minute Response

Time matters. Attackers automate password resets within minutes of intercepting the first OTP.

  1. Don’t power-cycle repeatedly. Use a different device to call your carrier’s fraud line (not regular support) and request an immediate SIM freeze and number reclaim.
  2. Secure email first. From a clean device, change your primary email password and revoke active sessions. Email is the pivot for all other resets.
  3. Freeze financial access. Contact banks, rotate passwords, and place a temporary transaction hold if available. Check for added forwarding rules or API keys.
  4. Document and report. File an FCC complaint, FTC identity theft report, and police report. Request a port history log from the carrier — this is critical for disputes and insurance claims.

After recovery, perform a full rotation: new passkeys, new TOTP secrets, new recovery codes, and a new carrier PIN. Assume any secret sent via SMS during the compromise window is burned.

Frequently Asked Questions

Can an eSIM be SIM swapped?

Yes. eSIMs use the same backend mapping as physical SIMs. An attacker can trick a carrier into pushing a new eSIM profile (via SM-DP+ servers) to their device using stolen identity data. Physical form factor doesn’t matter — the HLR/HSS database entry does. Use the same carrier locks for eSIM.

Does turning on carrier port-out protection stop SIM swapping?

It helps substantially but isn’t absolute. A Number Transfer PIN forces the agent to verify an additional secret before porting or swapping. However, some carrier workflows still allow supervisor overrides with weaker checks, and insider collusion can bypass it. Pair carrier locks with non-SMS 2FA for real protection.

Is authenticator app 2FA safe from SIM swapping?

Yes. TOTP codes are generated locally from a shared secret and the current time — they are never transmitted over the cellular network. Controlling your phone number gives an attacker no access to those codes. FIDO2 passkeys are even stronger because they are cryptographic and phishing-resistant.

How quickly can a SIM swap attack happen?

The provisioning step itself takes 10–30 minutes if the attacker can pass verification. Automated OTP harvesting starts immediately after, and full account takeover often completes within an hour — before most victims realize the “no service” indicator is an attack rather than a network outage.

About the author: David Okonkwo is an embedded systems engineer specializing in baseband firmware, secure elements, and cellular IoT provisioning. He has worked on eUICC integration and carrier certification for low-power LTE-M deployments.

References & Standards: USB Implementers Forum · IEEE 802.11