Abstract

How does an attacker get a working Microsoft 365 token when the victim signed in only on Microsoft’s own page? Two OAuth features make it possible. The device authorisation grant of RFC 8628, written for televisions and printers, lets one device start a sign-in and another approve it. The attacker starts the flow and the victim approves it. User consent, where the tenant allows it, lets a user give an attacker’s app delegated, offline access to their data. In both cases the identity provider issues tokens to a client the attacker controls. A phishing-resistant authenticator does not prevent this: it protects against a false verifier, and here the verifier is genuine. When the attacker uses Microsoft’s broker client and the tenant allows device registration, a phished refresh token can register a rogue device and obtain a Primary Refresh Token. Huntress reports that such access survived password resets in a campaign with 468 device registrations in 305 organisations in November 2026. The controls that work restrict the flows: block device code flow with narrow exceptions, restrict device joining, require compliant devices and limit user consent. Each has a cost, such as Teams device exceptions or a consent review queue.

What the attacker actually needs

Credential phishing aims to copy a secret: a password, a one-time code, a session cookie. The two techniques here copy nothing. They persuade the victim to authorise a client, and the identity provider then issues that client its own tokens. The victim signs in on the real provider’s page with a method the organisation’s policy accepts, which can be a passkey. The tokens go to a program the attacker runs.

Device-code phishing also appears in the site’s article on stolen sessions, alongside infostealers and adversary-in-the-middle proxies.

Two OAuth terms recur. A public client is an application that cannot keep a secret, such as a command-line tool or a mobile app, so the authorisation server cannot verify which program is calling when it presents a client ID. A refresh token is a long-lived credential that the client redeems for new short-lived access tokens without asking the user again. Microsoft documents a default refresh-token lifetime of 90 days for most scenarios, and 24 hours for single-page applications and for apps using the email one-time passcode flow. Its refresh tokens “are bound to a combination of user and client, but aren’t tied to a resource or tenant”, so a client can use one to get access tokens for any resource “where it has permission to do so”.1

The device authorisation grant as written

The exchange

RFC 8628 was published in August 2019. Its authors were from Google, Ping Identity, Microsoft and ARM. It defines a flow for clients “on devices that have limited input capabilities or lack a suitable browser”, naming “smart TVs, media consoles, picture frames, and printers”. It says the grant “is not intended to replace browser-based OAuth in native apps on capable devices like smartphones.”2

The device makes one request to the authorisation server and receives six values:

  • device_code, a long secret the device keeps and later presents to the token endpoint;
  • user_code, a short code the user types;
  • verification_uri, a short address the user visits on a phone or computer;
  • verification_uri_complete, optional, which embeds the user code so it can be sent as a link or QR code;
  • expires_in, the lifetime in seconds of both codes;
  • interval, optional, the minimum number of seconds between polls, with 5 as the default.2

The RFC’s own example response looks like this:

{
  "device_code": "GmRhmhcxhwAzkoEqiMEg_DnyEysNkuNhszIySk9eS",
  "user_code": "WDJB-MJHT",
  "verification_uri": "https://example.com/device",
  "verification_uri_complete": "https://example.com/device?user_code=WDJB-MJHT",
  "expires_in": 1800,
  "interval": 5
}

The device shows the user code and the address, then polls the token endpoint with the device code, its client ID and the grant type urn:ietf:params:oauth:grant-type:device_code. Until the user finishes, the server replies authorization_pending. If the client polls too fast it receives slow_down and must add five seconds to its interval. Other answers are access_denied and expired_token.2 When the user approves, the next poll receives a standard OAuth token response: an access token and, optionally, a refresh token.3 Microsoft issues the refresh token if the original request included the offline_access scope.4

The design assumes a one-way channel. The RFC states that “the separate device on which the user is authorizing the request does not have a way to communicate back to the device with the OAuth client.” Nothing in the protocol connects the browser session in which the user approves to the device that receives the tokens, apart from the user code that the user carries across. The approval does not establish that the user is in front of the device that started the flow. Tokens go to the client that redeems the matching device code with its client identifier, authenticating itself as well if it was issued client credentials.2

A worked example

A meeting-room display asks for codes and shows “Go to example.com/device and enter WDJB-MJHT”. The facilities manager opens the address on her laptop, signs in, types the code and approves, and the display’s next poll returns its tokens. Now replace the display with a script on an attacker’s server, which sends the same code to her in an email saying her calendar needs reconnecting. Every step she performs is identical, and the script’s next poll returns the tokens to the script. The protocol messages alone do not tell the two cases apart, because in both of them a client presented a valid device code after a genuine user approved the matching user code. The provider can still see context, such as the polling client’s network address and the policy state of the session, and the controls described later rely on that context.

What the RFC’s authors foresaw

Section 5 of the RFC treats this risk directly. Its section on device trustworthiness observes that “signals from the approving user’s session and device are not always relevant to the trustworthiness of the client device.”2 Section 5.4, “Remote Phishing”, begins:

It is possible for the device flow to be initiated on a device in an attacker’s possession. For example, an attacker might send an email instructing the target user to visit the verification URL and enter the user code. To mitigate such an attack, it is RECOMMENDED to inform the user that they are authorizing a device during the user-interaction step (see Section 3.3) and to confirm that the device is in their possession. The authorization server SHOULD display information about the device so that the user could notice if a software client was attempting to impersonate a hardware device.2

The same section discusses the code lifetime. It should be long enough to be usable “but should be sufficiently short to limit the usability of a code obtained for phishing. This doesn’t prevent a phisher from presenting a fresh token, particularly if they are interacting with the user in real time, but it does limit the viability of codes sent over email or text message.”2 Section 5.4 thus anticipates the attacker who generates a fresh code while the target is engaged, which is how the attack later developed.

Section 5.6 says device clients “should be treated as public clients” and are “susceptible to impersonation”.2 That is what lets an attacker present a well-known application’s client ID.

The later OAuth 2.0 Security Best Current Practice, RFC 9700 of January 2025, does not analyse device-code phishing. It mentions the device authorisation endpoint once, in a list of endpoints that should use Content Security Policy to prevent clickjacking.5 For remote phishing of this grant specifically, the IETF text is RFC 8628’s own section 5.4.

Microsoft’s implementation

Codes, lifetime and the confirmation prompt

Microsoft’s identity platform implements the grant with a /devicecode endpoint. Its documentation says the user has 15 minutes to sign in, the default expires_in, and that verification_uri_complete “is not included or supported at this time”. The documentation says a user signing in with a personal Microsoft account is asked to sign in again and to consent to the requested permissions, and that this “doesn’t apply to work or school accounts”.4 Whether a work-account user sees a scope consent screen therefore depends on the client and on what has already been consented for it. Users are directed to microsoft.com/devicelogin, which Volexity describes as a redirect to login.microsoftonline.com/common/oauth2/deviceauth.6

