Skip to main content
Mallory
MalwareRansomwareUsed by 3 actors

CastleRAT

CastleRAT is a remote access trojan/backdoor first observed in early 2025 and associated primarily with the GrayBravo malware-as-a-service ecosystem, formerly tracked as TAG-150. It has been reported in both Python and compiled C variants; the C build is described as more capable and may include additional features. CastleRAT has been delivered via CastleLoader and through ClickFix-style social engineering, including fake CAPTCHA, verification, login, and software-fix prompts that trick users into pasting malicious commands. Reported infection chains include PowerShell-delivered MSI droppers that install runtimes such as Python or Deno and ultimately load CastleRAT, sometimes in memory. GrayBravo activity has also used Steam Community pages as covert dead-drop/C2 resolvers for CastleRAT infrastructure.

Documented capabilities include system reconnaissance and collection of host identifiers, command execution, remote shell access, file download and execution, further payload deployment, and system data exfiltration. Reported surveillance and theft functions include clipboard monitoring, keylogging, screenshot capture, and theft of browser credentials in the C variant. CastleRAT communications have been described as using RC4-encrypted/custom binary C2 protocols with hard-coded keys, and some reporting notes use of legitimate web platforms as dead-drop locations for secondary configuration and tasking. Persistence has been observed via scheduled tasks configured to relaunch the malware at startup.

CastleRAT has been linked to financially motivated GrayBravo/TAG-150 operations and broader CastleLoader campaigns distributing malware such as StealC, RedLine, Rhadamanthys, MonsterV2, SectopRAT, NetSupport RAT, WarmCookie, and Lumma-related payloads. Multiple reports also describe overlap with Iranian activity: JUMPSEC reported that MuddyWater operated at least two CastleRAT builds against Israeli targets, and a misconfigured C2 server exposed both MuddyWater tooling and TAG-150 CastleRAT samples. This overlap has been assessed as potentially complicating attribution, with CastleRAT detections possibly representing either Russian-speaking criminal MaaS activity or Iranian intelligence collection. Reported targeting includes Israeli targets, and GrayBravo campaigns have targeted sectors such as logistics; other reporting ties CastleLoader/CastleRAT activity to U.S. government agencies, critical infrastructure, IT firms, and logistics companies.

High-confidence indicators and artifacts directly mentioned in the content include use of Steam Community pages as covert C2 resolvers; scheduled-task persistence; querying ip-api[.]com for victim geolocation/network details; and the following CastleRAT-related SHA-256 values published by CYFIRMA: 963c012d56c62093d105ab5044517fdcce4ab826f7782b3e377932da1df6896d, f2ff4cbcd6d015af20e4e858b0f216c077ec6d146d3b2e0cbe68b56b3db7a0be, 4ef63fa536134ad296e83e37f9d323beb45087f7d306debdc3e096fed8357395, and 282fa3476294e2b57aa9a8ab4bc1cc00f334197298e4afb2aae812b77e755207.

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.

THREAT ACTORS

Groups observed using it

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

View more details
GrayBravo

A team of data thieves has doubled down by developing its CastleRAT malware in both Python and C variants. Both versions spread by tricking users into pasting malicious commands through a technique called ClickFix, which uses fake fixes and login prompts.

via register securitygo.theregister.com
MuddyWater

Installer_v1.21.66.msi was built on February 13, 2026, and contains the 'Amy Cherne' code-signing certificate referenced in research tied to MuddyWater, and Russian cybercrime actors using CastleRAT.

via huntio bloghunt.io
Velvet Tempest

...Velvet Tempest ... used a ClickFix lure ... to drop payloads like DonutLoader and CastleRAT.

via the hacker newsthehackernews.com
MITRE ATT&CK

Techniques & procedures

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

Initial Access

2 techniques
T1195.001Compromise Software Dependencies and Development ToolsEvidence1

"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"

T1566PhishingEvidence1

The ClickFix technique, first spotted last year, uses fake login screens from popular applications and web services, telling the user they have a problem and need to fix it.

Execution

6 techniques
T1059Command and Scripting InterpreterEvidence2
TacticExecution

...a pair of CastleRAT trojan variants enabling system data exfiltration, command execution, and further payload deployment...

T1059.001PowerShellEvidence3
TacticExecution

They instruct the operator to open the Windows Run dialog box or PowerShell terminal and cut and paste malware code into the system to "fix" the problem.

T1059.006PythonEvidence1
TacticExecution

