Real-time phishing of a session
A one-time code can be relayed as the person types it. A passkey cannot, because the ceremony is bound to the real origin. The log shows a success the person did perform, on a session they did not mean.
Diagram
From a code the person meant for you to a session elsewhere
Step 1 of 4
Prompt
The person is asked to sign in and is given a code or a push by the real identity provider.
# A one-time code or an approval prompt # can be asked for on the real site and typed into a lookalike.
A code or a bare approve tap.
Success looks legitimate.
It can be minted in a browser the person is not using.
The example on the open step is one illustration, or the fix you can paste into an application you own.
What this page is made of
4 pieces. Each one says what fails, who is affected, what you would notice, and what you change.
The code is relayable
- What fails
- SMS codes, email codes, and authenticator numbers can be read over the phone or typed into a lookalike. The real site then sees a correct code.
- Who is affected
- The account holder, whose session now exists somewhere else.
- What you would notice
- A success immediately after a code was issued, from a network the person does not use, while the person says they were on a different site.
- What you change
- Stop using relayable factors for admins and finance. Move those accounts to passkeys.
The log looks clean
- What fails
- The identity provider did its job. The password and the code were correct. Detection is the context: new device, new network, a report from the person, a consent grant minutes later.
- Who is affected
- The responder who closes the alert because the MFA field says yes.
- What you would notice
- A rule that only fires on MFA failure.
- What you change
- Alert on success from a new device for privileged roles, and on the person’s report. MFA success is not a benign label.
Push fatigue is the neighbor
- What fails
- A bare approve button can be worn down without a lookalike site. Real-time relay and fatigue both end in a session the person did not intend to give away.
- Who is affected
- The same account holder.
- What you would notice
- Prompts that continue until one is approved, with no number to match.
- What you change
- Number matching if you must keep push. Passkeys where you can. Both beat an endless approve button.
What you tell the person
- What fails
- The useful instruction is “we will not ask you to read a code to us” and “use the bookmark.” A poster about suspicious links does not name the relay.
- Who is affected
- Whoever handles the mailbox or the phone.
- What you would notice
- A runbook that asks the person to forward the code to support so support can “check.”
- What you change
- Never ask for the code. Revoke the session. Enroll a passkey while they still have the account.
The factor has to refuse the wrong site
One-time codes prove that someone can read a code. They do not prove that the person is on your site. A lookalike can ask the real site to send the code and ask the person to type it, then type it into the real site. The identity provider records a success. This is the real-time, or adversary-in-the-middle, phish. Writing the steps of that relay is not useful here. Recognizing the log and changing the factor is.
Passkeys and other origin-bound authenticators fail that relay because the approval is for a specific origin. The lookalike cannot turn the person’s gesture into an assertion your server will accept. That is why the passkey pages belong in the phishing chapter and not only in the identity chapter. SMS as a backup puts the relay back. For administrators and anyone who can pay or export, remove it.
Success is the suspicious event
Detection that looks for bad passwords will nap through this. The password was right. The code was right. What is wrong is the context: a privileged account, a device you have not seen, a network the person was not on, a new OAuth grant a minute later, a mailbox rule an hour later. Write the alert for that sequence. Pair it with a way for the person to say “that was not me” that revokes sessions without a lecture.
Push fatigue is the related failure: the person approves a prompt to make it stop, with no code that matches the sign-in they are looking at. Number matching helps. A passkey helps more. An alert only on denied prompts misses the one prompt that was approved. Include the approval in the story.
Do not collect the code
Support runbooks sometimes say “ask the caller to read the code so we can verify them.” That trains the person to read codes to whoever asks, which is the phish. Support can send a passkey prompt, start the recovery flow on the recovery page, or look at the session list and revoke. They cannot use the code. They should not ask.
The people affected are the account holder and the data that session could reach before revocation. The finding for a program still using SMS for global administrators is that factor, plus the alert gap. It is not a write-up of how to relay a code. Point the reader at the passkey enrollment and the session revoke button.
What you change
Require phishing-resistant factors for privileged roles. Disable relayable fallbacks for those roles. Shorten session lifetime, rotate refresh, and make “sign out everywhere” real. Add the new-device success alert. Edit the support script so it cannot ask for a code.
Practice in a lab tenant: enroll a passkey, confirm a lookalike origin is not your relying party, and find the success event in the log. You do not need a second website to do that practice. You need the log and the factor policy. The lookalike-domain page is the mail half of the same program.
Check yourself
Recognition and the fix. Nothing here is a procedure.
The person typed a one-time code into a site that looked like yours. Your identity provider shows a successful MFA sign-in from a new network. What happened?
Sibling techniques
Pages at the same depth, plus a lab and a glossary card for this one.