gh0st RAT is a remote access tool for Windows and macOS. MITRE ATT&CK says its source code is public and that multiple groups have used it. It can open a remote shell, log keystrokes, capture the screen and download more files.
What it does
Because the source code is public, MITRE says many groups have used it, and variants exist. The US, UK, Canadian, Australian and New Zealand agencies wrote in 2018 that variations of Gh0st RAT had been seen against victims worldwide.
The FBI, with CISA, listed Gh0stRAT in July 2021 among the malware used by the APT40 group named in a US indictment. That advisory covers the whole group, not this tool alone.
Names
Public sources use several names for this malware.
What it can do
The ATT&CK techniques the cited sources map to this tool, by tactic. Each id opens our technique page where one exists, otherwise MITRE.
Discovery
Query Registry T1012
It has checked whether a Service key exists to learn if it is already installed.[1]
Process Discovery T1057
It can list the processes running on the system.[1]
System Information Discovery T1082
It has gathered system architecture, processor, operating system settings and installed hardware details.[1]
Stealth
Process Injection T1055
It can inject code into a process created by its "Command_Create&Inject" function.[1]
Indicator Removal: File Deletion T1070.004
It can delete files.[1]
System Binary Proxy Execution: Rundll32 T1218.011
A variant has used rundll32 to run.[1]
Hijack Execution Flow: DLL T1574.001
A variant has used DLL side-loading.[1]
Collection
Command and Control
Non-Application Layer Protocol T1095
It has sent an encrypted protocol inside TCP segments to reach its command server.[1]
Ingress Tool Transfer T1105
It can download files to the victim machine.[1]
Data Encoding: Standard Encoding T1132.001
It has compressed command traffic with Zlib before encrypting it.[1]
Dynamic Resolution: Fast Flux DNS T1568.001
Its operators have used dynamic DNS to hide the real location of their command server behind changing IP addresses.[1]
Encrypted Channel: Symmetric Cryptography T1573.001
It uses RC4 and XOR to encrypt command traffic.[1]
Persistence
How it spreads
No source reviewed says how gh0st RAT is delivered. MITRE says only that its source code is public and that multiple groups have used it. The FBI and CISA advisory AA21-200A lists several general ways APT40 gains initial access, such as spearphishing and exploiting public-facing applications, but it does not say which of them delivered Gh0stRAT.
Timeline
- January 2010 to February 2016
- 11 October 2018
Five-nation report on public tools
Cyber agencies of Australia, Canada, New Zealand, the UK and the US wrote that variations of Gh0st RAT had been seen against victims worldwide.[5]
- 19 July 2021
APT40 indictment and advisory AA21-200A
The US Department of Justice unsealed an indictment against four APT40 actors. The FBI and CISA advisory lists Gh0stRAT among APT40 malware.[2]
Who uses it
- Threat group Andariel Attributed by the US, UK and South Korean governments to North Korea's Reconnaissance General Bureau, Andariel is described in a July 2024 joint advisory as stealing defense, aerospace and nuclear secrets and funding that work with ransomware against US healthcare. North Korea · Since 2009
- Threat group APT40 threat group profile APT40 (tracked by MITRE as Leviathan) is attributed by the US and UK governments (2021) and by agencies in eight countries (2024) to China's Ministry of State Security. China · Since 2009
- Threat group APT41 MITRE describes APT41 as a Chinese state-sponsored espionage group, as researchers have assessed it, that also runs financially motivated operations. China · Since 2012
- Threat group Kimsuky Attributed by the US and South Korean governments to North Korea's Reconnaissance General Bureau, Kimsuky sends convincing fake emails to think tanks, researchers, media and government staff to steal documents and email. North Korea · Since 2012
Detection and defense
Log DNS and watch for odd domains
The FBI and CISA advise logging DNS queries, considering blocking outbound DNS that does not come from approved servers, and watching for command traffic over DNS. MITRE records gh0st RAT operators hiding command servers behind changing IP addresses. The link between the two is ours.[1, 2]
Counters: T1568.001
What Brandefense can do
- Scan your domain in Brandefense Atlas, free
Atlas checks public sources for leaked credentials, phishing domains, dark web mentions and data sales, then gives your domain a risk grade. Free, no sign-up.
- Cyber Threat Intelligence
Brandefense Cyber Threat Intelligence tracks malware families and the infrastructure they use, and shares indicators your team can check against its own systems.
Frequently Asked Questions
What is gh0st RAT?
MITRE ATT&CK describes it as a remote access tool whose source code is public and which multiple groups have used.
Which groups use it?
The FBI and CISA listed Gh0stRAT in July 2021 among malware used by APT40. MITRE also lists Andariel, APT41 and Kimsuky, citing vendor reports for those three.
What can it do?
MITRE lists abilities such as opening a remote shell, logging keystrokes, capturing the screen, downloading files and wiping event logs.
What other names does it have?
MITRE lists Mydoor and Moudoor. The FBI and CISA advisory writes it as Gh0stRAT.
How do defenders reduce the risk?
The FBI and CISA advise logging DNS queries, monitoring server disk use, setting baselines and using reputation services. Their advisory covers APT40, not this tool alone.
Sources
- gh0st RAT, Software S0032MITRE ATT&CK · Supports: Description, aliases, platforms, techniques, groups and campaign.
- Tactics, Techniques, and Procedures of Indicted APT40 Actors Associated with China's MSS Hainan State Security Department, AA21-200AFBI and CISA · Supports: 19 July 2021 advisory listing Gh0stRAT among APT40 malware, with mitigations.
- Leviathan (APT40), Group G0065MITRE ATT&CK · Supports: MITRE lists gh0st RAT for Leviathan.
- Andariel, Group G0138MITRE ATT&CK · Supports: MITRE lists gh0st RAT for Andariel.
- Publicly Available Tools Seen in Cyber Incidents Worldwide, AA18-284ACyber agencies of Australia, Canada, New Zealand, the UK and the US, published by CISA · Supports: 11 October 2018 report noting variations of Gh0st RAT seen against victims worldwide.
- APT41, Group G0096MITRE ATT&CK · Supports: MITRE lists gh0st RAT for APT41.
- Kimsuky, Group G0094MITRE ATT&CK · Supports: MITRE lists gh0st RAT for Kimsuky.
- Operation Dust Storm, Campaign C0016MITRE ATT&CK · Supports: Campaign dates January 2010 to February 2016 and gh0st RAT use.
