Kali365 Device Code Phishing Attacks Target Microsoft 365 OAuth Authentication

The FBI and Microsoft are warning about Kali365 device code phishing attacks targeting Microsoft 365 tenants through OAuth token theft and Device Code Flow abuse. Learn how to reduce exposure using Conditional Access controls and authentication hardening.

Summary

The FBI and Microsoft are warning organisations about a growing wave of Kali365 device-code phishing attacks targeting Microsoft 365 and Microsoft Entra ID environments.

Kali365 is a phishing-as-a-service framework designed to abuse Microsoft's legitimate OAuth Device Code Flow authentication process to steal OAuth access and refresh tokens. Unlike traditional phishing, users authenticate through genuine Microsoft login infrastructure, which means:

  • MFA completes successfully
  • No password is captured directly
  • No spoofed login page is presented
  • Attackers gain persistent cloud access via stolen OAuth tokens

Once a tenant is compromised, attackers can maintain access across Exchange Online, Outlook, Microsoft Teams, OneDrive, SharePoint Online, and other connected Microsoft 365 services.

Researchers have observed attackers combining AI-generated lures, QR-code campaigns, voice phishing (vishing), and automated token harvesting infrastructure to improve success rates and evade conventional defences.

Because authentication happens through legitimate Microsoft infrastructure, most email security, endpoint protection, and MFA-based controls will not flag the activity as malicious.

Why This Matters

Many Microsoft 365 organisations unknowingly leave Device Code Flow authentication broadly accessible across their tenant.

While Device Code Flow is a legitimate Microsoft authentication method commonly used for:

  • Teams Rooms
  • digital signage
  • kiosk systems
  • smart TVs
  • shared meeting room devices

it is often unnecessary for standard workforce authentication scenarios.

Kali365 and similar phishing frameworks exploit this gap by convincing users to enter legitimate Microsoft authentication codes into Microsoft’s own verification process.

Once approved, attackers can:

  • inherit authenticated Microsoft 365 sessions
  • obtain OAuth access and refresh tokens
  • maintain cloud persistence without passwords
  • bypass many traditional phishing detections
  • access Microsoft 365 services from unmanaged infrastructure

Device Code Flow abuse is rapidly becoming one of the most commonly exploited Microsoft 365 authentication paths used in modern OAuth phishing campaigns.

Many organisations believe Conditional Access policies already restrict these authentication flows, however hidden exclusions, policy overlap, authentication edge cases, and configuration drift can still leave unintended authentication exposure.

How To Block Device Code Flow In Microsoft Entra ID

Where operationally possible, organisations should disable or tightly restrict Device Code Flow authentication across their Microsoft 365 tenant.

This reduces exposure to OAuth phishing, token theft, session hijacking, and MFA bypass-style authentication abuse.

Overe Harden Control: Disable Device Code Flow

“Overe Harden control disabling Microsoft Entra ID Device Code Flow authentication using Conditional Access policy enforcement”
Disable Device Code Flow Policy control in Overe

Overe includes a dedicated Harden control that automatically creates and manages a Conditional Access Policy in Microsoft Entra ID to block Device Code Flow sign-ins.

The control supports:

  • Enforcing mode
  • Monitoring mode
  • Policy drift detection
  • Scoped operational exclusions

Suggested Actions

Overe automates the following across your managed tenants:

  • Block Device Code Flow authentication via Conditional Access policy, leverging exclusions where needed
  • Detect and alert on policy drift and exclusion gaps
  • Monitor for risky sign-ins from unmanaged devices
  • Surface abnormal token and session activity
  • Audit Conditional Access exclusions for unintended gaps

The following require MSP or customer review:

  • Confirm whether Device Code Flow is operationally required before enforcing
  • Review OAuth application permissions and consent grants
  • Monitor for suspicious OAuth consent activity

Some environments may still require Device Code Flow for Teams Rooms, kiosk systems, meeting room devices, digital signage, or other limited-input hardware. Overe supports intelligent scoped exclusions for these scenarios while reducing broader tenant exposure.

Why This Matters For Conditional Access Assurance (CAA)

Many organisations assume Conditional Access policies fully restrict risky authentication methods across all authentication pathways.

In reality, hidden exclusions, policy overlap, authentication edge cases, and configuration drift can create unintended authentication exposure.

Overe Conditional Access Assurance (CAA) helps organisations validate whether intended authentication protections are consistently enforced across Microsoft 365 authentication flows, helping identify hidden gaps and bypass opportunities attackers may exploit.

Source URLs

Severity
High
Productivity Impact
High
Fix Estimate
5-15 Minutes