Tmanger
- Type
- RAT
- Capabilities
- KeyloggingExfiltrationPersistencePost exploitationReconnaissance
- Delivery
- Fake update
- Platforms
- Windows
Tmanger is a modular Windows remote access trojan used by the China-linked threat actor TA428 in cyberespionage operations against East Asian government organizations. It was identified during investigation of Operation LagTime IT in February 2020, where it was deployed by Poison Ivy after attackers used EternalBlue for lateral movement. The campaign initially compromised systems through Royal Road-generated RTF lure documents exploiting CVE-2018-0798; Tmanger served as a follow-on implant rather than the initial exploitation payload.
Tmanger comprises setup, loader, and client components. The setup component checks administrative privileges and establishes persistence through a Windows service when elevated or a per-user Run entry otherwise. The loader decrypts configuration data and unpacks the client payload. The client collects operating-system, architecture, drive, host, and user information and communicates with command-and-control servers using RC4-encrypted traffic. Its capabilities include remote shell and PowerShell execution, process execution, directory enumeration, file retrieval and exfiltration, file writing, copying and deletion, keylogging, screen capture, and cleanup.
Tmanger was also distributed through the compromised Able Desktop software update channel during Operation StealthyTrident against Mongolian organizations. In July 2020, it replaced HyperBro on at least one affected system. That operation involved tooling associated with TA428 and LuckyMouse, but these overlaps do not establish exclusive attribution of the campaign to either actor.
Associated vulnerabilities
4 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
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.
During Operation StealthyTrident ... the attackers used Tmanger, attributed to TA428, and Zupdax, associated with Space Pirates.
TmangerにはAlbaniiutas以外にも、類似したマルウェアが存在します。今回は私達がTmangerの亜種であると考えているSmanagerについて紹介します。
Techniques & procedures
26 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
One of the group’s immediate post-exploitation steps often includes deploying web shells ... to execute commands and upload additional payloads.
Initial Access
2 techniques
Initial Access
Sekoia established that “MìMì” Messenger’s MacOS version is trojanized since May 26, 2022 to download and execute a Mach-O binary dubbed “rshell”.
One of the Able update servers was likely compromised in order to deploy HyperBro and Tmanger.
Execution
5 techniques
Execution
The researchers noted that the malware’s persistence was established via a scheduled task that called the malicious DLL’s export, ‘Entery’.
Tmanger has following functions: Remote Shell (cmd.exe); Remote Shell (powershell.exe)... nccTrojan has following functions: Remote Shell.
As a result of our analysis, we consider that the functions of this RAT are as follows: • Command execution by PowerShell
Royal Road is a tool that generates RTF files that exploit the Microsoft Office Equation Editor vulnerabilities (CVE-2017-11882, CVE-2018-0798, CVE-2018-0802).
ServiceMain takes a service name as an argument and attempts to register a service control handler with a specific HandlerProc function meant to check and set the status of that service. With a valid service status handle, Mail-O detaches the calling process from its console, changes the service status values to reflect its current running state, and calls the Entery function.
Persistence
3 techniques
Persistence
The researchers noted that the malware’s persistence was established via a scheduled task that called the malicious DLL’s export, ‘Entery’.
先程System32に作成したDLLをサービスとして登録します。最後に、そのサービスを起動します。
And then it persists to execute master.exe with the key ‘HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\Master’.
Privilege Escalation
3 techniques
Privilege Escalation
The researchers noted that the malware’s persistence was established via a scheduled task that called the malicious DLL’s export, ‘Entery’.
先程System32に作成したDLLをサービスとして登録します。最後に、そのサービスを起動します。
And then it persists to execute master.exe with the key ‘HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\Master’.
Stealth
3 techniques
Stealth
続いて、ファイルの更新時刻を10年前の値に設定します。これはSystem32でファイルが目立たないようにするためだと考えられます。
HyperBro and Korplug payloads are XOR encoded. Tmanger configuration is RC4 encrypted.
If the string exists, it will execute again using rundll32.exe. This time, it will execute a function called ‘DllEntry10’, rather than ‘DllEntryPoint’.
Credential Access
1 technique
Credential Access
As a result of our analysis, we consider that the functions of this RAT are as follows: • Keylogger.
Discovery
2 techniques
Discovery
It then uses rundll32.exe to execute a function called ‘Entery’ in ‘test.dll’... After collecting information from the PC, it attempts to communicate with the C&C server
We confirmed that the same following functions are implemented in the nccTrojan as the RAT. • Send File List
Lateral Movement
1 technique
Lateral Movement
攻撃者はEternal Blueを悪用して同一ネットワーク上のいくつかのホストに移動することに成功すると、そのうちの1つのホスト上で興味深いマルウェアを動かし始めました。
Collection
2 techniques
Collection
As a result of our analysis, we consider that the functions of this RAT are as follows: • Keylogger.
Tmanger has following functions: Send Screen Capture Images.
Command and Control
7 techniques
Command and Control
Tmanger can fallback to a secondary C&C.
Configuration data lists C&C servers on ports 443, 8080, 80, and 5222; sections describe C&C communication for Poison Ivy, Tmanger, and nccTrojan.
Tmanger communicates using raw TCP.
It is used to download three cab files (‘o.cab’, ‘nbt.cab’ and ‘in.cab’) from the C&C server, and execute the files stored in the cab files.
Poison Ivy... starts working as a RAT. Cotx RAT... Tmanger... starts working as a RAT. nccTrojan... activates its C&C functions.
トラフィックはRC4によって暗号化されていますが、それをデコードすると図 4のような構造になっています。
Tmanger messages are RC4 encrypted.
Exfiltration
1 technique
Exfiltration
3, 19, 35 クライアントからC&Cサーバーへファイルの送信
Observables
60 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.