← All posts
How-to

How to recover a hacked WhatsApp account and lock it down

Re-register your number to log the attacker out, what to do if they set a PIN you don't know, how to warn your contacts, and the settings that stop a repeat.

To recover a hacked WhatsApp account, open WhatsApp on your own phone, enter your number, and complete registration with the six-digit code WhatsApp sends you. An account can only be active on one phone at a time, so the moment you register, the attacker's phone is logged out. In the simple case that is the whole recovery, and it takes a minute.

The hard case is when the attacker has already turned on two-step verification and set a PIN you don't know. Then you're in a waiting game, covered below. Either way, warning your contacts matters as much as the recovery, because the damage from a hijacked WhatsApp is rarely done to you. It's done to the people who trust messages from your number.

Every settings path here is approximate; WhatsApp moves things between releases. "Settings, then Account" is the shape of the path, not a screenshot.

How WhatsApp accounts get taken

WhatsApp has no password. Your identity is your phone number, and the proof you hold it is the six-digit registration code delivered by SMS or voice call. Every way of taking a WhatsApp account is a way of getting that code without holding the phone. That's the trust boundary, and it's thin.

The commonest route is the registration-code scam. The attacker already controls a friend's account and messages you from it: "I sent you a code by mistake, can you forward it?" The code on your phone is a real registration code, because the attacker just typed your number into WhatsApp on theirs. You forward it. They're in. Nothing was hacked in the technical sense; you handed over the proof of possession.

The second route is a SIM swap: the attacker talks your mobile operator into moving your number to a SIM they hold, and every SMS code then lands with them. The tell is your own phone losing signal for no reason.

The third is call forwarding. WhatsApp can deliver the code by voice call, so if the attacker gets you to "just dial this code to fix the problem", and that code enables forwarding to their number, the call with your code goes to them.

Detection is the same for all three: a WhatsApp registration code arrived and you didn't ask for one. That is never noise. Someone just entered your number on a fresh install.

Recover a hacked WhatsApp account: re-register your number

Registration is the recovery mechanism for the same reason it was the attack mechanism: one number, one active phone.

  1. Open WhatsApp on your phone and enter your number. Request the code by SMS; if it doesn't arrive, request the voice call.
  2. Enter the code. The attacker's phone is now logged out and can't get back without a fresh code sent to your number.
  3. Go to Settings, then Linked devices, and log out anything you don't recognise. Re-registration should clear these, but check.

If neither SMS nor call arrives, suspect a SIM swap or forwarding. Dial your operator's "cancel all diversions" code (their help pages list it) and retry. If the phone has no signal at all, call the operator from another phone and ask whether a SIM change was made. Get the number back first, because until it's yours again nothing downstream is.

Once you're in, follow the ordering in the first hour of a hacked account or run the hacked account triage tool. WhatsApp is rarely the only thing touched.

If the attacker set a two-step verification PIN

Two-step verification is a six-digit PIN WhatsApp asks for when a number registers on a new phone, on top of the SMS code. It's the feature you should have had on. The attacker turned it on after getting in, so when you re-register, WhatsApp accepts your code and then asks for a PIN only they know.

You can't bypass it, and neither can support. What WhatsApp does instead is enforce a waiting period, counted in days, after which the number can register without the PIN. The app shows the remaining time; trust that countdown over anything you read, including this post. If the attacker attached a recovery email to the PIN, the reset link goes to them, not you.

During the wait, two things help. First, WhatsApp's help centre publishes a support email address for lost phones and hijacked accounts. Email it from your own address, say the account is compromised, give the number in full international format, and WhatsApp deactivates the account so nobody can use it until you register again. Get that address from WhatsApp's own help centre, never from a search result or a message from someone offering help; fake "WhatsApp support" is part of the same scam. Second, retry registration every day or two, so you're first through the door when the countdown ends.

Tell your contacts, from a different channel

The attacker's goal is your contacts. The standard moves are "I'm stuck, send money to this UPI ID" and "forward me the code you just got", which recruits the next victim. Both work because the message carries your name and number.

Before you've even finished recovering, message the people most likely to be hit (family, close friends, groups you admin) from somewhere that isn't WhatsApp: a call, SMS, email, another app. Say the account was taken, that any request for money or codes from your number isn't you, and that you'll confirm when it's back. If you're in India and money was sent, report at cybercrime.gov.in or call 1930; speed improves the chance of a freeze. Readers elsewhere should use their national cybercrime reporting line.

Lock it down

Each setting stops a specific thing. The whole set takes ten minutes.

SettingWhere (approximately)What it actually stops
Two-step verification PINSettings, Account, Two-step verificationRegistering your number on a new phone even with the SMS code. Defeats the code scam and most SIM swaps.
Recovery email for the PINSame screenLocking yourself out when you forget the PIN. Use an email that has its own 2FA.
Review linked devicesSettings, Linked devicesA browser or desktop session the attacker linked while in.
Port-out protectionYour operator's app or support lineSIM swap. Ask for a port-out PIN; most operators offer one.
Never forwarding a codeHabit, not a settingThe code scam. No legitimate party ever needs your code.

What the PIN costs: WhatsApp asks for it periodically, not only on new phones, so you'll type it every few weeks, and if you forget it with no recovery email you're the one waiting out the countdown. I think that trade is obviously worth it. I'd rather pay in PIN prompts than explain to my mother why "I" asked her for money.

A hijacked WhatsApp usually involves no malware at all, just a code handed over. If the phone itself feels wrong, signs your phone is hacked covers that separately.

Go and turn on the PIN now, before you read the questions below.

Frequently asked questions

Can someone hack my WhatsApp without the code?

Not realistically through WhatsApp itself. They need the registration code, which means your SMS, your voice calls, or you. Spyware on an unlocked phone or an unnoticed linked device are the other routes, and both are about the phone, not the account.

Will re-registering delete my chats?

Your chats live on your phone and in your own backup (Google Drive or iCloud), not on WhatsApp's servers. Re-registering on the same phone with the same number normally keeps them. The attacker could read messages that arrived while they held the account, but not your history, which was never on their device.

How long is the wait if the attacker set a PIN?

Days, not hours. The app shows the remaining time when you try to register, and that countdown is the authoritative number. Use the time to email WhatsApp's support address from the help centre and to warn your contacts.

A friend asked me to forward a code. Is it always a scam?

Yes. There's no honest reason for a code sent to your number to be useful to anyone else. Even if the message really came from your friend's account, that account is the one that's been taken, and the right reply is to phone them and tell them.

How-toBreaches
Fix this one first. Everything else resets through it.How-to

How to recover a hacked Gmail account, and why it is the one to fix first

The order to recover a hacked Gmail account in, what each step in Google's recovery flow is checking, and the forwarding rules and app grants attackers leave behind.

Three situations, one order of operations eachHow-to

How to recover a hacked Instagram account, step by step

The order of operations to recover a hacked Instagram account in each of the three situations you can be in, then the settings that stop it happening again.

A password change signs nobody outHow-to

Who still has access to your accounts?

Changing your password doesn't sign anyone out, and it does nothing to the apps you connected in 2019. Here are the exact pages to check, and the order to check them in.