Software

Where to Keep 2FA? Hardware Security Key vs Authenticator App

Talha Aslan 18 min read 8 views

Short answer

Where to keep 2FA so it is actually secure?

Two-factor authentication (2FA) is a sign-in layer that asks for a second proof besides your password, and the safest place to keep it is a phishing-resistant hardware security key that lives apart from the device holding your password. Backup codes belong on paper, offline. That way, one lost device or one leak never takes both factors.

Keep reading for the full details and examples

Serious security professionals do not keep their second factor on the phone they carry all day. In fact, they leave no critical secret on their everyday phone or laptop at all. That is not paranoia. It is simple math: those two devices are exactly what an attacker goes after first. So where to keep 2FA? The principle fits in four words: separate, offline, physical, single purpose. Nobody will walk you through their personal setup, and we will not either. Still, the logic behind every good setup is the same.

Let us be fair to the phone. A phone is not a bad tool. The problem is a phone that becomes a single point of failure. If your password manager, your email, your SMS codes and your authenticator app all live on one device, then whoever controls that device holds both factors. In this guide, we at Talha Aslan and team compare each method against a clear threat model. Then we show you how to build a setup that survives loss, theft and phishing.

One idea drives this answer: the factors must stay independent. A password is something you know. The second step is something you have. However, if both sit inside the same phone, you really only have one thing. So the question is not just which method you pick. It is also where that method's secret lives.

  • Primary second factor: a hardware security key or a device-bound passkey.
  • Backup second factor: a second security key stored in a different place.
  • Last resort: printed backup codes kept somewhere safe.
  • The trap to avoid: password, email and codes all on one phone.

This order is not a rigid prescription. That said, it gives most personal and business accounts a solid baseline. The sections below explain why each layer sits where it does.

Why do security experts keep the second factor off their phone?

The phone is the device attackers invest in most. After all, it is your inbox, your SMS receiver, your password manager, your banking app and your authenticator. If someone steals it unlocked, or if malware lands on it, they can reset your password and read the incoming code in one move.

Experts respond with separation. They also know that security usually breaks at the weakest link. A saved session cookie on a laptop, a browser-stored password or an authenticator seed synced to the cloud can quietly turn two factors into one. On the other hand, a physical key that does one job has no apps, no network connection and no way to copy itself remotely.

In short, experts do not distrust the phone so much as refuse to make it the only key. You can apply the same principle at your own scale. It takes no expensive infrastructure, only the habit of moving critical secrets off the devices you use every day.

  • Everyday device: reading, messaging, browsing.
  • Separate key: authentication only.
  • Paper backup: emergency recovery only.

How do 2FA methods compare across real threats?

Test every method with the same questions and the picture gets clear. For example, can a fake login page steal the code? What happens if someone ports your number to their SIM? What if you lose the device? Does protection hold if malware sits on your machine? The table below is our general assessment, based on principles from official sources. Treat it as decision support, not a guarantee.

MethodPhishingSIM swapDevice lossMalware
SMS codeWeakWeakMediumWeak
Email codeWeakMediumMediumWeak
Authenticator app, device onlyWeakStrongWeak without backupsMedium
Cloud synced authenticatorWeakStrongStrongMedium, tied to the cloud account
Push approvalMediumStrongMediumMedium
PasskeyStrongStrongDepends on syncMedium
Hardware security keyStrongStrongStrong with a second keyStrong

The phishing column matters most. Today, many account takeovers start with a person typing a code into a fake site. A typed code has no idea where you typed it. Therefore, only methods bound to the real domain score strong in that column.

Why is an SMS code the weakest link?

An SMS code belongs to your phone number, not to your phone. That difference is critical. If an attacker tricks your carrier into moving your number to their SIM card, which is called a SIM swap, your codes go straight to them. Meanwhile, you only notice that your signal disappeared.

The US National Institute of Standards and Technology lists SMS and voice codes over the phone network as a restricted method in NIST SP 800-63B, its digital identity guideline. It also tells services to check risk signals such as SIM changes and number porting. Google says the same thing in plainer words: codes by text message are more vulnerable to phone number based attacks.

Still, SMS beats nothing. If a service offers only SMS, turn it on instead of leaving 2FA off. Also ask your carrier about a port out PIN or account lock, if they offer one. That alone stops basic password reuse and guessing attacks.

  • Treat SMS as a stopgap, not your primary method.
  • Avoid using the same number for recovery and for the second step.
  • If your signal suddenly drops, call your carrier right away.

How safe is an email verification code?

An email code hands your second step to another account. In other words, the code is only as safe as your inbox. Most people also keep email open on the same phone. So when the phone falls, the code falls with it.

NIST does not accept email as an out of band authentication method. Therefore, it is more honest to treat email as a recovery channel than as a true second factor. The bigger danger is this: email is the password reset door for nearly every other account you own. Protecting it with your strongest method protects the rest of the chain.

If your email account is already compromised, take it back first. Our guide on how to recover a hacked Gmail account step by step walks you through it. After that, move your email's second factor to a hardware key, because every other door opens from there.

How does an authenticator app and its seed really work?

Authenticator apps use TOTP, short for time based one time password. During setup, the service shows a QR code that contains a shared secret, often called the seed. The app combines that seed with the current time and produces a fresh code every few seconds. The server holds the same seed, so it computes the same code and compares.

Here is the key insight: the seed is valuable, not the code. Anyone holding the seed can generate valid codes forever. For instance, if you leave a screenshot of the setup QR code in your photo library, anyone with access to your photos has cloned your second factor. So never screenshot the setup screen, and never paste that QR code anywhere.

NIST does not consider one time password devices phishing resistant, because you enter the output by hand. In practice, an authenticator app is much stronger than SMS against SIM swaps. However, it will not save you if you type the code into a fake page yourself. It is a good middle layer, not the finish line.

  • You see the seed once, at setup time.
  • Protect the app with a screen lock and an app lock.
  • Where possible, keep the authenticator on a device other than your daily phone.

What are the two sides of a cloud synced authenticator?

Some authenticator apps back up their seeds to a cloud account. The upside is obvious. Lose your phone, sign in on a new one, and your codes come back. That feature rescues many people who would otherwise lock themselves out.

The downside is just as real. Your seeds now live inside a cloud account. If an attacker takes that account, they may grab every second factor you own in one shot. Put simply, you have tied your 2FA to a single cloud login. Consequently, that cloud account needs your strongest protection, ideally a hardware key.

NIST does not allow syncable authenticators at its highest assurance level, because syncing requires an exportable private key. That said, they offer a reasonable balance for everyday use. The right call depends on your threat model. If targeted attacks are unlikely for you, cloud backup makes sense. When they are likely, favor device-bound methods.

  • If sync is on, guard the cloud account with your strongest factor.
  • Review the cloud account's recovery email and phone regularly.
  • Keep high value accounts off cloud synced codes.

What is push approval and an MFA fatigue attack?

Push approval sends a prompt to your phone and you tap Yes or No. It is convenient. However, it opens a new risk once an attacker already knows your password. They trigger login after login and flood your phone with prompts. This is MFA fatigue, also called push bombing. The goal is simple: you get tired, or you tap Yes by mistake.

The Cybersecurity and Infrastructure Security Agency (CISA) notes that number matching can help block this kind of push bombardment. With number matching, you type the number shown on screen into your phone, so you cannot approve blindly. Even so, number matching does not fully stop an attacker who relays a fake site in real time.

The practical rule is simple. A prompt you did not expect is an alarm that your password leaked. Deny it, change your password right away and review the account's active sessions. Never tap Yes just to make the prompts stop. Also, if several surprise prompts arrive the same day, assume your password sits on a breach list. Then change it everywhere you reused it.

How does a real time phishing proxy bypass authenticator codes?

Modern phishing looks nothing like the clumsy fake pages of the past. Instead, the attacker places a relay server, a reverse proxy, between you and the real site. You land on a lookalike address. The page looks identical because it pulls content live from the real site. You enter your password, then your authenticator code. The proxy forwards both to the real site instantly.

As a result, the login succeeds and the attacker captures the session cookie. It no longer matters that the code expires in thirty seconds, because the session is already open. This is why any code you type by hand, no matter how short lived, is exposed to this attack.

What stops this attack is cryptography, not vigilance. With phishing resistant methods, the browser only produces a signature for the correct domain. On a fake domain, the key simply does not answer. So protection works even if you never notice the wrong address.

  1. Checking the address bar is a good habit, but it is not a full defense.
  2. On critical accounts, switch to a method that needs no typed code.
  3. After a suspicious login, sign out of all sessions.

Hardware security key vs authenticator app: which is safer?

A hardware security key runs the FIDO2 standard on a dedicated physical device. WebAuthn is the web interface browsers use to talk to it. During registration, the key creates a key pair unique to that site. The private key never leaves the device.

NIST calls this protection verifier name binding and cites WebAuthn as an example. In other words, the key's response is cryptographically tied to the site's domain. A fake domain cannot obtain a valid signature for the real one. CISA also states that the only widely available phishing resistant authentication is FIDO and WebAuthn.

