Microsoft 365, Outlook and Gmail

How to stop your email account being hacked

Most email takeovers start with a stolen password or a tricked approval, not a technical break-in. The strongest practical fix for supported accounts is to replace SMS codes and simple app approvals with phishing-resistant sign-in — a passkey or a FIDO2 hardware security key — and to keep a registered backup method so you are not locked out.

Why this happens

  • Attackers send convincing "password expired", invoice or shared-document emails that lead to fake Microsoft or Google sign-in pages.
  • Passwords reused from other breached websites are tried automatically against email accounts.
  • SMS codes and push approvals can be relayed through a phishing page or approved by mistake when a user is flooded with prompts.
  • Once inside, attackers often add forwarding rules or read invoices to attempt payment fraud.

What to do, in order

  1. Change the password to a unique one stored in a reputable password manager.
  2. Review recent sign-in activity, connected apps, forwarding and inbox rules, and remove anything unfamiliar.
  3. Turn on multi-factor authentication, then add a security key or passkey where your Microsoft or Google account supports it.
  4. Register at least two keys (or a key plus another secure recovery method) and store the backup safely.
  5. For organisations, have an administrator enforce strong methods and limit fallback to SMS for sensitive users.

Where a FIDO2 security key such as YubiKey fits

FIDO2/WebAuthn is an open sign-in standard supported by major browsers and many online services. When you register a security key, it creates a key pair tied to that service's real web address. At sign-in the key only answers for the genuine site, so a look-alike phishing page cannot obtain a usable response, and there is no code for someone to read out or forward. A YubiKey, manufactured by Yubico, is one widely used hardware security key that supports these standards.

Microsoft personal accounts, Microsoft Entra ID work accounts (where an administrator enables FIDO2 passkeys) and Google accounts and Google Workspace (subject to settings) can use security keys. Outlook desktop and mobile apps sign in through the same Microsoft account, though older apps or protocols may not support modern sign-in and should be reviewed.

TKWIT helps individuals and companies in Colombo, Port City Colombo and throughout Sri Lanka choose compatible keys, check device connectors and plan enrolment and backup keys.

What a security key cannot do

  • A security key cannot remove malware already running on a computer or phone. Malware can act inside a session after a legitimate sign-in.
  • It does not stop session-cookie or token theft once a session exists; short session lifetimes, device security and sign-in monitoring still matter.
  • Protection only applies to services and sign-in flows that support FIDO2/WebAuthn or FIDO U2F and where weaker fallback methods are restricted.
  • One-time-code (OTP) modes on a key are not phishing-resistant in the same way as FIDO authentication.
  • Only biometric models such as YubiKey Bio FIDO Edition have a fingerprint sensor; other models use a touch and, where required, a PIN.
  • No single control stops every cyberattack. A key is one layer alongside updates, backups, endpoint protection and staff awareness.

Frequently asked questions

Will a security key stop all email hacking?
No. It strongly reduces password-phishing and account-takeover risk on supported sign-ins, but it does not remove malware, stop stolen session tokens or protect accounts that still allow weaker fallback methods.
Does it work with Gmail and Outlook?
Google accounts and Microsoft accounts support security keys, subject to account type and administrator settings. Check the exact account and devices before buying.
What if I lose the key?
That is why you register a second key or another secure recovery method in advance. Without one, recovery depends on the service's own account-recovery process.

Related pages

More account security guides

Next step

Get help choosing and enrolling security keys

Share the accounts you want to protect, device connectors and number of users. TKWIT will confirm compatibility, availability and setup assistance in a quotation.

WhatsApp Call UsGet a Quote