A message pops up from a friend on WhatsApp: "Hey, I sent you a code by accident, can you send it back?" A second later a real 6-digit text lands on your phone. It's from someone you know, so you copy it and hit send. That code was the key to your WhatsApp account. Your friend's account was taken over first, and now it's your turn.
We deal with SMS verification codes every day, and the simplest rule we can give you is this: if someone asks you for a code that was sent to your phone, you are being scammed. It doesn't matter what the story is.
First, what is that code actually for?
WhatsApp, your bank, Google, Instagram: they all work the same way. When someone tries to sign in with your number or approve something in your name, the service sends a code to your phone to check it's really you. Whoever types that code in, the system treats as you.
So a scammer doesn't need your password. They need those six digits. And because the code goes to your phone, not theirs, they have to ask you for it. That's why every one of these stories ends with the same line: "Can you tell me the code you just got?"
The 6 most common versions
1. "I sent you a code by mistake"
The one from the top of this post. The message comes from a real contact because their account has already been hijacked. At the same moment, the scammer tries to register WhatsApp with your number, so the code comes to you. Send it, and your account moves to their phone. The same message then goes out to everyone in your contacts, in your name, and the "can you lend me some money until tonight?" texts start. In the UK, Action Fraud has described exactly this pattern, including scammers then switching on two-step verification so you can't get back in.
What to do: Don't send it. Call your friend on a normal phone line and tell them their account has been stolen.
2. The marketplace "buyer" who wants to check you're real
You list something on Facebook Marketplace or Craigslist. Someone messages, sounds interested, then says: "There are a lot of fake sellers, I'll send you a code to make sure you're a real person." The US Federal Trade Commission has warned about this exact script, often using a Google Voice code, which lets the scammer set up a number linked to yours. Their advice is clear: don't share a verification code with anyone if you didn't contact them first.
What to do: A real buyer never needs a code from your phone. End the chat.
3. "This is your bank's fraud team"
The caller is polite, knows your name, maybe even the last digits of your card. "We've blocked a suspicious payment. To cancel it, please read out the code we've just sent you." In that moment of panic, people read it. In reality, that code is usually approving the very payment the scammer is making.
What to do: Hang up. Call the number on the back of your card yourself. If something is really wrong, they'll tell you there.
4. A stranger in your group chat
Action Fraud has also warned about WhatsApp community and group chats being targeted. Someone who seems to be a member messages you privately, often about a video call or a group event, and asks for the code "to add you". Once they have it, they take over your account and message the rest of the group asking for urgent money.
What to do: No group, club or video call needs your WhatsApp code. If a request looks odd, call the person outside WhatsApp to check.
5. "Can you vote for my niece?"
A link arrives from someone you know: a competition, a poll, a "cutest baby photo" contest. To vote, you enter your phone number and then "the code you receive". That code isn't a voting code. It links the scammer's device to your account. The UK's National Cyber Security Centre now puts it simply: do not share verification codes or scan unexpected QR codes, and check your linked devices regularly.
What to do: No real poll asks for a WhatsApp or SMS code. Close the link and warn the sender another way.
6. "Instagram Support: your account will be deleted"
It arrives by DM or email: "Your account will be removed in 24 hours for copyright violation. To appeal, reply with the verification code we sent you." Logos, a blue tick, official tone, all there. Same logic as always: the person asking for the code is the person trying to log in.
What to do: A real platform never asks you to send back a code it sent you. Check for problems inside the app itself.
Got a code you didn't ask for?
If a WhatsApp or other code arrives without you doing anything, it usually means someone typed in your number and tried to sign in. WhatsApp's own help centre says the same. The good news: as long as you don't share the code, they can't get in. You can simply ignore it.
Already gave the code away? Do this now
- WhatsApp: Open the app, register again with your number and enter the new code sent to your phone. According to WhatsApp, re-registering logs out every other device on the account. If the scammer has set a two-step verification PIN, WhatsApp says to wait 7 days and try again.
- Bank: Call your bank on its official number straight away and have your card and online banking blocked.
- Warn people: Tell friends and family through another channel that your account was stolen and not to send money.
- Report it: In the US, report it at ReportFraud.ftc.gov. In the UK, report it to the police and forward scam texts to 7726. Keep screenshots.
The one setting worth changing today
In WhatsApp, go to Settings → Account → Two-step verification and set a PIN. Then even if someone gets hold of your SMS code, they can't get in without your PIN. It isn't switched on by default, so if you've never set it up, it's probably off. It takes two minutes. Do the same for Instagram, Google and your banking app.
The rule in one sentence
If you didn't ask for the code, don't give it to anyone. Friend, bank, police, delivery driver, "support team": it makes no difference. Send this to your parents and to that one friend who clicks every link. These messages reach everyone, and one wrong code is all it takes.
One more thing: the fewer places your number is registered, the fewer of these messages reach you. We covered where not to hand it out in 7 Places You Should Never Give Your Real Phone Number.
Arda is the content editor at VioSMS and writes its guides on virtual numbers, SMS verification and phone-number privacy. The steps in each guide are tested with real activations on VioSMS.