Brain Security · Cybersecurity and AI awareness

Catalog

← Back to articles
Phishing & Social Engineering

AiTM Phishing: Why Entering a 2FA Code on a Fake Page Steals Your Session

Discover how AiTM phishing bypasses multi-factor authentication through session cookie theft, and explore actionable defenses to protect your organization.

✓ Brain Security · Cyber & Human Risk R&D ⚖ NIST CSF 2.0 · CISA · SOC 2 · HIPAA · ISO 27001 ★ Super Phisher

For years, rolling out MFA (Multi-Factor Authentication) served as the cornerstone of credential defense. For CISOs and security operations teams, enforcing a time-based SMS code or a mobile push notification neutralized 99% of legacy phishing attacks on the spot. Today, that assumption is breaking down under the rapid rise of Adversary-in-the-Middle (AiTM) phishing attacks.

Employees can carefully input their corporate passwords and confirm a mobile authentication prompt, yet still surrender full access to their inbox, cloud productivity suites, and enterprise identity providers. Threat actors no longer need to crack hashes: they simply bypass access controls altogether. Grasping this technical mechanism is critical for modernizing defensive architectures and workforce security awareness.


How Does an AiTM Phishing Kit Intercept Session Tokens Despite 2FA?#

Key Takeaway: An AiTM kit functions as a malicious reverse proxy that relays requests in real time between the victim and the legitimate service. Once the user completes their 2FA prompt, the target server issues an authenticated session cookie, which the attacker intercepts to hijack the live identity.

Traditional phishing sites simply mimic login screens to harvest static credentials via form submission. In contrast, AiTM infrastructure operates dynamically:

  • The reverse proxy relay: The attacker deploys a proxy server behind a deceptive domain name. When an employee clicks the malicious link, the proxy dynamically fetches the target vendor's genuine authentication page (such as a corporate identity portal) and mirrors it back to the victim.
  • First-factor capture: The user enters their username and password. The malicious proxy relays these inputs directly to the authentic authentication endpoint, which prompts for the configured secondary factor.
  • MFA completion: The employee receives a push notification, enters a six-digit TOTP code, or completes number matching on their smartphone. To the end user, every prompt reflects standard company workflows.
  • Session cookie harvesting: Once the identity provider validates the second factor, it issues an authenticated session token (cookie) to keep the user signed in. The AiTM proxy intercepts this token in flight before redirecting the employee to an innocuous landing page.

Armed with this valid session cookie, the attacker injects it into their own browser profile. They bypass passwords, secondary prompts, and standard credential resets, accessing corporate systems directly without raising immediate baseline flags.


5-AXIS MATURITY RADAR · AiTM Phishing: Why Entering a 2FA Code on a… NIST CSF 2.0 · CISA · SOC 2 · HIPAA · ISO 27001
Operational architecture: AiTM Phishing: Why Entering a 2FA Code on a Fake Page Steals Your Session (Super Phisher · Brain Security). 01 02 03 04 05 01
The reverse proxy relay
02
Cryptographic domain binding
03
Compliant device requirements
04
First-factor capture
05
Automatic failure on spoofed domains
Operational architecture: AiTM Phishing: Why Entering a 2FA Code on a Fake Page Steals Your Session (Super Phisher · Brain Security).

Why Legacy 2FA Methods Fail Against Session Hijacking#

Key Takeaway: Conventional MFA mechanisms such as SMS codes, TOTP authenticator apps, and standard push notifications do not bind the session cryptographically to the legitimate domain. They verify user possession at a specific moment without confirming the authenticity of the browser URL.

One-time passcodes generated by apps or delivered over SMS share an inherent design limitation: they require human transcription. As long as an individual reads a code and types it into an input box, social engineering can trick them into submitting it on a proxied domain.

The Limits of Push Notifications and TOTP

Even advanced push notifications with number matching remain vulnerable to AiTM interception. The reverse proxy simply relays the number displayed by the genuine identity provider directly to the victim's browser screen, allowing them to match the prompt on their phone without suspicion.

