<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/exploiting-oauth-redirect-mechanisms-in-phishing-and-malware-campaigns-bpm4un5wc" -->

---
title: Exploiting OAuth Redirect Mechanisms in Phishing and...
description: Microsoft has warned of sophisticated phishing campaigns abusing OAuth redirect behaviors to deliver malware, primarily targeting government and public-sector...
canonical: https://daily.dev/posts/exploiting-oauth-redirect-mechanisms-in-phishing-and-malware-campaigns-bpm4un5wc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Exploiting OAuth Redirect Mechanisms in Phishing and Malware Campaigns | daily.dev
og:description: Microsoft has warned of sophisticated phishing campaigns abusing OAuth redirect behaviors to deliver malware, primarily targeting government and public-sector...
og:url: https://daily.dev/posts/exploiting-oauth-redirect-mechanisms-in-phishing-and-malware-campaigns-bpm4un5wc
og:image: https://api.daily.dev/og/posts/bpM4UN5wc.png
og:image:alt: Exploiting OAuth Redirect Mechanisms in Phishing and Malware Campaigns
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Exploiting OAuth Redirect Mechanisms in Phishing and Malware Campaigns

**[Collections](https://daily.dev/sources/collections)** · 2 min read · 0 upvotes · 0 comments

## Summary

Microsoft has warned of sophisticated phishing campaigns abusing OAuth redirect behaviors to deliver malware, primarily targeting government and public-sector organizations. Attackers craft OAuth URLs with broken parameters like 'prompt=none' and invalid scopes to trigger error-state redirects from trusted domains (Microsoft Entra ID, Google Workspace) to attacker-controlled sites. Victims may be routed through EvilProxy to steal credentials, or tricked into downloading ZIP files containing LNK shortcuts that execute PowerShell scripts, load malicious DLLs, and establish C2 connections. Some variants use adversary-in-the-middle frameworks to capture MFA tokens and may precede ransomware deployment. Security experts recommend moving beyond 'hover to check links,' training staff on email context, restricting third-party OAuth app consent, auditing redirect URIs, and avoiding authentication flows from unsolicited emails. Microsoft has disabled identified malicious OAuth apps and provided indicators of compromise for Defender XDR users.

## Content

Microsoft has recently issued a warning regarding sophisticated phishing campaigns that exploit OAuth's redirect behaviors to deliver malware, specifically targeting government and public-sector organizations. These malicious campaigns cleverly abuse OAuth by creating URLs designed to intentionally trigger error-state redirects, which seamlessly direct victims from trustworthy domains like Microsoft Entra ID or Google Workspace to harmful sites controlled by attackers. 

The attackers utilize OAuth URLs with broken parameters such as 'prompt=none' and invalid scopes to facilitate these redirects. This approach not only bypasses the traditional advice of checking link destinations before clicking but also demonstrates the evolving complexity of phishing tactics. Initial phishing emails often contain deceptive lures, such as e-signature requests or links to supposed Teams meeting recordings, enticing targets to click and thereby initiate the attack chain.

Upon clicking these links, victims might be directed to platforms like EvilProxy, a phishing-as-a-service solution that can covertly steal credentials, or encounter an automatic download of ZIP files containing LNK shortcut files. These shortcuts, when opened, execute a PowerShell script that not only gathers reconnaissance data but also indirectly loads a malicious DLL through a legitimate executable, ultimately establishing a connection to a command-and-control (C2) server.

Of note, one campaign involved the delivery of a ZIP file with a shortcut that executed PowerShell, marking the precursor to potential ransomware activities. Variants of this campaign also employed adversary-in-the-middle frameworks to capture credentials and multi-factor authentication (MFA) tokens.

In light of these threats, security experts have urged organizations to move away from simplistic defense strategies such as 'hover and check the link' and instead adopt more robust measures. These include training employees to assess email context, restricting user consent to third-party OAuth applications, regularly auditing redirect URIs, and avoiding authentication processes initiated from unsolicited emails.

Microsoft has worked to disable the identified malicious OAuth applications, though they caution that such malicious activities persist. They have also provided indicators of compromise and hunting queries for Defender XDR clients. Organizations are advised to remain vigilant, scrutinize OAuth URL lengths, hesitate before interacting with unexpected login prompts, and maintain up-to-date security tools.

## Similar posts on daily.dev

- [When checking the URL isn't enough: phishing via the Microsoft identity platform](https://daily.dev/posts/when-checking-the-url-isn-t-enough-phishing-via-the-microsoft-identity-platform-wtxnir48k) · Securelist · 0 upvotes · 0 comments
- [The Current Landscape of OAuth Attacks](https://daily.dev/posts/the-current-landscape-of-oauth-attacks-apgnaql8v) · Unit 42 · 0 upvotes · 0 comments
- [New phishing campaign tricks employees into bypassing Microsoft 365 MFA](https://daily.dev/posts/new-phishing-campaign-tricks-employees-into-bypassing-microsoft-365-mfa-2reed6azp) · CSO Online · 0 upvotes · 0 comments
- [We Need to Talk About Device Code Phishing](https://daily.dev/posts/we-need-to-talk-about-device-code-phishing-x88bpk5tq) · Huntress Blog · 0 upvotes · 0 comments

---

Tags: [#cyber](https://daily.dev/tags/cyber), [#malware](https://daily.dev/tags/malware), [#phishing](https://daily.dev/tags/phishing), [#oauth](https://daily.dev/tags/oauth)

[View this post on daily.dev](https://daily.dev/posts/exploiting-oauth-redirect-mechanisms-in-phishing-and-malware-campaigns-bpm4un5wc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Exploiting OAuth Redirect Mechanisms in Phishing and Malware Campaigns","url":"https://daily.dev/posts/exploiting-oauth-redirect-mechanisms-in-phishing-and-malware-campaigns-bpm4un5wc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/exploiting-oauth-redirect-mechanisms-in-phishing-and-malware-campaigns-bpm4un5wc"},"datePublished":"2026-03-04T13:41:47.512Z","dateModified":"2026-03-04T13:42:08.368Z","description":"Microsoft has warned of sophisticated phishing campaigns abusing OAuth redirect behaviors to deliver malware, primarily targeting government and public-sector...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/acc3f42e4bffd5ebe30eedc1650c6a90?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/acc3f42e4bffd5ebe30eedc1650c6a90?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Collections","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Collections","logo":"https://media.daily.dev/image/upload/s--fk_6ycEi--/f_auto,q_auto/v1780996001/logos/collections?_a=BAMAMiWQ0","url":"https://daily.dev/sources/collections"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/exploiting-oauth-redirect-mechanisms-in-phishing-and-malware-campaigns-bpm4un5wc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cyber,malware,phishing,oauth","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Collections","item":"https://daily.dev/sources/collections"},{"@type":"ListItem","position":3,"name":"Exploiting OAuth Redirect Mechanisms in Phishing and Malware Campaigns"}]}
```

