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

> 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.

- **Author:** Threadlinqs Team
- **Published:** 2026-12-03T04:00:02Z
- **Last updated:** 2026-12-03T04:00:02Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7356
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7356.png
- **ID:** TL-2026-7356
- **Severity:** HIGH
- **Category:** PHISHING
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 7 (1 shown free below)

## Description

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

- T1566.002 Spearphishing Link
- T1204.001 Malicious Link
- T1528 Steal Application Access Token
- T1111 Multi-Factor Authentication Interception
- T1550.001 Application Access Token
- T1078.004 Cloud Accounts
- T1534 Internal Spearphishing
- T1684.001 Impersonation
- T1098.005 Device Registration
- T1114.002 Remote Email Collection

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**TL-2026-7356 Device Code Phishing - Entra ID 50199 Prompt Followed by Device Code Sign-In Within 5 Minutes** (`TL-2026-7356-SPL-001`)

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

````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

```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

```yaml
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

- TL-2026-7356 Endpoint or Proxy Access to Microsoft Device Code Entry Page (locked: unlock with TL Creds)
- TL-2026-7356 Device Code Sign-In Using Microsoft Authentication Broker Client ID (locked: unlock with TL Creds)
- TL-2026-7356 Device Code Sign-In From a Different Country Than the User's Own Sign-Ins (locked: unlock with TL Creds)
- TL-2026-7356 Lookalike Mimecast or Syncfusion Phishing Domain Access (locked: unlock with TL Creds)
- TL-2026-7356 Microsoft Graph Mailbox Search for Credential and Admin Keywords (locked: unlock with TL Creds)
- TL-2026-7356 Successful Device Code Sign-In With No Conditional Access Policy Applied (locked: unlock with TL Creds)
- TL-2026-7356 Device Registration by Device Registration Service Within 60 Minutes of Device Code Sign-In (locked: unlock with TL Creds)
- TL-2026-7356 Internal Spearphishing Burst From Account With Recent Device Code Sign-In (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (1 of 7)

Defanged, TLP:CLEAR.

- Domain: `login[.]microsoftonline[.]com`

Full set of 7 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [Beyond Passwords: How Attackers Abuse Device Code Authentication (Cofense)](https://cofense.com/blog/beyond-passwords-how-attackers-abuse-device-code-authentication)
- [Storm-2372 conducts device code phishing campaign (Microsoft Threat Intelligence)](https://www.microsoft.com/en-us/security/blog/2025/02/13/storm-2372-conducts-device-code-phishing-campaign/)
- [H-ISAC TLP White Threat Bulletin: Storm-2372 Conducts Device Code Phishing Campaign](https://www.aha.org/system/files/media/file/2025/02/h-isac-tlp-white-threat-bulletin-storm-2372-conducts-device-code-phishing-campaign--2-14-2025.pdf)
- [Russian state hackers target organizations with device code phishing (SecurityWeek)](https://www.securityweek.com/russian-state-hackers-target-organizations-with-device-code-phishing/)
- [Phishing campaign targets Microsoft device code authentication flows (Cybersecurity Dive)](https://www.cybersecuritydive.com/news/phishing-campaign-targets-microsoft-device-code-authentication-flows/740201/)
- [Storm-2372 actor profile (Malpedia)](https://malpedia.caad.fkie.fraunhofer.de/actor/storm-2372)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7356
