ChocoShell
- Type
- Infostealer
- Capabilities
- Credential theftSession hijackingExfiltrationPrivilege escalationDefense evasion
- Delivery
- Fake updateClickfixLanding page
- Platforms
- Windows
ChocoShell is a Windows information stealer written in PowerShell that executes entirely in memory. It is used by Storm-2945, an operational sub-cluster of the Russian espionage actor Midnight Blizzard, also known as APT29, in the CaptiveCrunch campaign. Its primary purpose is to collect credentials and session material that enable access to enterprise cloud services and other authenticated accounts.
ChocoShell harvests browser cookies, saved passwords, Microsoft 365 single sign-on tokens, Microsoft Entra ID tokens from the Windows Token Broker cache, and stored Wi-Fi credentials. It can bypass Chrome App-Bound Encryption through SYSTEM token impersonation and obtain readable cookies through browser memory access and debugging features. It also collects browser history using code drawn from PowerSploit and Empire. Stolen information is exfiltrated through HTTPS POST requests, while progress reporting uses HTTPS requests resembling tracking-pixel traffic.
Its evasion techniques include hiding its PowerShell window, modifying the execution policy, executing Base64-encoded code, and disabling the Antimalware Scan Interface through .NET reflection. It performs timing-based sandbox and virtual-machine checks before collection and attempts multiple UAC bypass techniques to obtain elevated execution.
ChocoShell can be deployed directly through ClickFix-style fake browser or operating-system update lures or delivered in memory by the CornFlake remote access trojan. CaptiveCrunch redirects users of hotel, conference, and other guest Wi-Fi networks to malicious landing pages by manipulating network traffic and name resolution. The campaign primarily targets corporate travelers across multiple sectors.
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.
CornFlake in turn deploys ChocoShell, a PowerShell infostealer that runs entirely in memory.
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
24 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.