Quick answerTo recover a hijacked WhatsApp, reinstall or open WhatsApp and register your own number again; entering the fresh SMS code logs the attacker out. Then turn on two-step verification, remove unknown linked devices and warn your contacts. If the attacker set a two-step PIN, you may have to wait up to 7 days before you can reset it.

WhatsApp takeovers usually start with a message from a friend's number: "I sent you a code by mistake, please forward it." That 6-digit code is the login code for your own account. Once the attacker has it, they register your number on their phone, lock you out, and message your contacts asking for urgent money transfers.

Recover it in this order

  1. Open WhatsApp on your phone (reinstall if needed) and verify your phone number again. You'll get a fresh SMS or call code; entering it logs the attacker out.
  2. Turn on two-step verification: Settings → Account → Two-step verification. Set a 6-digit PIN and add a recovery email.
  3. Open Settings → Linked devices and log out every device you don't recognise.
  4. Message your contacts and post a status: "My WhatsApp was hacked. Don't send money to anyone using my number."
  5. If anyone lost money, they should call their bank or wallet helpline and you should file a cyber crime complaint.

If the attacker set a two-step PIN

If the attacker turned on two-step verification first, WhatsApp will ask for a PIN you don't know. You can still get back in: after re-registering, the attacker is logged out and cannot use your account, but you will have to wait up to 7 days before WhatsApp lets you reset the PIN. Keep the app installed and try again after the timer ends. You can also email WhatsApp support from the app's Help section with the subject "Lost/Stolen: Please deactivate my account" if you cannot get back in at all.

If WhatsApp says you've requested too many codes

Wait for the timer shown on screen. Don't keep requesting codes, which extends the wait. Use the time to warn your contacts through another app or by phone.

How to stop it happening again

  • Never share a WhatsApp code with anyone, even a close friend. WhatsApp never asks for it.
  • Keep two-step verification on permanently.
  • Set your voicemail PIN; some attackers request the verification code by voice call and read it from an unprotected voicemail.
  • Check Linked devices once a month.

Frequently asked questions

Can someone hack my WhatsApp without the code?

Rarely. Most takeovers happen because the 6-digit verification code was shared, or a linked-device QR code was scanned. Two-step verification blocks most of these attacks.

Will I lose my chats if my WhatsApp is hacked?

Your chat history is stored on your phone and in your own backup, not on the attacker's phone. When you re-register on your phone you keep your local chats.

How long does WhatsApp take to unlock after two-step verification is reset?

If you don't know the PIN, WhatsApp makes you wait up to 7 days before you can reset it without the PIN.

Related guides