SaferComputing.com

Guide 6 · Credentials

Move to a password manager, passkeys and hardware security keys

Move saved passwords out of the browser into a dedicated vault, switch important accounts to passkeys or hardware security keys, and write an emergency recovery sheet you can actually use.

Published
Updated
Applies to
Chrome, Edge and Firefox saved passwords; FIDO2 and WebAuthn security keys

The plan

  1. Choose a password manager and set it up with a strong master passphrase and its recovery method.
  2. Export the passwords saved in your browsers, import them, and delete the export.
  3. Delete the browser copies and stop the browser offering to save new ones.
  4. Move your most important accounts to passkeys or hardware security keys, with a backup.
  5. Write an emergency recovery sheet and store it offline.

Step 1: choose a password manager

OptionSource codeWhere the vault livesNotes
KeePassXCOpen source (GPL-2 or GPL-3)An encrypted file on your own deviceNo account or cloud service; you sync the file yourself
BitwardenOpen source clients (GPL-3.0); server under AGPL-3.0, with enterprise modules under Bitwarden's own licenceBitwarden's cloud, or a server you runCan be self-hosted
VaultwardenOpen source (AGPL-3.0)A server you runAn unofficial server compatible with Bitwarden's apps; not associated with Bitwarden
Proton PassPublished client source codeProton's cloudPart of Proton's account system
1PasswordClosed source1Password's cloudNo self-hosted option

Whichever you choose, the master passphrase protects everything. Use a long passphrase you do not use anywhere else, turn on the manager's own second factor, and set up its recovery method before you import anything.

Step 2: export your browser passwords

Each browser can export saved passwords to a CSV file. The file is plain text: anyone who opens it sees every password.

  • Chrome: menu, Passwords and autofill, Google Password Manager, Settings, Export passwords.
  • Edge: menu, Passwords, then the ... menu, Export passwords. Not available on Android or iOS.
  • Firefox: menu, Passwords (called Logins and Passwords in older versions), then the ... menu, Export Passwords (or Export Logins).

Then import the file with your password manager's import tool, choosing the matching browser format.

Warning Handle the export like cash

  • Save it to a local folder that is not synced to OneDrive, iCloud, Google Drive or Dropbox.
  • Import it straight away, then delete it and empty the Recycle Bin or Trash.
  • On solid-state drives, deleted data cannot be reliably overwritten, so keep the file's life as short as possible.

Step 3: remove the browser copies

Once the import is checked, delete the saved passwords from each browser in the same password settings, and turn off the browser's offer to save passwords.

On computers you manage, a policy stops the built-in managers. Delete the saved passwords first: with the policy on, people can still use passwords that were already saved.

Windows PowerShell, as Administrator
if (-not (Test-Path 'HKLM:\SOFTWARE\Policies\Google\Chrome')) { New-Item -Path 'HKLM:\SOFTWARE\Policies\Google\Chrome' -Force | Out-Null }
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Google\Chrome' -Name PasswordManagerEnabled -Type DWord -Value 0
if (-not (Test-Path 'HKLM:\SOFTWARE\Policies\Microsoft\Edge')) { New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Edge' -Force | Out-Null }
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Edge' -Name PasswordManagerEnabled -Type DWord -Value 0

Confirm the browsers picked it up at chrome://policy and edge://policy.

Note Policies turn off secure DNS

Any policy marks Chrome and Edge as managed. Chrome then turns off its secure DNS, and managed Edge sends no DNS over HTTPS queries, unless the DnsOverHttpsMode policy is also set. To keep DNS encrypted, set that policy too: see Encrypted DNS.

Step 4: passkeys and hardware security keys

Why they beat passwords and codes

A passkey is a key pair created for one website. The private half stays on your device, in your password manager or on a security key; the website only stores the public half. The browser or operating system will only use a passkey on the site it was made for, so a convincing fake login page cannot collect it. That is why passkeys and security keys are called phishing-resistant, and why codes sent by text message are not.

  • Synced passkeys live in a password manager or in Apple, Google or Microsoft accounts and follow you to new devices.
  • Device-bound passkeys live on one physical security key, using the FIDO2 and WebAuthn standards, and cannot be copied off it.

Which accounts first

Start with the accounts that can reset everything else:

  1. The email account you use for password resets.
  2. Your password manager.
  3. Microsoft 365 or Google Workspace administrator accounts.
  4. Your domain registrar and DNS host, if you have a website.
  5. Banking and payment accounts that support it.

Set up security keys

Register two keys on every account that supports them: one you carry and one stored safely at home. If you lose the only key registered on an account, you are back to its recovery process.

Security keys are sold by several makers, including Yubico (YubiKey), Nitrokey and Token2. Check that a key supports FIDO2 before buying it.

For YubiKeys, Yubico's ykman tool shows the firmware and manages the FIDO2 PIN:

Terminal, with YubiKey Manager installed
ykman info
ykman fido access change-pin
ykman fido credentials list
  • YubiKey 5 series keys with firmware 5.7 or 5.8 hold up to 100 passkeys, and earlier firmware 25. Firmware cannot be upgraded after the key is made, so the number printed by ykman info is permanent.
  • The FIDO2 PIN locks after 8 wrong attempts in a row. Unlocking it requires a reset that deletes every passkey on the key. After 3 wrong attempts in a row, the key must be removed and plugged back in before you can try again.

Step 5: write an emergency recovery sheet

Recovery codes and backup keys only help if you can find them on a bad day. Write a sheet on paper, keep it somewhere fire-resistant at home, and keep the backup security key in a different place from it.

What to recordExample of where it lives
Password manager account email and how to recover the accountRecovery code printed from the manager's settings
Which accounts use which security keyA list of accounts and the key each is registered to
Recovery codes for each important accountPrinted and stored with this sheet
Where the backup security key isA different place from this sheet
Who may use the sheet if you cannotThe person you have told, and where it is

Update the sheet when you add an account or replace a key. Some password managers, Bitwarden among them, also offer an emergency access feature that lets a trusted person request access after a waiting period you choose.

Checklist

  • Password manager set up with a unique passphrase, second factor and recovery method.
  • Browser passwords imported; export file deleted.
  • Browser copies deleted; browser offer to save turned off.
  • Email, password manager and administrator accounts use passkeys or security keys.
  • Two security keys registered on each account that supports them.
  • Emergency recovery sheet written and stored offline.

Quick lookups

One-line checks and fixes for the ports, files and settings in this guide, one page each.

Sources