Device-code phishing gives an attacker a valid Microsoft 365 session, and the victim supplies the approval. No password is stolen. MFA does not fail. The attacker's session is simply approved by the person it belongs to.

That is the pattern behind SkyW4lker, a device-code phishing kit that ANY.RUN researchers have tracked across 618 sandbox analyses since June 2026, as summarized by Cyber Security News. Monthly submissions rose from 20 in June to 200 in September. Almost half came from the United States, and the most targeted sectors were technology, manufacturing, and government.

Read the number carefully. 618 is sandbox analysis, not confirmed compromises. It shows how often the kit is being observed and how fast that is growing, not how many accounts it has opened. The security question is the same either way: once an attacker holds a valid session, what can it open?

How Does a Device-Code Phishing Attack Like SkyW4lker Work?

The attack runs in three steps. Each looks routine to the victim and to most automated scanners.

Step What the victim sees Why it gets through
The email A routine subject line such as a funds-transfer confirmation, with a password-protected PDF, Word, or Excel file and the password in the message Password-protected attachments stop many scanners from opening the file
The check A link in the document to a CAPTCHA, sometimes hosted on a legitimate service such as Miro, Google Sites, or Zoom Each page hides the next one from automated tools
The code A page that shows a short code and asks the victim to enter it on Microsoft's real sign-in page The victim completes the sign-in and approves the attacker's session

While the victim reads the instructions, obfuscated JavaScript checks their location and keeps polling the attacker's server until the sign-in completes. ANY.RUN reports obfuscated scripts in 520 of the 618 analyses. The kit ran across 173 domains and 92 backend IP addresses.

Why Does MFA Not Stop Device-Code Phishing?

MFA protects the sign-in, and this attack uses a real one. The victim enters the code on Microsoft's genuine page, completes MFA themselves, and the approval lands on the attacker's session. Every control in the identity layer then records a legitimate user signing in.

That is the part worth understanding for data security. An attacker with an approved session is not breaking in. To your firewall, your DLP, and your SIEM, the attacker is the user.

Microsoft 365 Blast Radius: What Attackers Access Post-MFA

Everything the account can reach. The session inherits the user's permissions, which for most employees were set long before anyone planned for this.

Surface What the session reaches Why identity-layer controls do not flag it
Mail and attachments Years of correspondence and attached files A signed-in user reading mail is normal
OneDrive Every file the user stored or synced The session is authorized
SharePoint and Teams Every library and channel the user belongs to, including legacy project sites Permissions inherited from past roles still apply
Connected AI assistants Whatever data the assistant can index via the user's login The assistant acts as the authorized user

With single sign-on, the same session can reach more than Microsoft 365. Your blast radius isn't a choice you made. It's an architecture you inherited.

Enterprise data breach benchmarks consistently report a mean time of over 200 days to identify and contain a breach. A session that opens files on the first day has months to do it before anyone names the incident.

What Should the Identity Layer Do About Device-Code Phishing?

Start with the controls that stop the code from being approved. The ANY.RUN-based checklist covers four.

  • Block device-code sign-ins with Conditional Access where they are not needed. Test the policy in report-only mode first, so you do not lock out users and devices that rely on the flow.
  • Alert on unexpected device-code logins in Microsoft Entra ID.
  • Treat password-protected attachments with the password in the email as high risk.
  • Run suspicious files and links in a sandbox before anyone enters a code.

When compromise is suspected, revoking sessions and checking OAuth grants matter as much as a password reset. Identity-layer controls address how an attacker authenticates. They do not dictate or enforce what an approved session can execute or open at the data layer.

Execution-Time Data Protection: Stopping Session Hijacking at the File Layer

They move the decision from the sign-in to the file. Each of the three jobs matters at a different moment of the attack.

Discover and classify: You cannot limit what a stolen session reaches until you know what is there. Continuous discovery across SharePoint, Google Drive, Box, and other cloud data stores inventories every file and labels it: what it contains, where it lives, and which people and AI agents can reach it. One phished account's reach becomes a list you can read before an attack, not after.

