Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

Gh0st RAT

gh0st RAT is a remote access tool for Windows and macOS.

Published
Updated
Reading Time
5 min read
Dark glass dark glass ghost with sheet outline and red glowing eyeholes with red neon lines, cover art for: Gh0st RAT

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.

Names
NameWhere it appears
gh0st RATMITRE ATT&CK software S0032[1]
MydoorMITRE ATT&CK Associated Software[1]
MoudoorMITRE ATT&CK Associated Software[1]

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

  • Input Capture: Keylogging T1056.001

    It includes a keylogger.[1]

  • Screen Capture T1113

    It can capture the victim's screen remotely.[1]

Execution

  • Command and Scripting Interpreter T1059

    It can open a remote shell to run commands.[1]

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

  • Create or Modify System Process: Windows Service T1543.003

    It can create a new service to stay on the system.[1]

  • Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder T1547.001

    It has added a Registry Run key to stay on the system.[1]

Defense Impairment

  • Disable or Modify Tools: Clear Windows Event Logs T1685.005

    It can wipe event logs.[1]

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

  1. January 2010 to February 2016

    Operation Dust Storm

    MITRE lists gh0st RAT in Operation Dust Storm, a long-running espionage campaign that MITRE dates from January 2010 to February 2016.[1, 8]

  2. 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]

  3. 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

Detection and defense

  1. 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

  2. Set network and system baselines

    The advisory advises building baselines of network and system activity and auditing logs for suspicious behavior. MITRE records encrypted TCP traffic to the command server. The link is ours.[1, 2]

    Counters: T1095 T1573.001

  3. Use reputation services

    The advisory advises multi-sourced reputation services for files, DNS, URLs, IP addresses and email addresses. MITRE records file downloads by gh0st RAT. The link is ours.[1, 2]

    Counters: T1105

  4. Log administrator commands

    The advisory advises logging commands such as net, ipconfig and ping, which relate to the remote shell and system information gathering MITRE records. The link is ours.[1, 2]

    Counters: T1059 T1082

  5. Monitor server disk use

    The advisory advises monitoring server disk use and auditing for significant changes, which may help spot downloaded files and services added to a server. The link is ours.[1, 2]

    Counters: T1105 T1543.003

  6. Use the official resources

    Advisory AA21-200A carries a STIX indicator file and an appendix for APT40 and names Gh0stRAT in its malware list. It is not a Gh0st RAT only report. The five-nation report AA18-284A lists general mitigations. No malware analysis report for gh0st RAT alone was found.[2, 5]

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

  1. gh0st RAT, Software S0032MITRE ATT&CK · Supports: Description, aliases, platforms, techniques, groups and campaign.
  2. 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.
  3. Leviathan (APT40), Group G0065MITRE ATT&CK · Supports: MITRE lists gh0st RAT for Leviathan.
  4. Andariel, Group G0138MITRE ATT&CK · Supports: MITRE lists gh0st RAT for Andariel.
  5. 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.
  6. APT41, Group G0096MITRE ATT&CK · Supports: MITRE lists gh0st RAT for APT41.
  7. Kimsuky, Group G0094MITRE ATT&CK · Supports: MITRE lists gh0st RAT for Kimsuky.
  8. Operation Dust Storm, Campaign C0016MITRE ATT&CK · Supports: Campaign dates January 2010 to February 2016 and gh0st RAT use.
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →