Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
MalwareUsed by 24 actorsExploits 3 CVEs

gh0st RAT

Also known asGh0stMoudoorMydoor

Gh0st RAT is a long-lived remote access trojan (RAT) whose source code was released publicly in 2008, leading to widespread reuse, modification, and actor-specific forks by both cybercriminal and APT operators. It is also referenced by aliases including Gh0st, Gh0stRAT, Moudoor, and Mydoor. The malware first gained major attention in 2009 in GhostNet espionage activity targeting diplomatic, political, economic, and military entities worldwide.

Based on the provided content, Gh0st RAT is a Windows-focused RAT family with broad remote administration capability, and variants or derivatives have also appeared on Linux. Reported capabilities and behaviors include command execution, file download and file operations, keylogging, clipboard theft or hijacking, screen capture, system information gathering, active-window logging, process injection, and persistence. Persistence mechanisms explicitly mentioned include creating a new Windows service and using Task Scheduler COM interfaces to create scheduled tasks. Linux Gh0st RAT variants detected as Linux/Rekoobe-A were described as inspecting crafted ICMP traffic and using it to trigger either a reverse shell or a listener on port 31234.

The malware is frequently used as a base for customized implants. The content explicitly notes modified or related families including GodRAT, which is based on the Gh0st RAT codebase; Dragon Breath/APT-Q-27 payloads described as modified open-source Gh0st RAT; GALLIUM’s customized Gh0st RAT variant QuarkBandit; and multiple actor-specific forks observed by researchers. One report states that a Dragon Breath debug-build sample contained Gh0st RAT source code. Another notes that Webworm developed customized versions of Gh0st RAT alongside Trochilus and 9002 RAT.

Threat actor and campaign associations directly mentioned in the content include GhostNet; GALLIUM targeting telecommunications providers in Southeast Asia, Europe, and Africa; Dragon Breath/APT-Q-27 targeting primarily Chinese-speaking users and online-gambling-related victims; Webworm/Space Pirates targeting government and enterprise sectors including IT services, aerospace, and electric power in Russia, Georgia, Mongolia, and other Asian countries; and infrastructure overlap with ValleyRAT activity in June 2026 WhatsApp-delivered VBScript campaigns that ultimately installed ManageEngine Endpoint Central. The content repeatedly notes that such overlap is insufficient on its own for confident attribution in those WhatsApp campaigns.

Targeting described in the content spans diplomatic, political, economic, and military organizations; telecommunications providers; government agencies; IT services, aerospace, and electric power sectors; Chinese-speaking users seeking unofficial Telegram and WhatsApp downloads; online-gambling-related victims; and financial trading and brokerage firms in campaigns involving the Gh0st-derived GodRAT.

Infection and delivery methods mentioned include DLL sideloading, trojanized installers, malicious .scr and .pif files disguised as financial documents and distributed via Skype, fake Telegram and WhatsApp download sites, and use as second-stage payloads after web-shell or exploit activity. The content also describes COM-based persistence and service creation behavior in some variants.

High-confidence indicators and protocol details directly mentioned include infrastructure overlap on IP 202.61.160[.]201 previously associated with ValleyRAT and Gh0st RAT activity; Gh0stKCP, a UDP-based protocol used by ValleyRAT and identified in traffic linked to overlapping infrastructure at 143.92.37.168:10086; Dragon Breath stage-4 C2 domain qaqkongtiao[.]com; Dragon Breath mutex Global\DHGGlobalMutex; and a Windows RAT variant observed by ESET that changed the Gh0st RAT packet flag to the string "lambo."

Share:
For your environment

Hunt this family in your stack

Mallory pivots from this family to the IOCs, detections, and named campaigns that touch your stack, and pages you when something new lands.

EXPLOITED CVES

Vulnerabilities exploited

3 CVEs Mallory has correlated with this family across public research and vendor advisories. Each row links to the full Mallory page for that vulnerability.

3 CVES
CVE-2022-3236Sophos Firewall User Portal and Webadmin Code Injection RCEExploited in the wild

These attacks began with exploitation of CVE-2022-3236 which is detailed in Sophos Security Advisory sophos-sa-20220923-sfos-rce.

via sophos threat researchsophos.com
CVE-2022-1040Authentication Bypass RCE in Sophos Firewall User Portal and Webadmin

As in the CVE-2022-1040 attack, the attackers built a malware that inspects all ping packets, waiting for a specially crafted ping packet that would not, otherwise, occur “in nature.”

via sophos threat researchsophos.com
CVE-2024-23692Unauthenticated RCE in Rejetto HTTP File Server via Template InjectionExploited in the wild

