Skip to navigation

Threat reportPhishingTL-2026-7356

Device Code Phishing Campaign Abusing Microsoft Device Authentication via Fake Bid Invitations and Spoofed Mimecast Enrollment

highACTIVE

Cofense Phishing Defense Center describes a phishing campaign that uses bid-invitation emails to lead victims to a fake login page and then a spoofed Mimecast device enrollment page showing an access code. When the victim enters the code in a genuine Microsoft window, the attacker's session is authorized without a password and MFA may be bypassed. First disclosed .

By

Key facts

IdentifiersTL-2026-7356
SeverityHIGH
First disclosed
Affected productsMicrosoft Microsoft Entra ID / Microsoft 365 (OAuth 2.0 device authorization grant)
MITRE ATT&CK techniquesT1078.004 Cloud Accounts, T1098.005 Device Registration, T1111 Multi-Factor Authentication Interception, T1114.002 Remote Email Collection, T1204.001 Malicious Link, T1528 Steal Application Access Token, T1534 Internal Spearphishing, T1550.001 Application Access Token, T1566.002 Spearphishing Link, T1684.001 Impersonation
MotivationUNKNOWN
Target sectorscorporate, management and executives, decision-makers
Target regionsGlobal
Detection rules9 (1 shown free)
Sources6 cited sources

Detection coverage

As of 2026-12-03, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-7356 across Splunk SPL, Microsoft KQL and Sigma, covering 7 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: TL-2026-7356 Device Code Phishing - Entra ID 50199 Prompt Followed by Device Code Sign-In Within 5 Minutes

Detects the sign-in pattern Microsoft documents for device code phishing (Storm-2372 technique, reused in the Cofense bid-invitation / spoofed Mimecast enrollment campaign): an Entra ID sign-in interrupt with error 50199 followed within five minutes by a successful sign-in using the deviceCode authentication protocol for the same user. The victim has typed an attacker-generated code into the genuine microsoft.com/devicelogin page, so the attacker's application or device is authorized without the password and MFA may be bypassed.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1528, T1111, T1078.004, T1550.001
  • Data sources: azure:monitor:aad SignInLogs (Splunk index=azure), Entra ID SigninLogs, Entra ID AADNonInteractiveUserSignInLogs
  • Severity: high
  • Confidence: high

Splunk SPL

index=azure sourcetype="azure:monitor:aad" category=SignInLogs earliest=-24h
| eval err='properties.status.errorCode', user=lower('properties.userPrincipalName'), proto=lower('properties.authenticationProtocol'), src_ip='properties.ipAddress', app='properties.appDisplayName'
| eval is_prompt=if(err=50199,1,0), is_dc_success=if(err=0 AND proto="devicecode",1,0)
| where is_prompt=1 OR is_dc_success=1 ```keep only the 50199 interrupt and successful deviceCode sign-ins (TL-2026-7356, T1528)```
| stats min(eval(if(is_prompt=1,_time,null()))) AS t_prompt min(eval(if(is_dc_success=1,_time,null()))) AS t_success values(src_ip) AS src_ip values(app) AS app BY user
| where isnotnull(t_prompt) AND isnotnull(t_success) AND t_success>=t_prompt AND (t_success-t_prompt)<=300
| convert ctime(t_prompt) ctime(t_success)
| table user t_prompt t_success src_ip app

Microsoft KQL

let lookback = 24h;
let prompts = union SigninLogs, AADNonInteractiveUserSignInLogs
    | where TimeGenerated > ago(lookback)
    | where ResultType == "50199"
    | project PromptTime = TimeGenerated, UserPrincipalName = tolower(UserPrincipalName), PromptIP = IPAddress;
union SigninLogs, AADNonInteractiveUserSignInLogs
| where TimeGenerated > ago(lookback)
| where ResultType == "0"
| where AuthenticationProtocol =~ "deviceCode" or OriginalTransferMethod =~ "deviceCodeFlow"
| extend UserPrincipalName = tolower(UserPrincipalName)
| join kind=inner prompts on UserPrincipalName
| where TimeGenerated between (PromptTime .. (PromptTime + 5m))
| project TimeGenerated, PromptTime, UserPrincipalName, AppDisplayName, AppId, IPAddress, PromptIP, ConditionalAccessStatus, ResultType

Sigma

title: Entra ID Sign-In Interrupt 50199 - Device Code Prompt
name: tl_7356_entra_signin_50199
id: 0a6d5e21-3b94-4c7f-b812-d5f09a3e7c18
status: experimental
description: Entra ID sign-in interrupt (error 50199) used as the first stage of the device code phishing correlation (TL-2026-7356).
references:
  - https://www.microsoft.com/en-us/security/blog/2025/02/13/storm-2372-conducts-device-code-phishing-campaign/
  - https://cofense.com/blog/beyond-passwords-how-attackers-abuse-device-code-authentication