Microsoft does show a confirmation step in the spirit of section 5.4. In its February 2025 Storm-2372 report Microsoft wrote that since 2021, Azure sign-ins prompt users to confirm, with Cancel or Continue buttons, “that they are signing in to the app they expect”.7 This is a confirmation of the application, which is different from a consent screen listing permissions. In Huntress’s November 2026 cases, the first two interactive sign-ins show the victim receiving error code AADSTS50199, which Huntress describes as a “CMSI interrupt” confirming that the user is trying to sign in to the Microsoft Authentication Broker application, and then completing the sign-in.8 Microsoft’s Storm-2372 hunting query looks for exactly that sequence, error 50199 followed by success within five minutes.7 The prompt names an application. It cannot tell the user where that application is running.

Public first-party clients

An attacker running this flow needs a client ID. Microsoft’s own applications provide them. Secureworks’ research on Azure AD refresh tokens, published as a GitHub repository with updates into 2022, demonstrates a device authorisation grant “as the Azure CLI public client application” (client ID 04b07795-8ddb-461a-bbee-02f9e1bf7b46). It explains that “Since the Azure CLI is a public client, it does not have its own secrets and Azure AD cannot verify whether the authorization request originates from the legitimate commandline tool or an attacker.”9

The same research explains why such a client is so useful. Many Microsoft first-party applications have “implied consent”, also called pre-consent or pre-authorisation, for their scopes, which are “invisible to users and administrators”. The Azure CLI does not even appear in a user’s list of permission grants. The research also documented “family refresh tokens”: a group of Microsoft clients, the Family of Client IDs (FOCI), whose refresh tokens “can be redeemed for bearer tokens as any other client in the family”. Secureworks reported that Microsoft confirmed, in MSRC case VULN-057712, that this is an intentional feature designed to support single sign-on across Microsoft’s mobile applications. Microsoft’s Storm-2372 report links to this research.97

For a work account, then, an attacker can start the flow under a pre-authorised first-party client ID such as the Azure CLI, without a scope consent screen for that client. If the client belongs to the family Secureworks describes, the refresh token may also be exchangeable for tokens to other family clients. The family mechanism is a separate finding from the device-registration route described below, and neither depends on the other.

Google’s narrower version

Google’s equivalent, “OAuth 2.0 for TV and Limited-Input Device Applications”, returns a verification_url of https://www.google.com/device and in its example an expires_in of 1800 seconds. It states that the flow “is supported only for the following scopes”: OpenID Connect sign-in (openid, email, profile), two narrow Drive scopes (drive.appdata and drive.file) and two YouTube scopes.10 Gmail and full Drive access are not on the list.

Matt Kiely of Huntress tested the attack against both providers in February 2025. He found that Google’s scope list “effectively neutered the attack potential”. He wrote that, “As far as I can tell”, Google has no public client IDs like Microsoft’s, so the attacker must register an app, and apps requesting powerful scopes must be published and verified. His summary: Google “limits the scopes available to the device code flow accordingly. Microsoft makes no such limitations.” He added that he had “only scratched the surface” on Google.11 Proofpoint reported in May 2026 that it had also seen Google-themed device code campaigns, “in significantly lower volumes”.12

How the attack is run

From fixed codes to codes on demand

The 15-minute lifetime is a constraint on the attacker. Volexity’s February 2025 report notes that in targeted device-code phishing “it is especially important to have a responsive target, as the threat actor has only 15 minutes to convince the target to enter the code”. The actor it calls UTA0307 worked around it. Its fake Teams interstitial page, hosted on pages.dev, “was set up to automatically generate a new Microsoft Device Code each time it was visited”. The page continuously polled a second domain, which, Volexity writes, “appears” to have been set up to detect a successful authentication and then send the victim to a real Teams meeting URL.6 The lifetime still runs on the server, but it now starts when the target clicks. This is the case RFC 8628 section 5.4 describes, a phisher “presenting a fresh token” in real time, which it says lifetimes do not prevent.

Proofpoint’s May 2026 report describes on-demand generation as the change that made the technique popular. Previously, codes sent by email could expire before the target read them. “In most current device code phishing attacks, the code is generated dynamically when a user clicks on the initial phishing link.”12 Microsoft’s September 2026 report on the EvilTokens platform, covered in the companion article, describes the same design. A background script obtains a live code when the user clicks, often copies it to the clipboard, and sends the user to microsoft.com/devicelogin. A user already signed in only has to paste and confirm.13

The campaigns, 2025 to 2026

ReportActorPeriodLure and channelNotes
Microsoft, 13 Feb 20257Storm-2372 (assessed in July 2026 as a Midnight Blizzard sub-cluster)Since August 2024Rapport on WhatsApp, Signal, Teams; fake Teams invitations with the code as the meeting IDGraph keyword searches of mail; internal phishing from victim accounts; switch to the broker client reported 14 Feb 2025
Volexity, 13 Feb 20256UTA0304, UTA0307, CozyLarch (medium confidence: APT29/Midnight Blizzard)From mid-January 2025Signal then Element, posing as Ukraine’s Ministry of Defence; fake US State Department invitations; posing as a member of the European ParliamentUTA0307 generated codes on demand and added its own authenticator app to the account
Volexity, 22 Apr 202514UTA0352, UTA0355UTA0352 from early March 2025; UTA0355 from early April 2025Signal and WhatsApp, posing as European officials; UTA0355 also used a compromised Ukrainian government email accountAuthorisation-code variants rather than device codes; UTA0355 registered a device
Proofpoint, December 202515TA2723 (criminal); UNK_AcademicFlare (suspected Russia-aligned)Widespread campaigns from September 2025; TA2723 from October 2025; UNK_AcademicFlare since September 2025Salary-document and shared-file lures; compromised government and military addresses for rapportProofpoint suspects SquarePhish2 and the Graphish kit were used in two October waves
Proofpoint, May 202612TA4903 and many kit usersFrom March 2026 for TA4903PDF and QR-code lures, DocuSign and Microsoft themesAround seven near-identical kit variants seen in one 10-day window in April 2026
Microsoft, 22 Sep 202613EvilTokens platform usersPlatform appeared February 2026High-pressure lures such as password expiryMore than 12,000 inboxes in over 10,000 organisations, by Microsoft’s count
Huntress, 3 Dec 20268Unattributed; three operations, linked with differing confidenceNovember 2026Adobe-protected non-disclosure agreement (the MH- operation)468 rogue device registrations across 326 identities in 305 organisations

State-aligned actors, mostly Russia-aligned by the vendors’ assessments, used the technique in slow, conversational operations against people working on foreign policy, Ukraine and human rights. Volexity judged that the method “has been more effective at successfully compromising accounts than most other targeted spear-phishing campaigns”.6 Criminal kits followed. Proofpoint reports that “by September 2025, we observed widespread campaigns using these attack flows, which was highly unusual.”15 Several of these reports, from Storm-2372 in February 2025 to Huntress in December 2026, describe a phished token being turned into a registered device. The sources give no measure of how common that step is across all campaigns.

The November 2026 registration campaign

Huntress published its analysis on 3 December 2026 (read here from the Internet Archive copy), and BleepingComputer reported it the same day, citing Huntress’s figures.816

