Adversary-in-the-Middle Attacks: How AiTM Phishing Bypasses MFA and What Indian Enterprises Must Do

  • Home
  • Adversary-in-the-Middle Attacks: How AiTM Phishing Bypasses MFA and What Indian Enterprises Must Do
Adversary-in-the-Middle Attacks: How AiTM Phishing Bypasses MFA and What Indian Enterprises Must Do

Multi-factor authentication has been the security industry’s most-recommended single control for more than a decade. Indian enterprises have spent real budget rolling out OTP tokens, authenticator apps, and SMS-based 2FA — and those investments were well placed. But attackers have caught up. A class of attack now known as Adversary-in-the-Middle (AiTM) phishing has industrialised the bypassing of every MFA method that relies on a short-lived code. If your organisation thinks “we have MFA, we’re safe,” this article is for you.

What Is an AiTM Attack?

Unlike classic credential-harvesting phishing, AiTM attacks insert a reverse-proxy server between the victim and the real identity provider (IdP). When a target user enters their username, password, and OTP on the fake proxy page, the proxy relays those credentials in real time to the legitimate IdP. The IdP returns a valid session cookie. The proxy intercepts that cookie, hands the victim a dummy confirmation page, and the attacker now holds a fully authenticated session — MFA already completed on their behalf.

The result: the attacker’s session is indistinguishable from a legitimate one. No password reset needed. No new-device alert triggered in the first few seconds. Traditional SIEM rules watching for “failed logins” see nothing — the login succeeded.

Why India Is a High-Value Target Right Now

Several factors make Indian enterprises disproportionately attractive for AiTM campaigns:

  • Rapid SaaS and cloud adoption — Microsoft 365, Google Workspace, and hybrid identity platforms are now mainstream in mid-to-large Indian organisations, making session-token theft directly monetisable.
  • SMS-OTP dependency — India’s telco infrastructure is well-developed, but SIM-swap fraud and SS7 vulnerabilities make SMS-OTP a weaker second factor than is widely appreciated.
  • DPDP Act liability exposure — The Digital Personal Data Protection Act, 2023, creates real enforcement risk for account-takeover incidents involving personal data. An AiTM breach that leaks customer records can now trigger both CERT-In’s six-hour reporting obligation and DPDP regulatory scrutiny.
  • Hybrid work sprawl — Distributed workforces accessing corporate resources from personal networks dramatically expand the surface area available to a reverse-proxy phishing kit.

How Modern AiTM Kits Work: The Technical Picture

Open-source AiTM toolkits (Evilginx, Modlishka, Muraena) are readily available and trivial to customise. A threat actor can stand up a convincing Microsoft 365 or corporate VPN phishing proxy in under an hour on rented cloud infrastructure. The attack chain typically looks like this:

  1. Reconnaissance and lure delivery — A spear-phish email, a Telegram group message, or a QR code in a fake courier notification directs the target to the proxy domain (e.g., secure-login-[company]-in.com).
  2. Real-time credential relay — Every keystroke is forwarded to the genuine IdP. The victim completes MFA normally and believes they have logged in.
  3. Session cookie harvest — The attacker’s proxy captures the authenticated session token. Depending on the platform, this token may remain valid for hours or days.
  4. Post-compromise objectives — With a live enterprise session, attackers move quickly: exfiltrating email (BEC preparation), enumerating cloud storage, deploying OAuth persistence tokens, or pivoting into on-premises resources via the same identity.

The critical insight: AiTM does not crack MFA — it completes MFA on behalf of the victim. Defending against it requires controls that make a stolen session token worthless, not just a harder password.

Why TOTP, SMS, and Push Notifications All Fall Short

Security teams often ask which MFA method is “safe” against AiTM. The honest answer is that any method producing a time-based or one-time code can be proxied in real time. The proxy simply asks the victim for their code and relays it before it expires. This includes:

  • SMS OTP
  • TOTP apps (Google Authenticator, Microsoft Authenticator TOTP mode)
  • Push notifications (if the user approves them on the proxy’s relayed request)
  • Email-based OTP

