Glossary
Adversary-in-the-middle phishing (AiTM)
Definition
Adversary-in-the-middle phishing: A phishing attack in which a proxy server sits between the victim and a real sign-in page, relays the password and one-time code to the real service, and keeps the session cookie the service returns, letting the attacker skip sign-in.
Also known asAiTM phishingadversary-in-the-middle attackreverse proxy phishingMFA bypass phishing
In short
Adversary-in-the-middle (AiTM) phishing puts a proxy between you and a real sign-in page. You type your password and two-step code into a lookalike site, the proxy passes them to the real service, and the attacker keeps the session cookie that comes back. One-time codes and passwords can be relayed this way; sign-in methods bound to the real site's address can't.
Key takeaways
- An AiTM page relays your sign-in live to the real site, so a one-time code works for the attacker too.
- The prize is the session cookie, which lets the attacker skip signing in.
- NIST says passwords and one-time codes are not phishing-resistant.
- Read the address bar before you type a password or a code.
- If you entered details on a page you doubt, sign out every other session and change your password.
Last reviewed 3 December 2026 by Foxcolab Team
Adversary-in-the-middle phishing (AiTM phishing) is an attack where a fake sign-in page sits between you and the real service and passes everything along in both directions. You type your password and two-step code into what looks like the real page, the attacker's server forwards them, the real service signs you in, and the attacker keeps the session cookie it hands back. Microsoft, which tracked one campaign that "attempted to target more than 10,000 organizations," describes it as a "proxy server between a target user and the website the user wishes to visit."
How it differs from ordinary phishing#
Ordinary phishing collects a password and hopes no second factor is asked for. AiTM phishing relays the whole sign-in live, so a one-time code works for the attacker too. The prize is the session cookie. MITRE ATT&CK notes that open-source kits "can gather session cookies through a malicious proxy" and that a stolen session cookie can get past some multi-factor sign-ins (T1539). Microsoft is clear that this is "not a vulnerability in MFA": the code worked, then the session was stolen.
An example#
- An email says a shared invoice is waiting, with a link to
login.examp1e-docs.com. - The page shows your company's real sign-in screen, fetched live from the real site.
- You enter your password and the six-digit code from your authenticator app. Both pass straight through to the real service.
- You land in your mailbox and see nothing wrong. The attacker opens the same mailbox with your session cookie.
What stops it#
NIST's digital identity guidelines say plainly that "Passwords are not phishing-resistant" and "OTP authentication is not phishing-resistant," because anything you type can be relayed (SP 800-63B-4, section 3.1). Methods that tie the sign-in to the real site's address, such as passkeys and security keys, break the relay. Whatever you use:
- Read the address bar before you type a password or a code.
- Distrust a sign-in prompt that appears after you click an email link.
- If you entered details on a page you're unsure of, end every other session and change your password at once.
In Foxcolab#
Foxcolab's web apps all run on foxcolab.com addresses, and the account sign-in page is accounts.foxcolab.com, so a Foxcolab sign-in page anywhere else is a fake. In Foxcolab Mail on the web, a link whose text shows one site but opens another, or whose address imitates a well-known name, doesn't open straight away: you see Check this link before you open it first. If you think a session was stolen, open Your devices and select Sign out all others, then change your password, which also signs out every other session. See manage active sessions and how to spot a phishing email.
Create a free account to try it.
Keep exploring
Related terms
- PhishingPhishing is impersonation used to trick people into handing over passwords, approving payments or opening malware. Here's how it works and what actually stops it.
- Session hijackingSession hijacking is taking over someone's signed-in session by stealing or guessing the token that keeps them logged in. It skips the password and two-step verification entirely.
- Man-in-the-middle attackIn a man-in-the-middle attack, someone sits between two parties and relays their traffic so they can read or change it. Encryption helps only when you also verify who is on the other end.
- Multi-factor authentication (MFA)Multi-factor authentication asks for two or more different kinds of proof at sign-in, so a stolen password alone isn't enough. Here's what counts as a factor and which kinds resist phishing.
- PasskeyA passkey replaces a password with a key pair your device holds. The site stores only the public half, and the passkey works only on the site it was created for.
- Credential harvestingCredential harvesting tricks people into typing usernames, passwords and codes into pages or messages an attacker controls. It's the first step of most account takeovers.
Where Foxcolab uses it

Foxcolab
Private work tools, without the ads.
Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.