Huntress · Vendor blog
OAuth Token Theft Through Microsoft's Front Door
Published · Source: Huntress
Entities & attribution
Artifact
wwahost.exe
“…st family came up in that filter, and one binary stood out. WWAHost.exe , the Windows Web App Host, will render whatever web conten…”
Page 1 · Paragraph 18
Artifact
register_appx.ps1
“… on Kali and serves the payload and captures the auth code. register_appx.ps1 runs on Windows to create and register the package. Once th…”
Page 1 · Paragraph 44
Infrastructure
OneDrive
“… the set: mail read/write and send, full file access across OneDrive and SharePoint, the entire Teams surface (channels, chats, …”
Page 1 · Paragraph 89
Artifact
core.dll
“Resolves via ...Web.Core.dll . Reachable and exploited end-to-end.”
Page 1 · Paragraph 106
Artifact
appcore.dll
“Resolves via twinapi.appcore.dll . Present.”
Page 1 · Paragraph 109
MITRE ATT&CK behaviors
T1574.002 · DLL Side-Loading
Defense Evasion · DLL sideloading
“A sideloaded AppX package abuses Microsoft-signed AppX web hosts to pr…”
Page 1 · Paragraph 12
T1566.001 · Spearphishing Attachment
Initial Access · Spearphishing attachment
“Introduction: The Login Page That Isn't Phishing”
Page 1 · Paragraph 16
T1218 · System Binary Proxy Execution
Defense Evasion · Signed binary proxy
“…Not that binary specifically, but its category: a Microsoft-signed binary already on every Windows box that will fetch remote code an…”
Page 1 · Paragraph 17
T1567.002 · Exfiltration to Cloud Storage
Exfiltration · Cloud service C2 / exfil
“…ode lands, exchange_token.py handles the token exchange and Graph API validation.”
Page 1 · Paragraph 44
T1059.001 · PowerShell
Execution · PowerShell execution
“Protocol Handler Launching. Launcher.launchUriAsync invoked powershell: , cmd: , ms-msdt: , search-ms: , ms-officecmd: , and other…”
Page 1 · Paragraph 138
T1071.001 · Web Protocols
Command and Control · C2 over HTTPS
“title: Sideloaded AppX Web Host Beaconing to Non-Microsoft Host”
Page 1 · Paragraph 152
Indicators of compromise
domain
login.microsoftonline[.]com“…alog open on the desktop. Real, because it was: served from login.microsoftonline.com , rendered by a signed Microsoft process, with no address b…”
Page 1 · Paragraph 19
registry
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock“reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" `”
Page 1 · Paragraph 26
filepath
C:\Program“…ps and at least one now ships from the packaged store under C:\Program Files\WindowsApps , which means an inventory that only sear…”
Page 1 · Paragraph 96
domain
microsoft[.]com“…arty traffic to Microsoft-owned domains that do not end in .microsoft.com, such as Store telemetry and other AppX-host calls, so a na…”
Page 1 · Paragraph 150
domain
microsoftonline[.]com“- '.microsoftonline.com'”
Page 1 · Paragraph 171
domain
msauth[.]net“- '.msauth.net'”
Page 1 · Paragraph 172
domain
msftauth[.]net“- '.msftauth.net'”
Page 1 · Paragraph 173
domain
windows[.]com“- '.windows.com'”
Page 1 · Paragraph 174
domain
windows[.]net“- '.windows.net'”
Page 1 · Paragraph 175
domain
windowsupdate[.]com“- '.windowsupdate.com'”
Page 1 · Paragraph 176
domain
live[.]com“- '.live.com'”
Page 1 · Paragraph 177
domain
office[.]com“- '.office.com'”
Page 1 · Paragraph 178
domain
office365[.]com“- '.office365.com'”
Page 1 · Paragraph 179
domain
sharepoint[.]com“- '.sharepoint.com'”
Page 1 · Paragraph 180
domain
msn[.]com“- '.msn.com'”
Page 1 · Paragraph 181
domain
bing[.]com“- '.bing.com'”
Page 1 · Paragraph 182
domain
msftconnecttest[.]com“- '.msftconnecttest.com'”
Page 1 · Paragraph 183
filepath
C:\Users\*\AppData\Local\Packages\*“DLL loads from C:\Users\*\AppData\Local\Packages\*\ instead of System32. Sysmon Event ID 7.”
Page 1 · Paragraph 197
Claims & evidence
Reported Claim
OAuth Token Theft Through Microsoft's Front Door exhibits DLL sideloading (T1574.002)
“A sideloaded AppX package abuses Microsoft-signed AppX web hosts to pr…”
Page 1 · Paragraph 12
Reported Claim
OAuth Token Theft Through Microsoft's Front Door exhibits Spearphishing attachment (T1566.001)
“Introduction: The Login Page That Isn't Phishing”
Page 1 · Paragraph 16
Reported Claim
OAuth Token Theft Through Microsoft's Front Door exhibits Signed binary proxy (T1218)
“…Not that binary specifically, but its category: a Microsoft-signed binary already on every Windows box that will fetch remote code an…”
Page 1 · Paragraph 17
Reported Claim
OAuth Token Theft Through Microsoft's Front Door exhibits Cloud service C2 / exfil (T1567.002)
“…ode lands, exchange_token.py handles the token exchange and Graph API validation.”
Page 1 · Paragraph 44
Reported Claim
OAuth Token Theft Through Microsoft's Front Door exhibits PowerShell execution (T1059.001)
“Protocol Handler Launching. Launcher.launchUriAsync invoked powershell: , cmd: , ms-msdt: , search-ms: , ms-officecmd: , and other…”
Page 1 · Paragraph 138
Reported Claim
OAuth Token Theft Through Microsoft's Front Door exhibits C2 over HTTPS (T1071.001)
“title: Sideloaded AppX Web Host Beaconing to Non-Microsoft Host”
Page 1 · Paragraph 152
Inferred Relationship
DLL sideloading precedes Spearphishing attachment
“Introduction: The Login Page That Isn't Phishing”
Page 1 · Paragraph 16
Inferred Relationship
Spearphishing attachment precedes Signed binary proxy
“…Not that binary specifically, but its category: a Microsoft-signed binary already on every Windows box that will fetch remote code an…”
Page 1 · Paragraph 17
Inferred Relationship
Signed binary proxy precedes Cloud service C2 / exfil
“…ode lands, exchange_token.py handles the token exchange and Graph API validation.”
Page 1 · Paragraph 44
Inferred Relationship
Cloud service C2 / exfil precedes PowerShell execution
“Protocol Handler Launching. Launcher.launchUriAsync invoked powershell: , cmd: , ms-msdt: , search-ms: , ms-officecmd: , and other…”
Page 1 · Paragraph 138
Inferred Relationship
PowerShell execution precedes C2 over HTTPS
“title: Sideloaded AppX Web Host Beaconing to Non-Microsoft Host”
Page 1 · Paragraph 152
Reported Claim
login.microsoftonline.com used as network infrastructure
“…alog open on the desktop. Real, because it was: served from login.microsoftonline.com , rendered by a signed Microsoft process, with no address b…”
Page 1 · Paragraph 19
Reported Claim
microsoft.com used as network infrastructure
“…arty traffic to Microsoft-owned domains that do not end in .microsoft.com, such as Store telemetry and other AppX-host calls, so a na…”
Page 1 · Paragraph 150
Reported Claim
microsoftonline.com used as network infrastructure
“- '.microsoftonline.com'”
Page 1 · Paragraph 171
Reported Claim
msauth.net used as network infrastructure
“- '.msauth.net'”
Page 1 · Paragraph 172
Reported Claim
msftauth.net used as network infrastructure
“- '.msftauth.net'”
Page 1 · Paragraph 173
Reported Claim
windows.com used as network infrastructure
“- '.windows.com'”
Page 1 · Paragraph 174
Lore Hypothesis
Investigation hypothesizes A loader sideloaded via a signed binary stages an in-memory implant
“A sideloaded AppX package abuses Microsoft-signed AppX web hosts to pr…”
Page 1 · Paragraph 12
Lore Hypothesis
Investigation hypothesizes Data exfiltration occurred through cloud storage
“A sideloaded AppX package abuses Microsoft-signed AppX web hosts to pr…”
Page 1 · Paragraph 12