gh0st RAT
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."
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.
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.
These attacks began with exploitation of CVE-2022-3236 which is detailed in Sophos Security Advisory sophos-sa-20220923-sfos-rce.
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.”
“RAT malware such as Gh0stRAT and PlugX often used by Chinese 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.
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.
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.
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.
"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."
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.
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.
Techniques & procedures
33 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
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
Execution
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.
Persistence
5 techniques
Persistence
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.
Static review of rundll32.dat!Edge shows Sauron service behavior: Uses HKCU\SOFTWARE\Sauron
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.
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
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
Privilege Escalation
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.
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
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.
Stealth
10 techniques
Stealth
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.
The heap payload brings the real loader behavior: PEB/export walking for dynamic API resolution
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.
Command ID Description 5 Clear Windows Event logs (Application, Security, System)
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.
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.
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.
thumbs.db decodes to rundll32.dat, whose Edge export implements Sauron behavior.
Defense Impairment
1 technique
Defense Impairment
Credential Access
1 technique
Credential Access
Discovery
5 techniques
Discovery
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."
If not, it attempts to elevate its privileges ... BeaconData { ... uint8_t is_admin ... }
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.
Lateral Movement
1 technique
Lateral Movement
Collection
2 techniques
Collection
Command and Control
8 techniques
Command and Control
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.
The C2 channel operates over raw TCP sockets with messages encrypted in both directions.
WinINet download logic through InternetOpenA, InternetOpenUrlA, InternetReadFile, and InternetCloseHandle
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.
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.
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.
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.
IOCs tracked for this family
166 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Full values are available in Mallory.
IPs, domains, and DNS infrastructure linked to this family.
File hashes (MD5, SHA-1, SHA-256) from samples and reports.
Other indicator types observed in public reporting.
Recent activity
157 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
Remote access trojan with publicly available source code that has been reused by multiple groups. In the COM-focused example, it uses Task Scheduler COM interfaces to create scheduled tasks for persistence instead of launching schtasks.exe directly.
A remote access trojan referenced through shared infrastructure; the article also notes Gh0stKCP as a UDP-based protocol that ValleyRAT sometimes uses for C2 traffic.
A remote access trojan referenced in connection with overlapping infrastructure from prior activity; no direct use in the current WhatsApp VBScript campaign is confirmed in the content.
Referenced as a remote access trojan associated with infrastructure overlaps observed in the campaign; the article does not say Gh0st RAT itself was deployed here.
The version that knows your environment.
Match every observed IP, domain, and hash against your live telemetry.
Named campaigns wielding this family, with evidence pinned to each claim.
CVEs this family uses for access and lateral movement.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Every documented technique, ranked by evidence weight.
Reddit, Mastodon, and CTI community discussion around this family.