What happens if you share your WhatsApp code?

The short answer

If you share your WhatsApp registration code, the scammer can register your account on their own phone. You're logged out, and your contacts get money requests in your name.

Animated diagram: What happens if you share your WhatsApp code?

WhatsApp account hijacking

When you set up WhatsApp on a phone, WhatsApp sends a six-digit registration code to that phone number, by SMS (Short Message Service) text or by automated call. Typing the code back in proves you control the number. The genuine text even says ‘Don’t share this code with others’. If one arrives when you didn’t ask for it, someone else is trying to set up WhatsApp with your number.

The code is your account’s key, so scammers try to talk you out of it. The defense built for this is two-step verification: an extra password, or a six-digit PIN (personal identification number) on older versions, that WhatsApp asks for on top of the code. It’s optional, so it stays off until you turn it on.

What the WhatsApp code actually does

A scammer types your number into WhatsApp on their own phone, and WhatsApp sends the code to you. Then, from a friend’s account they’ve already hijacked, they message you to say they sent you a code by mistake. Send it, and WhatsApp registers your account on their phone. You’re logged out, and your contacts get money requests in your name.

A second version starts with a link to vote in a dance contest. The page asks for your number, then goes one of two ways. It may ask for the code WhatsApp texted you, which moves your account. Or it may show you a code and tell you to type it into WhatsApp’s own pairing prompt. That second route, which Gen Digital calls GhostPairing, abuses link with phone number and an eight-digit pairing code. It adds the scammer as a hidden linked device without logging you out.

How two-step verification protects your account

  1. It’s off by default. Open Settings, then Account, then Two-step verification, and turn it on.
  2. Set a real password. The new password needs at least 8 characters, with at least one letter and one number. It has been rolling out gradually since August 2026, and existing six-digit PINs still work.
  3. The code stops being enough. When someone registers your number on a new phone, WhatsApp also asks for your password or PIN. A stolen code alone no longer moves your account.
  4. Linked devices need a check. Don’t count on two-step verification against the hidden linked-device trick. For that, look in Settings, then Linked devices, for anything you don’t recognize.

The result: the ‘code by mistake’ scam no longer works on its own, because the scammer would also need a password only you know.

Changing your password is not logging them out

Many people react to a hijack by changing a password. WhatsApp says it plainly: ‘Changing your password won’t remove someone else from your account.’ What works is re-registering WhatsApp on your own phone with your own six-digit SMS code. That logs out all other devices. If the hijacker set their own two-step password, you may have to wait seven days, but entering your SMS code still logs them out.

What to do

  • Turn on two-step verification today: Settings, then Account, then Two-step verification, and set a password.
  • Never send a WhatsApp code to anyone, even a friend, and never type one into a website.
  • Never type a code that a website shows you into WhatsApp’s own linking prompt.
  • Check Settings, then Linked devices, for anything unknown. If you’re locked out, re-register with your own SMS code.

#WhatsAppScam#WhatsAppHack#AccountTakeover#OTPScam#TwoStepVerification#ScamAlert#Phishing#WhatsApp#OnlineSafety#CyberSecurity

Watch it in 60 seconds