Hacked even with two-factor authentication on: how it happens and how to stop it

In short

Two-factor authentication stops someone who only has your password, and Instagram calls it the single most effective step against hackers. Accounts are still taken over in other ways: a fake page or message gets you to hand over the code, a login request is approved by mistake, someone was already logged in, a session is stolen from a browser by malware, a SIM swap diverts text-message codes, the email account is taken over, or an app was given your login. "Your account is at risk" means Instagram thinks your password is weak or exposed. Change your password (it logs out other devices), check where you're logged in, switch to an authentication app or a passkey and secure your email.

What two-factor does and doesn't stop

Instagram's Help Center calls two-factor authentication "the single most effective step to protect your account from hackers": when someone tries to log in from a device Instagram doesn't recognise, it asks for a login code or a login confirmation. Someone who only has your password is stopped there.

It doesn't stop everything. Two-factor protects the login. It doesn't help if the attacker gets the code from you, uses a session that is already logged in, receives your codes instead of you, or controls the email Instagram trusts. Those are the gaps below.

How accounts are taken over with two-factor on

How it happensTypical signWhat to do
A fake login page or message asks for your password and then the codeYou typed a code into a link shortly before losing accessChange the password; report the page; fake Instagram emails
You approved a login request or sent a code to someoneA "was this you?" you tapped, a "friend" who asked for a codeChange the password, check where you're logged in
Someone was already logged inActivity continued after you turned two-factor onChange the password: it logs out all other devices
Session hijacking: a browser session stolen by malwareNo code was asked for; often after downloading a fileScan and clean the computer, then change passwords
SIM swap: your number moved to another SIMYour phone suddenly lost signalCall your carrier first, then change passwords
The email account was taken overInstagram's emails go to someone else or were deletedSecure the email first, then Instagram
A third-party app or service was given your loginYou used a follower, analytics or "verification" serviceRemove the app; change the password

Codes handed over by mistake

A fake page can ask for your password and then pass on the two-factor code you type, in real time. A scam message can claim your account will be deleted for copyright or that you have been chosen for verification. Instagram's phishing advice is not to trust messages that threaten to delete or ban your account, not to click links or attachments in them, and to report strange emails to phish@instagram.com. The other version is a message from a hacked friend asking for "the code I sent you by mistake": friend's Instagram hacked and Instagram code on WhatsApp.

Login requests work the same way: approving one you didn't start lets that device in. If you didn't just try to log in yourself, decline it.

Sessions that were already open, or stolen

Two-factor is only asked for at login. A device that was logged in before you turned it on, or a public computer where someone ticked "Remember me", stays logged in. Instagram says that once you change your password you are logged out of all other devices, so anyone logged in loses access; see also log out of Instagram on all devices.

Session hijacking skips the login completely. Google's Threat Analysis Group described a campaign against YouTube creators: fake sponsorship offers led them to download malware that stole browser session cookies, which it called cookie theft or a "pass-the-cookie" attack, and said its resurgence could be due to wider use of multi-factor authentication. Creators and businesses that get brand-deal emails are the usual targets. Don't open "contracts" or "media kits" that come as programs or archives from unknown senders.

SIM swaps and text-message codes

In a SIM swap, the FBI says criminals trick or pay mobile carrier staff to move your number to a SIM card they hold; your calls and texts then go to their device, and they can request password resets and receive text-message codes. The FBI's advice includes using strong multi-factor methods such as standalone authentication apps or physical security keys, and contacting your carrier straight away if you suspect a swap. On Instagram that means an authentication app or a passkey rather than text messages.

The email account is the back door

Instagram's Help Center is direct about it: anyone who can read your email can probably also access your Instagram account. A hacker in your inbox can read Instagram's security emails and delete them. Give the email account its own strong password and two-factor, and check its forwarding rules. If your Instagram email was changed, follow email changed by a hacker.

"Your account is at risk": what Instagram means

Instagram says it shows this when your password is weak or may have been exposed or compromised by outside sources, for example when you used the same password on another site that had a data breach, or when the account is synced with an unauthorised third-party app. It asks you to change the password. Do it, and make the new one unique: a leaked password plus a code you are tricked into giving is all a hacker needs.

What to do now

  1. If you can still log in, change the password from the app. Instagram says this logs out all other devices.
  2. Check where you're logged in and remove devices you don't recognise: suspicious login attempts.
  3. Check the email and phone number on the account, and remove linked accounts and third-party apps you don't recognise.
  4. Switch two-factor to an authentication app or a passkey and save new backup codes.
  5. If you can't log in, go to instagram.com/hacked: Instagram account hacked. If it was disabled as well: hacked and disabled.

Frequently asked questions

Can Instagram be hacked with two-factor authentication on?

Yes. Two-factor stops a login with only your password, but accounts are still taken over through codes handed to a fake page or a scammer, approved login requests, sessions that were already open or stolen by malware, SIM swaps, hacked email accounts and apps given your login.

How did a hacker get my Instagram code?

Usually you were asked for it: a fake login page, a message from a "friend" or "support". With text-message codes, a SIM swap can also send them to someone else. Authentication apps and passkeys avoid the phone-number route.

What does "your account may be at risk" mean on Instagram?

Instagram says it means your password is weak or may have been exposed, for example through a data breach on another site where you used the same password, or an unauthorised third-party app. Change the password and make it unique.

Does changing my Instagram password log out the hacker?

Instagram says that once you update your password you are logged out of all other devices, so anyone logged in loses access. Then check the email and phone on the account and turn on stronger two-factor.

What is the safest two-factor method for Instagram?

An authentication app or a passkey, because neither depends on your phone number. Keep backup codes as a second way in and secure your email account with its own two-factor.

Hacked even though two-factor was on?

Tell us what you saw last: an email from Instagram, a login request, a code you sent. We'll tell you which official route fits and how to close the gap afterwards. To have the account's security checked every month, see our monthly protection. We never ask for your password or codes.

Sources

  1. Secure your Instagram account (Instagram Help Center) help.instagram.com
  2. Why Instagram tells you your account is at risk (Instagram Help Center) help.instagram.com
  3. Protect yourself from phishing on Instagram (Instagram Help Center) help.instagram.com
  4. How to recover and secure a hacked Instagram profile (Instagram Help Center) help.instagram.com
  5. Turn login requests on or off on Instagram (Instagram Help Center) help.instagram.com
  6. Use an authentication app for two-factor authentication on Instagram (Instagram Help Center) help.instagram.com
  7. Criminals Increasing SIM Swap Schemes to Steal Millions of Dollars from US Public (FBI IC3, 8 February 2022) ic3.gov
  8. Phishing campaign targets YouTube creators with cookie theft malware (Google Threat Analysis Group, October 2021) blog.google