The WhatsApp 6-digit code scam works like this: someone enters your phone number to register WhatsApp on their own phone, WhatsApp texts a 6-digit code to you, and the scammer invents a reason for you to read it back. Once you do, they control your account. Never share that code with anyone. Turning on two-step verification adds a PIN, so a leaked code alone is no longer enough to take your account.
The text message is real, which is why the trick works: the deception is the request that follows it. WhatsApp's help center says the registration code is 6 digits sent by SMS or phone call, that the two-step verification PIN is a separate thing, and that you should never share either one. The FTC gives the same warning about verification codes in general: “Anyone who asks you for your account verification code is a scammer.” Below are the stories scammers use, what to do when a code shows up unasked, and a step-by-step recovery plan if you already shared it.
How the scam works, step by step
- The scammer installs WhatsApp on their phone and types in your phone number.
- WhatsApp sends the verification code to your phone, the same way it does for anyone registering a number.
- The scammer contacts you by text, WhatsApp or phone with a story that gets you to send the code.
- When you share it, the number is registered on their phone and you are logged out. They can then message your contacts as if they were you.
People often call this a “hacked” or “cloned” account, but in this scam the criminal does not break into the app. You hand over the one thing the app asks for.
The stories scammers use
| The pitch | Who they pretend to be | What to know |
|---|---|---|
| “I texted you a code by mistake. Can you send it back?” | A friend or relative whose account may already be taken over | The code that arrived belongs to your number. It is not theirs to get back. |
| “I want to buy your item. I just need to verify you're real.” | A buyer on a marketplace | The FTC describes scammers who target people selling on sites like Craigslist or Facebook Marketplace and ask for a verification code. Its alert is about Google Voice codes, but the move is the same. |
| “I found your lost pet. Send the code so I know you're the owner.” | A helpful stranger | The same FTC alert lists people looking for a lost pet as targets. Its advice: no matter what the story is, don't share the code. |
| “This is the fraud department. We need your code to secure your account.” | Your bank or “support” | The FTC says scammers pose as someone you can trust and claim there is a problem with your account. |
The pitch changes, the ask never does. If someone wants a code that just arrived on your phone, the answer is no, whoever they say they are.
Got a code you didn't ask for? What to do
An unrequested code usually means someone typed your number, on purpose or by mistake. Your account stays yours as long as you don't pass the code on.
| Situation | What to do |
|---|---|
| A code arrives and nobody asked for it | Don't reply, don't click links, don't share it. Delete the text and turn on two-step verification if you haven't yet (next section). |
| Someone asks you to send the code | Don't. Call that person on a number you already have saved. If they are a real friend, their account may have been taken over, so warn them another way. |
| A caller says they are from your bank or “WhatsApp support” | Hang up. Contact the company through the app or the number on your card or statement. The FTC's warning: never use the number the caller gave you. |
| You already shared the code | Go straight to the recovery steps below. |
Lock down your account in 2 minutes
Two-step verification adds a PIN to registration. WhatsApp's security page tells users to set up a secret PIN and never share it with anyone, to prevent someone from stealing the account. With it on, anyone trying to log in on a different device needs both the 6-digit code and your PIN.
- Turn it on: per WhatsApp's help center, open WhatsApp settings, then Account, then Two-Step Verification. Menu names can differ by phone and app version.
- Pick a PIN that is hard to guess: no birthday, no 123456, and not the PIN of a bank card.
- Add an email address inside the same menu. The help center says that if you set one up, you can get a registration code by email when you re-register.
- Store the PIN somewhere safe, not in your notes app next to your passwords. If you forget it, the app offers a Forgot PIN option.
- Keep the two secrets straight: the PIN and the SMS code are different, and neither is ever shared.
- Review privacy and linked devices: WhatsApp lets you limit who can see your profile photo and who can add you to groups, and you can log out devices you don't recognize.
Menus and wording change with each WhatsApp release. Check the current path in WhatsApp's help center.
If you already shared the code: recovery steps
- Re-register your number. Open WhatsApp (or reinstall it), enter your phone number and the 6-digit code texted to you, and show it to no one. WhatsApp's security page says that if you've lost access to your account, you should re-register your phone number. Expected result: the account comes back to your phone and the intruder is logged out.
- If WhatsApp asks for a PIN: enter yours. If you forgot it and you have registered your number, tap Forgot PIN? to create a new one. If you never set a PIN, the help center says someone else may have turned it on and that you will need to wait 7 days before resetting it. Expected result: you know how long the wait is and can use it for the next steps.
- Tell your contacts through another channel (a call, a text, email) that your account was taken and that no one should send money or codes. The FTC's guide to recovering hacked accounts advises sending friends a quick message and telling them to ignore pleas for help or money.
- Secure your other accounts. Per the same FTC guide, sign out of all devices, check that your recovery email and phone numbers are ones you control, and turn on two-factor authentication where it's offered.
- If a contact already sent money, they should call their bank or payment app right away. The table in our guide to the “Hi Mom” text scam lists what to do for each payment method.
- Report it. The FTC takes scam reports at ReportFraud.ftc.gov. Screenshots of the conversation and the scammer's number will help.
If the number belongs to your business
A stolen business account talks to customers and suppliers in your company's name, so the damage spreads faster. Agree on one rule with your team: nobody asks for, shares or forwards a verification code, not even when the request seems to come from the owner. Keep the PIN with the person responsible for the number. If the business account is already compromised, see our guide to a hacked WhatsApp Business account.
Account takeovers are often the first step of other frauds. For the bigger picture, read about WhatsApp scams and how to protect yourself and AI voice scams.
Frequently asked questions
Does WhatsApp ever ask for my verification code?
WhatsApp's help center says to never share your 6-digit registration code or your two-step verification PIN with anyone. Anyone who asks for it, whatever the reason, is trying to get into your account.
I got a WhatsApp code I didn't request. Was I hacked?
Not by itself. An unrequested code usually means someone typed your number to try to register it. Your account stays yours as long as you don't share the code, so ignore it and turn on two-step verification.
Is the two-step verification PIN the same as the 6-digit code?
No. WhatsApp's help center says the PIN is different from the registration code. Both are secret, and a login on a new device needs both.
How long does it take to get a stolen WhatsApp account back?
If you can re-register your number and no unknown PIN is in the way, it can be quick. If WhatsApp asks for a PIN you never created, the help center says you will need to wait 7 days before resetting it.
Sources: WhatsApp Help Center: About registration and two-step verification · WhatsApp: Security features, safety tools and tips · WhatsApp: Staying Safe on WhatsApp · FTC Consumer Advice: What's a verification code and why would someone ask me for it? · FTC Consumer Advice: The Google Voice scam, how this verification code scam works and how to avoid it · FTC Consumer Advice: How to recover your hacked email or social media account



