Gh0stTimes
- Type
- RAT
- Capabilities
- ReconnaissancePost exploitationDefense evasion
- Platforms
- Windows
Gh0stTimes, also known as Consock, is a remote access trojan derived from Gh0st RAT and used by the China-linked cyberespionage group BlackTech, also known as Earth Hundun and BRONZE CANAL. It has been observed in attacks against Japanese organizations since at least 2020. The malware retains portions of Gh0st RAT's code, including file-management and remote-shell functionality, while introducing modified command-and-control communications and enhanced relay capabilities.
Gh0stTimes supports file operations, remote shell execution, command-and-control redirection, and proxying. It collects host information, including the hostname, username, and processor name, and transmits it to its controller. Its custom communication protocol begins with an authentication exchange that supplies an identifier and keying material; the server accepts only permitted identifiers. Subsequent traffic uses a session-specific key, a modified RC4 routine incorporating an additional XOR operation, and zlib compression. Port-mapping and proxy commands extend its relay functionality beyond the original Gh0st RAT implementation. Gh0stTimes also contains dummy code intended to complicate analysis and is operated through a graphical control panel named Times.
Associated threat actors
3 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
BRONZE CANAL ... Tools ... Bifrose, Deuterbear, DRIGO, Flagpro, Gh0stTimes, KIVARS, PLEAD, Spiderpig, Waterbear, XBOW
This article introduces the details of the malware Gh0stTimes, which is used by this group. Gh0stTimes is customised based on Gh0st RAT and has been used in some attack cases since 2020.
Techniques & procedures
7 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
1 technique
Execution
ShellManager (command number 0x28): Remote shell execution
Discovery
2 techniques
Discovery
The next round of communication includes the information of infected hosts, such as hostname, username and processor name.
FileManager (command number 0x1): File operation ... FileManager has multiple functions to operate files on infected hosts.
Command and Control
4 techniques
Command and Control
At the beginning of its communication with a C2 server, Gh0stTimes sends an authentication ID and data ... to generate an encryption key for the following communication. The C2 server checks the authentication ID and only accepts the communication with certain IDs.
PortmapManager (command number 0x32): C2 server redirect function UltraPortmapManager (command number 0x3F): Proxy function
Table B: FileManager commands ... 3 UploadToRemote ... 7 SendFileData ... 11 GetFileData
When exchanging commands, the data is RC4-encrypted and then zlib-compressed. Gh0stTimes uses its custom RC4 algorithm, which has XOR 0xAC process over the encrypted data.
Observables
15 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.