Huntress states: “Throughout November 2026, we observed 468 registrations across 326 identities in 305 organizations.” Most rogue devices were named MH- followed by 16 uppercase hexadecimal characters. Huntress says every registration it found in that MH- pattern was joined to Entra ID and reported Windows build 10.0.19041.928, and that the devices carried no hardware identifiers. It identifies that build as “the default hardcoded in ROADtools”, a public Entra toolkit, and notes that it corresponds to a Windows 10 version that left servicing in 2021. Forty-six MH- names were registered in more than one organisation.8 ROADtools is Dirk-jan Mollema’s toolkit.17

The sequence in one intrusion was:

  1. The victim followed a lure through the device code flow. The interactive sign-ins came via the Microsoft Authentication Broker application from residential and “callback” proxies in the US and UK.
  2. The attacker immediately redeemed the token against the Device Registration Service. The non-interactive sign-in moved to a new IP address in Poland with the user agent python-requests.
  3. Once the device was registered, the attacker used the new Primary Refresh Token to sign in to Azure Active Directory and Microsoft Office, then reached OneDrive, SharePoint or Exchange.8

Huntress grouped the registrations into three operations by naming pattern, build and infrastructure. It links the MH- devices and a second set of DESKTOP- devices to one operator. A third group, with devices named Device- plus eight hex characters or GraphSpy-Device (the default in another public toolkit), reported build 10.0.26100. Huntress rates its link to the others as low confidence, “similar method only, no shared infrastructure”. It has not tied any of them to a named actor.8

Huntress’s figures on detection cover the MH- subset. Of the organisations with an MH- device, 36 had Microsoft Defender XDR connected to Huntress. Those held 47 of the victims, and Defender raised an incident, titled “User session compromised by device code phishing (attack disruption)”, on 25 of them. The sample depends on which tenants licensed and connected Defender, so it is not a measure of Defender’s detection rate in general. In one case Entra recorded the registration at 02:39:15 UTC and Defender raised its incident at 02:44:19 UTC and contained the account. Huntress’s conclusion is that Defender confirms compromise where it is licensed and connected, while “The M365 identity logs tell you which device to delete, which is the only way to cut off the threat actor’s access.”8

From a refresh token to a registered device

Why the broker client matters

A refresh token from a device-code phish is bound to the user and to the client that started the flow, and can be used only where that client has permission. Dirk-jan Mollema described in October 2023 how one particular client’s token can be used to obtain a more powerful one. While studying Windows setup, he observed that Windows signs in to the Microsoft Authentication Broker (client ID 29d9ed98-a469-4536-ade2-f981bc1d605e), uses the resulting access token to join the device, and then uses the same refresh token, together with the new device identity, to request a Primary Refresh Token. Mollema called this “quite a clear violation of the token security architecture”. An app-bound refresh token can be used first to register a device and then to obtain a more powerful token. He showed that the device code flow, which Windows itself does not use for this, yields the same refresh token.17

Two further points from his research matter for defenders. “Tokens resulting from the authentication will contain the same authentication method claims as used during the registration, so any MFA usage will be transferred to the PRT.” And if the victim performed fresh MFA during the device-code sign-in, the attacker can also provision a Windows Hello for Business key on the rogue device, which “can be used to also request new PRTs in the future, without needing access to the users password.” Mollema wrote that Microsoft “did not consider this worth fixing immediately because of the requirement to phish users to authenticate”. He listed two mitigations Microsoft said it was considering: an extra warning when the device code flow targets the broker, and Conditional Access control over the flow.17 The second now exists, as described below.

Microsoft’s update of 14 February 2025 to its Storm-2372 report describes the technique in use: with the broker client ID, the actor registered “an actor-controlled device within Entra ID” and obtained a PRT with the same refresh token.7

What the Primary Refresh Token buys

Microsoft’s documentation describes the PRT as follows. It “is valid for 90 days and is continuously renewed as long as the user actively uses the device.” “PRTs only satisfy device registration policies if they’re issued for registered devices.” Conditional Access policies “aren’t evaluated when PRTs are issued”, nor when they are renewed. Policy applies later, when the PRT is used to request tokens for applications. The documentation lists the events that invalidate a PRT: the user is deleted or disabled, the device is deleted or disabled, a TPM failure occurs, or the password changes. The password case is narrow: “If a user obtained the PRT with their password, the PRT is invalidated by Microsoft Entra ID when the user changes their password.”18 A PRT obtained by an attacker’s script from a phished broker refresh token was not obtained with the password, so this provision does not apply to it. Huntress drew that conclusion for its cases: “Password resets alone do not remove the threat actor’s access–the rogue device must be deleted from the M365 environment manually.”8 Microsoft’s documentation shows that disabling the device, or disabling the user, also invalidates the PRT.18

A registered device also gives the attacker a device identity. Microsoft states that “PRTs only satisfy device registration policies if they’re issued for registered devices”, and the attacker’s PRT is issued for a registered device.18 Conditional Access offers separate grant controls, among them “Require device to be marked as compliant” and “Require Microsoft Entra hybrid joined device”.19 Compliance depends on the device being enrolled in management and meeting its compliance rules; hybrid join is a distinct join state. Mollema’s view is that requiring a compliant or hybrid-joined device is the decisive control for later access to covered resources, provided Intune is “locked down sufficiently to block people from enrolling non-corporate or fake devices”.17

Variants without a device code

Blocking the device code flow does not close every route to the same outcome. Volexity’s April 2025 report describes Russian actors who, after “an observable drop” in device-code phishing, switched to ordinary authorisation-code links on login.microsoftonline.com for first-party applications. UTA0352 used the Visual Studio Code client ID with a redirect to insiders.vscode.dev, which displays the authorisation code on screen, and asked victims to send the code back over Signal or WhatsApp. UTA0355 sent a link that used the client ID 29d9ed98-a469-4536-ade2-f981bc1d605e, the Microsoft Authentication Broker in Mollema’s research, with the Device Registration Service as the resource and a Microsoft-hosted redirect page, and asked the victim to send back the full URL from the address bar. It then registered a device named DESKTOP- followed by redacted characters. The next day it talked the victim into approving a two-factor prompt, on the pretext that it was needed to “gain access to a SharePoint instance associated with the conference”, and downloaded the mailbox through a session tied to the new device.1417

Volexity notes that “these attacks do not involve malicious or attacker-controlled OAuth applications for which the user must explicitly grant access (and thus could easily be blocked by organizations)”. At publication, Volexity was “not aware of a way to block specific first-party Microsoft apps via conditional access policies”.14

The mechanism

Consent phishing deceives the user about a grant to an application the attacker owns. The usual implementation is the authorisation code flow. The attacker registers a multi-tenant application with Microsoft Entra ID, chooses a plausible name, and requests delegated permissions such as reading mail and files plus offline_access, which is what lets the app receive a refresh token.20 The attacker then sends the victim a link to Microsoft’s authorisation endpoint with the app’s client ID. Microsoft’s 2021 description: “the user sign-in takes place at a legitimate identity provider, rather than a fake sign-in page”. When the user accepts, “the app obtains an authorization code that it redeems for an access token”. Microsoft added that “In most cases, consent phishing attacks do not involve password theft”.21 Microsoft’s illicit-consent guidance puts the consequence plainly: once consent is granted, the application “has account-level access to data without the need for an organizational account.”22