Protect and control: Labels drive policy. For the files that must never leak, per-file FIPS 140-3 validated encryption with more than twenty contextual controls evaluates the request itself: cleared groups, MFA at open, device, location, and network checks. A session approved on an attacker's infrastructure arrives from a device, location, and network the file does not recognize. Not even Theodosian can read those files, and a stolen copy is useless. Theodosian Guardian watches for mass downloads, unfamiliar devices, and impossible travel, and Drop the Gate freezes access to encrypted files automatically, in seconds.

Govern and audit: Every file action is recorded: who or what touched it, when, from where, and on what device. When an investigator asks which files the session opened, the answer is a log, and the exported log is cryptographically verifiable.

What the attacker does Identity-layer answer File-layer answer
Gets an approved session Block device-code flow and alert on device-code logins Protected files check device, location, network, and MFA at open
Opens SharePoint & OneDrive files Revoke session once detected Labels and per-file encryption limit what opens
Bulk-downloads a library Sign-in anomaly alerts Guardian flags mass downloads; Drop the Gate freezes access on encrypted files
Exfiltrates copies No control after download Copies are unreadable without active, authorized execution policy
Investigates touched files Sign-in and session logs Every file action recorded with a cryptographically verifiable export

Theodosian protects files. It does not stop the phishing email, the code entry, or the sign-in, and a file that is not protected remains readable by an account that can open it. That is why classification comes first. The files that matter most get the protection, and everyday files stay searchable, shareable, and collaborative.

For the architecture, see How File-Layer Encryption Limits the Blast Radius of Credential Theft, What Stops an Attacker Who Has Valid Credentials From Accessing Your Files, and What Your Breach Response Looks Like When Files Are Per-File Encrypted.

What Should You Check This Week?

Five checks tell you how far one approved session would get.

1. Is device-code flow blocked, in report-only mode, or untouched? If nobody can answer, that is the finding.

2. How many sensitive files could one phished account open? Count SharePoint libraries, OneDrive content, and Teams files, including old project sites that kept their permissions.

3. Do your most sensitive files require anything beyond the session? If an approved sign-in is the only gate, the session is the key.

4. How fast can you freeze a compromised account's file access? Measure from alert to freeze, not from alert to ticket.

5. Can you list the files a session touched? If the answer is a sign-in log with no file detail, an investigation will start with guesswork.

Audit Your Post-MFA Exposure Surface

Stopping device-code phishing requires knowing exactly what an approved session can reach before an attacker holds the token.

  • Session Blast Radius Map (Days 1–3): Connect via API to Microsoft 365 (SharePoint, OneDrive, Teams) in read-only mode to calculate the blast radius of a single phished account—mapping active file permissions, legacy site access, and unindexed sensitive data.
  • Contextual Rule Simulation (Days 4–10): Dry-run execution-time policies against real user traffic. Test how device, location, and network checks evaluate file requests without disrupting legitimate Microsoft 365 workflows.
  • Enforcement & Automated Isolation (Day 14+): Enable per-file FIPS 140-3 encryption on critical libraries and activate automated access freezes (Drop the Gate) on anomaly detection, producing a cryptographically verifiable audit trail.

Single-tenant deployment options include self-hosted, in-region data residency, and FedRAMP High environments, supported by SOC 2 Type 2 verification.

Measure Your Microsoft 365 Blast Radius

Map the exact files an attacker can reach through an approved device-code session before a token is stolen.

See How

FAQs: Device-Code Phishing and File Protection

Does Theodosian stop device-code phishing?

No. Theodosian does not block the phishing email, the device code, or the sign-in. It protects the files after a session exists. Identity controls such as Conditional Access remain necessary, and Theodosian works alongside them.

What happens when an attacker opens a protected file from a stolen session?

The file evaluates the request itself: the identity, device, location, and network, plus MFA at open where policy requires it. A request outside policy is denied and logged. A stolen copy is unreadable without an authorized request.

Does this replace MFA or Conditional Access?

No. MFA and Conditional Access protect the sign-in. Theodosian protects the file. They answer different questions, and a device-code attack shows why you need both.

How do I find out which files a compromised account touched?

Every file action is recorded: who or what touched the file, when, from where, and on what device. Your compliance team exports the log with cryptographic verification that it has not been altered.

How quickly will I see what one account can reach?

Discovery begins within minutes of connecting read-only. Within days, you have a full map of where your sensitive data lives and who and what can reach it.