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).

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
6 events from the most recent confirmed update back to the earliest known activity.
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.
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.
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.
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.
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.
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.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
4 references tracked. Mallory keeps watching after this page renders.
New device code vishing campaign sets sights on Microsoft Entra accounts | SC Media
scworld.com
Open sourceHackers Using OAuth Apps in Microsoft Entra ID to Establish Persistence
cybersecuritynews.com
Open sourceOngoing Campaign Targets Microsoft 365 to Steal OAuth Tokens and Gain Persistent Access
cybersecuritynews.com
Open sourceHackers target Microsoft Entra accounts in device code vishing attacks
bleepingcomputer.com
Open sourceSee the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