Using a fake CAPTCHA verification lure on a phony website promoting a $TEMU airdrop scam to trigger the execution of a PowerShell command that runs arbitrary Python code retrieved from a server.

T1204User ExecutionEvidence3
TacticExecution

Both versions spread by tricking users into pasting malicious commands through a technique called ClickFix, which uses fake fixes and login prompts.

T1204.002Malicious FileEvidence1
TacticExecution

The PowerShell command executed after pasting and running the supposed installation command for Claude Code fetches a legitimate Chrome extension package within a malicious HTML Application (HTA) file, which then launches an obfuscated .NET loader for Alien in memory.

T1559Inter-Process CommunicationEvidence1
TacticExecution

CastleRAT TTPs list includes “Execution T1559 Inter-Process Communication,” and describes a “hidden command interface… through redirected inter-process communication pipes.”

T1548.002Bypass User Account ControlEvidence1

CastleRAT TTPs list includes “Privilege Escalation T1548.002… Bypass User Account Control.” MuddyWater also lists T1548.002.

Stealth

3 techniques
T1070.004File DeletionEvidence1
TacticStealth

Both will establish a presence and download additional malware via a remote shell, and the Python build can self-delete if necessary.

T1218.011Rundll32Evidence1
TacticStealth

CastleRAT TTPs list includes “Defense Evasion T1218.011… Rundll32.” MuddyWater also lists “T1218.011… Rundll32.”

T1620Reflective Code LoadingEvidence1
TacticStealth

The latest iteration supports dynamic AppleScript payloads and in-memory execution to evade static analysis, bypass behavioral detections, and complicate incident response.

T1056.001KeyloggingEvidence3

The C build is the most adept - capable of harvesting keystrokes, taking screen captures, and registering persistence.

Discovery

2 techniques
T1082System Information DiscoveryEvidence1
TacticDiscovery

Black Shrantac TTPs list includes “Discovery T1082 System Information Discovery.” CastleRAT describes collecting “system metadata” and lists “Discovery T1082.” MuddyWater lists “Discovery T1082.”

T1083File and Directory DiscoveryEvidence1
TacticDiscovery

...the C-based iteration, which could facilitate ... file uploads and downloads...

Collection

5 techniques
T1056.001KeyloggingEvidence3

The C build is the most adept - capable of harvesting keystrokes, taking screen captures, and registering persistence.

T1113Screen CaptureEvidence3

...the C-based iteration, which could facilitate ... screenshot capturing...

T1115Clipboard DataEvidence2

...the C-based iteration, which could facilitate ... cryptocurrency clipping...

T1125Video CaptureEvidence1

CastleRAT TTPs list includes “Collection T1125 Video Capture.”

T1185Browser Session HijackingEvidence1

CastleRAT TTPs list includes “Collection T1185 Browser Session Hijacking,” and describes manipulating browser behavior by terminating sessions and silently spawning Chromium instances.

T1071Application Layer ProtocolEvidence3

The criminals use Tox Chat, the encrypted comms service that is becoming the tool favored by some malware operators for command and control

T1102.001Dead Drop ResolverEvidence1

CastleRAT TTPs list includes “T1102.001 Web Service: Dead Drop Resolver,” and describes “leveraging legitimate web platforms as dead-drop locations for secondary configuration and tasking.”

T1105Ingress Tool TransferEvidence5

Both will establish a presence and download additional malware via a remote shell

T1219Remote Access ToolsEvidence1

Both will establish a presence and download additional malware via a remote shell

Exfiltration

1 technique
T1041Exfiltration Over C2 ChannelEvidence1

...a pair of CastleRAT trojan variants enabling system data exfiltration, command execution, and further payload deployment...

INDICATORS OF COMPROMISE

IOCs tracked for this family

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

View more in app
Network
2 tracked

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

Hashes
4 tracked

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

TypeValueLatest sighting
ip.v4●●●●●●●●●●●●View more in app3 months ago
hash.sha256●●●●●●●●●●●●View more in app6 months ago
hash.sha256●●●●●●●●●●●●View more in app6 months ago
hash.sha256●●●●●●●●●●●●View more in app6 months ago
hash.sha256●●●●●●●●●●●●View more in app6 months ago
domain●●●●●●●●●●●●View more in app9 months 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 matching6

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

Threat actor attribution3

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

Exploited vulnerabilities

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 mapping24

Every documented technique, ranked by evidence weight.

Researcher chatter

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