A worked example shows the difference from device-code phishing. A finance officer receives a “review and sign” email whose link points to login.microsoftonline.com. She signs in, perhaps with a passkey, and sees a consent screen for “DocReview” asking to read her mail, read her files and “maintain access to data you have given it access to”. This assumes her tenant lets users consent to those permissions, which, as described below, Microsoft’s current default for new tenants does not. She clicks Accept. Microsoft redirects her browser, with an authorisation code, to the attacker’s registered redirect address. The attacker’s server exchanges the code, using its own client secret, for an access token and a refresh token.20 For as long as the grant stands and the refresh token remains valid, the server can read her mailbox through Microsoft Graph without involving her. Here the attacker’s client is a confidential client with its own credentials, and the user saw an explicit, if misleading, consent screen. In the device-code cases above, the client was a pre-authorised public Microsoft client and the user saw at most an application confirmation.

Microsoft’s permission classification documentation lists openid, profile, email and offline_access as the minimum for basic sign-in. It notes that with these an app “can maintain this access even when the user is no longer using the app”.23

Why a password reset does not end it

Microsoft’s illicit-consent guidance says that “Normal remediation steps (for example, resetting passwords or requiring multifactor authentication (MFA)) aren’t effective against this type of attack, because these apps are external to the organization.”22 Microsoft’s refresh token documentation shows the mechanism. Its revocation table has a column for tokens issued to confidential clients. When the user changes their password, or resets it through self-service, those tokens “stay alive”. An administrator reset through the Entra or Microsoft 365 admin centre revokes them, and so does revoking the user’s refresh tokens.1 The grant itself, the record that the user consented, is not removed by any of these. Microsoft’s guidance gives the remedy as revoking the delegated permission grant, and any application role assignment, for the app.22 Disabling or removing the enterprise application is a further step for an app that is unwanted altogether. Microsoft notes that an app it has disabled for a terms-of-service violation cannot be deleted from the tenant.24

How long the access lasts is reported differently. Proofpoint observed that in the campaign it studied, the refresh token “has a long expiry duration of over a year in most cases”.25 Microsoft’s current documentation gives a 90-day default for most clients.1 The sources do not reconcile the two. One possible explanation for prolonged access is rolling renewal: Microsoft states that refresh tokens “replace themselves with a fresh token upon every use”.1

Verified publishers and their limits

Publisher verification is the identity signal Microsoft shows on the consent prompt. A verified app displays a blue badge on the consent prompt, showing that its publisher has a verified Microsoft AI Cloud Partner Program account. Since November 2020, if risk-based step-up consent is enabled, users cannot consent to most multi-tenant apps registered after 8 November 2020 that are unverified and request more than basic sign-in permissions.26 An unverified app shows “Unverified” in place of a publisher name.27

Attackers have obtained the badge. In a report dated 31 January 2023, Proofpoint said it found a campaign on 6 December 2022 in which actors had impersonated real companies to become verified publishers, mainly targeting UK organisations. The apps requested delegated access to mail, mailbox settings, calendars and files, with offline access. Proofpoint told Microsoft on 20 December. The campaign ended on 27 December 2022.25 Microsoft’s MSRC post of 31 January 2023 said it learned of the campaign on 15 December 2022. The actors had used “fraudulent partner accounts to add a verified publisher to OAuth app registrations”. The targets were “primarily based in the UK and Ireland”. Microsoft disabled the apps and tightened partner vetting.28 Proofpoint’s advice was not to trust OAuth apps on the strength of verified-publisher status alone.25

When Microsoft disables a malicious app, its documentation says that “Any new token requests or requests for refresh tokens are denied, but existing access tokens are still valid until their expiration.” Tenant administrators cannot re-enable it.24 Proofpoint put the remaining window in the 2022 case at “usually between 60 – 90 minutes”.25

Midnight Blizzard and OAuth applications

Microsoft’s own 2024 intrusion did not begin with consent phishing, but it shows why application grants are worth an attacker’s effort. Microsoft disclosed on 19 January 2024 an attack it detected on 12 January, which began in late November 2023 with a password spray against “a legacy non-production test tenant account”.29 According to Microsoft’s guidance of 25 January 2024, the actor found a legacy test OAuth application with elevated access to Microsoft’s corporate environment, created more malicious OAuth applications, “created a new user account to grant consent in the Microsoft corporate environment” to them, and used the legacy app to grant the Exchange Online full_access_as_app role, “which allows access to mailboxes”.30 Microsoft noted that misusing OAuth “enables threat actors to maintain access to applications, even if they lose access to the initially compromised account.”30 The difference from consent phishing is in kind. An ordinary user’s consent delegates access on that user’s behalf, limited to the granted scopes and to what the user can reach. The full_access_as_app role is an application permission: the app acts with its own identity, across mailboxes, independently of any one account, and granting it requires administrative rights that Midnight Blizzard had obtained.3031

For new Entra tenants, the default is the Microsoft-managed consent policy described below, which excludes Microsoft Graph’s mail permissions apart from six named mail clients.32 Microsoft’s general consent guide describes the broader baseline in which users may consent to any permission that doesn’t require administrator consent, for example letting an app access their own mailbox; whether that applies depends on the tenant’s chosen policy.33 Microsoft recommends allowing user consent only for apps from verified publishers. Its built-in policy microsoft-user-default-low allows consent only to verified-publisher or tenant-registered apps, and only for permissions the administrator has classified as low impact.33 Where users cannot consent, the admin consent workflow lets them request it. The request goes by email to designated reviewers. Only Global Administrators can approve requests for application permissions on Microsoft Graph.31

The default has been tightened in stages. Message centre notice MC1097272, updated on 18 July 2025, announced that “Microsoft managed App Consent Policies will be enabled, and users will be unable to consent to third party applications accessing their files and sites by default”, with rollout from mid-July to August 2025.34 The current documentation describes the Microsoft-managed setting, “Let Microsoft manage your consent settings”, as “the default for a new tenant”. Under it, users can consent to user-consentable delegated permissions except a list that includes Microsoft Graph’s mail, calendar, chat, contacts, files and sites permissions. A second policy, on by default, lets users grant mail permissions to six named mail clients, including Apple Mail and Thunderbird.32 A tenant’s effective policy depends on which of these settings it uses. The finance officer’s grant in the example above would succeed only in a tenant that still allows user consent to mail permissions.

Google Workspace

Google Workspace administrators control third-party access per app, marking it, for example, Trusted (all services, including restricted ones), Limited (unrestricted services only), Specific Google data, or Blocked. A separate setting governs unconfigured apps. Its default, “Allow users to access any third-party apps”, means such apps “can request unrestricted Google data for that user”. Administrators can instead allow only basic sign-in information, or nothing until an app is configured.35 Google’s default for unconfigured apps is therefore more permissive than the Microsoft-managed default for new Entra tenants.

Why phishing-resistant authentication does not help

NIST’s SP 800-63B-4 defines phishing resistance as “the ability of the authentication protocol to prevent the disclosure of authentication secrets and valid authenticator outputs to an impostor verifier (i.e., an attacker fraudulently posing as the verifier)”. WebAuthn, the protocol behind passkeys and FIDO2 keys, achieves it through “verifier name binding”, by choosing an authenticator secret “based on the authenticated domain name of the verifier”.36

