Your phone number sits at the center of banking alerts, two-factor codes, password resets, and contact recovery. That makes it a prime target for number hijacking—often called SIM swapping—where an attacker convinces a carrier to reassign your number to a SIM they control or gains physical access to your SIM. Two simple controls dramatically reduce this risk: a SIM PIN and a strong startup password (or passcode) on your device. This guide explains what each control does, how they work together, and step-by-step instructions to turn them on for iPhone and Android.
What Is Number Hijacking (SIM Swap) and Why It Works
Number hijacking is when someone takes control of your phone number so they can receive your calls and text messages. With your number, an attacker can intercept one-time passcodes, reset passwords, impersonate you with contacts, and access banking and crypto accounts tied to SMS-based verification.
Common attack paths include:
- Carrier social engineering: The attacker persuades a mobile rep (in store, chat, or phone) to move your number to a new SIM or eSIM they control.
- Account compromise: The attacker logs into your carrier account via leaked credentials, weak passwords, or no 2FA and initiates a SIM change.
- Physical access: The attacker steals your phone or SIM and uses it in another device to receive your messages and calls.
Because SMS is still widely used for verification, adding friction at the SIM and device levels helps block or slow these attacks, buying you time to notice and respond.
How a SIM PIN and Startup Password Help
These two protections address different layers of risk:
- SIM PIN: A 4–8 digit PIN stored on the SIM itself. When enabled, the SIM stays locked across devices after power-on or SIM removal. No calls, texts, or data can be used until the correct SIM PIN is entered. This frustrates attackers who obtain your SIM physically or insert it into another phone.
- Startup password/passcode: The lock that protects your device at boot (iPhone passcode; Android device screen lock with Secure Startup or File-Based Encryption). It prevents anyone with your phone from getting into your apps or reading your messages—even if the SIM is unlocked.
Together, they reduce the easy wins:
- Thieves can’t just move your SIM to another phone and start receiving your codes.
- If your device is stolen, the startup lock stops access to apps, authenticator codes, and stored data.
- When the phone restarts (sometimes triggered by an attacker), your SIM and device both require secrets to function.
Before You Start: Important Safety Notes
- Write down your SIM’s default PIN and PUK: Many carriers ship SIMs with a default PIN like 0000 or 1234 and a unique PUK (Personal Unblocking Key). You can usually find these on the SIM card packaging, your carrier account, or by contacting support. Keep the PUK somewhere safe. Entering the wrong SIM PIN too many times will permanently lock the SIM and require the PUK.
- Choose a unique, non-obvious PIN: Avoid birthdays, repeats, or 4-in-a-row digits. Don’t reuse your phone passcode.
- Confirm you know your device passcode: If you rely on Face ID/Touch ID, ensure you remember the actual passcode; you’ll need it after restarts.
- Back up first: In case you mis-enter a PIN repeatedly and need to contact your carrier or replace a SIM, current backups minimize disruption.
Enable a SIM PIN on iPhone (iOS 15 and later; similar on newer iOS)
- Open Settings > Mobile Data (or Cellular).
- Tap SIM PIN.
- Toggle SIM PIN on. If prompted for a current PIN, try the default from your SIM packaging or contact your carrier.
- Tap Change PIN and set a new, strong PIN you can memorize.
- Restart your iPhone to test. After reboot, you should be prompted for the SIM PIN before mobile service activates.
Notes:
- If you enter the wrong SIM PIN three times, the SIM will lock and ask for your PUK. Enter the PUK carefully; too many wrong PUK attempts can permanently disable the SIM, requiring a replacement.
- The SIM PIN applies to that SIM across any phone, including if you move it to another device.
Enable a SIM PIN on Android (Stock/Pixel; steps vary slightly by brand)
- Open Settings > Security & privacy (or Security).
- Tap More security & privacy (or Advanced) > SIM card lock (sometimes under Privacy or Password & security on OEM devices).
- Enable Lock SIM card.
- Enter your current SIM PIN (default may be 0000 or 1234; check packaging or carrier portal).
- Tap Change SIM PIN and set a new, strong PIN.
- Restart your phone to confirm you’re prompted for the PIN before mobile service works.
Notes:
- Dual-SIM phones may show multiple SIMs. Set a SIM PIN for each active line.
- As on iPhone, three bad attempts typically trigger PUK requirement.
Set a Strong Startup Password/Passcode
A strong startup lock protects the data and apps that could be abused even without a SIM swap. Avoid simple 4-digit codes if your device supports longer options.
iPhone: Strengthen Your Passcode
- Open Settings > Face ID & Passcode (or Touch ID & Passcode).
- Tap Change Passcode > Passcode Options.
- Choose Custom Alphanumeric Code or Custom Numeric Code of 6+ digits. Longer is better.
- Memorize it. You’ll need it after restarts and occasionally for security checks.
Consider enabling features such as:
- Require Passcode Immediately: So the device always needs the code after lock.
- Erase Data after 10 Failed Attempts: Optional, but only if you have solid backups and are comfortable with the risk.
Android: Strengthen Your Screen Lock and Require at Boot
- Open Settings > Security & privacy (or Lock screen & security).
- Set a Screen lock (preferably a strong password or long PIN; avoid simple patterns).
- On many devices, enable Secure start-up (Samsung: Secure startup; Pixel: device encryption is always on, but you can require the PIN/password at boot). Look for Require PIN/Password to start device or similar.
- Restart to confirm that the device requests your code at boot before loading apps and decrypting data.
Tip: Biometric unlocks are convenient, but ensure the underlying password/PIN is strong. You will need it at startup and occasionally when biometrics are unavailable.
eSIM Considerations
eSIMs can also be targeted via fraudulent activation or profile transfer through your carrier account. A SIM PIN still protects cellular access at boot. To harden further:
- Lock down your carrier account: Use a unique password and enable account-level PIN/port-out protection with your carrier. Many carriers let you add a “port validation” or “number transfer lock.”
- Disable unneeded lines: Remove old eSIM profiles you no longer use.
- Watch for unexpected “No Service” or activation prompts: These can signal a number transfer attempt.
Harden Your Carrier Account to Prevent Port-Outs
Even with a SIM PIN, an attacker could try to reassign your number in the carrier’s systems. Reduce that risk by:
- Setting an account security PIN/passcode with your carrier: This is different from a SIM PIN and is required for changes in-store or over the phone.
- Enabling number transfer lock or port freeze: Available with many carriers; it blocks port-outs until you remove the lock.
- Using strong, unique passwords and app-based 2FA on the carrier portal: Avoid SMS-based 2FA for your carrier login if they support authenticator apps.
- Minimizing public exposure of your number: The fewer places your number appears, the less it can be targeted for phishing and pretexting.
What to Expect After You Enable These Protections
- After every restart: You’ll enter the SIM PIN first to restore cellular service, and your device passcode/password to decrypt and start the phone.
- Wrong entries lock the SIM: After several bad attempts, you must use the PUK. Keep it secure and accessible.
- Minor inconvenience, major upside: These small steps greatly increase the work an attacker must do to hijack your number or abuse your device.
If You Suspect a Number Hijack
Act fast. Minutes matter because attackers often move quickly once they control your number.
- Contact your carrier immediately: Tell them your number may have been ported or swapped without authorization. Ask them to freeze changes and restore your line.
- Change your carrier portal password and add/verify your account PIN: Ensure no one else can make changes.
- Secure your email and financial accounts: Reset passwords, revoke sessions, and switch to app-based 2FA (or hardware keys) where possible.
- Check for password reset emails or new logins: Prioritize banks, crypto exchanges, payment apps, and your primary email.
- Monitor your credit and identity signals: Sudden number hijacks often precede financial fraud. Consider a dedicated monitoring service for alerts and recovery support. One option is SmartCredit for privacy, credit monitoring, and identity protection.
Extra Steps to Reduce SMS Dependence
Since many number-hijack impacts flow from SMS-based login codes, lowering reliance on SMS can further protect you.
- Switch to app-based 2FA wherever available: Use authenticator apps (e.g., built-in code generators or hardware security keys) instead of SMS.
- Use recovery codes and backup methods: Store them offline, not in email.
- Set a separate recovery email and phone: Keep them private and secured with strong 2FA.
- Harden your primary email: Email is a master key; use a long, unique password and strongest 2FA supported.
Troubleshooting and FAQs
What if I forget my SIM PIN?
Don’t guess repeatedly. Retrieve your PUK from your SIM packaging or carrier portal, or contact support. Entering the wrong PUK too many times can permanently disable the SIM.
Will a SIM PIN block Wi‑Fi calling?
Until the SIM is unlocked and cellular service is active, dependent services may not function. Unlock your SIM at boot to restore normal service.
Does Face ID or fingerprint replace a startup password?
No. Biometrics add convenience, but the underlying passcode/password is still required at boot and occasionally during normal use. Choose a strong one.
What if I use multiple SIMs or travel eSIMs?
Set a PIN for each active SIM/eSIM profile. Keep each PUK recorded securely. Test after installing a new travel eSIM to ensure the PIN prompt appears at boot.
Can carriers still port my number if I have a SIM PIN?
Yes. The SIM PIN only protects the physical SIM card from being used. Add carrier account protections like a transfer lock, strong portal password, and an account PIN.
Quick Checklist
- Enable SIM PIN on every active SIM/eSIM.
- Record your PUK safely and separately from your phone.
- Set a strong device startup passcode/password (require at boot).
- Lock down your carrier account with an account PIN and number transfer lock.
- Reduce reliance on SMS for 2FA; prefer app-based or hardware keys.
- Monitor for unusual service loss, login alerts, and financial changes.
Conclusion
Number hijacking thrives on weak defaults and gaps in basic mobile settings. By enabling a SIM PIN and a strong startup password, you add two effective barriers that thwart common tactics—whether an attacker targets your carrier account or your physical SIM. Combine these steps with a locked-down carrier profile and reduced reliance on SMS-based codes to make your number a much harder target. If anything feels off—unexpected “No Service,” phantom resets, or alerts—act quickly and monitor your accounts and credit for suspicious activity while you work with your carrier to secure your line.
Good to Know
A SIM PIN protects the SIM card, not your phone. If you change phones or insert your SIM into another device, the SIM PIN will still be required before the number can be used.