Multi-factor authentication (MFA) is an essential security control, but it does not eliminate every identity-based attack. In this real-world incident, a QR code phishing attack used an adversary-in-the-middle (AiTM) technique to capture an authenticated Microsoft 365 session after MFA was completed, allowing the attacker to access the account without completing another MFA challenge.
What We Observed in This Microsoft 365 QR Code Phishing Attack
We observed a targeted spear-phishing email containing a QR code reach an Accounts Payable user despite Microsoft Defender for Office 365 protections.
Scanning the code directed the user to an adversary-in-the-middle (AiTM) phishing page.
The page captured the authenticated session token after the user completed MFA, allowing the attacker to access the account without completing another MFA challenge.
The attacker remained undetected for more than two weeks, accessing financial SharePoint sites, manipulating vendor email threads, and suppressing security notifications before being identified and fully contained.
How the QR Code Phishing Attack Worked
- The QR code concealed the destination URL in an image rather than exposing it as a clickable link. Detecting the malicious destination required the email security tools to decode and inspect the QR code.
- The attacker embedded the QR code in an .eml attachment, adding another layer of concealment. In this incident, one of three phishing emails bypassed the security filters.
- After scanning the code, the user reached an AiTM proxy page that closely mimicked the Microsoft sign-in experience in real time. The user completed MFA as usual, unaware that the proxy was intercepting the authenticated session token.
- The attacker then replayed the captured token from their own infrastructure using automated tools, gaining access without entering the user’s credentials or completing a new MFA challenge.
- Suspicious sign-ins included IPv6 addresses and locations in the United States. Sign-in logs also recorded an axios/* user-agent signature, indicating use of the axios HTTP client. These observations were indicators of the attacker’s activity; the captured session token enabled access without a new MFA challenge.
- The attacker accessed both the user’s mailbox and the Accounts Payable shared mailbox.
- During the compromise, the attacker accessed sensitive SharePoint sites, created hidden inbox rules to archive security-related emails, registered an MFA device for persistence, and attempted to manipulate vendor bank details.
- The attacker also registered multiple typosquatting domains on the same day and used them to initiate new email chains and infiltrate existing conversations. These activities created a significant risk of payment fraud, although no fraudulent payments were confirmed.
Key Indicators Identified
| Type |
Value |
| Phishing Sender |
hand@handprecision[.]com |
| Primary Attacker IP |
23.148.144[.]92 |
| Secondary Attacker IP |
144.172.92[.]184 |
| AiTM Session IP (IPv6) |
2a0d:5600:24:ff21:0:1:6b36[:]e2f6 |
| Third Attacker IP |
23.148.144[.]231 |
| Malicious UserAgent |
axios/1.13.4 |
Why Traditional MFA Didn't Stop this AiTM Phishing Attack
AiTM phishing can bypass traditional MFA protections at the session level when an attacker captures and replays an authenticated session token. The attacker had unrestricted access to financial mailboxes, engaged in live conversations with vendors about bank changes, and suppressed inbox notifications to remain undetected. Ultimately, a fraudulent payment was averted only because a recipient noticed suspicious activity.
How to Reduce the Risk of Similar Attacks
- Educate user on phishing tactics used by the attackers and train them using relevant and periodic trainings.
- Add QR code inspection to your email security stack. This is the gap that enabled initial access. Without it, this attack vector remains wide open.
- Send alerts on new MFA device registration on existing accounts. In this incident, the attacker registered a persistence device three days in. That event should never be silent.
- Enable Phish-resistant Authentication for all users and especially privileged users.
- Enable Sign-ins from Compliant Devices Only and enable device token protections in Azure Entra ID.
Strengthen your Microsoft 365 defenses with ProArch.
Combine hands-on security engineering with 24/7 detection and response.
Talk to ProArch about your next step toward stronger protection.