author: Threadlinqs Team
date: 2026/12/03
logsource:
  product: azure
  service: signinlogs
detection:
  selection:
    ResultType: 50199
  condition: selection
falsepositives:
  - Routine sign-in confirmation prompts; only meaningful when correlated
level: informational
---
title: Entra ID Successful Device Code Authentication
name: tl_7356_entra_devicecode_success
id: 8c1e4f73-2a95-4d06-b3e8-7f50c9a1d264
status: experimental
description: Successful Entra ID sign-in using the OAuth 2.0 device authorization grant (TL-2026-7356).
references:
  - https://learn.microsoft.com/en-us/entra/identity/conditional-access/policy-block-authentication-flows
author: Threadlinqs Team
date: 2026/12/03
logsource:
  product: azure
  service: signinlogs
detection:
  selection:
    ResultType: 0
    AuthenticationProtocol: deviceCode
  condition: selection
falsepositives:
  - Azure CLI, PowerShell, Teams Rooms, smart TVs and IoT devices that legitimately use device code flow
level: low
---
title: Device Code Phishing - 50199 Prompt Followed by Device Code Sign-In Within 5 Minutes
id: e5a92b38-47c1-4f8d-a06b-1d3c8e7f9254
status: experimental
description: Detects an Entra ID 50199 interrupt followed within five minutes by a successful device code sign-in for the same user, the pattern Microsoft describes for Storm-2372 and reused in the Cofense bid-invitation / spoofed Mimecast campaign (TL-2026-7356).
references:
  - https://www.microsoft.com/en-us/security/blog/2025/02/13/storm-2372-conducts-device-code-phishing-campaign/
  - https://cofense.com/blog/beyond-passwords-how-attackers-abuse-device-code-authentication
author: Threadlinqs Team
date: 2026/12/03
tags:
  - attack.credential-access
  - attack.t1528
  - attack.t1111
  - attack.initial-access
  - attack.t1078.004
  - attack.defense-evasion
  - attack.t1550.001
correlation:
  type: temporal_ordered
  rules:
    - tl_7356_entra_signin_50199
    - tl_7356_entra_devicecode_success
  group-by:
    - UserPrincipalName
  timespan: 5m
falsepositives:
  - Users legitimately signing in to Azure CLI or shared devices with device code flow
level: high

Known false positives:

  • Legitimate device code usage by Azure CLI, PowerShell, Teams Rooms, smart TVs or IoT devices
  • IT staff or developers authenticating headless tools with device code flow

Tuning notes: Adjust index/sourcetype to match your Splunk Add-on for Microsoft Cloud Services ingest. Allowlist known device-code users, service accounts and managed IP ranges. Tighten or relax the 300-second window. Where device code flow is not needed, block it with Conditional Access and treat any hit as high-priority.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • TL-2026-7356 Endpoint or Proxy Access to Microsoft Device Code Entry Page · unlock with TL Creds
  • TL-2026-7356 Device Code Sign-In Using Microsoft Authentication Broker Client ID · unlock with TL Creds
  • TL-2026-7356 Device Code Sign-In From a Different Country Than the User's Own Sign-Ins · unlock with TL Creds
  • TL-2026-7356 Lookalike Mimecast or Syncfusion Phishing Domain Access · unlock with TL Creds
  • TL-2026-7356 Microsoft Graph Mailbox Search for Credential and Admin Keywords · unlock with TL Creds
  • TL-2026-7356 Successful Device Code Sign-In With No Conditional Access Policy Applied · unlock with TL Creds
  • TL-2026-7356 Device Registration by Device Registration Service Within 60 Minutes of Device Code Sign-In · unlock with TL Creds
  • TL-2026-7356 Internal Spearphishing Burst From Account With Recent Device Code Sign-In · unlock with TL Creds

Indicators of compromise

As of 2026-12-03, Threadlinqs Intelligence tracks 7 indicators of compromise for TL-2026-7356.

Sample indicators (1 of 7)

  • Domain: login[.]microsoftonline[.]com

Defanged, TLP:CLEAR. Full set of 7 indicators: unlock with TL Creds.

7 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

In a blog post dated 2026-10-20, the Cofense Phishing Defense Center (author: Adriane Andaya) documented a phishing campaign that abuses Microsoft's device code authentication flow. The emails resemble routine bid invitations. Clicking the link to 'view the project details' opens a fake login page, branded with Microsoft elements, that asks for the victim's email address. The article also shows a Syncfusion-branded login page reached from an embedded URL.

After the email address is submitted, the victim is taken to a spoofed Mimecast device enrollment page. It is presented as an IT policy requirement and displays a generated access code with a button to 'view the document'. The button opens a genuine Microsoft window that asks for the code. Once the victim enters it, the originating application or device, which the attacker controls, is granted access to the account without the user's password. Microsoft's own warning, quoted by Cofense, is that entering a code from an unverified source gives that application or device access, and that users should not enter such codes. Because authorization happens on a legitimate Microsoft page, MFA may be bypassed.