What actually resists AiTM: Phishing-resistant MFA — specifically FIDO2/WebAuthn passkeys and hardware security keys (FIDO2 U2F). These bind the authentication cryptographically to the origin domain. A proxy domain cannot satisfy the origin check, so the credential simply does not work on a fake site. This is the technical floor Indian enterprises should be moving toward for privileged and critical-access users.

A Practical Defence Playbook for Indian CISOs

Transitioning every user to hardware keys overnight is not realistic. Here is a layered approach that reduces AiTM risk incrementally:

1. Enforce Continuous Session Validation

Configure your IdP and Zero Trust Network Access (ZTNA) gateway to bind sessions not just to a token but to device posture, IP reputation, and user behaviour baselines. A session cookie stolen from a corporate laptop should fail when replayed from a threat actor’s VPS with a different device fingerprint. PJ Networks’ ZTNA deployments (on FortiGate and Fortinet ZTNA agents) implement device-identity certificates that make session replay from an unmanaged device immediately detectable.

2. Deploy Number-Matching and Context-Aware Push MFA

If your organisation is on Microsoft Authenticator or a similar push-based system, enable number matching and additional context (login location, application name). While not bulletproof against a sophisticated proxying toolkit, these controls significantly reduce the success rate of mass AiTM campaigns, which rely on confused or inattentive users approving push notifications automatically.

3. Monitor for Impossible Travel and Session Anomalies

Even a successful AiTM login leaves forensic traces: the session’s IP geolocation changes between the victim’s legitimate activity and the attacker’s use. Alerts on impossible travel (same account, two continents, ten minutes apart), atypical login times, and sudden bulk-access to file repositories should trigger immediate session revocation — not just a human-reviewed ticket.

4. Segment and Limit Blast Radius

Apply least-privilege to every cloud identity. An AiTM compromise of a finance analyst’s Microsoft 365 account should not provide access to production databases or the IT admin portal. Role-based access controls, conditional-access policies tied to user risk scores, and micro-segmentation of on-premises resources all limit how far a stolen session can travel.

5. Train Employees on Proxy Phishing Indicators

AiTM proxy domains often share visual characteristics: slightly different domain names, missing or mismatched TLS Subject Alternative Names, unusual redirects. Regular phishing simulation exercises that specifically test AiTM-style lures (as distinct from generic credential-harvesting tests) build muscle memory in high-risk user populations such as finance, HR, and executives.

6. Prioritise Phishing-Resistant MFA for Privileged Accounts

Even if full FIDO2 rollout is years away, protecting your Domain Admins, Azure Global Admins, and financial approvers with hardware FIDO2 keys is achievable within a quarter. Privileged accounts are the primary post-compromise objective; hardening them first delivers the highest risk reduction per rupee spent.

PrahiX Ora: The Unified SecOps Layer for AiTM Detection and Response

Detecting and containing AiTM attacks requires more than a SIEM alert — it requires a platform that correlates identity events, network telemetry, and automated response into a single operational picture. PrahiX Ora is a unified SecOps platform built by PrahiX Tech Pvt Ltd. PJ Networks is its primary field deployment and operations partner, operating the platform for clients across manufacturing, BFSI, healthcare, and critical infrastructure in India.

SIEM — Correlation Across Identity and Network Events: PrahiX Ora’s SIEM ingests logs from Microsoft Entra ID, on-premises Active Directory, FortiGate firewalls, endpoint agents, and cloud platforms into a single correlation engine. Detection rules mapped to MITRE ATT&CK Technique T1557 (Adversary-in-the-Middle) and T1539 (Steal Web Session Cookie) fire when a session is used from an IP that did not originate the authentication. The platform’s graph-based attack storyline reconstruction links the stolen session event back to the phishing delivery vector — a capability that matters directly for CERT-In’s 180-day in-country log retention direction, which requires organisations to be able to reconstruct incident timelines well after the fact.

NMS — Network-Level Visibility Across the Enterprise: AiTM traffic often traverses corporate networks on its way from end-user devices to cloud identity providers. PrahiX Ora’s Network Management System provides unified observability across FortiGate NGFWs, managed switches, Wi-Fi access points, and SD-WAN edges with LLDP/CDP topology discovery and ML-based traffic anomaly detection. In multi-vendor estates where NOC visibility is otherwise fragmented — a common challenge in mid-size Indian enterprises that have grown through acquisition — the platform’s single-pane-of-glass view ensures no lateral-movement path goes unmonitored.