“RAT malware such as Gh0stRAT and PlugX often used by Chinese threat actors…”

via ahnlab asec blogasec.ahnlab.com
THREAT ACTORS

Groups observed using it

24 distinct threat actors attributed by public researchers. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details
GhostNet

While the source code for Gh0st RAT was released online in 2008, the malware has continued to be used by advanced persistent threat (APT) groups. Gh0st RAT first made headlines back in 2009, when a cyber-espionage group called GhostNet used it to target diplomatic, political, economic, and military targets around the world.

Webworm

While the source code for Gh0st RAT was released online in 2008, the malware has continued to be used by advanced persistent threat (APT) groups. Gh0st RAT first made headlines back in 2009, when a cyber-espionage group called GhostNet used it to target diplomatic, political, economic, and military targets around the world.

Space Pirates

While the source code for Gh0st RAT was released online in 2008, the malware has continued to be used by advanced persistent threat (APT) groups. Gh0st RAT first made headlines back in 2009, when a cyber-espionage group called GhostNet used it to target diplomatic, political, economic, and military targets around the world.

GALLIUM

"As part of the second stage, the group deploys customized Gh0st RAT and Poison Ivy malware payloads designed to evade detection on its victims' systems."

via bleeping computerbleepingcomputer.com
Dragon Breath

Elastic Security Labs identified a recent campaign distributing a modified variant of the gh0st RAT, attributed to the Dragon Breath APT (APT-Q-27)... The final payload has not undergone major changes since Sophos’s discovery of a DragonBreath campaign in 2023... It is still a modified version of the open-source gh0st RAT.

via elastic security labselastic.co
APT-Q-27

Elastic Security Labs identified a recent campaign distributing a modified variant of the gh0st RAT, attributed to the Dragon Breath APT (APT-Q-27)... The final payload has not undergone major changes since Sophos’s discovery of a DragonBreath campaign in 2023... It is still a modified version of the open-source gh0st RAT.

via elastic security labselastic.co
MITRE ATT&CK

Techniques & procedures

33 distinct techniques documented for this family, organized by ATT&CK tactic.

Initial Access

1 technique
T1566.001Spearphishing AttachmentEvidence2

Direct messages sent via WhatsApp are being used to distribute malicious Visual Basic Script (VBScript) files... The threat actor uses deceptive file names masquerading as business and financial documents to persuade recipients to download and execute the attachment.

Execution

4 techniques
T1053Scheduled Task/JobEvidence1

Gh0stRAT/SimpleRemoter code creating a scheduled task through Task Scheduler COM interfaces... WarmCookie initializes COM, creates the older Task Scheduler 1.0 object using CLSID_CTaskScheduler, and requests IID_ITaskScheduler. It then creates a work item, configures flags and creates a trigger.

T1059Command and Scripting InterpreterEvidence1

Code Action ... 8 Execute command with ShellExecute, visible window 9 Execute command with ShellExecute, hidden window ... 125 Executes command in a hidden cmd window

T1059.003Windows Command ShellEvidence1

Code Action ... 125 Executes command in a hidden cmd window

T1204.002Malicious FileEvidence1

Previous research on the group’s activity found that it uses custom loaders hidden behind decoy documents...

Persistence

5 techniques
T1053Scheduled Task/JobEvidence1

Gh0stRAT/SimpleRemoter code creating a scheduled task through Task Scheduler COM interfaces... WarmCookie initializes COM, creates the older Task Scheduler 1.0 object using CLSID_CTaskScheduler, and requests IID_ITaskScheduler. It then creates a work item, configures flags and creates a trigger.

T1112Modify RegistryEvidence2

Static review of rundll32.dat!Edge shows Sauron service behavior: Uses HKCU\SOFTWARE\Sauron

T1205Traffic SignalingEvidence1

As in the CVE-2022-1040 attack, the attackers built a malware that inspects all ping packets, waiting for a specially crafted ping packet... The ping packet, if validated correctly, can be used to trigger the device into either opening a reverse shell... or it will bind and listen on port 31234... This technique is known as Traffic Signalling, and is detailed as technique T1205 in the MITRE ATT&CK framework.

T1543.003Windows ServiceEvidence4

Static review of rundll32.dat!Edge shows Sauron service behavior: Uses HKCU\SOFTWARE\Sauron Copies itself to C:\Windows\svchost.exe when the Sauron key is absent Creates and starts service Sauron

T1547.001Registry Run Keys / Startup FolderEvidence2

The content repeatedly describes malware and threat actors establishing persistence by adding values under HKCU/HKLM\Software\Microsoft\Windows\CurrentVersion\Run or RunOnce, and by placing executables, scripts, .lnk files, or .bat files in the Windows Startup folder.