A passkey meets that definition, and the authentication step of both attacks can still succeed, wherever the tenant’s policy accepts it. In device-code phishing and consent phishing there is no impostor verifier. The victim’s browser is on login.microsoftonline.com, the passkey signs for that domain, and Microsoft correctly concludes that the real user is present. A successful ceremony shows who approved; it does not show that the approver understood which client was being authorised. The attacker never asks for an authenticator output and could not use one. The attacker’s point of entry is later and separate: which client receives the tokens. In the device flow, it is the client that redeems the device code matching the user code the victim typed, identified by its client ID under RFC 8628 section 3.4.2 In the confidential-client consent example, it is whoever holds the registered app’s credentials and redirect address; Microsoft’s authorisation code flow also serves public clients, which have no secret.20 Origin binding answers “is the user talking to the real identity provider?” Neither attack depends on the answer being no.

The prior authentication can also carry forward. A user who is already signed in may not be asked to authenticate at all. Microsoft’s EvilTokens report notes that in that case “simply pasting the code and confirming the request instantly authenticates the threat actor’s session”.13 Mollema found that the MFA claim from the victim’s sign-in passes into the attacker’s PRT.17 Secureworks noted that refresh grants “inherit the authentication method claims from the original authorization grant”.9 Phishing-resistant authentication remains valuable against look-alike sites and relay proxies, which it is designed to stop. In these attacks it confirms that the right person approved the wrong client. Mollema made the same point: device code phishing “is one of the few methods that is not prevented by requiring a certain MFA strength, since users perform this authentication against the legit Microsoft domains.”17

Controls, weighed

Blocking or scoping the device code flow

Conditional Access has an “authentication flows” condition. Microsoft’s documentation calls device code flow “a high-risk authentication method” and says “Microsoft recommends blocking device code flow wherever possible.”37 Its how-to guide goes further: “We recommend organizations get as close as possible to a unilateral block on device code flow.” It describes a policy created in report-only mode and switched on after checking its impact.38 Volexity reported from its own testing that blocking device code flow under the authentication-flows condition “prevents this attack from working”.6

Two implementation details matter. First, protocol tracking. A session that began with device code flow keeps that state “through subsequent refreshes”, so a refresh token born of device code flow stays subject to the policy even when it is later used in another flow. Blocked tokens fail with AADSTS530036.37 Second, the Device Registration Service. Microsoft “began enforcing authentication flows policies on Device Registration Service” in early September 2024, for policies that target all resources. Organisations that legitimately register devices by device code must exclude that resource explicitly.37 The same documentation covers authentication transfer, for example scanning a QR code in desktop Outlook to sign in on a phone, which can be controlled in the same way.37

Microsoft has also moved towards blocking by default. A Microsoft Entra blog post of 20 February 2025 announced the 2025 rollout of a Microsoft-managed policy “to block this flow by default for customers that have not used device code flow in the past 25 days”, created in report-only mode with “at least 45 days” before it was switched on.39 A Microsoft Teams blog post of 1 April 2025 repeated the 45-day minimum and said the rollout would continue until May.40 Microsoft’s current general documentation for managed policies says they are enabled “no less than 30 days” after they appear in a tenant if left in report-only, with notice two weeks beforehand, and adds that “In some cases, policies might be enabled faster than 30 days.” It describes the device code policy this way: “Device code flow is rarely used by customers, but is frequently used by attackers.”41 The 25-day and 45-day figures describe the 2025 rollout, not a current eligibility rule.

What breaks? Microsoft’s own documents name the main cases. Some Microsoft Teams devices, including Teams Rooms, Teams Android devices and shared Teams devices, use device code flow “during first-time registration, reprovisioning, and some reauthentication scenarios”. Microsoft’s guidance is to put the Teams device resource accounts in a persistent security group, exclude that group from the block, and exclude the Device Registration Service resource from the policy.42 These exceptions are defined by account and resource, not by physical device. A Device Registration Service exclusion removes this policy’s block on that resource for every account the policy covers, not only the Teams accounts; other Conditional Access policies and the tenant’s device-registration settings still apply, and the effect needs checking in the sign-in logs.423743 The authentication-flows documentation gives the example of allowing Android conference-room devices only from a specific network location.37 Developer tools are the other large group. The Azure CLI, for example, falls back to device code flow when no browser is available, and users can force it with --use-device-code.44

The way to find these uses before blocking is the same in every source. Run the policy in report-only mode and filter the sign-in logs by authentication protocol.373815 Volexity’s review of its own customers is encouraging: at most of them there was either no recent device-code activity or only activity tied to the attacks it was reporting.6 Proofpoint suggests that if a full block is impossible, organisations allow-list by user, operating system or named location.15

Restricting device registration

Entra’s device settings separate joining (default: all users may join) from registering personal devices, and set a maximum per user (default: 50). Registration cannot be turned off where Intune or Microsoft 365 mobile device management is configured, because enrolment requires it. The setting “Require multifactor authentication to register or join devices” defaults to No. Microsoft recommends the Conditional Access user action “Register or join devices” instead, and says the tenant-wide toggle must be set to No for that policy to be enforced properly. The user action supports only two controls, requiring MFA or an authentication strength, and cannot use device-state conditions.4345

Requiring MFA to register is weaker against these attacks than it looks. If the phished sign-in included MFA, Mollema’s research found that the MFA claim can carry forward into the attacker’s tokens.17 The sources give no estimate of how often victims’ sign-ins include it. Microsoft’s Storm-2372 report recommends “enrollment restrictions – limiting the user permissions that can enroll devices”, and Huntress recommends limiting who can register or join devices and how many each user may register.78 Limiting who can join is the stronger version of the control. Mollema observed that “joining devices is restricted more often than registering them”.17

The “Require device to be marked as compliant” grant control, applied to the resources that hold data, is the strongest of the device controls, because a freshly registered rogue device is not enrolled in management and will not be compliant. It governs subsequent access to the resources the policy covers; it depends on enrolment being restricted and on the policy covering the resources and client apps in question.1917 Proofpoint recommends it as defence in depth rather than as the main control, “as there will likely be exclusions from this requirement”.15 Volexity likewise recommends restricting access to approved or managed devices, and notes that this may be hard to implement quickly.14

Token Protection

Token Protection is a Conditional Access session control that accepts only device-bound sign-in session tokens, such as PRTs, “when applications request access to protected resources”.46 It does not address an attacker who has registered a device of their own. The attacker’s PRT is bound to the attacker’s device, as the companion article notes. Coverage is also limited. Microsoft’s page lists native-application enforcement for specific resources, and browser support is a preview limited to selected web apps that access Azure Resource Manager.46 It is a separate control from device compliance, with its own prerequisites: supported platforms, registered devices and covered applications. It is useful against stolen tokens replayed elsewhere.

