Skip to main content
Mallory
← Back to News
identity-authentication-vulnerabilitycredential-access-methodpersistence-methodphishing-campaign-intelligence

OAuth Device Code and Malicious App Abuse to Gain Persistent Access in Microsoft Entra ID/Microsoft 365

Vulnerability Disclosure · 4 sources · Updated 5mo ago · First seen Feb 20, 2026

OAuth Device Code and Malicious App Abuse to Gain Persistent Access in Microsoft Entra ID/Microsoft 365

Threat actors are increasingly abusing OAuth in Microsoft Entra ID and Microsoft 365 to obtain access/refresh tokens that provide durable access even when passwords are reset and MFA is enabled. Reported activity includes both (1) malicious OAuth app registrations and deceptive consent prompts that masquerade as legitimate “business integrations,” and (2) abuse of the OAuth 2.0 Device Authorization Grant (device code flow) where victims authenticate on Microsoft’s legitimate device login portal, making the intrusion harder to detect with credential-focused controls.

Multiple reports describe campaigns targeting business users and organizations (including technology, manufacturing, and financial sectors) to access resources such as Outlook, Teams, and OneDrive and to enable mailbox actions and data access under seemingly legitimate application activity. Research and incident reporting highlight that attackers can persist via service principals created in victim tenants after consent is granted, and that some integrations may remain effective even if the consenting user is later disabled; separate reporting also describes device-code vishing/phishing that leverages legitimate Microsoft OAuth client IDs and standard login workflows to capture tokens without attacker-hosted phishing pages, with one source attributing the vishing activity to ShinyHunters (unconfirmed by Microsoft at the time of reporting).

Why it matters

Impact assessment

Threat actors are abusing Microsoft Entra ID and Microsoft 365 OAuth workflows to gain persistent access that survives password resets and can remain effective despite MFA. Affected organizations include business users in technology, manufacturing, and financial sectors, with downstream exposure extending to Microsoft 365 and SSO-connected SaaS platforms such as Salesforce, Google Workspace, Dropbox, Atlassian, Slack, SAP, Adobe, and Zendesk.

The impact is high because attackers obtain valid access and refresh tokens that enable mailbox access, file access, unauthorized email actions, data theft, and extortion under a legitimate user or application context. The scope is broader than a single targeted intrusion pattern: multiple reports describe active campaigns in the wild, including device-code phishing, vishing-assisted device-code abuse, and malicious OAuth app consent abuse across hundreds of Microsoft 365 environments.

Supporting details

  • Affected platforms:
    • Microsoft Entra ID
    • Microsoft 365
    • Outlook
    • Teams
    • OneDrive
    • SSO-connected SaaS applications
  • Affected sectors:
    • Technology
    • Manufacturing
    • Financial services
  • User populations:
    • Microsoft 365 business users
    • North America-based business users called out in one campaign
    • Users and admins capable of granting OAuth consent
  • Severity drivers:
    • Access persists via OAuth tokens and service principals
    • Password resets do not reliably evict access
    • MFA can be effectively bypassed after legitimate token issuance
    • Activity blends in as normal app integration or legitimate Microsoft sign-in behavior
  • Scope indicators:
    • Proofpoint reported attempted compromises affecting nearly 3,000 user accounts across more than 900 Microsoft 365 environments in 2025
    • Proofpoint reported confirmed success exceeding 50% in tracked attempts
    • Multiple independent reports describe exploitation in the wild
  • Reported actor/entity names:
    • ShinyHunters attribution reported by sources for device-code vishing activity, but not independently confirmed by Microsoft or BleepingComputer
    • Wiz
    • Proofpoint
    • KnowBe4 Threat Labs
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

6 events · Jan 1, 2025 – Feb 19, 2026
  1. Feb 19, 20269mo ago

    Sources attribute Entra device-code vishing activity to ShinyHunters

    Sources told reporters they believed the device-code vishing intrusions against Microsoft Entra accounts were conducted by ShinyHunters, and the threat actors later confirmed this attribution, though independent verification was not established.

  2. Feb 19, 20269mo ago

    Device-code vishing attacks hit Microsoft Entra accounts

    Threat actors began targeting technology, manufacturing, and financial organizations with combined device-code phishing and voice phishing attacks against Microsoft Entra accounts, abusing legitimate Microsoft OAuth client IDs and standard login pages to obtain valid tokens.

  3. Dec 1, 20251y ago

    Device-code campaign targets North American Microsoft 365 business users

    An ongoing campaign targeted Microsoft 365 business users in North America by directing victims to Microsoft's legitimate device login portal, where attacker-supplied device codes enabled theft of OAuth access and refresh tokens for persistent access to Outlook, Teams, and OneDrive.

  4. Dec 1, 20251y ago

    KnowBe4 first observes device-code phishing campaign

    KnowBe4 Threat Labs first observed a device-code phishing campaign in December 2025 targeting Microsoft 365 users with lures such as payment configuration prompts, document-sharing alerts, bonus-related documents, and voicemail notifications.

  5. Feb 1, 20252y ago

    Microsoft highlights device-code phishing targeting Microsoft 365

    Microsoft previously warned that device-code phishing was being used to target Microsoft 365 accounts, documenting abuse of the OAuth 2.0 Device Authorization flow as a credential and token theft technique.

  6. Jan 1, 20252y ago

    Proofpoint links fake Microsoft OAuth apps to early-2025 campaigns

    Proofpoint reported that early-2025 phishing campaigns used impersonated Microsoft OAuth app themes such as Adobe and DocuSign, along with adversary-in-the-middle phishing kits, to steal tokens and establish persistent access in Microsoft 365 environments.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Microsoft Entra Id

Organizations

1 linked
Microsoft Corporation
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.