Privilege Escalation

4 techniques
T1053Scheduled Task/JobEvidence1

Gh0stRAT/SimpleRemoter code creating a scheduled task through Task Scheduler COM interfaces... WarmCookie initializes COM, creates the older Task Scheduler 1.0 object using CLSID_CTaskScheduler, and requests IID_ITaskScheduler. It then creates a work item, configures flags and creates a trigger.

T1543.003Windows ServiceEvidence4

Static review of rundll32.dat!Edge shows Sauron service behavior: Uses HKCU\SOFTWARE\Sauron Copies itself to C:\Windows\svchost.exe when the Sauron key is absent Creates and starts service Sauron

T1547.001Registry Run Keys / Startup FolderEvidence2

The content repeatedly describes malware and threat actors establishing persistence by adding values under HKCU/HKLM\Software\Microsoft\Windows\CurrentVersion\Run or RunOnce, and by placing executables, scripts, .lnk files, or .bat files in the Windows Startup folder.

T1548.002Bypass User Account ControlEvidence2

The logexts.dat file is obfuscated and includes several User Account Control (UAC) bypasses.

Stealth

10 techniques
T1027Obfuscated Files or InformationEvidence3

The logexts.dat file is obfuscated... Gh0st RAT ... included features such as layers of obfuscation to bypass security protections and hinder analysis... Changes made by Webworm to this version of 9002 RAT are apparently intended to evade detection.

T1027.007Dynamic API ResolutionEvidence1

The heap payload brings the real loader behavior: PEB/export walking for dynamic API resolution

T1036MasqueradingEvidence3

ainstaller-86533005.exe is wearing a Panasonic jacket, and the fit is almost too good. Inspect the file metadata and everything points at PPcNotif.Provider.RequiredApp.exe, Panasonic PC Notification, version 1.10510.0.0.

T1070.001Clear Windows Event LogsEvidence1

Command ID Description 5 Clear Windows Event logs (Application, Security, System)

T1070.004File DeletionEvidence1

The content repeatedly describes threat actors and malware deleting files, tools, scripts, logs, droppers, staged data, and artifacts from compromised systems to cover tracks, remove evidence, or self-delete.

T1140Deobfuscate/Decode Files or InformationEvidence2

The staged buffer goes through two decoder layers. The second decoder starts with key 0x38, walks 0xce0d bytes, XORs each byte, and feeds the decoded byte back into the key. The fully decoded stage then copies 0xae05 bytes from offset 0x2d and XOR-decodes them with: 4@e!c!bSL2AeimnwyD4x.

T1205Traffic SignalingEvidence1

As in the CVE-2022-1040 attack, the attackers built a malware that inspects all ping packets, waiting for a specially crafted ping packet... The ping packet, if validated correctly, can be used to trigger the device into either opening a reverse shell... or it will bind and listen on port 31234... This technique is known as Traffic Signalling, and is detailed as technique T1205 in the MITRE ATT&CK framework.

T1218.011Rundll32Evidence1

thumbs.db decodes to rundll32.dat, whose Edge export implements Sauron behavior.

T1497Virtualization/Sandbox EvasionEvidence1

Timing and environment checks through QueryPerformanceCounter, Sleep, rdtsc, VirtualAllocExNuma, mutex probes, process checks, heap pressure, and COM/object probes

T1620Reflective Code LoadingEvidence3

On execution, the binary allocates a new RWX buffer, copies an encoded stage from its own image, decodes it twice, peels a heap payload with a 19-byte XOR key, and jumps into the loader.

Defense Impairment

1 technique
T1112Modify RegistryEvidence2

Static review of rundll32.dat!Edge shows Sauron service behavior: Uses HKCU\SOFTWARE\Sauron

Credential Access

1 technique
T1056.001KeyloggingEvidence1

the implant implements a keystroke, clipboard, and active-window logger ... configures a DirectInput8 interface to acquire the keyboard device for event capture

Discovery

5 techniques
T1012Query RegistryEvidence1

The content repeatedly describes malware and threat actors querying, enumerating, searching, reading, or checking Windows Registry keys and values, e.g., "ADVSTORESHELL can enumerate registry keys," "APT41 queried registry values to determine items such as configured RDP ports and network configurations," and "Reg may be used to gather details from the Windows Registry of a local or remote system at the command-line interface."

T1033System Owner/User DiscoveryEvidence1

If not, it attempts to elevate its privileges ... BeaconData { ... uint8_t is_admin ... }

