ChocoShell
- Type
- Infostealer
- Capabilities
- Credential theftSession hijackingExfiltrationPrivilege escalationDefense evasion
- Delivery
- ClickfixFake updateLanding page
- Platforms
- Windows
ChocoShell is an in-memory PowerShell information stealer targeting Windows systems. It harvests browser session cookies, saved passwords, Microsoft 365 single sign-on tokens, Azure Active Directory access and refresh tokens, and stored Wi-Fi credentials. Its collection of authentication tokens and cookies enables session hijacking and access to cloud services without requiring the victim’s password. It bypasses Chrome App-Bound Encryption protections to obtain browser secrets and uses browser debugging features to extract readable cookies.
ChocoShell conceals its PowerShell window, changes execution policy, executes Base64-encoded code, and runs background jobs. Defense-evasion measures include disabling the Antimalware Scan Interface through .NET reflection and checking for sandbox and virtual-machine environments. It implements multiple UAC bypass techniques and uses SYSTEM token impersonation when accessing protected browser encryption material. It also collects browser history, communicates through HTTPS requests resembling tracking traffic, and exfiltrates stolen information through HTTPS POST requests.
ChocoShell is deployed in the CaptiveCrunch espionage campaign, which Microsoft attributes to Storm-2945, an assessed operational sub-cluster of Midnight Blizzard, also known as APT29. The campaign manipulates traffic on compromised hotel, conference, and other guest-network captive portals to redirect travelers to malicious landing pages. Fake browser or operating-system updates and ClickFix prompts induce victims to execute malware. ChocoShell operates alongside the CornFlake remote-access trojan and can be delivered as an additional in-memory payload through CornFlake’s modular platform. The operation targets corporate travelers across multiple sectors, using stolen credentials and session material to extend endpoint compromise into enterprise cloud accounts.
Associated threat actors
5 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Microsoft names CornFlake (the Go backdoor) and ChocoShell (the PowerShell stealer).
Microsoft names CornFlake (the Go backdoor) and ChocoShell (the PowerShell stealer).
Microsoft names CornFlake (the Go backdoor) and ChocoShell (the PowerShell stealer).
CornFlake exposes a localhost HTTP API server to transform the malware into a modular platform, delivering additional payloads such as ChocoShell, a PowerShell-based infostealer. ChocoShell is delivered and executed entirely in-memory.
CornFlake exposes a localhost HTTP API server to transform the malware into a modular platform, delivering additional payloads such as ChocoShell, a PowerShell-based infostealer. ChocoShell is delivered and executed entirely in-memory.
Techniques & procedures
48 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
3 techniques
Initial Access
Entering the attacker-supplied code on Microsoft's legitimate sign-in page can grant the attacker-controlled session multi-factor authentication (MFA)-satisfied access.
The campaign abuses captive portal networks at hotels, conference centers, and similar venues to redirect victims to attacker-controlled infrastructure.
Using this technique, they were able to redirect users to fraudulent Microsoft 365 login pages, phishing portals containing device codes, or fake software update screens when connecting to hotel Wi-Fi. | Microsoft observed the scheme expanding to include Microsoft Entra device code phishing, in which the victims are tricked into completing a legitimate Microsoft authentication process that unknowingly allows the attackers' session to be authorized instead of their own.
Execution
7 techniques
Execution
It establishes redundant persistence mechanisms: Windows service registrations, Registry Run keys, named scheduled tasks
It establishes redundant persistence mechanisms: Windows service registrations, Registry Run keys, named scheduled tasks
CornFlake exposes a localhost HTTP API server to transform the malware into a modular platform, delivering additional payloads such as ChocoShell, a PowerShell-based infostealer.
The stager file hides its window and changes the PowerShell execution policy.
Victims are instructed to paste and run commands, in some cases with instructions for Android APK installation. Executing the ClickFix instructions downloads and runs CornFlake and/or ChocoShell.
Internet Shortcut files that open the stager URL (assessed).
Captive portals on hotel and conference Wi-Fi networks have been hijacked to route guests through attacker infrastructure, serving fake browser and operating system updates that install Russian espionage malware.
Persistence
7 techniques
Persistence
It establishes redundant persistence mechanisms: Windows service registrations, Registry Run keys, named scheduled tasks
It establishes redundant persistence mechanisms: Windows service registrations, Registry Run keys, named scheduled tasks
Entering the attacker-supplied code on Microsoft's legitimate sign-in page can grant the attacker-controlled session multi-factor authentication (MFA)-satisfied access.
After gaining control of the network layer, Storm-2945 manipulates DNS and HTTP traffic to reroute users through attacker-controlled infrastructure.
SilentCleanup task hijack: Writes a malicious command to HKCU\Environment\windir , then triggers the built-in SilentCleanup scheduled task
wsreset.exe COM hijack: Creates a COM handler key in HKCU\Software\Classes and launches the auto-elevating Windows Store reset tool.
After modifying DNS settings, the attacker can redirect victims to phishing pages that impersonate Microsoft 365 login portals, or to device code phishing pages that abuse Microsoft Entra ID authentication flows.
Privilege Escalation
8 techniques
Privilege Escalation
It establishes redundant persistence mechanisms: Windows service registrations, Registry Run keys, named scheduled tasks
It establishes redundant persistence mechanisms: Windows service registrations, Registry Run keys, named scheduled tasks
Entering the attacker-supplied code on Microsoft's legitimate sign-in page can grant the attacker-controlled session multi-factor authentication (MFA)-satisfied access.
Additional defense evasion and privilege abuse across the toolset include SYSTEM token impersonation
SilentCleanup task hijack: Writes a malicious command to HKCU\Environment\windir , then triggers the built-in SilentCleanup scheduled task
wsreset.exe COM hijack: Creates a COM handler key in HKCU\Software\Classes and launches the auto-elevating Windows Store reset tool.
ChocoShell ... escalates privileges using silent User Account Control (UAC) bypass techniques (such as SilentCleanup task hijack, wsreset.exe COM hijack, and sdclt.exe folder hijack)
ChocoShell ... escalates privileges using silent User Account Control (UAC) bypass techniques (such as SilentCleanup task hijack, wsreset.exe COM hijack, and sdclt.exe folder hijack), falling back to a visible UAC prompt when necessary.
Stealth
13 techniques
Stealth
Locked browser SQLite databases are accessed through three strategies: shared file access, Volume Shadow Service snapshots
T1027 — Obfuscated Files or Information (Defense Evasion)
Stager served under a fake JavaScript bundle name next to a polyfill library.
Additional defense evasion and privilege abuse across the toolset include ... Volume Shadow Copy Service abuse
Entering the attacker-supplied code on Microsoft's legitimate sign-in page can grant the attacker-controlled session multi-factor authentication (MFA)-satisfied access.
Additional defense evasion and privilege abuse across the toolset include SYSTEM token impersonation
It decodes and runs Base64-encoded code.
After gaining control of the network layer, Storm-2945 manipulates DNS and HTTP traffic to reroute users through attacker-controlled infrastructure.
ChocoShell ... escalates privileges using silent User Account Control (UAC) bypass techniques (such as SilentCleanup task hijack, wsreset.exe COM hijack, and sdclt.exe folder hijack)
It disables Windows Antimalware Scan Interface (AMSI) via .NET reflection, performs sandbox and VM detection
PowerShell runs hidden and non-interactive.
Captive portals on hotel and conference Wi-Fi networks have been hijacked to route guests through attacker infrastructure, serving fake browser and operating system updates that install Russian espionage malware.
ChocoShell is delivered and executed entirely in-memory, Microsoft said.
Defense Impairment
2 techniques
Defense Impairment
After modifying DNS settings, the attacker can redirect victims to phishing pages that impersonate Microsoft 365 login portals, or to device code phishing pages that abuse Microsoft Entra ID authentication flows.
It disables Windows Antimalware Scan Interface (AMSI) via .NET reflection
Credential Access
11 techniques
Credential Access
ChocoShell runs entirely in memory, disabling the Antimalware Scan Interface (AMSI) before harvesting browser cookies, saved passwords, Microsoft 365 single sign-on tokens and Wi-Fi credentials.
CornFlake ou des voleurs de données comme ChocoShell, capables de capturer les frappes au clavier...
T1528 — Steal Application Access Token (Credential Access)
...et d'extraire les cookies de navigateur.
It also harvests Microsoft 365 and Azure AD/WAM tokens from the Token Broker cache, as well as Wi-Fi credentials via netsh wlan .
ChocoShell, on the other hand, is a PowerShell-based infostealer that's used to steal ... saved passwords, Microsoft 365 Single Sign-On (SSO) tokens, and Wi-Fi credentials from compromised systems.
Browser credential theft that includes a Chrome App-Bound Encryption bypass.
After modifying DNS settings, the attacker can redirect victims to phishing pages that impersonate Microsoft 365 login portals, or to device code phishing pages that abuse Microsoft Entra ID authentication flows.
A portion of this activity leverages doppelganger domains mimicking Microsoft online services to conduct follow-on adversary-in-the-middle (AitM) phishing operations that abuse the device code authentication flow in Microsoft Entra ID.
The activity involves obtaining administrative access to the Wi‑Fi gateways to modify devices' configurations and making use of DNS poisoning to reroute regular web traffic to dispatch connections for legitimate domains through attacker-controlled infrastructure.
It also harvests Microsoft 365 and Azure AD/WAM tokens from the Token Broker cache
Discovery
2 techniques
Discovery
Empire-style browser history retrieval; profile enumeration.
It disables Windows Antimalware Scan Interface (AMSI) via .NET reflection, performs sandbox and VM detection
Lateral Movement
1 technique
Lateral Movement
Overlaps techniques avec Storm-2372 (device code phishing, exfiltration via Microsoft Graph). ... T1550.001 — Use Alternate Authentication Material: Application Access Token (Lateral Movement)
Collection
6 techniques
Collection
collect files and keystrokes
CornFlake ou des voleurs de données comme ChocoShell, capables de capturer les frappes au clavier...
...capables de capturer les frappes au clavier, d'écouter les micros...
A portion of this activity leverages doppelganger domains mimicking Microsoft online services to conduct follow-on adversary-in-the-middle (AitM) phishing operations that abuse the device code authentication flow in Microsoft Entra ID.
The activity involves obtaining administrative access to the Wi‑Fi gateways to modify devices' configurations and making use of DNS poisoning to reroute regular web traffic to dispatch connections for legitimate domains through attacker-controlled infrastructure.
T1560 — Archive Collected Data (Collection)
Command and Control
4 techniques
Command and Control
Collected data is compressed, encoded, and exfiltrated via HTTPS POST to C2 endpoints disguised as tracking pixels and JavaScript polyfill files.
HTTPS beacon to a raw IP with a tracking-pixel path.
Stager retrieved over HTTPS from the staging server.
After gaining control of the network layer, Storm-2945 manipulates DNS and HTTP traffic to reroute users through attacker-controlled infrastructure.
Exfiltration
1 technique
Exfiltration
T1041 — Exfiltration Over C2 Channel (Exfiltration)
Impact
2 techniques
Impact
VSS shadow copies are deleted via Windows Management Instrumentation (WMI)
The activity was previously disclosed in a report from cybersecurity company ReliaQuest, which detailed how the attacker changed DNS settings on Wi-Fi devices to steal Microsoft 365 accounts.
Observables
43 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
23 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.