This procedure moves every account you run, across Microsoft 365, Google Workspace, AWS, GitHub and Bitbucket, from passwords plus one-time codes to passkeys. Admin switches first, then a five-minute enrolment for everyone, then the old methods come out for good.
Although you have 2FA/MFA set up throughout your Microsoft 365 environment, that enhanced level of authentication is still susceptible to replay attacks. A look-alike sign-in page sits between the user and the real one. The user types their password and the six-digit code, the page passes both to Microsoft in real time, and the adversary keeps the signed-in session. The code worked exactly as designed. It just worked for the wrong person.
The security industry has known about this for some time, and an alternative existed: passkeys, built on the FIDO2 / WebAuthn standard. It took a while to iron out the wrinkles. Early versions were tied to one device, recovery was awkward, and admin consoles lagged. As of 2026 those gaps are closed. Microsoft made synced passkeys and passkey profiles generally available in Entra ID, Google lets Workspace users skip passwords entirely, and AWS, GitHub and Atlassian all accept them.
A passkey is a key pair. The private half never leaves the phone, laptop or security key, and it only answers to the real domain it was created for. A fake page gets nothing it can relay.
| Workstream | Basis | Hours |
|---|---|---|
| Contain the account | Revoke sessions, reset password, re-register MFA, remove the rogue sync device, review sign-in and audit logs | 6-10 |
| Inventory and triage | Export 500+ saved entries, find owners, rank by risk (finance, admin, vendor, personal) | 8-12 |
| Rotate credentials | 500 credentials at 10-15 minutes each: sign in, change, store safely, confirm | 85-125 |
| Repair what breaks | Integrations, shared logins and scripts that used a rotated password | 10-20 |
| Watch and notify | Monitor for misuse, contact affected vendors, check reuse on other sites | 8-15 |
| Total | Roughly 3 to 4.5 weeks of one person's full-time effort | 117-182 |
At 00:00. The look-alike page is not the real domain, so the passkey refuses to sign. There is no code to type, so there is nothing to relay. The session never exists, the sync never happens, and the cleanup above is zero hours.
Malware already on a device can still steal a session cookie after sign-in. That is why this procedure also turns off password sync in managed Chrome and keeps devices patched. Passkeys close the front door. They are not the whole house.
Every person, every platform below, with no exceptions for executives or admins. Admins go first because their accounts are the ones worth stealing. Enforcement only switches on after everyone has two passkeys registered, so nobody gets locked out.
Enable passkeys in each console. Admins and break-glass owners enrol two each.
Staff enrol a passkey on their phone plus one backup. About five minutes per platform.
Require phishing-resistant sign-in for admins, then everyone.
Switch off authenticator codes, texts, push and app passwords so passkeys are the only way in.
| Platform | Licence needed | Org admin must enable |
|---|---|---|
| Microsoft 365 | Passkey method: any Entra tier. Enforcement needs Entra ID P1 (in M365 Business Premium, E3, E5). Business Basic and Standard need a P1 add-on. | Passkey (FIDO2) policy, passkey profiles, Conditional Access authentication strength |
| Google Workspace | No add-on. Passkeys work on all editions. Passkey usage reporting needs Enterprise, Frontline or Cloud Identity Premium. | Skip passwords, 2-Step Verification enforcement, Chrome password sync policy |
| AWS | No cost. | Passkey MFA on root, IAM Identity Center MFA types |
| GitHub | All plans. Forcing passkeys through SSO needs Enterprise Cloud. | Require 2FA with secure methods only |
| Bitbucket | Personal Atlassian accounts: free. Managed accounts: SSO through Atlassian Guard. | Authentication policy, SSO to your identity provider |
Open a platform to see its steps. Copying a value marks the step as taken. Mark complete once you have checked the result. Progress is saved in this browser only.
Passkeys themselves need no add-on. Conditional Access needs Entra ID P1 to make them mandatory. Some admins report passkey sign-in failing on tenants with no P1, so pilot first on those.
Authentication Policy Administrator for methods. Conditional Access Administrator for enforcement.
In the Entra admin centre open Entra ID → Authentication methods → Policies → Passkey (FIDO2). Enable it, target a pilot group first, and confirm Allow self-service set-up is Yes. Without that, users cannot add a passkey even when the method is on.
https://entra.microsoft.com/#view/Microsoft_AAD_IAM/AuthenticationMethodsMenuBlade/~/AdminAuthMethods
Under Configure → Add passkey profile, create:
# Microsoft Authenticator for iOS 90a3ccdf-635c-4729-a248-9b709135078f # Microsoft Authenticator for Android de1e552d-db1d-4423-a619-566b625cdc84
A Temporary Access Pass lets a new hire or someone with a lost phone sign in once and register a passkey without ever using a password. Enable it at Authentication methods → Policies → Temporary Access Pass, one-time use, 1-8 hour lifetime.
Entra ID → Conditional Access → New policy. Users: admin roles first, then all users. Exclude the two break-glass accounts. Grant: Require authentication strength → Phishing-resistant MFA. Run in report-only for a week, check sign-in logs, then switch on.
Open Security info, choose Add sign-in method → Passkey in Microsoft Authenticator, and follow the prompts on your phone. Needs iOS 17+ or Android 14+ with a screen lock.
https://mysignins.microsoft.com/security-info
Skip this and sign-in on the phone falls back to a QR code that won't scan on the same device.
Sign out, sign back in, choose Sign-in options → Face, fingerprint, PIN or security key. Then register a second passkey on your laptop (Windows Hello or Touch ID) so a lost phone is not a lost account.
No add-on. Passkeys work on every Workspace edition.
When Workspace uses Entra ID as its SSO provider, the passkey lives in Entra. Do the Microsoft 365 steps and skip steps 1 and 4 here. Still do step 3.
Admin console → Security → Authentication → Passwordless → Skip passwords. Tick Allow users to skip their password and authenticate with a passkey, apply to the top-level OU, Save. Needs the Security Settings admin privilege.
https://admin.google.com/ac/security/passwordless
Security → Authentication → 2-step verification. Turn on enforcement with a start date, set a new-user enrolment period of one week, and set Methods → Only security key. Apply to an admin OU first and confirm everyone's passkeys satisfy the policy before widening it.
This is the step that would have stopped the 500-password loss in the case study. Devices → Chrome → Settings → Users & browsers. Turn off the built-in password manager for staff, or exclude passwords from Chrome Sync, and move shared and business credentials into your business password manager.
PasswordManagerEnabled = false SyncTypesListDisabled = ["passwords"]
Open the passkeys page, choose Create a passkey, and confirm with your face, fingerprint or PIN. Then turn on Skip password when possible on the same Security page.
https://myaccount.google.com/signinoptions/passkeys
Export or move work credentials into the business password manager, then delete them from Google Password Manager. Fewer stored passwords means a smaller blast radius if anything goes wrong.
https://passwords.google.com
No cost. Root and IAM users can hold up to eight MFA devices each, so register two.
The passkey is enforced at that identity provider. AWS inherits it. Do steps 1 and 3 here regardless.
Sign in as root. Account menu → Security credentials → Multi-factor authentication → Assign MFA device → Passkey or security key. Register two (for example, a hardware key in the safe and the owner's laptop). Repeat for every account in the organization that still has root credentials.
IAM Identity Center → Settings → Authentication → Multi-factor authentication → Configure. Prompt every time they sign in, allow Security keys and built-in authenticators, and remove authenticator apps once everyone has enrolled.
People should sign in through Identity Center, not IAM users. Any IAM user that still has a console password gets Users → user → Security credentials → Assign MFA device → Passkey or security key, with a date to move it over. This list will find them:
aws iam generate-credential-report
aws iam get-credential-report --query Content --output text | base64 -d \
| awk -F, 'NR==1 || $4=="true" {print $1","$4","$8}'
# columns: user, password_enabled, mfa_activeIn the AWS access portal, open MFA devices → Register device → Built-in authenticator (or security key) and confirm on your device. For the CLI, use short-lived Identity Center sessions instead of long-lived access keys:
aws configure sso
aws sso login --profile your-profilePasskeys and 2FA enforcement work on Free, Team and Enterprise. Forcing passkeys specifically needs Enterprise Cloud with SSO to Entra or Google.
"Secure methods only" removes SMS but still allows authenticator codes. It raises the floor. It does not make GitHub fully phishing-resistant on its own.
Organization → Settings → Authentication security. Tick Require two-factor authentication and Only allow secure two-factor methods, Save, Confirm. Members and outside collaborators without a compliant method are removed, so announce it a week ahead and re-invite collaborators afterwards.
Settings → Password and authentication → Passkeys → Add a passkey. Then sign out and sign in with Sign in with a passkey.
https://github.com/settings/security
Passkeys protect the web sign-in. For Git over SSH, a security-key-backed SSH key needs a physical touch for every push. Add the public key at Settings → SSH and GPG keys.
ssh-keygen -t ed25519-sk -C "you@company.com"Atlassian passkeys work only on non-managed accounts. Accounts on your verified domain are managed and get passkeys through SSO to Entra or Google instead.
SSO to your identity provider needs Atlassian Guard. Without it, managed accounts stay on password plus two-step verification, which you should enforce.
In Atlassian Administration, Security → Identity providers, connect Entra ID or Google. Then Security → Authentication policies: enforce SSO for staff. Passkeys enforced at the identity provider now cover Bitbucket. If Guard is not in budget, enforce two-step verification in the same policy screen as the interim floor.
https://admin.atlassian.com
On a non-managed Atlassian account, open the security page, choose Create and manage passkeys → Register key, name it, and pick where to store it. Register two.
https://id.atlassian.com/manage-profile/security
Passkeys cover the web sign-in only. Git and API access use scoped API tokens or a security-key-backed SSH key. App passwords stopped working on June 9, 2026, so move anything that still relies on one.
Adding passkeys does not remove the old way in. As long as an authenticator code, a text message or an app password still works, an adversary will use that instead, and the fake sign-in page from the case study still pays off. This step is what actually closes the risk. Start it only after the enrolment report shows everyone has two passkeys.
| Method | Status | Why |
|---|---|---|
| Text and voice codes | Remove | Relayable, and open to SIM swaps and port-outs |
| Authenticator app codes (TOTP) | Remove | A six-digit code types into a fake page as easily as a text does |
| Push approvals | Remove | Relayable, and prone to fatigue: people tap Approve to make it stop |
| Email one-time codes | Remove | Only as strong as the inbox, which is often what was taken |
| App passwords, legacy protocols, device code sign-in | Remove | Skip the second factor entirely |
| Backup and recovery codes | Admin-issued only | Needed for a lost device, but never self-generated or emailed |
| Passkeys, security keys, Windows Hello | Keep | Bound to the real domain. Nothing to relay |
Once codes are gone, adversaries call the help desk instead. Write the rule down: no passkey reset, Temporary Access Pass or backup code is issued without a live video check against a known photo, or a callback to the number in the HR system. Never to a number the caller gives you.
A new passkey or MFA method on an account is the clearest sign of a takeover in progress. Send these audit events to whoever watches your alerts, and have the account owner confirm each one within a business day.
Method policies work on any tier. Steps 2 and 3 use Conditional Access and need Entra ID P1.
Create a "Passkey lockdown" security group. Move people in once they have two passkeys, rather than switching everyone at once.
In Entra ID → Authentication methods → Policies, exclude the lockdown group from each of these, then disable them outright once everyone is in the group:
Also check the legacy per-user MFA settings page. Old per-user settings can still allow text and call codes until you clear them.
If someone with a relayed session can add their own passkey, everything above is wasted. Create a Conditional Access policy. User action: Register security information. Grant: Require authentication strength, using a custom strength of Passkey (FIDO2), Windows Hello for Business and Temporary Access Pass. New hires bootstrap with a TAP. Nobody registers with a password and a code.
Two Conditional Access policies for all users, break-glass excluded:
Turning a method off in the policy stops its use, but the old phone numbers and app registrations stay on the account. List them, then delete them from each user's Authentication methods blade.
Connect-MgGraph -Scopes "AuditLog.Read.All","UserAuthenticationMethod.Read.All"
Get-MgReportAuthenticationMethodUserRegistrationDetail -All |
Where-Object { $_.MethodsRegistered -match "mobilePhone|softwareOneTimePasscode|microsoftAuthenticatorPush|email" } |
Select-Object UserPrincipalName, @{n="Methods";e={$_.MethodsRegistered -join ", "}} |
Export-Csv .\old-mfa-methods.csv -NoTypeInformationTwo cloud-only Global Admin accounts, each with its own FIDO2 hardware key kept in a separate safe. Exclude them from these policies, and alert on any sign-in. They exist so a bad policy can't lock you out of your own tenant.
No add-on. Every setting here is in all editions.
The Microsoft 365 lockdown covers sign-in. Still do step 3 for any super admin accounts that sign in to Google directly.
Security → Authentication → 2-step verification. Confirm Methods is Only security key (passkeys count) on every OU, not just admins. Set Security codes to Don't allow users to generate security codes. Backup codes now come only from an admin, after the identity check in Recovery step 1.
Security → Authentication → Account recovery. Turn off recovery for super admins and for users. Self-service recovery runs through a phone number or a personal email, which is the weakest link left.
Security → Authentication → Advanced Protection Program. Allow enrolment, then enrol every super admin. It requires keys, adds extra checks on recovery and limits which third-party apps can reach the account.
On your 2-Step Verification page, delete the phone number, authenticator app and Google prompts. Keep your passkeys and any security keys.
https://myaccount.google.com/signinoptions/two-step-verification
IAM Identity Center → Settings → Authentication → Multi-factor authentication → Configure. Untick Authenticator apps. Under If a user does not yet have a registered MFA device, choose Block their sign-in, not the email one-time password option.
Once a user has a passkey registered, deactivate and delete their authenticator app device. List them first:
aws iam list-virtual-mfa-devices --assignment-status Assigned \ --query "VirtualMFADevices[].[User.UserName,SerialNumber]" --output table # then, per device: aws iam deactivate-mfa-device --user-name USER --serial-number SERIAL aws iam delete-virtual-mfa-device --serial-number SERIAL
With AWS Organizations, IAM → Root access management → Enable, then delete the root password, access keys and MFA from each member account. A root password that doesn't exist can't be phished. The management account keeps its root user, protected by the two passkeys from Steps.
An access key in someone's home folder skips sign-in entirely. Use the credential report from Steps to find people with active keys, move them to aws sso login, then deactivate the keys. Keep long-lived keys only for workloads that can't use roles, and rotate those.
GitHub requires an authenticator app or SMS underneath passkeys. You can swap SMS for an app, but you can't remove the base method on a standard account.
Enterprise Cloud with SSO to Entra or Google hands sign-in to your identity provider, where the lockdown above already applies.
Organization → Settings → Personal access tokens → Settings. Restrict access through classic tokens, and require approval for fine-grained tokens. A leaked classic token is full access with no second factor at all.
For organizations where code is the business, Enterprise Cloud with SAML or OIDC SSO (or Enterprise Managed Users) is the only way to make GitHub as tight as your identity provider. Without it, steps 1 and 3 are the ceiling.
In Settings → Password and authentication, replace SMS with an authenticator app if you still use SMS, and set your passkey or security key as the preferred 2FA method. Never enter the app code on a page you reached from a link.
In Atlassian Administration → Security → Authentication policies, put every managed user in a policy that enforces SSO. Atlassian passwords and Atlassian two-step codes then stop working for staff. Your identity provider's passkey-only rules apply instead. Needs Atlassian Guard.
Bitbucket app passwords stopped working on June 9, 2026, so anything still running uses API tokens. In Atlassian Administration → Security → API tokens, review who holds tokens, revoke the ones nobody claims, and set an expiry for the rest.
Every person has two passkeys on every platform they use. Text, voice, app codes and push are switched off and cleared from accounts, except GitHub's required base method. No legacy protocols, device code sign-in, classic tokens or member-account root passwords remain. Resets need a verified identity. Each platform's sign-in log shows only passkey sign-ins for seven days. Review quarterly and at every new hire.