MQsTTang
- Type
- Backdoor
- Capabilities
- PersistencePost exploitationDefense evasion
- Delivery
- Lure
- Platforms
- Windows
MQsTTang, also known as QMAGENT, is a custom, single-stage Windows backdoor observed in campaigns beginning in January 2023. It enables operators to execute arbitrary commands on compromised hosts and retrieve standard output. Originally attributed to Mustang Panda, it was reassigned by ESET to CeranaKeeper in July 2025 following refinements to threat-cluster definitions and analysis of operational linkages. Observed targeting includes individuals involved with government entities and a governmental institution in Taiwan, with additional telemetry in Bulgaria and Australia.
MQsTTang uses the MQTT publish/subscribe protocol for command-and-control through a legitimate public broker, separating infected systems from direct connections to attacker-controlled infrastructure. It incorporates the QMQTT library and statically linked Qt components, executes commands through Qt process functionality, and encodes communications using Base64 and XOR transformations. It periodically transmits keepalive messages and returns command standard output rather than standard error.
The malware is distributed in RAR archives containing a single executable with diplomacy- or passport-themed decoy names. It copies itself into a public user directory and establishes persistence through a per-user Windows Run entry masquerading as a VLC-related component. Later versions detect common debugging and monitoring tools by enumerating processes and checking window classes, then switch MQTT communication topics when analysis tools are detected.
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.
Beginning in January 2023, researchers observed MQsTTang in campaigns targeting individuals involved with government entities; ESET published a technical report in March 2023.
ESET researchers have analyzed MQsTTang, a new custom backdoor... MQsTTang is a barebones backdoor that allows the attacker to execute arbitrary commands on a victim’s machine and get the output... its use of the MQTT protocol for C&C communication.
Techniques & procedures
23 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
6 techniques
Resource Development
“Some servers used in the campaign are on shared hosting.”
“Some servers used in the campaign seem to be exclusive to Mustang Panda.”
“MQsTTang is a new custom backdoor…”
“Multiple legitimate and open-source tools, including psexec, ps, curl, and plink, were found on the staging server.”
The user's repositories host various malware, including the latest versions of TONEINS, TONESHELL, and a new tool, QMAGENT.
“Multiple tools were uploaded to an FTP server.”
Initial Access
2 techniques
Initial Access
The backdoor ... are executables with names related to foreign affairs, such as PDF_ Contacts List Of Invitated Deplomatic Members and Note_Documents_No.14-Tokyo-__From___Embassy___of___Russia_ . ... samples also contain folder icon in an attempt to deceive victims about their real purpose.
“This fact, along with the filenames, leads us to believe that the malware is spread via spearphishing.” / “distributed via spearphishing links to a malicious file on an attacker-controlled web server.”
Execution
2 techniques
Execution
“MQsTTang uses the QProcess class from the Qt framework to execute commands.”
The files can then be extracted inside via the password provided in the document.
Persistence
1 technique
Persistence
“creates a new value qvlc … under the HKCU\Software\Microsoft\Windows\CurrentVersion\Run registry key.”
Privilege Escalation
1 technique
Privilege Escalation
“creates a new value qvlc … under the HKCU\Software\Microsoft\Windows\CurrentVersion\Run registry key.”
Stealth
5 techniques
Stealth
Similar to MQsTTang, the TinyNote backdoor samples also contain folder icon in an attempt to deceive victims about their real purpose.
“the registry key is created with the name qvlc. This matches the name of a legitimate executable used by VLC.”
“When creating copies, MQsTTang uses filenames of legitimate programs.”
“MQsTTang checks the paths it is executed from to determine which tasks to execute.”
“iterate through running processes and look for… debuggers and monitoring tools” / “uses the FindWindowW Windows API to look for… analysis tools.”
Discovery
1 technique
Discovery
“iterate through running processes and look for… debuggers and monitoring tools” / “uses the FindWindowW Windows API to look for… analysis tools.”
Command and Control
6 techniques
Command and Control
BambooToken го користи протоколот Message Queuing Telemetry Transport (MQTT) како комуникациски канал за контрола на Windows и Linux системи... се влегува во команден циклус што користи MQTT за C2 комуникација.
The malware samples also communicate with other known C&C servers... constructs a GET request: http://5.188.33.190/api.php ... The encoded enumeration data is stored in a cookie called SSN ... expected result ... JSON ... {"msg":"[BASE64-ENCODED COMMAND]"}
This backdoor is unique because it communicates to its C&C servers over the MQTT protocol
“MQsTTang uses a legitimate public MQTT broker… broker.emqx.io”
“The content of the messages… is base64 encoded… and base64 encoded again.”
“then XORed with the hardcoded string nasa”
Exfiltration
1 technique
Exfiltration
“The output… is then sent back… { "ret" : "<Command output>" }”
Observables
1 indicator attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.