An authenticator app, by contrast, displays a code that you type wherever you are. That is the core difference. The key also holds up well against malware. It usually requires a physical touch and never exports its secret. Malware on your laptop cannot read the inside of the key; at most, it can try to piggyback on a touch you make. That is why experts keep the second factor on a separate, single purpose device.

  • The private key never leaves the device.
  • The response is bound to the domain.
  • A physical touch makes remote abuse much harder.

How do passkeys relate to hardware security keys?

Passkeys also build on FIDO standards and carry the same phishing resistance. The FIDO Alliance passkey overview separates two kinds: synced passkeys that move between your devices, and device-bound passkeys that never leave a single device. A passkey on a hardware security key is the second kind, and it offers the highest assurance.

We explain the concept in detail in what a passkey is and how passwordless login works, so we will not repeat it here. For storage, though, one difference matters. A synced passkey has the same tradeoff as a cloud synced authenticator. It is convenient and hard to lose, yet it depends on your cloud account.

A practical setup might look like this. Use synced passkeys for everyday accounts. Then require a hardware key for the most critical ones: your main email, your cloud account, your password manager and your domain registrar. That gives you both convenience and depth.

Where to keep 2FA backup codes offline?

Backup codes are the emergency key to your second factor. Google offers single use backup codes for when you lose your phone, and most major platforms provide something similar. Each code satisfies the second step on its own, so it deserves the same care as your password.

The Google 2-Step Verification help page also lists its options side by side: Google prompts, passkeys and security keys, authenticator apps, text or voice codes and backup codes. It reminds you to skip the second step only on devices you do not share. That detail points to the same principle, because every device that skips the check acts like a key on its own.

The biggest mistake is keeping backup codes as a screenshot on your phone or a text file on your laptop. Doing so puts the codes right back on the devices you meant to protect. Instead, follow these steps.

  1. Generate the codes and print them or copy them by hand.
  2. Label the sheet with the account name only.
  3. Store it at home, away from your devices, somewhere locked.
  4. Keep a second copy in a different physical location you trust.
  5. Cross out each code you use, and regenerate when few remain.

For an Instagram example, see our guide on what to do when you lost your 2FA device and need to log into Instagram with a backup code.

Why do you need a second security key?

A single hardware key creates a new single point of failure. Lose it or break it, and without backup codes you are locked out. So the first rule for anyone moving to hardware keys is to register at least two.

In practice, the first key stays on your keychain or at your desk. The second waits at home in a separate, locked spot. When you add a key to a new account, register both in the same session. Otherwise, the second key will not work there. Example scenario: you open a new cloud account, add only your first key, and lose that key months later. The spare sits in the drawer, but that account has never seen it.

For that reason, we suggest a short paper inventory. Note which keys each account accepts, and store that list with your backup codes. The list holds no passwords or codes. It is only an inventory.

  • Two keys, two physical locations.
  • Register both keys every time you add a new account.
  • Test both keys once a year to confirm they still work.

Why is account recovery the weakest link?

No matter how strong your second factor is, an attacker will look for the back door: account recovery. Recovery email, recovery phone, security questions and support requests all form part of that door. If recovery still runs over SMS, your system is only as strong as SMS, even with a hardware key in place.

So review recovery options on every important account. For example, an old phone number may still be listed as your recovery number. If your carrier has reassigned that number to someone else, you face a real risk. Also make sure the account you use as a recovery email has the same level of protection.

Things get much harder when an attacker takes over and turns on their own 2FA. We cover that case in what to do when a hacker turned on two-factor authentication on Instagram. Recovery is never guaranteed. Strangers who promise to recover accounts for money usually run a second scam. Use only the platform's official recovery path.

Where to keep 2FA when you also use a password manager?

Many password managers can generate authenticator codes too. It sounds handy. However, the password and the second factor then sit in the same vault. If the vault opens, both factors go together. So if you are asking where to keep 2FA for your most critical accounts, the answer is outside the password manager.

Even so, a password manager is essential, since it is the easiest way to give every account a long, unique password. For a quick start, try our free password generator. Then protect the password manager itself with a hardware key, so the vault door also depends on a separate device.

For low value accounts, keeping authenticator codes in the password manager is an acceptable convenience tradeoff. The point is to make that tradeoff on purpose. Keep the main email, the cloud account and the domain registrar on a separate track.

What does leaving no critical secret on your laptop mean?

The second expert principle is to leave no critical secret on the computer either. That does not mean you stop using the computer. It means no plain text password file on the desktop, no backup code list in your downloads folder and no admin session left open in the browser forever.

