Hardware Security Keys
What a physical security key does, who benefits most, how to choose one and how to avoid locking yourself out.
Key takeaways
- A security key signs a challenge tied to the website's real domain, so a look-alike site can't use it.
- The private keys are designed to stay inside the device, out of reach of ordinary malware that copies files.
- Choose connectors and wireless options that fit the devices you actually use.
- Register two keys on every important account and store the spare separately.
- A key protects sign-in only, so weak recovery methods and stolen sessions still need attention.
A hardware security key is a small physical device that proves your identity to a website or computer. You plug it in or tap it on your phone, touch it, and it signs a challenge with a private key that stays inside. It is among the strongest protections against account phishing that ordinary people can buy.
It's most worthwhile for accounts that would hurt badly if taken, and for people who are likely targets. The catch is physical: a key can be lost, so you should register at least two and keep your recovery options in order.
How it works
Security keys use the FIDO standards. The older one, U2F, added a key as a second step after a password. FIDO2, which combines the browser standard WebAuthn with the device protocol CTAP, also supports signing in without a password.
When you register a key with a site, it creates a key pair for that site. The site keeps the public half. At sign-in the site sends a random challenge, your browser passes it to the key along with the site's domain, and the key signs it after you touch it. Often you also enter the key's PIN.
The two checks do different jobs. Touch shows a person is present, so software can't silently use a plugged-in key. PIN or fingerprint shows it is the right person, so someone who finds the key can't simply use it. Keys limit wrong PIN attempts and eventually block or require a reset that erases the stored credentials.
What it defends against
Because the signature is bound to the domain, a phishing page can't obtain anything useful, even if it relays your password in real time. There is no code to read out to a caller and no push prompt to approve by mistake. A leaked site database contains only public keys. A SIM swap is irrelevant to the key itself.
Compare that with the methods in which kind of two-factor authentication is best: codes from text messages or apps can all be typed into the wrong page.
What it doesn't cover
A key proves who is signing in at that moment. Afterward, the website issues a session cookie. Malware on your computer can steal that, as infostealers do. An attacker can also go around the key through a weaker fallback the account still allows, or through support staff who are persuaded to reset it. And a key can't stop you from granting a malicious app access after you've signed in.
Malware that controls your computer could also try to trick you into touching the key at a convenient moment. Be suspicious of a touch request you didn't expect.
Choosing a key
Check these before buying:
- Connector: USB-A, USB-C, or another that matches your computers and phone.
- NFC: tap-to-use with phones that support it.
- Standards: look for FIDO2 support. Some keys also offer one-time passwords, smart card functions (PIV) or OpenPGP, which matter for particular work uses.
- Fingerprint reader: some models verify you by touch instead of PIN.
- Capacity: keys can hold only a limited number of discoverable credentials (passkeys stored on the key), and the limit varies by model and firmware.
- Durability and size: a tiny key left in a port is convenient; a keyring model travels better.
- Source: buy from the maker or an authorized seller, not secondhand.
Certification from the FIDO Alliance is a useful sign of conformance. Firmware on many keys can't be updated, by design, so check the maker's advisories and be prepared to replace a model if a serious flaw is announced.
Setting one up
- Plug in the key and set a PIN, using your operating system's security key settings or the maker's tool.
- Start with your email account. Open security settings and add a security key or passkey.
- When the browser asks where to save it, choose the external key. It may offer your phone or computer first.
- Insert or tap, enter the PIN and touch.
- Give it a clear name, such as "keyring" or "safe".
- Repeat immediately with the second key.
- Save recovery codes and review which other methods remain enabled.
- Test both keys from a private window.
Keep a short list of accounts where each key is registered. A key can't tell a website you've lost it, so you will use the list when replacing one.
Losing a key
Sign in with your spare. On each account on your list, remove the missing key. A PIN or fingerprint requirement protects discoverable credentials and many sign-ins, but where a site uses the key only as a second step after a password, possession and a touch may be enough, so remove it promptly. Then buy a replacement and register it so you have a spare again.
Resetting a key erases its credentials. Never reset one before you've confirmed you can get into every account another way.
Computers, servers and work
Many operating systems and organizations support keys for device or network sign-in, though setup differs widely. Developers can use FIDO-backed SSH keys, which recent versions of OpenSSH support:
ssh-keygen -t ed25519-sk This creates a key file that works only together with the physical device. The server must also run a version that accepts this key type. See SSH security basics for the surrounding practices.
An organization rolling keys out should issue two per person or provide a controlled temporary alternative, record which key belongs to whom, verify identity carefully before enrolling a replacement and remove keys promptly when people leave. The replacement process deserves as much care as the key itself.
Where support gets uneven
Most large email, cloud, developer and social services accept security keys, but the details differ in ways worth checking before you rely on one.
Some allow only a single key, which defeats the spare-key plan; use a second method of comparable strength there. Some accept a key on the website but not in their mobile or desktop app. Some require you to keep a text message or app method enabled, leaving a weaker path open. A few use the key only as a second step and still ask for the password each time, while others let the key replace it.
Banks vary widely, and many don't accept third-party keys at all. In that case, use the strongest method the bank offers and protect the email account and phone number connected to it.
Phones can be the awkward case. NFC tapping depends on where the antenna sits, so try different positions, and a thick case may interfere. A USB-C key plugged directly into the phone is often more predictable. Remote desktop sessions and virtual machines may need extra settings before the key is passed through, so test those before you travel or depend on them for urgent work.
Browsers and operating systems also present the choices differently. If you only see an offer to save a passkey on the computer, look for a link such as "other options" or "use a security key".
Before buying several keys for a team, test one with the services and devices you care about most. A short trial finds the surprises while they are still cheap to solve.
Everyday habits
Keep the spare somewhere you can reach but won't lose along with the first, such as a locked drawer at home. Whenever you add an important new account, register both keys; a monthly reminder helps catch accounts you added in a hurry. Check that travel plans include a way in if your bag disappears. Don't leave a key permanently in a shared or unattended computer.
Finally, tell someone you trust that the spare exists and what it is for. A household member who finds an unlabeled gadget in a drawer may throw it out, and in an emergency they may need to know where it is. The note doesn't need to include the PIN.
Common questions
Do keys need batteries or a network connection?
Most USB and NFC keys draw power from the port or the reader and need no battery. Signing happens locally, while the website you're signing in to still needs a connection.
Can one key protect many accounts?
Yes. It creates separate credentials per site. Limits apply mainly to credentials stored on the key itself.
Is a key better than a synced passkey?
It gives you tighter control over where the private key lives. Synced passkeys are easier to recover. Both resist phishing, and using both is reasonable.