Cmstar
- Type
- Loader
- Capabilities
- ReconnaissancePersistenceDefense evasionPost exploitation
- Delivery
- SpearphishingPhishing
- Platforms
- Windows
CMSTAR is a Windows malware family used primarily as a custom downloader in cyber-espionage operations. It has been closely associated with the Lurid/Enfal ecosystem and has also been observed in campaigns that ultimately delivered additional payloads including BBSRAT as well as the backdoors PYLOT and BYEBY. Activity involving CMSTAR has targeted government entities, including campaigns against Mongolian and Belarusian government organizations, and has relied heavily on politically themed spearphishing lures.
CMSTAR has been delivered through weaponized Microsoft Office documents and archive-based lures. Document-based delivery has included exploitation of CVE-2012-0158 and CVE-2015-1641, as well as malicious macro-enabled Word documents. In some cases, archive attachments contained a disguised executable that launched CMSTAR through rundll32. Earlier reporting also linked CMSTAR delivery to malicious documents generated with the MNKit and Tran Duy Linh toolkits.
Functionally, CMSTAR acts as a downloader/loader that establishes execution on the victim host, resolves required APIs through a custom import reconstruction routine, decrypts embedded configuration data and strings, and contacts command-and-control infrastructure to retrieve or enable follow-on payloads. Its import resolution method is notable for enumerating export tables and matching API names through character-and-offset logic rather than relying on a normal import table. Observed variants have used obfuscation and encrypted configuration data, and have transmitted host profiling information to command-and-control servers over HTTP using simple encryption. Collected host data has included Windows version, CPU architecture, privilege level, and the presence of selected security software processes.
CMSTAR also supports persistence on Windows through autorun mechanisms and uses mutexes to prevent multiple concurrent instances. It has been observed enumerating running processes and hashing process names to identify security products without storing plaintext names. Reporting indicates this information is likely used to help operators assess or filter compromised systems. Multiple variants have been documented, including CMSTAR.A, CMSTAR.B, and CMSTAR.C, with differences in mutex usage and string-obfuscation routines.
Infrastructure and code relationships link CMSTAR to other Chinese nexus espionage tooling, especially Lurid/Enfal and Cmwhite, including overlapping command-and-control patterns and shared infrastructure characteristics. Campaign analysis has also highlighted code and tooling overlap with NetTraveler in some samples, supporting the assessment that CMSTAR has circulated within a broader ecosystem of espionage operators or shared malware suppliers rather than a single isolated intrusion set.
Associated vulnerabilities
3 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Techniques & procedures
21 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
Palo Alto Networks Unit 42 has identified a series of phishing emails containing updated versions of the previously discussed CMSTAR malware family targeting various government entities in the country of Belarus.
Unit 42 has been analyzing delivery documents used in spear-phishing attacks that drop a custom downloader used in cyber espionage attacks.
Execution
5 techniques
Execution
HKCU\Software\Microsoft\Windows\CurrentVersion\Run\xpsfiltsvcs: "rundll32.exe C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\xpsfiltsvcs.dll,XpsRegisterServer"
The Word documents, which we track as Werow, employ malicious macros for their delivery.
Unit 42 is aware of threat actors using two toolkits - MNKit and the Tran Duy Linh toolkit - to produce malicious documents that exploit CVE-2012-0158 in order to implant Cmstar.
Weaponized Microsoft Word document found titled 'Путины урилга.doc' (Putin's Invitation). CVE-2012-0158 exploit used, dropping new variant of Cmstar.
While we observed different techniques being used for delivery, all attachments executed a variant of the CMSTAR malware family.
Persistence
1 technique
Persistence
The Cmstar sample associated with the MNKIT delivery document creates the following registry key to automatically execute at system startup: HKCU\Software\Microsoft\Windows\CurrentVersion\Run\xpsfiltsvcs
Privilege Escalation
1 technique
Privilege Escalation
The Cmstar sample associated with the MNKIT delivery document creates the following registry key to automatically execute at system startup: HKCU\Software\Microsoft\Windows\CurrentVersion\Run\xpsfiltsvcs
Stealth
6 techniques
Stealth
The initial dropper embedded in the weaponized document files were obfuscated using a subtraction cipher previously used to obfuscate strings in the NetTraveler malware family.
...while displaying a decoy document or a legitimate appearing document that is generated and presented to the user to make it appear that the weaponized document that had been executed was indeed, legitimate.
For instance, the payload checks the EAT of "wininet.dll" using the comparisons mentioned above to find the address to the "DeleteUrlCacheEntryA" API function.
The SCR file mentioned previously drops a CMSTAR DLL and runs it via an external call to rundll32.exe.
the downloader uses the CreateMutex to create a mutex named ‘{53A4988C-F91F-4054-9076-220AC5EC03F3}’ to determine if another instance of the code is running.
Rather than altering its activities, Cmstar only notifies the C2 server if a system is running one of these processes, suggesting that the threat actors might employ this technique as a filtering mechanism to ignore analysis systems and researchers.
Discovery
3 techniques
Discovery
Rather than including a list of strings of associated processes, Cmstar enumerates the running processes and subjects these process names to a hashing algorithm.
Cmstar’s HTTP POST requests sent to ‘happy.launchtrue[.]com’ contain data that the Trojan gathers from the infected machine that has the following structure: <Windows Version number>@@<CPU Architecture...
Rather than altering its activities, Cmstar only notifies the C2 server if a system is running one of these processes, suggesting that the threat actors might employ this technique as a filtering mechanism to ignore analysis systems and researchers.
Collection
1 technique
Collection
The RAR archive contained a series of images, a decoy document, and a Microsoft Windows executable within it.
Command and Control
4 techniques
Command and Control
Each of the samples collected via WildFire and VirusTotal contained significant overlaps in tactics used, tools used, as well as infrastructure for command and control channels.
Cmstar also decrypts a 752-byte piece of shellcode that carries out communications with the C2 server, specifically by sending HTTP POST requests to the following URL
Once Cmstar was loaded onto the victim hosts, it would attempt to retrieve a final payload... those that were available were variants of BBSRAT.
Unit 42 observed the following data within an analysis environment, which was then encrypted using a single-byte XOR algorithm and a key of 0x45 before being sent to the C2 server
Observables
152 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.