<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/oauth-token-theft-through-microsoft-s-front-door-iae9qoanl" -->

---
title: OAuth Token Theft Through Microsoft's Front Door | daily.dev
description: A signed Microsoft binary, WWAHost.exe, can be turned into an OAuth token thief when a sideloaded AppX package sets WindowsRuntimeAccess="all", giving...
canonical: https://daily.dev/posts/oauth-token-theft-through-microsoft-s-front-door-iae9qoanl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: OAuth Token Theft Through Microsoft's Front Door | daily.dev
og:description: A signed Microsoft binary, WWAHost.exe, can be turned into an OAuth token thief when a sideloaded AppX package sets WindowsRuntimeAccess="all", giving...
og:url: https://daily.dev/posts/oauth-token-theft-through-microsoft-s-front-door-iae9qoanl
og:image: https://api.daily.dev/og/posts/IAE9QOaNl.png
og:image:alt: OAuth Token Theft Through Microsoft's Front Door
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.

# OAuth Token Theft Through Microsoft's Front Door

**[Huntress Blog](https://daily.dev/sources/huntress-blog)** · 21 min read · 0 upvotes · 0 comments

## Summary

A signed Microsoft binary, WWAHost.exe, can be turned into an OAuth token thief when a sideloaded AppX package sets WindowsRuntimeAccess="all", giving attacker-hosted JavaScript full WinRT access including WebAuthenticationBroker. The researcher demonstrated an end-to-end attack: registering an unsigned AppX package as a standard user (requiring only Developer Mode enabled), triggering a real Microsoft login dialog via Office's client ID, and capturing access and refresh tokens with broad Microsoft Graph scopes after the victim completed MFA normally. Because every component (process, endpoint, client ID) is legitimate, signature-based and identity-based detection fail. The same shared WinRT activation layer is reachable from a class of AppX host binaries beyond WWAHost, and also potentially exposes CredentialPicker and DPAPI, though only the OAuth token theft path was proven end-to-end on Windows 11 24H2. Detection relies on a network signature: the legacy EdgeHTML user agent MSAppHost/3.0 contacting non-Microsoft destinations, provided as a Sigma rule. Mitigations include disabling Developer Mode fleet-wide via GPO, Conditional Access requiring managed devices, shortened refresh-token lifetimes, and Continuous Access Evaluation.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.huntress.com/blog/stealing-oauth-tokens-through-microsofts-front-door>

## Questions this post answers

### How can WWAHost.exe be used to steal Microsoft OAuth tokens?

A sideloaded AppX package with ContentUriRules set to WindowsRuntimeAccess="all" grants attacker-hosted JavaScript full Windows Runtime access when rendered by WWAHost.exe. The script calls WebAuthenticationBroker.authenticateAsync() using Microsoft Office's client ID, triggering a real login.microsoftonline.com dialog; after the user completes MFA, the authorization code returns to attacker JavaScript via the oob redirect URI and is exchanged for access and refresh tokens.

_Track emerging Windows token-theft techniques like this on daily.dev to keep your detection rules current._

### What are the prerequisites for the WWAHost OAuth token theft attack to work?

Windows Developer Mode must be enabled (or the enterprise AllowAllTrustedApps sideloading policy), since Add-AppxPackage -Register fails with error 0x80073CFF otherwise. Enabling Developer Mode itself requires local admin rights once, but every subsequent step runs as a standard user with no further admin, UAC prompt, or code signing check required.

_Security teams auditing Developer Mode exposure across a fleet can follow research like this via daily.dev._

### How can I detect a sideloaded AppX package stealing OAuth tokens on Windows?

Watch for the MSAppHost/3.0 user agent, produced by the legacy EdgeHTML engine that all AppX web hosts share, making outbound requests to destinations outside Microsoft-owned domains such as .microsoft.com or .microsoftonline.com. A provided Sigma rule flags this pattern; legitimate Microsoft sign-in traffic instead uses a different user agent, MSAuthHost on Trident, so any MSAppHost/3.0 traffic elsewhere is anomalous.

_Defenders building detection rules for OAuth abuse can find writeups like this through daily.dev._

## 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
- [Revoking the token didn’t kill the backdoor](https://daily.dev/posts/revoking-the-token-didn-t-kill-the-backdoor-1xyiklbit) · CSO Online · 0 upvotes · 0 comments
- [Four Malicious NuGet Packages Target ASP.NET Developers With...](https://daily.dev/posts/four-malicious-nuget-packages-target-asp-net-developers-with--57ffqqvc1) · Socket · 2 upvotes · 0 comments
- [Token Bingo: Don’t Let Your Code be the Winner](https://daily.dev/posts/token-bingo-don-t-let-your-code-be-the-winner-rxegjpk08) · Arctic Wolf · 0 upvotes · 0 comments

---

Tags: [#microsoft](https://daily.dev/tags/microsoft), [#windows](https://daily.dev/tags/windows), [#oauth](https://daily.dev/tags/oauth)

[View this post on daily.dev](https://daily.dev/posts/oauth-token-theft-through-microsoft-s-front-door-iae9qoanl)

```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":"OAuth Token Theft Through Microsoft's Front Door","url":"https://daily.dev/posts/oauth-token-theft-through-microsoft-s-front-door-iae9qoanl","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/oauth-token-theft-through-microsoft-s-front-door-iae9qoanl"},"datePublished":"2026-09-23T13:35:58.293Z","dateModified":"2026-09-23T13:36:27.244Z","description":"A signed Microsoft binary, WWAHost.exe, can be turned into an OAuth token thief when a sideloaded AppX package sets WindowsRuntimeAccess=\"all\", giving...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/24d85bad6231c56b6c70466a17a1e39f?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/24d85bad6231c56b6c70466a17a1e39f?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Huntress Blog","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":"Huntress Blog","logo":"https://media.daily.dev/image/upload/s--kDC1MDsj--/f_auto,q_auto/v1780213277/logos/huntress-blog?_a=BAMAMiWQ0","url":"https://daily.dev/sources/huntress-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/oauth-token-theft-through-microsoft-s-front-door-iae9qoanl","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"microsoft,windows,oauth","timeRequired":"PT21M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Huntress Blog","item":"https://daily.dev/sources/huntress-blog"},{"@type":"ListItem","position":3,"name":"OAuth Token Theft Through Microsoft's Front Door"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/oauth-token-theft-through-microsoft-s-front-door-iae9qoanl#faq","mainEntity":[{"@type":"Question","name":"How can WWAHost.exe be used to steal Microsoft OAuth tokens?","acceptedAnswer":{"@type":"Answer","text":"A sideloaded AppX package with ContentUriRules set to WindowsRuntimeAccess=\"all\" grants attacker-hosted JavaScript full Windows Runtime access when rendered by WWAHost.exe. The script calls WebAuthenticationBroker.authenticateAsync() using Microsoft Office's client ID, triggering a real login.microsoftonline.com dialog; after the user completes MFA, the authorization code returns to attacker JavaScript via the oob redirect URI and is exchanged for access and refresh tokens. Track emerging Windows token-theft techniques like this on daily.dev to keep your detection rules current."}},{"@type":"Question","name":"What are the prerequisites for the WWAHost OAuth token theft attack to work?","acceptedAnswer":{"@type":"Answer","text":"Windows Developer Mode must be enabled (or the enterprise AllowAllTrustedApps sideloading policy), since Add-AppxPackage -Register fails with error 0x80073CFF otherwise. Enabling Developer Mode itself requires local admin rights once, but every subsequent step runs as a standard user with no further admin, UAC prompt, or code signing check required. Security teams auditing Developer Mode exposure across a fleet can follow research like this via daily.dev."}},{"@type":"Question","name":"How can I detect a sideloaded AppX package stealing OAuth tokens on Windows?","acceptedAnswer":{"@type":"Answer","text":"Watch for the MSAppHost/3.0 user agent, produced by the legacy EdgeHTML engine that all AppX web hosts share, making outbound requests to destinations outside Microsoft-owned domains such as .microsoft.com or .microsoftonline.com. A provided Sigma rule flags this pattern; legitimate Microsoft sign-in traffic instead uses a different user agent, MSAuthHost on Trident, so any MSAppHost/3.0 traffic elsewhere is anomalous. Defenders building detection rules for OAuth abuse can find writeups like this through daily.dev."}}]}
```

