TWOSTROKE
- Type
- Backdoor
- Capabilities
- ExfiltrationPersistencePost exploitationDefense evasionReconnaissanceDLL sideloading
- Delivery
- SpearphishingLure
- Platforms
- Windows
TWOSTROKE is a C++ backdoor for Microsoft Windows used by UNC1549, also tracked as Nimbus Manticore and Mirage Kitten, an Iranian state-sponsored cyber-espionage actor linked to the Islamic Revolutionary Guard Corps. It has been deployed in operations targeting aerospace, aviation, and defense organizations, particularly in the Middle East. Its use is associated with recruitment-themed social-engineering campaigns and with maintaining access after an initial compromise.
TWOSTROKE executes through DLL search-order hijacking, with observed samples implemented as 64-bit DLLs that impersonate legitimate Windows components. It supports shell-command and executable execution, in-memory DLL loading, file upload and download, file manipulation and deletion, directory enumeration, host and user discovery, and persistence. These functions enable remote control, reconnaissance, and data exfiltration.
The backdoor uses the Windows WinHTTP API for HTTPS command-and-control communications over TCP port 443. It generates a victim identifier from the computer's fully qualified hostname using XOR and hexadecimal transformations, submits that identifier to its controllers, and parses encoded, custom-delimited tasking responses. Observed samples contain multiple hard-coded command-and-control servers, including Azure-hosted infrastructure. Runtime string decryption and dynamic API resolution conceal sensitive configuration and functionality.
Associated threat actors
6 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
[TWOSTROKE](https://attack.mitre.org/software/S9067) has been affiliated with the cyber espionage threat group [NIMBUS MANTICORE](https://attack.mitre.org/groups/G1059).(Citation: Mandiant_UNC1549_Nov2025)
“The TWOSTROKE backdoor establishes SSL-encrypted connections on TCP/443 using the Windows WinHttp API.”
Nimbus Manticore ... has been observed using an SSH-based tunneling utility and a C++ backdoor similar to its existing TWOSTROKE implant.
"TWOSTROKE, a C++ backdoor that allows for system information collection, DLL loading, file manipulation, and persistence"
Iranian groups deploy MINIBIKE, TWOSTROKE, DEEPROOT, and CRASHPAD in Dream Job-style campaigns...
Techniques & procedures
26 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
Common TTPs across these campaigns include spearphishing, supply chain compromise, drive-by downloads, malicious RDP and LNK files, credential dumping, obfuscated payloads, and encrypted command and control (C2) channels.
Execution
5 techniques
Execution
« Commandes C2 supportées : ... 1 Exécution de commande shell ou exécutable ».
[TWOSTROKE](https://attack.mitre.org/software/S9067) can execute shell commands.(Citation: Mandiant_UNC1549_Nov2025)
[TWOSTROKE](https://attack.mitre.org/software/S9067) has leveraged Windows API calls to gather system information using `GetComputerNameExW(ComputerNameDnsFullyQualified)`.(Citation: Mandiant_UNC1549_Nov2025)
The backdoor can load DLL files, and received commands can execute binaries or DLL libraries.
[TWOSTROKE](https://attack.mitre.org/software/S9067) has been deployed using DLL search order hijacking.(Citation: Mandiant_UNC1549_Nov2025)
Stealth
8 techniques
Stealth
« Stocke les chaînes sensibles chiffrées (stack strings décryptées à l’exécution) ».
Imperial Kitten's C++ backdoor resolves its APIs inside DllMain and stores each address in a global map keyed by API name.
[TWOSTROKE](https://attack.mitre.org/software/S9067) has encrypted gathered device data with XOR and a static key.(Citation: Mandiant_UNC1549_Nov2025)
The reverse SSH-tunneling tool poses as the Windows Terminal Server SDK API, and the backdoor impersonates the Windows Terminal Server SDK DLL, “wtsapi32.dll.”
« Fichier : wtsapi32.dll (DLL malveillante se faisant passer pour le SDK Windows Terminal Server) ».
[TWOSTROKE](https://attack.mitre.org/software/S9067) has the ability to delete files.(Citation: Mandiant_UNC1549_Nov2025)
[TWOSTROKE](https://attack.mitre.org/software/S9067) has been deployed using DLL search order hijacking.(Citation: Mandiant_UNC1549_Nov2025)
Supported C2 commands are: Command ID 2: Execute DLL in memory.
Defense Impairment
1 technique
Defense Impairment
[TWOSTROKE](https://attack.mitre.org/software/S9067) has utilized valid digital signatures to evade detection from security tools.(Citation: Mandiant_UNC1549_Nov2025)
Discovery
4 techniques
Discovery
The backdoor ... generated a unique identifier from the victim's fully qualified hostname.
[TWOSTROKE](https://attack.mitre.org/software/S9067) has gathered the full victim name.(Citation: Mandiant_UNC1549_Nov2025)
[TWOSTROKE](https://attack.mitre.org/software/S9067) has gathered victim hostname and the domain through `GetComputerNameExW(ComputerNameDnsFullyQualified)`.(Citation: Mandiant_UNC1549_Nov2025)
[TWOSTROKE](https://attack.mitre.org/software/S9067) has the ability list the directory.(Citation: Mandiant_UNC1549_Nov2025)
Collection
1 technique
Collection
The malware gives hackers broad control over infected computers, allowing them to ... steal files.
Command and Control
6 techniques
Command and Control
If one server goes down, the backdoor automatically rotates to the next available server in its list.
Imperial Kitten’s backdoors communicate with their controllers over standard HTTPS, blending C2 traffic into normal web activity.
[TWOSTROKE](https://attack.mitre.org/software/S9067) has downloaded files from C2.(Citation: Mandiant_UNC1549_Nov2025)
TWOSTROKE commands arrive as hex-encoded payloads separated by the delimiter @##@.
A reverse SSH-tunneling tool masquerades as the Windows Terminal Server SDK API while establishing an SSH connection to operator infrastructure on port 443.
[TWOSTROKE](https://attack.mitre.org/software/S9067) has utilized SSL encrypted C2 over TCP port 443.(Citation: Mandiant_UNC1549_Nov2025)
Exfiltration
1 technique
Exfiltration
[TWOSTROKE](https://attack.mitre.org/software/S9067) can exfiltrate data over C2.(Citation: Mandiant_UNC1549_Nov2025)
Observables
81 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
27 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.