CornFlake
- Type
- RAT
- Capabilities
- Credential theftSession hijackingKeyloggingExfiltrationPersistenceDefense evasionReconnaissanceProcess injection
- Delivery
- Fake updateClickfixLanding pageLure
- Platforms
- Windows
CornFlake is a Windows remote access trojan primarily written in Go that provides persistent access, surveillance, credential theft, and data exfiltration. It is associated with Storm-2945, an assessed operational sub-cluster of the Russian espionage actor Midnight Blizzard, also known as APT29. CornFlake is a principal implant in the CaptiveCrunch campaign, which targets corporate travelers using hotel, conference-center, and other guest Wi-Fi networks across multiple countries.
Delivery involves manipulated DNS and HTTP traffic on captive-portal networks that redirects users to malicious landing pages. Fake browser or operating-system updates and ClickFix repair or verification prompts persuade victims to download and execute malware. During installation, CornFlake displays a deceptive progress window, copies itself into an application-data location, and establishes persistence through Windows services, registry startup entries, and scheduled tasks. A watchdog routine can restore removed persistence mechanisms. CornFlake has also been observed injecting into a suspended process.
Its capabilities include remote command-shell access, raw-input keylogging, clipboard monitoring, screenshot capture, microphone and webcam recording, USB-device monitoring, system and security-posture reconnaissance, and file exfiltration. It collects browser passwords and cookies and Microsoft 365 session tokens. Command-and-control communications use encryption based on ECDH P-256 key exchange, and runtime reconfiguration allows operators to change infrastructure and targeting without reinstalling the implant.
CornFlake can deploy ChocoShell, a PowerShell information stealer that executes entirely in memory. A local HTTP interface allows companion payloads to reuse CornFlake's encrypted command-and-control channel. Operators manage infected endpoints and collected information through the FruitStone web-based control panel.
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.
The payload is CornFlake, a Go remote access trojan. CornFlake in turn deploys ChocoShell, a PowerShell infostealer that runs entirely in memory.
The backdoor file copies itself to %LOCALAPPDATA%32.exe, writes an HKCU Run value, instantiates a Schedule.Service COM object as a second persistence path, injects into a suspended process, and reads Edge, Chrome and Firefox profile data along with the Microsoft Teams cache.
The backdoor file copies itself to %LOCALAPPDATA%32.exe, writes an HKCU Run value, instantiates a Schedule.Service COM object as a second persistence path, injects into a suspended process, and reads Edge, Chrome and Firefox profile data along with the Microsoft Teams cache.
One of the malware strains it delivers is CornFlake. Described as "a full-featured Windows RAT" written in Go, CornFlake is the SVR's go-to persistent implant in these hospitality network attacks.
One of the malware strains it delivers is CornFlake. Described as "a full-featured Windows RAT" written in Go, CornFlake is the SVR's go-to persistent implant in these hospitality network attacks.
Techniques & procedures
48 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
4 techniques
Initial Access
T1091 — Replication Through Removable Media (Lateral Movement)
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.
T1659 (Content Injection), for the fake updates served in response to connectivity checks
Execution
8 techniques
Execution
CornFlake implements persistence through service registration, Registry Run keys, scheduled tasks, and a watchdog routine.
Schedule.Service COM object instantiated.
It carries keylogging, screenshots, microphone and webcam surveillance, browser credential theft and a remote shell
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.
These include: ... Remote shell
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.
Ils utilisent des pièges d'ingénierie sociale de type ClickFix, incitant l'utilisateur à exécuter de fausses mises à jour système ou réseau.
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
CornFlake implements persistence through service registration, Registry Run keys, scheduled tasks, and a watchdog routine.
Schedule.Service COM object instantiated.
After gaining control of the network layer, Storm-2945 manipulates DNS and HTTP traffic to reroute users through attacker-controlled infrastructure.
CornFlake implements persistence through service registration, Registry Run keys, scheduled tasks, and a watchdog routine.
On initial execution, CornFlake operates in dropper mode: it displays a convincing fake progress window designed to occupy the victim’s attention while the binary copies itself to %APPDATA%\svchost32\svchost32.exe and establishes persistence
The backdoor file copies itself to %LOCALAPPDATA%32.exe, writes an HKCU Run value.
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
7 techniques
Privilege Escalation
CornFlake implements persistence through service registration, Registry Run keys, scheduled tasks, and a watchdog routine.
Schedule.Service COM object instantiated.
Suspended process creation plus foreign memory and thread-context writes (assessed).
Additional defense evasion and privilege abuse across the toolset include SYSTEM token impersonation
CornFlake implements persistence through service registration, Registry Run keys, scheduled tasks, and a watchdog routine.
On initial execution, CornFlake operates in dropper mode: it displays a convincing fake progress window designed to occupy the victim’s attention while the binary copies itself to %APPDATA%\svchost32\svchost32.exe and establishes persistence
The backdoor file copies itself to %LOCALAPPDATA%32.exe, writes an HKCU Run value.
Stealth
9 techniques
Stealth
In dropper mode, CornFlake displays a fake progress window while copying itself to %APPDATA%\svchost32\svchost32.exe.
svchost32.exe mimics svchost.exe.
Suspended process creation plus foreign memory and thread-context writes (assessed).
Additional defense evasion and privilege abuse across the toolset include ... Volume Shadow Copy Service abuse
Additional defense evasion and privilege abuse across the toolset include SYSTEM token impersonation, Volume Shadow Copy Service abuse
Additional defense evasion and privilege abuse across the toolset include SYSTEM token impersonation
After gaining control of the network layer, Storm-2945 manipulates DNS and HTTP traffic to reroute users through attacker-controlled infrastructure.
These include: ... Security posture sweep ...
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.
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.
Additional defense evasion and privilege abuse across the toolset include SYSTEM token impersonation, Volume Shadow Copy Service abuse, and a Defender signature lock.
Credential Access
6 techniques
Credential Access
Keylogger YARA hit, DirectInput and raw input device creation.
ChocoShell is an in-memory PowerShell credential stealer targeting browser cookies, saved passwords, Microsoft 365 and Azure AD tokens, and Wi-Fi credentials.
It carries keylogging, screenshots, microphone and webcam surveillance, browser credential theft and a remote shell... ChocoShell runs entirely in memory... harvesting browser cookies, saved passwords, Microsoft 365 single sign-on tokens and Wi-Fi credentials.
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.
After compromising captive portal equipment or shared infrastructure, Storm-2945 manipulates DNS and HTTP traffic on the network. When a victim connects to Wi-Fi and encounters the captive portal login prompt, traffic is redirected through an Adversary-in-the-Middle (AitM) position to attacker-controlled infrastructure
Discovery
5 techniques
Discovery
CornFlake is a Go-based remote access trojan with a broad capability set... file exfiltration, USB monitoring, and system reconnaissance.
scan removable media
Researchers describe CornFlake as a Windows RAT written in Go with a wide range of capabilities that include: USB drive monitoring
Empire-style browser history retrieval; profile enumeration.
These include: ... Security posture sweep ...
Lateral Movement
2 techniques
Lateral Movement
Collects 18 categories of host intelligence including ... Remote Desktop Protocol (RDP) history
T1091 — Replication Through Removable Media (Lateral Movement)
Collection
8 techniques
Collection
Microsoft also discovered an unprotected web-based management panel, FruitStone, which the threat actor used to manage infected systems, browse victim files, execute PowerShell commands, and capture screenshots and keystrokes.
CornFlake is a Go-based remote access trojan (RAT) that offers the following capabilities: ... USB monitoring
Keylogger YARA hit, DirectInput and raw input device creation.
It establishes an encrypted C2 channel via ECDH P-256 key exchange and provides RAT capabilities including keylogging, screenshot capture
CornFlake is a Go-based remote access trojan with a broad capability set: remote shell access, keylogging, clipboard monitoring, screenshot capturing, microphone and webcam surveillance...
...capables de capturer les frappes au clavier, d'écouter les micros...
provides RAT capabilities including keylogging, screenshot capture, microphone and webcam surveillance
After compromising captive portal equipment or shared infrastructure, Storm-2945 manipulates DNS and HTTP traffic on the network. When a victim connects to Wi-Fi and encounters the captive portal login prompt, traffic is redirected through an Adversary-in-the-Middle (AitM) position to attacker-controlled infrastructure
Command and Control
7 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.
Collected data is compressed, encoded, and exfiltrated via HTTPS POST to C2 endpoints disguised as tracking pixels and JavaScript polyfill files.
Microsoft also found ClickFix pages configured to push an APK file, suggesting the threat actor might be targeting Android devices too.
After gaining control of the network layer, Storm-2945 manipulates DNS and HTTP traffic to reroute users through attacker-controlled infrastructure.
CornFlake is a Go-based Windows RAT that serves as the cornerstone of Storm-2945’s persistent access strategy.
C2 chiffré via ECDH P-256 avec clé éphémère par session
T1659 (Content Injection), for the fake updates served in response to connectivity checks
Exfiltration
1 technique
Exfiltration
Collected data is compressed, encoded, and exfiltrated via HTTPS POST to C2 endpoints disguised as tracking pixels and JavaScript polyfill files.
Impact
1 technique
Impact
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
17 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.