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

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


