Back to all lessons
Awareness Lessons
5 months ago

Forg365 PhaaS Exploits Device Code Auth and AitM to Hijack Microsoft 365 Sessions

Written by AI from the linked story. Not reviewed by an editor. How this works

Forg365 represents a new generation of phishing-as-a-service platforms that democratize sophisticated attacks by packaging device code phishing and adversary-in-the-middle (AitM) techniques into a low-skill, subscription-based toolkit distributed via Telegram. Device code phishing is particularly dangerous because it bypasses multi-factor authentication by tricking users into authorizing a threat actor's session token, effectively handing over persistent access without credential theft. The inclusion of AI-assisted lure creation increases the believability of phishing attempts, making traditional user-recognition defenses less reliable. Post-compromise mailbox operations and a persistent browser extension mean that even detecting the initial intrusion may not be sufficient to fully remediate access. Organizations relying solely on MFA as a security backstop are at significant risk, as this attack class is specifically engineered to defeat it.

Tactical Insight

Immediate Actions

  • Disable or restrict the OAuth device code flow in Microsoft Entra ID (Azure AD) Conditional Access policies for all users who do not require it.
  • Enforce Conditional Access policies requiring compliant, managed devices and block authentication from unknown or unregistered devices.
  • Audit and revoke suspicious OAuth token grants and active sessions in Microsoft 365 immediately using the Microsoft Entra admin portal.

Long-term Improvements

  • Implement phishing-resistant MFA (e.g., FIDO2/passkeys or certificate-based authentication) to eliminate token-hijacking attack vectors.
  • Deploy a browser extension management policy to block unauthorized or unreviewed extensions from being installed in corporate browsers.
  • Conduct regular security awareness training specifically covering device code phishing scenarios and social engineering lure recognition.

Detection Measures

  • Enable Microsoft Sentinel or equivalent SIEM alerting on anomalous OAuth token grants, impossible travel logins, and device code authentication events.
  • Monitor Microsoft 365 audit logs for unusual mailbox delegation changes, forwarding rules, and mail access from unfamiliar IP addresses.
  • Subscribe to threat intelligence feeds and monitor Telegram-based cybercrime channels for emerging PhaaS toolkits targeting your organization's identity providers.

Back this up with a control

All controls and vendors

Training helps people spot this. These controls make the attack fail even on the day someone does not.