On the consent side, the ordered recommendations from Microsoft’s documentation are as follows. Restrict user consent to verified publishers and low-impact permissions, or disable it. Turn on the admin consent workflow so that users have a legitimate route. Review existing grants, especially tenant-wide grants to non-Microsoft apps.333122 Microsoft’s illicit-consent guidance suggests reviewing consent grants weekly in large organisations. It notes that a ConsentType of “AllPrincipals” marks a tenant-wide grant and should be reviewed carefully for any non-Microsoft app.22 Microsoft Graph documents “AllPrincipals” as authorisation for the client “to impersonate all users”, within the granted delegated scopes; application permissions are recorded separately, as app role assignments.4722 The 2022 campaign shows that the verified badge must be one criterion among several.25

Detection

The sign-in log records the flow. Microsoft Graph’s signIn resource includes authenticationProtocol, whose values include deviceCode and authenticationTransfer. Later sign-ins in the same session carry originalTransferMethod set to deviceCodeFlow.48 Volexity reported that refreshed sessions “often do not have anything set for authenticationProtocol” but do carry the original transfer method, and that both can be filtered in the Entra admin centre.6 The indicators group by log and linking identifier.

  • Sign-in logs, correlated by user and session ID. Device-code sign-ins to the Microsoft Authentication Broker, or by any user with no reason to use the flow; Mollema notes that Windows does not use device code to register itself, although Microsoft told him the broker sometimes uses it legitimately.17 Error 50199 followed by success within minutes.7 A change of IP address and user agent between the interactive sign-in and the first non-interactive one; in Huntress’s cases the user agent became python-requests, and Huntress suggests following the session ID.8
  • Entra audit logs, correlated by user and device ID. Device registrations soon after a risky or device-code sign-in, and registrations reporting obsolete Windows builds or lacking hardware identifiers.78
  • Consent events, correlated by application and by the consenting user. “Consent to application” events in the Microsoft Purview audit log, checked for whether IsAdminConsent is true, and grants to unverified or newly registered multi-tenant apps, reviewed by client app and consent type.22
  • Mailbox and resource activity, correlated by device ID. Volexity tracked one attacker by the deviceId of the registered device, because ongoing Graph access to mail showed a Microsoft address, not the attacker’s, in ClientIPAddress.14

A new registration or a changed IP address or user agent is context, since users register devices and change networks legitimately. These signals are strongest in combination and close together in time.

Response

For the November 2026 cases Huntress lists audit steps, reviewing the account’s registered devices and MFA methods and looking for suspicious inbox rules, and separate containment steps for when a rogue device is found: delete the device in Entra ID, revoke the user’s sessions and reset credentials.8 Microsoft’s PRT documentation shows that disabling or deleting a confirmed rogue device invalidates its PRT, as does disabling the user.18 Microsoft’s emergency-revocation guidance also lists disabling the user’s registered devices and revoking refresh tokens.49 Revoking sessions with revokeSignInSessions “Invalidates all the refresh tokens issued to applications for a user (and session cookies in a user’s browser)”, with a delay of “a few minutes”; it does not revoke sessions for external users, who sign in through their home tenant.50 Access tokens already issued can remain usable until they expire; Microsoft’s emergency guidance gives one hour as the default lifetime, and applications that issue their own session tokens must end those themselves.49 Resources that support continuous access evaluation, such as Exchange Online, SharePoint Online and Teams, can enforce a revocation in near real time, although tokens in such sessions can live up to 28 hours.51 The audit of authentication methods matters because Volexity saw UTA0307 add its own authenticator app, and Mollema showed that an attacker can provision Windows Hello keys.617 For consent phishing, revoke the delegated grant and any app role assignment. A password reset alone does not end that access.22

Where experts disagree

Block outright, or scope?

Microsoft’s identity documentation, Proofpoint and Volexity all favour blocking device code flow broadly and allowing exceptions only for documented accounts, resources or locations.38156 Microsoft’s 2025 managed-policy rollout made a block the default for tenants without recent use.39 The practical argument for keeping it is operational: meeting-room hardware, developer tools, and the Device Registration Service exclusion that Microsoft itself says Teams devices need.42 Microsoft’s own Teams guidance resolves this with two exceptions, an excluded group of Teams resource accounts and an excluded Device Registration Service resource, rather than leaving the flow open.42

The second question is which control is decisive, and the answers come from different years. Mollema wrote in October 2023, when by his account there was “no way to block certain OAuth flows such as the device code flow”, and argued that “the only real effective way” to block the device-registration chain was to require compliant or hybrid-joined devices.17 Since then Conditional Access has gained the authentication-flows condition, including enforcement on the Device Registration Service.37 Writing in December 2025, with that condition available, Proofpoint calls a flow block the strongest mitigation and treats device requirements as defence in depth, because they will carry exclusions.15 Volexity’s April 2025 cases add a reason to use both. Authorisation-code variants using first-party clients do not use device code flow, so a flow block alone does not cover them, and Volexity recommends restricting access to approved or managed devices; its report does not test how far that would have stopped each case.14

Does user education help?

Microsoft’s Storm-2372 guidance includes “Educate users about common phishing techniques” and relies on the 2021 confirmation prompt.7 The RFC’s own mitigation is a message to the user.2 Proofpoint argues that traditional training is aimed at the wrong thing. Checking URLs “does not effectively address device code phishing”, where the URL is genuine, so training should tell users not to enter codes from untrusted sources.15 Volexity makes the parallel point for authorisation-code phishing. Sending back a code or URL from a Microsoft page “is not something users are typically trained to be aware of”.14 The evidence on the confirmation prompt is not encouraging. Huntress’s logs show victims reaching the broker confirmation and continuing.8 Microsoft’s hunting query is built on the assumption that they will.7 The site’s review of phishing-training evidence covers the wider question. A rule such as “never enter a code you did not generate yourself on a device in front of you” is simple to state and specific to the technique. No source here measures whether it works better than general vigilance, and it is still a rule that a convincing caller can talk someone out of.

Bug or design?

Microsoft said in February 2025 that it had not “found any vulnerabilities in our code base enabling this activity”.7 Secureworks reports that Microsoft called family refresh tokens an intentional feature.9 Mollema reports that Microsoft acknowledged the broker-to-PRT upgrade but did not treat it as urgent.17 Those are determinations about whether a vulnerability exists. The researchers’ point is about exposure, and Kiely’s comparison with Google suggests that implementation choices affect how much damage the same technique can do. Google restricts device-flow scopes to a handful. On Microsoft’s platform, well-known public clients can be used with broad first-party access, and one of them can lead to device registration.1110 How much of the risk belongs to the standard and how much to particular implementations is a matter of judgement, and the sources do not settle it.

Conclusion

Device-code phishing and consent phishing ask the victim to do something legitimate on a genuine page: approve a device, or approve an app. In both cases the identity provider correctly authenticates the user and then issues tokens to a client the attacker controls. A stronger authenticator does not change who receives the tokens. NIST’s definition of phishing resistance concerns impostor verifiers, and here the verifier is real.

What separates a nuisance from a breach is what the tokens can become. On Microsoft’s platform, pre-authorised public first-party clients give an attacker broad delegated access. Where the attacker uses the broker client and the tenant lets the user join or register a device, one approval can become a Primary Refresh Token that, Huntress reports, survived password resets in its cases. Google limits the device flow to a few narrow scopes, which shows that the scope of the grant is an implementation decision. In November 2026 Huntress counted 468 rogue device registrations in 305 organisations; in the largest operation the devices reported the default build number of a public toolkit.8

