GHOSTFORM
- Type
- RAT
- Capabilities
- Post exploitationDefense evasionExfiltration
- Delivery
- PhishingLure
- Platforms
- Windows
GHOSTFORM is a .NET-based remote access trojan targeting Windows systems, used by Dust Specter in a January 2026 phishing campaign against Iraqi government officials. The campaign impersonated Iraq’s Ministry of Foreign Affairs and used government-themed social engineering. Some GHOSTFORM samples opened an Arabic Google Forms survey masquerading as an official Ministry questionnaire to distract victims during malicious execution. A GHOSTFORM sample has also been classified as TREEWORLD and associated with the UNC5795 activity cluster.
GHOSTFORM consolidates the command-execution and command-and-control functions of TWINTASK and TWINTALK into a single binary. It retrieves commands from a command-and-control server and executes PowerShell scripts directly in memory, reducing filesystem artifacts. Its combined functionality supports remote command execution and file uploads and downloads. For delayed execution, it uses an effectively invisible Windows form hidden from the taskbar, avoiding delay mechanisms that could attract behavioral-analysis scrutiny. Mutex checks prevent multiple instances from running simultaneously.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The RiroDiog.exe sample documented by Zscaler as GHOSTFORM is classified as TREEWORLD and associated with UNC5795.
The RiroDiog.exe sample documented by Zscaler as GHOSTFORM is classified as TREEWORLD and associated with UNC5795.
Techniques & procedures
16 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
"Threat actors impersonated the country’s Ministry of Foreign Affairs in phishing messages that delivered previously unseen malware..."
Execution
4 techniques
Execution
"...ClickFix lure... to trick victims into running malicious PowerShell commands that download and schedule malware execution."
Attack Chain 2 delivered GHOSTFORM, consolidating all functionality into a single binary using an invisible Windows form for delayed execution, in-memory PowerShell command execution
TWINTASK maintains persistence by polling C:\ProgramData\PolGuid\in.txt every 15 seconds for Base64-encoded PowerShell commands.
"...uses DLL sideloading with legitimate software such as VLC and WingetUI."
Persistence
2 techniques
Persistence
"...ClickFix lure... to trick victims into running malicious PowerShell commands that download and schedule malware execution."
"The malware establishes persistence through registry keys..."
Privilege Escalation
2 techniques
Privilege Escalation
"...ClickFix lure... to trick victims into running malicious PowerShell commands that download and schedule malware execution."
"The malware establishes persistence through registry keys..."
Stealth
8 techniques
Stealth
“constructs a unique URI path at runtime… random 10-character hex string… 6-character checksum… server… randomizing JSON key names on each response… parses fields by position rather than by JSON key name.”
"...sideloaded by the legitimate \"vlc.exe\" binary..."; "...masquerades as an official survey from Iraq's Ministry of Foreign Affairs."; "...host a fake Cisco Webex meeting invitation page..."
"The C2 server also utilized geofencing techniques..."
“Mutex: Creates a mutex with the name Global\_ to ensure that only one instance of GHOSTFORM runs at any given time.”
“launched an invisible Windows form with near-zero opacity, hidden from the taskbar — to delay its own execution”
"...uses DLL sideloading with legitimate software such as VLC and WingetUI."
“The C2 server also utilized geofencing techniques and User-Agent verification.”
GHOSTFORM consolidates this functionality into a single binary featuring in-memory execution and a Google Form lure.
Collection
1 technique
Collection
"...mutex checks to avoid multiple instances."
Command and Control
1 technique
Command and Control
TWINTALK, a C2 orchestrator that beacons via JWT-authenticated HTTPS with randomized delays (108–180 seconds).
Exfiltration
1 technique
Exfiltration
"other attack chain with the GhostForm RAT entailed Google Forms exploitation"
Observables
3 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.