The Mandate for FIDO2 and Passkeys

To definitively close this attack vector, security architectures are shifting toward phishing-resistant MFA built on the FIDO2 and WebAuthn standards:

  • Cryptographic domain binding: During FIDO2 authentication (leveraging hardware security keys or device-bound Passkeys), the browser directly queries the local cryptographic hardware. It passes the exact origin URL of the current webpage.
  • Automatic failure on spoofed domains: If an employee visits a lookalike site (such as secure-login-portal.com instead of the genuine tenant URL), the cryptographic key refuses to sign the authentication challenge due to the origin mismatch. The AiTM proxy captures no signature, preventing session generation.

15 / 30 / 60 / 90-Day Rollout Plan: AiTM Phishing: Why Entering a 2FA Code on a Fake Page Steals Your Session
HorizonPriority WorkstreamOperational ImplementationReference Section
D+15 · Scope The reverse proxy relayThe attacker deploys a proxy server behind a deceptive domain name. When an employee clicks the malicious link, the proxy dynamically fetches the…How Does an AiTM Phishing Kit Intercept Session Tokens Despite…
D+30 · Pilot Cryptographic domain bindingDuring FIDO2 authentication (leveraging hardware security keys or device-bound Passkeys), the browser directly queries the local cryptographic…Why Legacy 2FA Methods Fail Against Session Hijacking
D+60 · Rollout Compliant device requirementsRestrict cloud access to registered, compliant devices managed through MDM platforms, blocking stolen cookies used on unmanaged machines.Practical Measures to Protect Employees from AiTM Phishing
D+90 · Audit First-factor captureThe user enters their username and password. The malicious proxy relays these inputs directly to the authentic authentication endpoint, which prompts…How Does an AiTM Phishing Kit Intercept Session Tokens Despite…

Practical Measures to Protect Employees from AiTM Phishing#

Deploying hardware tokens and Passkeys across large enterprise fleets takes time and cross-departmental coordination. Alongside this technical rollout, several operational controls drastically mitigate exposure.

Tighten Conditional Access Policies

Reduce the viability of stolen session cookies by enforcing rigorous access rules across your identity provider:

  • Compliant device requirements: Restrict cloud access to registered, compliant devices managed through MDM platforms, blocking stolen cookies used on unmanaged machines.
  • Geographic and impossible travel detections: Identify abnormal authentication anomalies, such as an identity session confirmed in New York followed by API activity from another continent minutes later.
  • Reduced session token lifetimes: Shorten token persistence across critical enterprise web apps to force frequent re-authentication on sensitive endpoints.

Train Teams to Verify Domain Names

An AiTM proxy cannot operate from your vendor's genuine domain name. The browser address bar remains a vital checkpoint where vigilance can break the attack chain.

Building these behavioral instincts across an entire organization requires hands-on exposure to modern lures. With Super Phisher, our phishing simulation platform deployed alongside our security experts, teams encounter realistic, contemporary scenarios that train them to spot deceptive domain structures before submitting enterprise credentials.


BRAIN SECURITY PRODUCT IN ACTION · Super Phisher
In-situ view of Super Phisher supporting "AiTM Phishing: Why Entering a 2FA Code on a Fake Page Steals Your Session".
In-situ view of Super Phisher supporting "AiTM Phishing: Why Entering a 2FA Code on a Fake Page Steals Your Session". Explore Super Phisher in the catalog →

Building a Resilient Defense Across Tech and Human Layers#

Session-hijacking phishing proves that technical safeguards and attacker tradecraft evolve side by side. Relying purely on legacy authentication while ignoring modern manipulation techniques leaves identity perimeters vulnerable.

A robust defense pairs phishing-resistant FIDO2 architectures and hardened access controls with experiential training on next-generation social engineering. Looking to benchmark your workforce resilience against modern identity attacks and roll out an engaging training strategy? Book a demo with our team to discover our immersive security platforms.


Explore Brain Security solutions on our website