MFA methods and their weaknesses, why WebAuthn passkeys are phishing-resistant, passkey support in ASP.NET Core Identity (.NET 10), and the ACSC Essential Eight MFA requirements.
MFA methods differ mainly in phishing resistance.
ASP.NET Core Identity in .NET 10 supports passkey registration and sign-in (MakePasskeyCreationOptionsAsync, PerformPasskeyAttestationAsync, PasskeySignInAsync). The ACSC Essential Eight has required phishing-resistant MFA from Maturity Level 2 since its November 2023 update.
The trade-off: passkeys are the strongest and easiest for users, but account recovery and device loss need careful design.
"Multi-factor authentication combines something you know, have or are, but the methods aren't equal. SMS is the weakest: SIM-swap attacks and SS7 interception are real, and NIST restricts it. TOTP authenticator apps generate a code from a shared secret and the time, which stops password reuse attacks, but an adversary-in-the-middle phishing kit simply asks the victim for the code and replays it within the 30-second window. Push approvals are convenient but users approve prompts they didn't start, which is MFA fatigue; number matching fixes most of that.
WebAuthn, the standard behind FIDO2 and passkeys, is different in kind. At registration the authenticator creates a key pair for that relying party; the server stores only the public key. At sign-in the server sends a challenge, the authenticator signs it after a local gesture like Face ID or a PIN, and the browser includes the origin in what's signed. A phishing site on a look-alike domain can't ask for a signature for the real domain, so there's nothing to relay, and there's no shared secret on the server to steal. Passkeys are WebAuthn credentials that can be synced across a user's devices, or device-bound on a security key. In .NET 10, ASP.NET Core Identity supports them: the Blazor template includes the UI, and the
SignInManagerhasMakePasskeyCreationOptionsAsync,PerformPasskeyAttestationAsyncandPasskeySignInAsync, with storage in a passkeys table after moving to schema version 3.The mistake I see is strong sign-in with a weak recovery path, like resetting MFA by email. The senior line: phishing-resistant MFA is now the Essential Eight's baseline from Maturity Level 2, and passkeys are the way to meet it without making users hate you."
| Method | Factor | Main attack | Phishing-resistant? |
|---|---|---|---|
| SMS / voice code | Have (phone number) | SIM swap, interception, real-time relay | No |
| Email code / magic link | Have (mailbox) | Mailbox takeover, relay | No |
| TOTP app (RFC 6238) | Have (shared secret) | Real-time relay by AitM kits, secret theft | No |
| Push with number matching | Have (device) | Relay possible, fatigue reduced | No |
| FIDO2 security key | Have (+ PIN) | Physical theft + PIN | Yes |
| Passkey (synced) | Have (+ biometric/PIN) | Compromise of the sync account | Yes |
| Smart card / Windows Hello for Business | Have (+ PIN) | Device compromise | Yes |
The November 2023 maturity model update moved phishing-resistant MFA down to Maturity Level 2 for users of online services and systems, and online customer-facing services should offer customers a phishing-resistant option. Check the current ASD maturity model text when a client needs exact control wording for an assessment.
For [a staff portal] we added passkeys alongside TOTP in [Identity / Entra ID]; within [three months] [~70%] of users had registered one, sign-in time dropped from [~25 s] to [~6 s], and the [two] phishing campaigns that followed captured passwords but produced [zero] successful sign-ins for passkey users.
Checks that the candidate understands why some MFA methods resist phishing and can apply current .NET and Australian guidance.
Green flags
Red flags
Victim -> fake-login.example (AitM proxy) -> real-login.example
password ------------------------------------> accepted
TOTP 123456 ---------------------------------> accepted (within 30 s)
<- session cookie captured by the proxy
The code is not bound to where it is typed. Evilginx-style kits automate this.
Registration:
server -> challenge, rp.id = "portal.example.com.au", user.id
authenticator -> new key pair for (rp.id, user.id); returns public key + attestation
server stores credentialId + public key
Sign-in:
server -> challenge, allowCredentials
browser -> clientDataJSON { type, challenge, origin: "https://portal.example.com.au" }
authenticator -> signs (authenticatorData(rpIdHash, flags, signCount) + hash(clientDataJSON))
server verifies signature, rpIdHash, origin, challenge, user-verified flag
The browser fills in the origin, not the page; a phishing site at portal-example.com has a different RP ID, so the authenticator has no credential for it.
Synced passkeys live in a platform credential manager (iCloud Keychain, Google Password Manager, Windows, or third-party managers) and survive device loss; their security depends on that account. Device-bound passkeys (security keys) never leave the hardware and suit admins. The backup eligible and backed up flags in authenticator data tell the server which kind it got.
IdentityOptions.Stores.SchemaVersion = IdentitySchemaVersions.Version3 and add a migration for the passkey table.IdentityPasskeyOptions (for example ServerDomain, the RP ID).MakePasskeyCreationOptionsAsync -> browser navigator.credentials.create() -> PerformPasskeyAttestationAsync -> UserManager.AddOrUpdatePasskeyAsync.MakePasskeyRequestOptionsAsync -> navigator.credentials.get() -> PasskeySignInAsync.fido2-net-lib remains an option. Early .NET 10 preview articles use method names that changed before release, so check the API reference.Recovery codes, a second passkey, or identity re-verification through support. Never let email alone remove MFA for privileged users.
AspNetUserPasskeys row and identify the credential id and public key.ServerDomain and see existing passkeys stop working (the RP ID changed).Passkey sign-in endpoints using ASP.NET Core Identity in .NET 10 (the browser calls navigator.credentials.get() between the two calls). Check the exact signatures against the API reference for your SDK version.
// Program.cs (.NET 10)
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDbContext<AppDbContext>(o => o.UseSqlServer(builder.Configuration.GetConnectionString("App")));
builder.Services.AddIdentity<AppUser, IdentityRole>(o =>
{
o.Stores.SchemaVersion = IdentitySchemaVersions.Version3; // adds passkey storage
})
.AddEntityFrameworkStores<AppDbContext>()
.AddDefaultTokenProviders();
// The relying party ID: passkeys only work on this domain and its subdomains.
builder.Services.Configure<IdentityPasskeyOptions>(o => o.ServerDomain = "portal.example.com.au");
var app = builder.Build();
app.UseAuthentication();
app.UseAuthorization();
// 1. Server creates a challenge; the JSON goes to navigator.credentials.get().
app.MapPost("/passkey/request-options", async (SignInManager<AppUser> signIn) =>
Results.Content(await signIn.MakePasskeyRequestOptionsAsync(user: null), "application/json"));
// 2. Browser posts the assertion; Identity verifies origin, challenge and signature, then signs in.
app.MapPost("/passkey/sign-in", async (PasskeySignInRequest request, SignInManager<AppUser> signIn) =>
{
var result = await signIn.PasskeySignInAsync(request.CredentialJson);
return result.Succeeded ? Results.NoContent() : Results.Unauthorized();
});
app.Run();
public sealed record PasskeySignInRequest(string CredentialJson);
public sealed class AppUser : IdentityUser;
public sealed class AppDbContext(DbContextOptions<AppDbContext> o) : IdentityDbContext<AppUser>(o);
// Browser side (simplified): the origin is added by the browser, which is what defeats phishing.
const options = await (await fetch('/passkey/request-options', { method: 'POST' })).json();
const credential = await navigator.credentials.get({ publicKey: PublicKeyCredential.parseRequestOptionsFromJSON(options) });
await fetch('/passkey/sign-in', { method: 'POST', headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ credentialJson: JSON.stringify(credential.toJSON()) }) });
The industry has moved from 'turn on MFA' to 'make MFA phishing-resistant', and Australian guidance followed with the 2023 Essential Eight update. Passkeys are the rare control that improves both security and usability, so the rollout plan matters more than the technology: offer them at sign-in, keep TOTP as a fallback for a while, and require device-bound keys for administrators.
| Option | When it fits | Cost | When not to |
|---|---|---|---|
| Synced passkeys | Customers and most staff | Recovery design, user education | Highest-privilege admins (prefer device-bound) |
| Security keys (FIDO2) | Admins, break-glass accounts | Hardware, logistics | Large consumer bases |
| TOTP | Fallback, legacy clients | Phishable | As the only factor for sensitive systems |
| SMS | Last-resort recovery only | SIM swap risk | Anything privileged |
Measure passkey adoption, MFA method mix, sign-in success rate and recovery requests; recovery volume tells you whether the design is working.
ASP.NET Core Identity is a membership library: user and role stores (usually EF Core), password hashing with PasswordHasher (PBKDF2 with HMAC-SHA512 and 100,000 iterations), lockout after failed attempts, email confirmation, password reset tokens, two-factor with authenticator apps and recovery codes, the security stamp, and since .NET 10 passkeys. MapIdentityApi adds ready-made register, login and refresh endpoints for SPAs and mobile apps.
Use it when one app owns its own users. Choose an external identity provider (Microsoft Entra ID for staff, Entra External ID, Auth0 or similar for customers) when you need single sign-on across apps, federation with other organisations, conditional access, or you don't want to own password security and compliance yourself.
The trade-off: Identity is free and fully in your control, but every security feature and incident is yours to run.
Prevent the problem first: prompt users to register two credentials (a synced passkey plus a second device or security key) and issue one-time recovery codes stored hashed. Then treat recovery as a high-risk event: require a recovery code, or identity re-verification proportionate to the account (for example a document check or a video call with support for administrators), plus risk signals such as a known device, IP history and account age. Notify the user on every channel, apply a cool-off period (for example 24–72 hours before the new credential can change payout details or export data), and log and alert on recovery events. Never let email alone remove MFA for privileged users; that turns a mailbox takeover into an account takeover.
How to tell it (STAR)
**S:** A phishing kit relayed passwords and TOTP codes for [three] admin accounts on our [client portal], and exports were made from the stolen sessions. **T:** I was responsible for the application-side containment and the fix. **A:** We invalidated sessions by updating security stamps, reset credentials and worked through the NDB assessment, then I implemented passkeys with .NET 10 Identity, made them mandatory for admins, and added step-up authentication before exports. **R:** Within [six weeks] [100%] of admins and [~65%] of other staff used passkeys, and a similar campaign [two months later] produced [zero] successful sign-ins.
Last updated 23 Nov 2026.