# Microsoft 365 Device Code Authentication Phishing Campaigns Hijack Accounts and Bypass MFA (HTML/SVG Payment Lures)

> November 2026 phishing campaigns reported by Hornetsecurity's Threat Intelligence Lab use payment-themed emails with ZIP-delivered HTML/SVG attachments that redirect victims to fake SharePoint workspaces. The victim is induced to enter a device code on the genuine Microsoft sign-in page and complete real MFA, so Microsoft issues tokens to the attacker-controlled client. No operator attribution or compromised-account count was published.

- **Published:** 2026-11-19T20:49:30Z
- **Last reviewed:** 2026-11-19T20:49:30Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6496
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6496.png
- **ID:** TL-2026-6496
- **Severity:** HIGH
- **Category:** PHISHING
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 14 (3 shown free below)

## Description

Hornetsecurity's Threat Intelligence Lab (published 19 November 2026) describes a November 2026 resurgence of device-code phishing against Microsoft 365 accounts. Instead of stealing a password or defeating MFA, the attacker starts an OAuth 2.0 device authorization request from a client they control, obtains a device_code and user_code, and then persuades the victim to enter the user code at the genuine Microsoft device login page (login.microsoftonline.com/common/oauth2/deviceauth). The victim authenticates and completes MFA normally; the attacker's client, which is polling the token endpoint, then receives tokens for whatever permissions were granted, which can expose corporate email and files.

Delivery: payment-themed emails (in one sample the subject was a single period and the body almost empty; the recipient-personalized ZIP name supplied the 'payment advice' pretext) carry ZIP archives, standalone HTML files, or SVG/XML documents named .html. The SVG contains a full-canvas transparent rectangle over a fake 'security check' or identity-verification prompt; on click, JavaScript sets window.location.href to a destination that is hidden with reversible transformations (splitting the string, reversing alternating fragments, restoring a substituted Base64 alphabet, Base64 decoding, then repeating-key XOR). A second sample (SpwcinBillPaymentReports.zip, scheduled electronic payment subject) used an HTML loader that concatenated 475 obfuscated string fragments, verified a checksum, decoded bytes with a derived XOR keystream and injected the page with document.write. Other variants included a joint-check/updated-statement lure, a payment-advice ZIP with a 'One tap to proceed' SVG whose click handler passes through a Cloudflare Workers URL, and an EFT lure (ElectronicFundsTransferRemittanceAdvice.html).

Landing infrastructure: a verification gate scores browser-window properties and mouse/touch interaction and sends low-scoring visits (likely scanners or sandboxes) to a benign destination; other visits get an HTTP redirect to a keyed page on the same host. That page is a counterfeit SharePoint project-document workspace advertising remittance reports and check images, with a displayed verification code and copy control, telling the user to open a sign-in window, enter the code, authenticate and return to the document tab. While the lure is open it polls session-status and heartbeat endpoints (e.g. /api/status/28475 and /api/heartbeat/28475; the second sample used an immediate heartbeat then 10-second heartbeats, and 3-second status polling). On a captured status the lure hides itself and redirects to an exit destination or shows an access-granted message. The second sample's disclaimer referenced Irving Oil while the displayed sender identity differed.

The sources do not name an operator, OAuth client/application ID, target sector or region, a separate malware implant, or a count of compromised accounts. Microsoft's reporting on earlier device-code campaigns (Storm-2372 in February 2025; an AI-enabled campaign documented 6 April 2026, with dynamic code generation, Railway-hosted polling and clipboard hijacking) provides background but is not established as linked to these November samples. Defenders should hunt Entra sign-in logs for Authentication Protocol 'Device code' (and Original transfer method), block device code flow with a Conditional Access 'Authentication flows' policy (report-only first), and revoke sessions for any user who entered an unsolicited code.

## MITRE ATT&CK

