FSB’s matryoshka #1/3 – Gamaredon’s gifts that keeps unpacking – GammaPhish and GammaWorm
Gamaredon (FSB) is conducting an ongoing cyberespionage campaign against Ukrainian targets using a modular, fileless infection chain. The attack leverages HTML smuggling and archive path traversal (CVE-2025-8088) for initial access, followed by the deployment of GammaWorm, which utilizes NTFS Alternate Data Streams (ADS) and Dead Drop Resolvers (DDRs) on legitimate platforms for persistence, propagation, and C2 communication.
Detection / Huntermodels
What Happened
Russian state-sponsored hackers known as Gamaredon are targeting Ukrainian organizations with a highly evasive cyberespionage campaign. The attackers use deceptive emails and files to trick users into installing malicious software that hides deep within the Windows operating system. This matters because the malware can steal sensitive documents, monitor real-time activity, and spread to other computers via USB drives and network folders. Organizations should ensure their systems are fully updated, monitor for unusual hidden files, and restrict the use of unauthorized USB drives.
Key Takeaways
- Gamaredon continues to target Ukrainian entities using a highly modular, VBScript-driven architecture.
- The infection chain abuses legitimate services (Telegram, Cloudflare) as Dead Drop Resolvers (DDRs) to maintain resilient C2 infrastructure.
- GammaWorm propagates via USB and network drives, hiding legitimate directories and replacing them with malicious LNK files using Ukrainian lures.
- The malware heavily relies on NTFS Alternate Data Streams (ADS) to conceal its core modules and evade detection.
Affected Systems
- Windows OS
Vulnerabilities (CVEs)
- CVE-2025-8088
- CVE-2018-20250
Attack Chain
The attack begins with a spearphishing email containing an xHTML file that uses HTML smuggling to drop a malicious RAR archive. Exploiting CVE-2025-8088, the archive extracts an HTA file into the Windows Startup folder, which executes via mshta.exe to fetch the GammaLoad stager. GammaLoad deploys GammaWorm, which establishes persistence via scheduled tasks and registry keys, hiding its core modules within NTFS Alternate Data Streams (ADS). GammaWorm propagates by infecting USB and network drives with malicious LNK files, while continuously communicating with C2 servers via Dead Drop Resolvers hosted on legitimate platforms like Telegram and Cloudflare.
Detection Engineering Assessment
Required Log Sources
- Process Creation (Event ID 4688 / Sysmon 1)
- File Creation (Sysmon 11 - ADS creation)
- Registry Modification (Sysmon 12/13/14)
- Scheduled Task Creation (Event ID 4698)
Hunting Hypotheses
| Hypothesis | Telemetry | ATT&CK Stage | FP Risk |
|---|---|---|---|
| Wscript executing files from Alternate Data Streams. | Process Creation | Execution | Low |
| Mshta executing remote payloads with fake authentication strings (e.g., @domain). | Process Creation | Execution | Low |
| High-frequency outbound requests to Telegram or Cloudflare workers from non-browser processes like wscript.exe. | Network/Process | Command and Control | Medium |
| Creation of scheduled tasks pointing to ADS paths or executing wscript.exe with hidden files. | Scheduled Tasks | Persistence | Low |
Control Gaps
- Network filtering allowing uncategorized or personal storage domains (Telegram, Cloudflare Workers)
- Lack of visibility into Alternate Data Stream (ADS) creation
Key Behavioral Indicators
- wscript.exe targeting a path containing a colon not followed by a backslash
- Creation of %USERPROFILE%:GTR or %USERPROFILE%:save
- Registry modifications in HKCU\Console\ storing URLs
False Positive Assessment
- Low
Recommendations
Immediate Mitigation
- Verify against your organization's incident response runbook and team escalation paths before acting.
- Consider wiping any host confirmed to be infected with GammaWorm, as its DDR fallback mechanisms make complete remediation difficult.
- Evaluate whether to block the specific DDR URLs and C2 IP addresses provided in the IOC list.
Infrastructure Hardening
- If supported by your environment, consider restricting the execution of mshta.exe and wscript.exe via AppLocker or WDAC.
- Evaluate whether to disable or restrict the use of removable USB drives to prevent physical propagation of the worm.
- Consider implementing network segmentation to limit the lateral spread of malware via network shares.
User Protection
- If your EDR supports it, consider enabling strict rules around the creation and execution of Alternate Data Streams (ADS).
- Evaluate whether to enforce the display of hidden files and file extensions via Group Policy to counter the malware's registry modifications.
Security Awareness
- Consider training users to recognize social engineering lures, particularly those using provocative or urgent filenames (e.g., draft letters, deployment documents).
- Evaluate whether to educate employees on the risks of opening unexpected archive files or clicking on unknown shortcuts (LNK files) on USB drives.
MITRE ATT&CK Mapping
- T1566.001 - Phishing: Spearphishing Attachment
- T1027.006 - Obfuscated Files or Information: HTML Smuggling
- T1059.005 - Command and Scripting Interpreter: Visual Basic
- T1547.001 - Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder
- T1564.004 - Hide Artifacts: NTFS File Attributes
- T1053.005 - Scheduled Task/Job: Scheduled Task
- T1091 - Replication Through Removable Media
- T1102.001 - Web Service: Dead Drop Resolver
- T1218.005 - System Binary Proxy Execution: Mshta
- cve
- cve
- domainquitethepastry[.]ruOperator-controlled C2 domain
- filename~.gifGammaWorm payload dropped to disk and USB drives
- ip104[.]194[.]140[.]6C2 IP address
- md51794369214b7f62e70a0485e61335c61GammaPhish xHTML initial access file
- md58e1624d110c090ff57d4b493a9107c66GammaWorm ~.gif payload
- registry_keyHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce\ExplorerGuardPersistence mechanism for GammaWorm
- urlhxxp://iiwdsxwamylbwwsoyrmj[.]supabase[.]co/functions/v1/clever-responder/KokonGoogle_09[.]12[.]2025Tracking pixel URL used in GammaPhish
- urlhxxps://bold[.]zsjtn41091[.]workers[.]devDead Drop Resolver
- url
- urlhxxps://graph[.]org/kyjfkyr-12-06Dead Drop Resolver used by GammaWorm
- urlhxxps://moment-cat-qld-place[.]trycloudflare[.]com/sylvilagusDead Drop Resolver
- urlhxxps://quitethepastry[.]ruOperator-controlled C2 domain
- urlhxxps://telegra[.]ph/f8bfl6sp-01-02Dead Drop Resolver
- urlhxxps://teletype[.]in/@myrain/Xh1Lta2CcroDead Drop Resolver used by GammaWorm
- url
- urlhxxps://www[.]telegram[.]me/s/oberfarirDead Drop Resolver