"I sent you a code by mistake": the WhatsApp takeover
Short answer: it's a scam, even when it comes from a friend's name. The code you received is the key to your own WhatsApp account. WhatsApp says you should never share your registration code with others, not even friends or family (WhatsApp Help).
What the message looks like
Example of a scam message from a friend's account. Written for this page.
Hi! Sorry, I sent a 6-digit code to your phone by mistake. Can you send it to me? It's urgent
Example of a scam message. Written for this page.
WhatsApp Support: We detected unusual activity. To keep your account, reply with the verification code we just sent you.
Example of the real code text you get. It's genuine, and the code in it is yours alone.
Your WhatsApp code: XXX-XXX. Don't share this code with others.
How it unfolds, step by step
- Before it reaches you. Someone takes over a friend's WhatsApp account, so the message comes from a name you trust (Staffordshire County Council).
- The opener. You get a real WhatsApp code by text, because someone is trying to register your number on their phone.
- Building trust. At the same moment, your friend's name (or WhatsApp Support) messages you.
- The ask. I sent my code to you by mistake, can you send it to me?
- The pressure. It's urgent, please hurry.
- The exit. With the code, your WhatsApp opens on their phone. They can message your contacts and groups as you (WhatsApp Help), asking for codes or money, and the chain goes on.
The signs on your screen
- Anyone asking for a code you received, for any reason.
- A code you didn't ask for.
- A "support" account asking for codes in a chat.
What to do now
Don't send the code, to anyone. Then turn on two-step verification in WhatsApp, so a stolen code alone can't open your account (WhatsApp Help). It's in WhatsApp's own settings, under Account.
Let the friend know, by calling them: their account may already be in someone else's hands.
If you already shared the code or paid
Get your account back first. Open WhatsApp and register your number again with the new code it sends you: that logs everyone else out. If it asks for a PIN you don't know, wait 7 days and try again. Tell family and friends that someone may be messaging them as you (WhatsApp Help). If you sent money, call your bank on the number on your card. Then report it where you live:
- US: report it at ReportFraud.ftc.gov, and at ic3.gov if it happened online.
- UK: call 159 to reach your own bank (Stop Scams UK). Report it to Report Fraud, online or on 0300 123 2040, in England, Wales and Northern Ireland (it replaced Action Fraud in December 2025), or to Police Scotland on 101.
- Canada: report it to the Canadian Anti-Fraud Centre at reportcyberandfraud.canada.ca or 1-888-495-8501, and to your local police.
- Australia: report it to Scamwatch, and to ReportCyber if you lost money online. IDCARE helps for free on 1800 595 160 if you shared personal details.
Every number and website, country by country, is on Report a scam.
How Wazirly helps
Wazirly is a button that floats over every app on your Android phone. Its Scam check reads what's on the screen when you tap it, and gives one of three results: strong warning signs, some warning signs or no warning signs found, with up to three reasons and one line of advice. It never says a message is safe. It's a second opinion, so the steps on this page still apply.
Tap Scam check on the message asking for the code. To turn on two-step verification, open WhatsApp, tap the Wazirly button, choose Where do I tap? and say "turn on two-step verification". It rings the next button on each screen; you tap it yourself. It works inside WhatsApp, which isn't the phone's Settings app.
Its limits: Android hides Wazirly inside the phone's own Settings app, and some banking apps block screen capture, so check the message itself, before you open your bank's app. More on the scam check.
Questions
Someone sent me a WhatsApp code by mistake. What do I do?
Don't send it to anyone. The code arrives because someone entered your number to register WhatsApp, and whoever has the code can open your account. Then turn on two-step verification.
Can someone take my WhatsApp with the code?
Yes. The six-digit code lets them register your number on their phone, unless you've turned on two-step verification, which adds a PIN they don't have.
How do I get my WhatsApp account back?
Open WhatsApp and register your number again with the new six-digit code. That logs out every other device. If it asks for a PIN you don't know, wait 7 days and try again. Then tell your contacts.
How do I stop it happening again?
Turn on two-step verification in WhatsApp's settings, under Account, and never share a code you receive, even with friends or family.
Try it on your phone. Wazirly is free to start and in early access on Google Play. Join the waitlist and the link to get in arrives by email.
Related: Scam library · "Hi Mum, new number" texts · Marketplace buyer and seller scams · Report a scam · Is this text a scam?