T1057Process DiscoveryEvidence1

The content repeatedly describes malware and threat actors obtaining lists of running processes, using utilities such as tasklist, ps, WMI, Get-Process, CreateToolhelp32Snapshot, EnumProcesses, and similar APIs/commands to enumerate active processes on victim systems.

T1082System Information DiscoveryEvidence2

Below is the structure for the data that the implant returns to the C2 server during the beaconing interval: struct BeaconData { ... hostname ... windows_version ... cpu_name ... uptime ... }

T1497Virtualization/Sandbox EvasionEvidence1

Timing and environment checks through QueryPerformanceCounter, Sleep, rdtsc, VirtualAllocExNuma, mutex probes, process checks, heap pressure, and COM/object probes

Lateral Movement

1 technique
T1021Remote ServicesEvidence1

远程桌面 实时屏幕控制、多显示器支持、H.264 编码、自适应质量;Web 远程桌面:基于 WebSocket 实现,支持手机/平板通过浏览器访问远程桌面

Collection

2 techniques
T1056.001KeyloggingEvidence1

the implant implements a keystroke, clipboard, and active-window logger ... configures a DirectInput8 interface to acquire the keyboard device for event capture

T1115Clipboard DataEvidence1

First, it monitors the clipboard using OpenClipboard and GetClipboardData ... The malware also implements a clipboard hijacker ... substituting attacker-defined strings with replacement values.

Command and Control

8 techniques
T1001.001Junk DataEvidence1

Some Backdoor.Oldrea samples use standard Base64 + bzip2... gh0st RAT has used Zlib to compress C2 communications data before encrypting it... HOPLIGHT has utilized Zlib compression to obfuscate the communications payload.

T1095Non-Application Layer ProtocolEvidence1

The C2 channel operates over raw TCP sockets with messages encrypted in both directions.

T1105Ingress Tool TransferEvidence1

WinINet download logic through InternetOpenA, InternetOpenUrlA, InternetReadFile, and InternetCloseHandle

T1132Data EncodingEvidence1

C2 traffic from ADVSTORESHELL is encrypted, then encoded with Base64 encoding... APT19 HTTP malware variant used Base64 to encode communications to the C2 server... APT33 has used base64 to encode command and control traffic.

T1205Traffic SignalingEvidence1

As in the CVE-2022-1040 attack, the attackers built a malware that inspects all ping packets, waiting for a specially crafted ping packet... The ping packet, if validated correctly, can be used to trigger the device into either opening a reverse shell... or it will bind and listen on port 31234... This technique is known as Traffic Signalling, and is detailed as technique T1205 in the MITRE ATT&CK framework.

T1219Remote Access ToolsEvidence3

The ping packet, if validated correctly, can be used to trigger the device into either opening a reverse shell back to the address provided by the attacker... or it will bind and listen on port 31234 to accept a connection from a C2.

T1568.002Domain Generation AlgorithmsEvidence1

Unlike the last cluster however, this variant appears to have been used in an extensive DDNS cluster of infrastructure dating back to at least 2013... that campaign appeared to have slightly different tactics, techniques, and procedures (TTPs), including potentially target-themed domain infrastructure as well as heavily relying on dynamic DNS for C2 domains.

T1573.001Symmetric CryptographyEvidence1

The C2 domain and port remain hardcoded but are now XOR-encrypted ... messages encrypted in both directions ... The implant decrypts C2 messages through the following formula: RC4_decrypt

INDICATORS OF COMPROMISE

IOCs tracked for this family

166 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Full values are available in Mallory.

View more in app
Network
98 tracked

IPs, domains, and DNS infrastructure linked to this family.

Hashes
59 tracked

File hashes (MD5, SHA-1, SHA-256) from samples and reports.

Other
9 tracked

Other indicator types observed in public reporting.

TypeValueLatest sighting
ip.v4●●●●●●●●●●●●View more in app3 days ago
ip.v4●●●●●●●●●●●●View more in app3 days ago
ip.v4●●●●●●●●●●●●View more in app3 days ago
domain●●●●●●●●●●●●View more in app7 days ago
ip.v4●●●●●●●●●●●●View more in app7 days ago
ip.v4●●●●●●●●●●●●View more in app7 days ago
What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching166

Match every observed IP, domain, and hash against your live telemetry.

Threat actor attribution24

Named campaigns wielding this family, with evidence pinned to each claim.

Exploited vulnerabilities3

CVEs this family uses for access and lateral movement.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

MITRE ATT&CK mapping33

Every documented technique, ranked by evidence weight.

Researcher chatter

Reddit, Mastodon, and CTI community discussion around this family.