CastleRAT
- Type
- RAT
- Capabilities
- PersistencePost exploitationDefense evasion
- Delivery
- PhishingLanding pageLure
- Platforms
- Windows
CastleRAT, also tracked as NightshadeC2, is a Windows remote access Trojan known since 2025. It enables attackers to remotely control compromised systems and maintain persistent access within enterprise environments. Its deployment flexibility and detection-evasion mechanisms support post-exploitation activity, including intrusions that facilitate subsequent ransomware attacks and data theft. Observed samples use a Steam Community profile as a dead-drop resolver to locate command-and-control infrastructure.
CastleRAT has been deployed by unattributed cybercriminal operators in the Fake Freight Portals campaign targeting United States trucking and logistics organizations. This campaign impersonates DAT and TIMOCOM freight services and presents booking documents or updated terms as download lures. A Windows shortcut disguised as a PDF executes software from an attacker-controlled WebDAV share, leading to installation of the legitimate MeshCentral remote-administration agent. Operators subsequently use remote access to retrieve BitLocker recovery passwords, configure Microsoft Defender exclusions, and deploy CastleRAT. Observed deployment included relaunching CastleRAT through a User Account Control bypass. These preparatory actions were operator activity; file encryption was not observed in the documented intrusion.
In November 2026, international authorities disrupted CastleRAT infrastructure under Operation Endgame, seizing 120 associated servers and 39 domains.
Associated vulnerabilities
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.
Associated threat actors
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.
Techniques & procedures
50 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
5 techniques
Initial Access
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
Execution
9 techniques
Execution
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.”
WebDAV shortcut deploys MeshCentral and CastleRAT
CastleRAT TTPs list includes “Execution T1559 Inter-Process Communication,” and describes a “hidden command interface… through redirected inter-process communication pipes.”
Persistence
3 techniques
Persistence
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).
Privilege Escalation
4 techniques
Privilege Escalation
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).
C:\Users\SysmonDrivers.exe written and relaunched through ComputerDefaults.exe
Stealth
8 techniques
Stealth
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.
Defense Impairment
1 technique
Defense Impairment
Event 5007 preference changes adding exclusions for C:\Users and SysmonDrivers.exe
Credential Access
4 techniques
Credential Access
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)
Discovery
3 techniques
Discovery
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
Lateral Movement
1 technique
Lateral Movement
By adopting CastleRAT and ChainShell, MuddyWater gains access to advanced capabilities including: Hidden Virtual Network Computing (HVNC) for stealth system control
Collection
6 techniques
Collection
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.
Command and Control
11 techniques
Command and Control
«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.
CastleRAT fetching a Steam Community profile as a dead-drop resolver before connecting to 87.120.104.213 port 1010
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
Exfiltration
1 technique
Exfiltration
Rather than enumerating Active Directory or moving laterally, the actor exfiltrated browser credentials
Impact
1 technique
Impact
CastleRAT ... utilisé pour chiffrer des données, paralyser des systèmes IT et extorquer des rançons.
Observables
39 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
106 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.