For instance, if you run a website, pull the admin password from your password manager instead of saving it in the browser, and sign out when you finish. We collected broader steps in our website data security and encryption guide. The aim is to shrink the treasure that a single piece of malware could find.

  • Keep no plain text password or code files on the desktop or cloud drive.
  • Clear your screenshots folder regularly.
  • Sign out of critical sessions when you are done.
  • Do not postpone operating system and browser updates.

How do you set up your own 2FA system step by step?

Let us move from theory to practice. Most people can finish the plan below over a weekend. You do not have to do it all at once, so start with the single most critical account.

  1. List your accounts and flag the top five: main email, cloud, password manager, domain registrar and social media admin.
  2. Get two hardware security keys and register both on every critical account.
  3. Generate backup codes for each account, print them and store them in two places.
  4. Remove SMS from your second factor list wherever possible, or move it to the bottom.
  5. Update recovery email and phone, and delete old numbers.
  6. If you use an authenticator app, install seeds only on a device you trust.
  7. Every six months, test your keys and backup codes.

If you want to bring these habits to a team, our article on how to become a cybersecurity specialist covers the mindset behind them. In short, you build a good setup once and keep it alive with small check ups. Writing it down also clarifies who holds which key and what to revoke when someone leaves.

Which method should each account use?

Not every account deserves the same protection. To make decisions easier, sort accounts into three groups. The first group opens doors to other accounts: main email, cloud account and password manager. These need a hardware key.

The second group covers accounts whose loss hurts your reputation or revenue: social media, ad accounts and domain panels. Prefer passkeys or hardware keys there, and fall back to an authenticator app. If someone already took your Instagram, start with our guide on recovering a hacked Instagram account. The third group is low value sign ups, where codes in your password manager are a fair balance.

This grouping lets you answer where to keep 2FA account by account. Instead of putting the most expensive protection everywhere, you match protection to risk.

What principles should you never forget?

Finally, let us boil the whole guide down. These principles hold even when brands, products and platforms change, because they rest on the threat model itself.

  • Keep the second factor apart from the device that holds the password.
  • On critical accounts, choose a phishing resistant method bound to the domain.
  • Keep backup codes on paper, offline, in two places.
  • Always register a second key.
  • Make recovery as strong as the second factor.
  • Treat any unexpected prompt as an alarm.

The phone is not your enemy. It just should not be the only key to everything. We at Talha Aslan and team build our own working setup on this separation principle. Start today with your single most critical account, and move its second factor somewhere separate, offline, physical and single purpose.

Frequently Asked Questions

Is keeping 2FA codes on my phone completely wrong?
No, it is not completely wrong; the real problem is the phone becoming a single point of failure. For low value accounts, an authenticator on your phone is a reasonable balance. For your main email, cloud account and password manager, which open other doors, we recommend moving the second factor to a separate hardware security key.
What is the most secure two-factor authentication method?
For most threat models, the most secure method is a hardware security key built on FIDO2 and WebAuthn. Its response is bound to the domain, so it fails on fake sites, and the private key never leaves the device. Add a second key and printed backup codes, and you also cover the risk of losing a device.
Can I store backup codes in my password manager?
You can, but then backup codes and passwords share one vault. If someone opens the vault, both factors go together. For critical accounts, it is safer to print the codes and keep them on paper, away from your devices, somewhere locked. For low value accounts, the password manager is an acceptable choice.
Should I stop using SMS verification entirely?
If SMS is the only option, turn it on rather than leaving 2FA off, because it still beats no second step. However, SMS is exposed to SIM swap attacks and phishing. When a platform offers a stronger method, switch to it and move SMS to the bottom of your list or remove it.
What happens if I lose my hardware security key?
If you registered a second key on the same accounts, sign in with it and remove the lost key in your account settings. Without a second key, use your printed backup codes. Without either, you depend on the platform's official recovery process, which can take a long time and has no guaranteed outcome.
Do passkeys replace two-factor authentication?
Passkeys are a phishing resistant, FIDO based method, and on many services they merge the password and the second step into one strong step. However, a synced passkey depends on your cloud account. So protect that cloud account with a hardware key, and prefer device-bound methods for your most critical accounts.
  • 2FA
  • two-factor authentication
  • hardware security key
  • authenticator app
  • passkey
  • SIM swap
  • phishing
Share:
Talha Aslan

Google Partner digital marketing expert. Hands-on with SEO, Google Ads, web design and e-commerce projects since 2012; every post here comes from that experience.

Next project

Get a quote for your project.

Your brief goes straight to Talha Aslan and team: strategy led by Talha, delivery by an experienced team. We reply the same day and send the scope, timeline and price as a written quote within 1 business day.