The controls that work restrict the flows rather than the user. Blocking device code flow stops the device-grant route within the accounts and resources the policy enforces; its cost is the exceptions needed for Teams device accounts and the Device Registration Service, and it leaves authorisation-code variants open. Restricting who may join or register devices and requiring compliant devices for data addresses the rogue-device route, at the cost of enrolment and policy coverage. Restricting user consent addresses consent phishing, at the cost of an admin review queue. Sign-in and audit logs cover what remains, and report-only mode shows the cost before enforcement. When a rogue device is confirmed, disable or delete it and revoke the user’s refresh tokens; a password reset on its own does not end that access.188

Footnotes

  1. “Refresh tokens in the Microsoft identity platform”, Microsoft Learn, page dated 5 November 2025. https://learn.microsoft.com/en-us/entra/identity-platform/refresh-tokens (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  2. W. Denniss, J. Bradley, M. Jones and H. Tschofenig, “OAuth 2.0 Device Authorization Grant”, RFC 8628, IETF, August 2019. https://www.rfc-editor.org/rfc/rfc8628.txt (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
  3. D. Hardt (ed.), “The OAuth 2.0 Authorization Framework”, RFC 6749, IETF, October 2012. https://www.rfc-editor.org/rfc/rfc6749.txt (opens in a new tab) ↩
  4. “OAuth 2.0 device authorization grant”, Microsoft identity platform documentation, Microsoft Learn, page dated 4 January 2025. https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-device-code (opens in a new tab) ↩1 ↩2
  5. T. Lodderstedt, J. Bradley, A. Labunets and D. Fett, “Best Current Practice for OAuth 2.0 Security”, RFC 9700, IETF, January 2025. https://www.rfc-editor.org/rfc/rfc9700.txt (opens in a new tab) ↩
  6. Volexity, “Multiple Russian Threat Actors Targeting Microsoft Device Code Authentication”, Volexity blog, 13 February 2025. https://www.volexity.com/blog/2025/02/13/multiple-russian-threat-actors-targeting-microsoft-device-code-authentication/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9
  7. Microsoft Threat Intelligence, “Storm-2372 conducts device code phishing campaign”, Microsoft Security Blog, 13 February 2025, updated 14 February 2025 and 31 July 2026. https://www.microsoft.com/en-us/security/blog/2025/02/13/storm-2372-conducts-device-code-phishing-campaign/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11
  8. Andrea Hatcher, “M365 Device Code Phishing Campaign Leads to Hundreds of Rogue Entra ID Registrations”, Huntress blog, 3 December 2026; read from the Internet Archive capture of 3 December 2026 because the live page returned HTTP 403. https://web.archive.org/web/20261203145003/https://www.huntress.com/blog/device-code-phishing-m365-registrations (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15
  9. Secureworks Counter Threat Unit, “Family of Client IDs Research: Undocumented Behavior of Azure AD Refresh Tokens”, GitHub repository, 2022 (changelog to 23 March 2022). https://github.com/secureworks/family-of-client-ids-research (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  10. “OAuth 2.0 for TV and Limited-Input Device Applications”, Google for Developers, last updated 19 November 2026. https://developers.google.com/identity/protocols/oauth2/limited-input-device (opens in a new tab) ↩1 ↩2
  11. Matt Kiely, “Device Code Phishing: OAuth 2.0 Attacks in Google & Azure”, Huntress blog, 6 February 2025; read from the Internet Archive capture of 28 October 2026 because the live page returned HTTP 403. https://web.archive.org/web/20261028235924/https://www.huntress.com/blog/oh-auth-2-0-device-code-phishing-in-google-cloud-and-azure (opens in a new tab) ↩1 ↩2
  12. Proofpoint Threat Research, “Device Code Phishing is an Evolution in Identity Takeover”, Proofpoint blog, May 2026. https://www.proofpoint.com/us/blog/threat-insight/device-code-phishing-evolution-identity-takeover (opens in a new tab) ↩1 ↩2 ↩3
  13. Microsoft Threat Intelligence, Microsoft Defender Experts and Microsoft Security Research, “Unmasking EvilTokens: Getting to the root of device code phishing”, Microsoft Security Blog, 22 September 2026. https://www.microsoft.com/en-us/security/blog/2026/09/22/unmasking-eviltokens-getting-to-the-root-of-device-code-phishing/ (opens in a new tab) ↩1 ↩2 ↩3
  14. Volexity, “Phishing for Codes: Russian Threat Actors Target Microsoft 365 OAuth Workflows”, Volexity blog, 22 April 2025. https://www.volexity.com/blog/2025/04/22/phishing-for-codes-russian-threat-actors-target-microsoft-365-oauth-workflows/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
  15. Proofpoint Threat Research, “Access granted: phishing with device code authorization for account takeover”, Proofpoint blog, December 2025. https://www.proofpoint.com/us/blog/threat-insight/access-granted-phishing-device-code-authorization-account-takeover (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
  16. Bill Toulas, “Device-code phishing campaign plants rogue devices in 305 Entra tenants”, BleepingComputer, 3 December 2026. https://www.bleepingcomputer.com/news/security/device-code-phishing-campaign-plants-rogue-devices-in-305-entra-tenants/ (opens in a new tab) ↩
  17. Dirk-jan Mollema, “Phishing for Primary Refresh Tokens and Windows Hello keys”, dirkjanm.io, 10 October 2023. https://dirkjanm.io/phishing-for-microsoft-entra-primary-refresh-tokens/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14
  18. “Understanding Primary Refresh Token (PRT) in Microsoft Entra ID”, Microsoft Learn, page dated 27 June 2025. https://learn.microsoft.com/en-us/entra/identity/devices/concept-primary-refresh-token (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  19. “How to configure grant controls in Microsoft Entra”, Microsoft Entra ID documentation, Microsoft Learn, page dated 6 October 2026. https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-conditional-access-grant (opens in a new tab) ↩1 ↩2
  20. “Microsoft identity platform and OAuth 2.0 authorization code flow”, Microsoft Learn, page dated 9 January 2026. https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow (opens in a new tab) ↩1 ↩2 ↩3
  21. Microsoft Threat Intelligence, “Microsoft delivers comprehensive solution to battle rise in consent phishing emails”, Microsoft Security Blog, 14 July 2021. https://www.microsoft.com/en-us/security/blog/2021/07/14/microsoft-delivers-comprehensive-solution-to-battle-rise-in-consent-phishing-emails/ (opens in a new tab) ↩
  22. “Detect and remediate illicit consent grants”, Microsoft Defender for Office 365 documentation, Microsoft Learn, page dated 3 July 2026. https://learn.microsoft.com/en-us/defender-office-365/detect-and-remediate-illicit-consent-grants (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
  23. “Configure permission classifications”, Microsoft Entra ID documentation, Microsoft Learn, page dated 3 March 2025. https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/configure-permission-classifications (opens in a new tab) ↩
  24. “Protect against consent phishing”, Microsoft Entra ID documentation, Microsoft Learn, page dated 20 October 2026. https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/protect-against-consent-phishing (opens in a new tab) ↩1 ↩2
  25. Proofpoint, “Dangerous Consequences: Threat Actors Abusing Microsoft’s ‘Verified Publisher’ Status”, Proofpoint blog, 31 January 2023 (earlier page metadata gives 27 December 2022). https://www.proofpoint.com/us/blog/cloud-security/dangerous-consequences-threat-actors-abusing-microsofts-verified-publisher (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  26. “Publisher verification overview”, Microsoft identity platform documentation, Microsoft Learn, page dated 13 August 2024. https://learn.microsoft.com/en-us/entra/identity-platform/publisher-verification-overview (opens in a new tab) ↩
  27. “Consent experience for applications in Microsoft Entra ID”, Microsoft identity platform documentation, Microsoft Learn, page dated 27 February 2025. https://learn.microsoft.com/en-us/entra/identity-platform/application-consent-experience (opens in a new tab) ↩
  28. Microsoft Security Response Center, “Microsoft Investigation - Threat actor consent phishing campaign abusing the verified publisher process”, MSRC blog, 31 January 2023. https://www.microsoft.com/en-us/msrc/blog/2023/01/threat-actor-consent-phishing-campaign-abusing-the-verified-publisher-process (opens in a new tab) ↩
  29. Microsoft Security Response Center, “Microsoft Actions Following Attack by Nation State Actor Midnight Blizzard”, MSRC blog, 19 January 2024. https://www.microsoft.com/en-us/msrc/blog/2024/01/microsoft-actions-following-attack-by-nation-state-actor-midnight-blizzard (opens in a new tab) ↩
  30. Microsoft Threat Intelligence, “Midnight Blizzard: Guidance for responders on nation-state attack”, Microsoft Security Blog, 25 January 2024. https://www.microsoft.com/en-us/security/blog/2024/01/25/midnight-blizzard-guidance-for-responders-on-nation-state-attack/ (opens in a new tab) ↩1 ↩2 ↩3
  31. “Configure the admin consent workflow”, Microsoft Entra ID documentation, Microsoft Learn, page dated 29 December 2024. https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/configure-admin-consent-workflow (opens in a new tab) ↩1 ↩2 ↩3
  32. “Manage app consent policies”, Microsoft Entra ID documentation, Microsoft Learn, page dated 22 January 2026. https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/manage-app-consent-policies (opens in a new tab) ↩1 ↩2
  33. “Configure how users consent to applications”, Microsoft Entra ID documentation, Microsoft Learn, page dated 15 June 2025. https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/configure-user-consent (opens in a new tab) ↩1 ↩2 ↩3
  34. Microsoft 365 Message center, “MC1097272 - Microsoft 365 Upcoming Secure by Default Settings Changes”, updated 18 July 2025; read from the Message Center Archive copy at mc.merill.net. https://mc.merill.net/message/MC1097272 (opens in a new tab) ↩
  35. “Control which apps access Google Workspace data”, Google Workspace Admin Help, accessed 4 December 2026. https://support.google.com/a/answer/7281227 (opens in a new tab) ↩
  36. National Institute of Standards and Technology, “Digital Identity Guidelines: Authentication and Authenticator Management”, NIST SP 800-63B-4, 2025. https://pages.nist.gov/800-63-4/sp800-63b.html (opens in a new tab) ↩
  37. “Authentication flows as a condition in Conditional Access policy”, Microsoft Entra ID documentation, Microsoft Learn, page dated 24 March 2026. https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-authentication-flows (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
  38. “Block authentication flows with Conditional Access policy”, Microsoft Entra ID documentation, Microsoft Learn, page dated 24 March 2026. https://learn.microsoft.com/en-us/entra/identity/conditional-access/policy-block-authentication-flows (opens in a new tab) ↩1 ↩2 ↩3
  39. Nitika Gupta, “New Microsoft-managed policies to raise your identity security posture”, Microsoft Entra Blog, Microsoft Tech Community, 20 February 2025. https://techcommunity.microsoft.com/blog/microsoft-entra-blog/-/4286758 (opens in a new tab) ↩1 ↩2
  40. “Policy changes for Microsoft Teams devices using device code flow authentication”, Microsoft Teams Blog, Microsoft Tech Community, 1 April 2025. https://techcommunity.microsoft.com/blog/microsoftteamsblog/policy-changes-for-microsoft-teams-devices-using-device-code-flow-authentication/4399337 (opens in a new tab) ↩
  41. “Microsoft-managed Conditional Access policies for enhanced security”, Microsoft Entra ID documentation, Microsoft Learn, page dated 28 May 2026. https://learn.microsoft.com/en-us/entra/identity/conditional-access/managed-policies (opens in a new tab) ↩
  42. “Restrict device code flow for Microsoft Teams devices with Conditional Access”, Microsoft Entra ID documentation, Microsoft Learn, page dated 27 May 2026. https://learn.microsoft.com/en-us/entra/identity/conditional-access/policy-teams-devices-device-code-flow (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  43. “Manage devices in Microsoft Entra ID using the Microsoft Entra admin center”, Microsoft Entra ID documentation, Microsoft Learn, page dated 12 November 2026. https://learn.microsoft.com/en-us/entra/identity/devices/manage-device-identities (opens in a new tab) ↩1 ↩2
  44. “Sign in with Azure CLI at a command line”, Azure CLI documentation, Microsoft Learn, page dated 1 September 2026. https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli-interactively (opens in a new tab) ↩
  45. “Targeting resources in Conditional Access policies”, Microsoft Entra ID documentation, Microsoft Learn, page dated 24 March 2026. https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-conditional-access-cloud-apps (opens in a new tab) ↩
  46. “How Token Protection enhances Conditional Access policies”, Microsoft Entra ID documentation, Microsoft Learn, page dated 14 August 2026. https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-token-protection (opens in a new tab) ↩1 ↩2
  47. “oAuth2PermissionGrant resource type”, Microsoft Graph v1.0 documentation, Microsoft Learn, page dated 22 July 2024. https://learn.microsoft.com/en-us/graph/api/resources/oauth2permissiongrant (opens in a new tab) ↩
  48. “signIn resource type”, Microsoft Graph beta documentation, Microsoft Learn, page dated 27 November 2025. https://learn.microsoft.com/en-us/graph/api/resources/signin?view=graph-rest-beta (opens in a new tab) ↩
  49. “Revoke user access in an emergency in Microsoft Entra ID”, Microsoft Learn, page dated 19 June 2026. https://learn.microsoft.com/en-us/entra/identity/users/users-revoke-access (opens in a new tab) ↩1 ↩2
  50. “user: revokeSignInSessions”, Microsoft Graph v1.0 documentation, Microsoft Learn, page dated 17 April 2024. https://learn.microsoft.com/en-us/graph/api/user-revokesigninsessions (opens in a new tab) ↩
  51. “Continuous access evaluation in Microsoft Entra”, Microsoft Entra ID documentation, Microsoft Learn, page dated 8 April 2026. https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-continuous-access-evaluation (opens in a new tab) ↩