Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Back to intelligence
identity-authentication-vulnerabilityphishing-campaign-intelligencepersistence-methodcredential-access-method

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

Updated 3mo agoFirst seen Feb 20, 20264 sources

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

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

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

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

6 EVENTS
Feb 19, 20264mo 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.

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.

Dec 1, 20257mo 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.

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.

Feb 1, 20251y 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.

Jan 1, 20251y 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.

28 LINKEDOpen in app
Threat actors
1 linked
Malware
1 linked
Affected products
7 linked
DropboxDropboxApple TvDocusignZendeskAzure CliMicrosoft Entra Id
Organizations
19 linked
Microsoft CorporationKnowbe4SalesforceAtlassianDropboxGoogleBleepingComputerProofpointAdobeBettermentZendeskSAPOktaNetflixDocuSignFortinetAppleWizSlack Technologies
The operational view lives in Mallory

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, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.