Malware profile

Gh0st RAT

Also known as Mydoor, Moudoor, Gh0stRAT

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

In short

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.

Profile MapMalware
  1. Names4names in public reportsgh0st RAT · Mydoor · Moudoor
  2. Techniques18ATT&CK techniques listedDiscovery · Stealth · Collection
  3. Linked Groups4groups that use itAndariel · APT40 threat group profile · APT41

In one minute

What it is
A remote access tool for Windows and macOS. MITRE says its source code is public and multiple groups have used it.
What it does
Opens a remote shell, logs keystrokes, captures the screen, lists processes, downloads files and can wipe event logs. Talks to its command server over an encrypted TCP channel.
Who uses it
Attributed by the FBI and CISA, on 19 July 2021: listed among malware used by APT40. MITRE also lists Andariel, APT41 and Kimsuky; for those three MITRE's citations are vendor reports, so treat them as MITRE's view only.
How it gets in
No source reviewed states how it arrives. The FBI and CISA list APT40's general entry routes but do not tie them to this tool.
What to do first
Follow the FBI and CISA mitigations in advisory AA21-200A: log DNS queries, monitor server disk use and set network baselines to spot unusual traffic.

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]
Gh0stRATWritten "Gh0stRAT [ S0032 ]" in the FBI and CISA advisory AA21-200A[2]

What it can do

What MITRE ATT&CK lists this malware as doing, 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]

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]

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.

In our research

  1. Software Shared Across ATT&CK Groups: Reuse Study October 2026
  2. Andariel Threat group
  3. APT18 Threat group
  4. APT40 threat group profile Threat group
  5. BlackTech threat group profile Threat group
  6. Remote access trojan (RAT) Glossary term

Sources

  1. gh0st RAT, Software S0032 MITRE ATT&CKSupports: 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-200A FBI and CISASupports: 19 July 2021 advisory listing Gh0stRAT among APT40 malware, with mitigations.
  3. Leviathan (APT40), Group G0065 MITRE ATT&CKSupports: MITRE lists gh0st RAT for Leviathan.
  4. Andariel, Group G0138 MITRE ATT&CKSupports: MITRE lists gh0st RAT for Andariel.
  5. Publicly Available Tools Seen in Cyber Incidents Worldwide, AA18-284A Cyber agencies of Australia, Canada, New Zealand, the UK and the US, published by CISASupports: 11 October 2018 report noting variations of Gh0st RAT seen against victims worldwide.
  6. APT41, Group G0096 MITRE ATT&CKSupports: MITRE lists gh0st RAT for APT41.
  7. Kimsuky, Group G0094 MITRE ATT&CKSupports: MITRE lists gh0st RAT for Kimsuky.
  8. Operation Dust Storm, Campaign C0016 MITRE ATT&CKSupports: Campaign dates January 2010 to February 2016 and gh0st RAT use.