- T1583.001 Acquire Infrastructure: Domains
- T1583.007 Acquire Infrastructure: Serverless
- T1566.001 Phishing: Spearphishing Attachment
- T1566.002 Phishing: Spearphishing Link
- T1204.002 User Execution: Malicious File
- T1059.007 Command and Scripting Interpreter: JavaScript
- T1027.017 Obfuscated Files or Information: SVG Smuggling
- T1027.013 Obfuscated Files or Information: Encrypted/Encoded File
- T1140 Deobfuscate/Decode Files or Information
- T1036.008 Masquerading: Masquerade File Type
- T1497 Virtualization/Sandbox Evasion
- T1684.001 Impersonation
- T1528 Steal Application Access Token
- T1550.001 Use Alternate Authentication Material: Application Access Token
- T1078.004 Valid Accounts: Cloud Accounts

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

**TL-2026-6496 Entra ID Device Code Sign-In Success (M365 Device Code Phishing) — Exploitation** (`TL-2026-6496-SPL-001`)

Behaviour-first detection of successful Microsoft Entra ID sign-ins that use the OAuth 2.0 device authorization grant (Authentication Protocol 'deviceCode' / Original transfer method 'deviceCodeFlow'). In the November 2026 fake-SharePoint payment-lure campaigns the victim enters an attacker-generated code on login.microsoftonline.com/common/oauth2/deviceauth and completes real MFA, so the attacker's polling client receives tokens (T1528, T1078.004, T1550.001). Every hit should be reviewed for a business purpose (app, user, source IP, timing) and sessions revoked when the user entered an unsolicited code.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1528, T1078.004, T1550.001
- **Data sources:** azure_ad_signin_logs, azure:monitor:aad, SigninLogs
- **Severity:** high
- **Confidence:** high

### Splunk SPL

```spl
index=azure sourcetype="azure:monitor:aad" category=SignInLogs properties.status.errorCode=0 (properties.authenticationProtocol=deviceCode OR properties.originalTransferMethod=deviceCodeFlow)
| eval user=lower('properties.userPrincipalName'), app='properties.appDisplayName', resource='properties.resourceDisplayName', src_ip='properties.ipAddress', country='properties.location.countryOrRegion', ca_status='properties.conditionalAccessStatus'
| stats count earliest(_time) as first_seen latest(_time) as last_seen values(app) as apps values(resource) as resources values(src_ip) as src_ips values(country) as countries values(ca_status) as ca_status by user
| convert ctime(first_seen) ctime(last_seen)
```

### Microsoft KQL

```kql
SigninLogs
| where TimeGenerated > ago(24h)
| where ResultType == "0"
| where AuthenticationProtocol =~ "deviceCode" or OriginalTransferMethod =~ "deviceCodeFlow"
| project TimeGenerated, UserPrincipalName, AppDisplayName, ResourceDisplayName, IPAddress, Location, AuthenticationProtocol, OriginalTransferMethod, ConditionalAccessStatus, UserAgent, CorrelationId
```

### Sigma

```yaml
title: Successful Entra ID Device Code Sign-In (TL-2026-6496)
id: 3f6c1a52-8b7e-4d19-a0c4-6e2b9d7f1c01
status: experimental
description: Detects successful Microsoft Entra ID sign-ins using the OAuth 2.0 device code flow, the mechanism abused by the November 2026 Microsoft 365 device code phishing campaigns (fake SharePoint payment lures) to obtain tokens after the victim completes MFA.
references:
  - https://www.hornetsecurity.com/en/blog/microsoft-365-device-code-phishing/
  - https://learn.microsoft.com/en-us/entra/identity/conditional-access/policy-block-authentication-flows
author: Threadlinqs Team
date: 2026-11-19
tags:
  - attack.credential-access
  - attack.t1528
  - attack.initial-access
  - attack.t1078.004
  - attack.lateral-movement
  - attack.t1550.001
logsource:
  product: azure
  service: signinlogs
detection:
  selection:
    AuthenticationProtocol: deviceCode
    ResultType: 0
  condition: selection
falsepositives:
  - Legitimate device code use by admins, Azure CLI/PowerShell users, IoT/TV/conference-room devices or developer CLI tools
level: medium
```

**Known false positives:**

- Administrators and developers legitimately using Azure CLI, Azure PowerShell or other CLI tools that rely on device code flow
- Shared or input-constrained devices (conference-room systems, kiosks, IoT) enrolled through device code sign-in

**Tuning notes:** Adjust the index/sourcetype to where Entra sign-in logs are ingested (Splunk Add-on for Microsoft Cloud Services). Build an allowlist of known device-code users, apps and managed device IPs, then alert on the remainder. Enrich with the user's recent email delivery of payment-themed ZIP/HTML/SVG attachments. Deploy the Conditional Access 'Authentication flows' block policy in report-only mode first to size legitimate use.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- TL-2026-6496 Payment-Themed HTML/SVG Lure or Known Lure Hash Written to Endpoint — Exploitation (locked: unlock with TL Creds)
- TL-2026-6496 Device Code Authentication Blocked by Conditional Access (Attempted Phishing) — Post-Exploitation (locked: unlock with TL Creds)
- TL-2026-6496 Fake SharePoint Lure Status/Heartbeat Polling and Workers Redirect Paths — C2 / Session Polling (locked: unlock with TL Creds)
- TL-2026-6496 Browser Opens Payment-Themed HTML/SVG Lure From Archive or Download Path — Exploitation (locked: unlock with TL Creds)
- TL-2026-6496 Device Code Sign-In Succeeded With No Conditional Access Applied — Post-Exploitation / Exposure (locked: unlock with TL Creds)
- TL-2026-6496 DNS Lookups for Device Code Phishing Domains (.cfd/.sbs Disposable Subdomains) — C2 / Infrastructure (locked: unlock with TL Creds)
- TL-2026-6496 Device Code Session Reused From Multiple IP Addresses — Post-Exploitation (locked: unlock with TL Creds)
- TL-2026-6496 Web Proxy Access to Device Code Phishing Infrastructure (.cfd/.sbs/workers.dev) — C2 / Infrastructure (locked: unlock with TL Creds)

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

## Sample indicators (3 of 14)

Defanged, TLP:CLEAR.

- Domain: `9l2v3vupv5[.]synerghylnksloads[.]cfd`
- File hash: `bbf9f563371d6afc449c69546a4ec39e831ca18d3bf3764b7b4c27f525426140`
- Domain: `tgg5rqrdcb[.]synerghylnksloads[.]cfd`

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

## Sources

- [Hornetsecurity - Device Code Phishing Resurges in November Through Fake SharePoint Payment Documents](https://www.hornetsecurity.com/en/blog/microsoft-365-device-code-phishing/)
- [Cyber Security News - Hackers Exploit Microsoft 365 Device Code Authentication to Hijack Accounts and Bypass MFA](https://cybersecuritynews.com/device-code-authentication/)
- [Microsoft Learn - Conditional Access: Block authentication flows](https://learn.microsoft.com/en-us/entra/identity/conditional-access/policy-block-authentication-flows)
- [Microsoft Learn - Conditional Access authentication flows concept](https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-authentication-flows)
- [Microsoft Security Blog - The risks of device code authentication for AI coding agents](https://www.microsoft.com/en-us/security/blog/2026/11/17/the-risks-of-device-code-authentication-for-ai-coding-agents/)
- [Microsoft Security Blog - Inside an AI-enabled device code phishing campaign](https://www.microsoft.com/en-us/security/blog/2026/04/06/ai-enabled-device-code-phishing-campaign/)
- [W3C SVG 2 - Interactivity](https://www.w3.org/TR/SVG2/interact.html)
- [Microsoft Security Blog - Storm-2372 device code phishing campaign](https://www.microsoft.com/en-us/security/blog/2025/02/13/storm-2372-conducts-device-code-phishing-campaign/)
- [Cyber Security News - Microsoft device code phishing attack (earlier coverage)](https://cybersecuritynews.com/microsoft-device-code-phishing-attack/)

## 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-6496