Cofense states that decision-makers, management-level staff and key figures are the focus, although anyone can be targeted. It also notes that compromised legitimate accounts have been used to send malicious URLs or attachments. Cofense gives no sender domains, phishing URLs, IP addresses, hosting details, hashes, named actor or malware, so none are asserted here. Cofense says the address-bar URL on the lure pages does not match any registered domain of the impersonated brands, which it calls an immediate red flag.

For context, Microsoft Threat Intelligence has documented the same technique in the Storm-2372 campaign (active since August 2024; reported 2025-02-13). There the actor started a legitimate device code request, had the victim enter the code, and received access and refresh tokens. It later used the Microsoft Authentication Broker client ID to register a device and obtain a Primary Refresh Token. It then searched mailboxes through Microsoft Graph and sent internal phishing from compromised accounts. Microsoft's July 31, 2026 update assesses Storm-2372 as an initial access sub-cluster of Midnight Blizzard. No source links the Cofense campaign to Storm-2372 or any other actor, so attribution here is Unknown. The Storm-2372 material is included only as technique-level context for detection and response.

Cofense's recommended response if a code was entered: treat it as an account compromise and notify IT; change the password; sign out of or revoke all sessions; review recent account activity; review authorized applications and remove unfamiliar ones; re-verify MFA methods; and check sent and deleted items, forwarding rules and recovery addresses. Microsoft recommends blocking device code flow with Conditional Access where it is not needed, revoking refresh tokens, requiring phishing-resistant MFA and restricting device enrollment. The HIGH severity is an analyst assessment and is not stated in the source.

MITRE ATT&CK techniques by tactic:

Initial Access

T1078.004 Cloud Accounts; T1566.002 Spearphishing Link

Persistence

T1098.005 Device Registration

Credential Access

T1111 Multi-Factor Authentication Interception; T1528 Steal Application Access Token

Collection

T1114.002 Remote Email Collection

Execution

T1204.001 Malicious Link

Lateral Movement

T1534 Internal Spearphishing

lateral-movement

T1550.001 Application Access Token

Defense Evasion

T1684.001 Impersonation

Remediation

Immediate actions

  • If a code was entered, treat it as an account compromise and notify IT immediately
  • Change the account password and sign out of / revoke all existing sessions (e.g. Graph revokeSignInSessions to invalidate refresh tokens)
  • Review recent account activity, authorized applications (remove unfamiliar entries), sent/deleted items, forwarding rules and recovery addresses
  • Re-verify security and MFA methods for the affected account
  • Hunt for Entra ID sign-ins with error code 50199 followed by a successful sign-in within about five minutes, and for device registrations by the Device Registration Service

Workarounds

  • Block device code flow with Conditional Access wherever it is not required; where needed, scope it to specific users, devices or locations

Longer-term hardening

  • Require phishing-resistant MFA and block legacy authentication
  • Restrict which users can enroll devices in Entra ID and alert on token/PRT activity around closely timed device registrations
  • Use sign-in risk policies to block or require MFA for risky sign-ins
  • Train users never to enter device codes from emails, pages or requests they did not initiate; verify the destination domain before entering credentials or codes
  • Verify bid, contract and document requests from unfamiliar senders out-of-band

Affected and fixed versions

  • Microsoft — Microsoft Entra ID / Microsoft 365 (OAuth 2.0 device authorization grant)
    Vulnerable versions: Tenants permitting device code flow without Conditional Access restriction

Timeline

  • Microsoft reports that Storm-2372 device code phishing activity has been ongoing since August 2024 (month-level date; technique context only, not linked to this campaign).
  • Microsoft describes Storm-2372 post-compromise use of Microsoft Graph to search mailboxes for keywords (username, password, admin, teamviewer, anydesk, credentials, secret, ministry, gov) and to send internal phishing from compromised accounts (technique context only).
  • Microsoft Threat Intelligence publishes 'Storm-2372 conducts device code phishing campaign', documenting device code flow abuse, Graph mailbox searches and internal phishing.
  • H-ISAC issues a TLP:WHITE threat bulletin summarizing the Storm-2372 device code phishing campaign.
  • Microsoft updates its post: within the prior 24 hours Storm-2372 shifted to the Microsoft Authentication Broker client ID, registering attacker-controlled devices in Entra ID and obtaining Primary Refresh Tokens.
  • Microsoft updates its assessment: Storm-2372 is an initial access sub-cluster of Midnight Blizzard.
  • Cofense Phishing Defense Center publishes 'Beyond Passwords: How Attackers Abuse Device Code Authentication', describing the bid-invitation lure, fake login pages (Microsoft, Syncfusion) and spoofed Mimecast device enrollment page that yield device code authorization.

Sources cited

AI-drafted from 6 cited sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats