Cyber Security

What to Do When You Get an Unexpected Login Verification Code

An unexpected login verification code is a warning to pay attention, not proof that someone has entered your account. It may mean someone tried to sign in using your username or password, but the code…

What to Do When You Get an Unexpected Login Verification Code

An unexpected login verification code is a warning to pay attention, not proof that someone has entered your account. It may mean someone tried to sign in using your username or password, but the code may also have been triggered by a mistyped phone number or email address. Don’t share the code or use links or phone numbers in the message. The safest response is to check the account through its official app or website, then take steps that match what you find.

Treat the code as private, even if someone asks for it

A one-time code is designed to help verify that a login or account change is yours. If a caller, texter, or online contact asks you to read it back, forward it, or enter it on a site they sent you to, stop. Scammers may pose as a company’s support team, a bank, a delivery service, or even someone you know. The FTC warns consumers not to share verification codes with people who contact them unexpectedly.

Don’t reply to the message, click its links, or call a number included in it. If you’re unsure whether the alert is genuine, open the service’s app yourself or type its known web address into your browser. Look for a security notification inside the account, or contact support using contact details found through the official service—not details supplied by the message.

A genuine-looking code can still be part of a scam. For example, someone may trigger a code and then call claiming they need it to “cancel” an unauthorized login. Sharing it could let them complete the very action the code is meant to protect.

Check the account without following the message

Sign in through the official app or a web address you already trust. If the account shows an unfamiliar login, password change, or recovery request, treat that as evidence that someone may have access or may be trying to gain it. If you can’t sign in, use the service’s account-recovery process directly; don’t trust a recovery link sent by an unsolicited caller or message.

If there is no suspicious activity, the code could have been caused by a typo, an outdated phone number attached to an account, or someone testing credentials that do not work. That’s less alarming than a successful login, but it is still sensible to check that your password is strong and unique and that your recovery information is current.

Take a moment to identify what the code is for. A code for your email account deserves particular attention because email can be used to reset passwords for other services. A code for a bank, payment app, or work account may call for quicker contact with that organization or your employer’s IT team, especially if you see other unusual activity.

Change the password if it may be exposed

A verification code alone does not show that your password has been stolen. But if you reused the account’s password elsewhere, entered it on a suspicious site, or see an unfamiliar login, change it from the official app or website. Choose a new password that you haven’t used on another account; changing only a character or adding a number to the old one is not a meaningful reset.

A password manager can generate and store distinct passwords, making it easier to avoid reuse. If you suspect the same password was used on other accounts, change it on those accounts too—starting with your email, financial accounts, and any service that can reset other passwords. Don’t change passwords by following a link in the unexpected message.

After changing the password, look for a setting such as Sign out of all devices, Manage sessions, or Where you’re logged in. End sessions you don’t recognize, and sign in again only on devices you trust. This is useful because changing a password does not always end every existing session automatically; the account’s own security settings determine what happens.

Review recovery details and turn on stronger sign-in

Check the account’s recovery email address and phone number, trusted devices, and any alternate sign-in methods. Remove details you don’t recognize, and make sure the recovery email account itself is secure. If an attacker can control your recovery channel, they may be able to regain access after you change the password.

If the service offers multifactor authentication, enable it if you haven’t already. CISA recommends using multifactor authentication because it adds a verification step beyond a password. When available, a passkey or security key can be a stronger option than a code sent by text, though the choices and setup vary by service. Keep backup codes somewhere secure and separate from the device you normally use to sign in.

Avoid making security changes from a device that may be compromised. If the device is shared, unfamiliar, or showing signs of malware, use a trusted device to secure the account. For a work or school account, contact IT before changing settings if your organization manages sign-in or recovery centrally.

Respond more quickly when the alert involves money or phone service

For a bank, credit card, payment app, or cryptocurrency account, sign in through the official app or call the number on your card or account statement. Check recent transactions, payment methods, and contact details for changes you didn’t make. If you see an unauthorized transaction or can’t access the account, contact the provider promptly and follow its instructions for securing the account.

An unexpected code for a mobile carrier account is also worth checking. If your phone suddenly loses service, or you receive a notice about a SIM or account change you didn’t request, contact your carrier using its official app, website, or a number from a bill. Those signs can point to an account or number transfer issue, but a code by itself does not establish that a SIM swap has occurred.

For a work or school account, report the alert to your IT or security team, particularly if you clicked a link, shared a code, or entered your password. They may be able to review sign-in records or disable sessions centrally. Don’t try to conceal a mistake: quick, accurate reporting gives the organization a better chance to limit access.

Use the clues in the alert, but don’t overread them

The service name, time, and type of requested action can help you decide what to check. A code that arrives while you are not trying to sign in is different from one you requested yourself. Still, the sender name and message wording can be spoofed, and a code may not identify who triggered it or where they are.

If several codes arrive in a short period, someone may be repeatedly attempting a login or account action. Don’t respond to each message or assume that repeated codes mean an account has been accessed. Instead, check the account’s security activity once through the official service, strengthen the password if needed, and report suspicious patterns to the provider.

Keep the messages temporarily if you need to report the incident, but don’t forward them to strangers or post screenshots publicly. A screenshot might expose part of the code, your phone number, or other account details. If you report it, use the provider’s official support or abuse-reporting channel.

Frequently Asked Questions

Should I delete an unexpected verification code?

You can delete it after you’ve checked the account and saved any information you need for a report. Deleting the message does not secure or compromise the account by itself. If the message contains a link, don’t open it; if you already clicked it, close the page and check the account through the official app or website.

Can someone get into my account with the code alone?

Usually, a code is one part of a sign-in or account action, but exactly what it authorizes depends on the service. Someone may also need a password, or the code may authorize a password reset or a new device. That’s why you should never share it, even if the person asking claims to know your account details.

What if I already gave the code to someone?

Go to the official service immediately, change the password if you can, end other sessions, and review recovery details and recent activity. If you’re locked out, use the official recovery process and contact the provider through its published support channel. If the account involves work, money, or phone service, alert the relevant IT team, financial provider, or carrier promptly.

Does receiving a code mean someone knows my password?

Not necessarily. A code can be triggered by a mistyped address or number, an attempt using incorrect credentials, or another account action. The message alone cannot tell you whether a password was entered correctly. Check the service’s sign-in activity and consider whether you reused or recently entered that password on another site.

Take these steps now

First, don’t share the code or interact with the message. Open the account through its official app or a trusted address and check for unfamiliar sign-ins or changes. If anything looks wrong—or if you reused a password that may be exposed—set a unique password, end unknown sessions, and verify recovery details. Turn on a stronger sign-in method where available. For financial, mobile-carrier, work, or school accounts, contact the appropriate provider or IT team through an independently verified channel. If the account looks normal, keep an eye out for further alerts without assuming the code itself proves a breach.