Video Surveillance (VMS) — Physical and Network Security Together: For organisations operating manufacturing plants, retail branches, or multi-site campuses, PrahiX Ora’s video surveillance (VMS) module integrates ONVIF-compatible cameras (including Hikvision and Dahua) with network security alerts. An AiTM-facilitated account compromise that is followed by unusual physical-badge activity at a data-centre door can be correlated in a single operations view — closing the gap between physical and cyber security that most standalone SIEM tools leave open.

SOAR — Automating the Six-Hour CERT-In Window: CERT-In’s 2022 directive requires organisations to report cybersecurity incidents — including account compromises — within six hours of detection. Manual investigation and escalation processes routinely miss this window. PrahiX Ora’s SOAR module includes pre-built playbooks for identity-compromise scenarios: automatic session revocation commands pushed to Azure AD and on-premises AD, blocklist entries pushed directly to FortiGate via API, and a pre-populated CERT-In notification draft populated from the platform’s incident timeline. Automation is what makes a six-hour reporting window realistic at scale.

For organisations looking to assess their current exposure to AiTM attacks and their detection and response capability, PJ Networks offers a Managed SecOps engagement that deploys PrahiX Ora and provides 24/7 NOC/SOC coverage from day one.

CERT-In and DPDP Compliance Implications

An AiTM-enabled account takeover that accesses personal data — employee records, customer information, financial data — immediately triggers obligations under both CERT-In’s 2022 Directions and the DPDP Act, 2023. The six-hour CERT-In reporting clock starts from the moment of detection, not from the moment of breach. Organisations that discover an AiTM compromise through a log review three days after the event face the question: when did detection occur, and can we evidence our detection timeline?

Strong SIEM coverage with tamper-evident log retention (supporting CERT-In’s 180-day direction) and automated incident playbooks are not just operational best practices — they are increasingly the difference between a regulatorily defensible incident response and an enforcement action. PrahiX Ora’s log retention architecture (tiered hot/cold/archive storage with chain-of-custody metadata) helps evidence that your organisation’s detection and retention obligations were met — note that no technology platform can make your organisation DPDP-compliant on its own, but the right tooling supports your compliance programme materially.

What Should Indian Enterprises Do This Quarter?

AiTM is not a theoretical threat — multiple Indian BFSI and IT/ITeS organisations have experienced account takeovers via this vector in the past 18 months. Here is a prioritised action list for CISOs and IT heads:

  • Audit your MFA method mix: identify every user population still on SMS OTP and build a migration plan to TOTP or FIDO2.
  • Enable Conditional Access policies that evaluate device compliance and IP reputation on every session, not just at login.
  • Review your SIEM’s coverage of Azure AD / Entra sign-in logs, particularly for impossible-travel and session-anomaly detections.
  • Test your incident response playbook against an AiTM scenario: can your team detect, contain, and file a CERT-In report within six hours?
  • Brief your finance, HR, and executive assistants specifically on proxy-phishing indicators — they are the most targeted users for BEC-via-AiTM campaigns.
  • If your organisation lacks 24/7 SOC coverage, evaluate a managed SecOps partner who can provide eyes-on-glass and automated response in the hours when your internal team is off shift — statistically, the most common time for post-AiTM exploitation activity.

Conclusion

Adversary-in-the-Middle attacks represent a genuine evolution in the threat landscape, not a marginal refinement. They do not break MFA — they sidestep it entirely by operating at the session layer. The enterprises that respond well will be those that move from a “MFA as the last gate” mindset to a continuous verification posture: every session, every device, every access request evaluated against risk signals in real time.

PJ Networks helps Indian enterprises build exactly that posture — through FortiGate NGFW deployments, ZTNA rollouts, FortiMail-based phishing prevention, and 24/7 NOC/SOC operations powered by PrahiX Ora. If your organisation is re-evaluating its identity and access security architecture in light of AiTM threats, we welcome the conversation.

Contact PJ Networks to discuss a Managed SecOps assessment or a PrahiX Ora pilot for your environment.

Leave a Reply

Your email address will not be published. Required fields are marked *