Cyber Security News

Microsoft Alerts Customers to New Phishing Attack Exploiting OAuth in Entra ID to Bypass Detection

Microsoft recently uncovered sophisticated phishing campaigns that exploit the by-design redirection mechanisms of the OAuth 2.0 protocol.

Threat actors are targeting government and public-sector organizations by manipulating legitimate authentication flows in Microsoft Entra ID and Google Workspace.

Rather than exploiting traditional software vulnerabilities or stealing credentials directly, this campaign abuses trusted protocol behavior to bypass conventional email defenses and silently redirect victims to malicious infrastructure.

OAuth Redirect Abuse Mechanics

The attack sequence begins when an adversary creates a malicious application within their own tenant, setting the redirect URI to a domain hosting malware or phishing frameworks.

Threat actors then mass-distribute phishing emails using social engineering lures, such as e-signature requests, fake Microsoft Teams meeting invites, or password resets.

​

attack fow (Source: Microsoft)

When a victim clicks the provided link, it triggers a silent OAuth authorization flow. Attackers manipulate the URL parameters by specifically using prompt=none and intentionally supplying an invalid scope, such as scope=invalid.

This combination forces the identity provider to evaluate the session and automatically trigger an error redirect without displaying any user interface or interactive prompt.

Because the trusted identity provider handles the redirection, the initial URL appears highly legitimate to both users and security scanners.

​

Teams Lure button (Source:Microsoft)

To increase credibility on the final landing page, threat actors pass the target’s email address through the state parameter using various encoding techniques like Base64, Hex strings, or custom decoder schemes.

Although the state parameter is intended to securely correlate requests and responses, attackers repurpose it to automatically populate the victim’s email on the final phishing page, reinforcing the illusion of a legitimate login session.​

Upon redirection, victims are routed to attacker-controlled destinations. In credential theft scenarios, users land on attacker-in-the-middle toolkits like EvilProxy to intercept session cookies.

Phishing attempt( Source: Microsoft)

Microsoft also uncovered that the malware distribution campaigns, the redirect triggers an automatic download of a ZIP file. This archive typically contains a malicious shortcut file that executes host reconnaissance via PowerShell.

The script then extracts and launches a legitimate binary (steam_monitor.exe) to side-load a malicious DLL (crashhandler.dll), successfully establishing an external command-and-control connection.

​

attack chain(Source: Microsoft)

Mitigation and Threat Identifiers

This activity highlights a broader class of identity-based threats that exploit standard protocol behavior rather than software flaws.

The OAuth specifications, including RFC 6749 and RFC 9700, explicitly define how authorization errors should be handled through redirects.

Section 4.11.2 of RFC 9700 specifically warns that adversaries can deliberately trigger OAuth errors to force an open redirect.

Because these malicious applications are standards-compliant, preventing this activity requires comprehensive protocol governance.​

To defend against these abuses, organizations must implement strict OAuth oversight and leverage cross-domain Extended Detection and Response (XDR) capabilities.

Security teams should actively hunt for URL click events containing invalid OAuth scope parameters and monitor for unusual payload downloads following OAuth error redirects.

Mitigation CategoryRecommended Security Action
Application GovernanceLimit user consent for OAuth applications and periodically audit overprivileged apps ​.
Access ControlsImplement Conditional Access policies and strictly enforce identity protection measures ​.
Telemetry MonitoringDeploy cross-domain XDR to correlate email, identity, and endpoint signals ​.
Behavioral DetectionHunt for PowerShell executions involving shortcut extractions and unexpected DLL side-loading ​.

The following table details key indicators of compromise (IOCs) and detection components associated with this campaign:

Detection TypeIndicator / Component DetailsContext
URL Parametersprompt=none, scope=invalid ​Used to trigger silent authentication errors ​.
File Artifactssteam_monitor.exe, crashhandler.dll, crashlog.dat ​Components used for malicious DLL side-loading ​.
Defender AntivirusTrojan:Win32/Malgent, Trojan:Win32/Znyonm, Trojan:Win32/WinLNK ​Defender signatures for the associated malware payloads ​.
Error CodesError 65001, error=interaction_required ​Indicates failed silent SSO and successful redirect ​.

​Security teams should actively hunt for URL click events containing invalid OAuth scope parameters and monitor for unusual payload downloads following OAuth error redirects.

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Divya

Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Recent Posts

Hackers Use ConnectWise SkyKick Credentials to Access Microsoft 365, Halting Cloud Backups

Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…

1 day ago

Anthropic’s Claude AI Uncovers Origins of NSA-Provided Cryptographic Keys After 25 Years

Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…

2 days ago

Critical WordPress Flaws Allow Attackers to Execute Remote Code Without Authentication

Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…

2 days ago

OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root

A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…

2 days ago

GhostAction Hackers Hide Credential-Stealing Malware in Fake Font Files Across 94 GitHub Repositories

GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…

2 days ago

SideCopy Hackers Target Indian Organizations With ReverseRAT Malware to Steal Data

Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…

2 days ago