CastleBot
CastleBot is a malware framework and loader operation, commonly described as a Malware-as-a-Service offering. Reporting states it comprises three components: a shellcode stager/downloader, a loader, and a core backdoor. The loader injects a core module that contacts command-and-control infrastructure to retrieve tasks and to download and execute additional DLL, EXE, and PE payloads. CastleBot has been observed dropping follow-on malware including infostealers, Rhadamanthys, and WARMCOOKIE. IBM X-Force specifically reported CASTLEBOT distributing WARMCOOKIE.
CastleBot is associated with the threat actor tracked as TAG-150 and later named GrayBravo by Recorded Future. Content states this actor has been active since at least March 2025 and has developed multiple custom malware families including CastleLoader, CastleBot, and CastleRAT. CastleBot and related tooling have been spread through Cloudflare-themed ClickFix social-engineering attacks and bogus GitHub repositories masquerading as legitimate software, with victims tricked into executing malicious PowerShell commands themselves.
Operationally, CastleBot is linked to a broader GrayBravo/TAG-150 ecosystem using multi-tiered infrastructure. The content does not provide CastleBot-specific C2 indicators, but places it within infrastructure also used for other GrayBravo malware families. One technical note in the content states that Pure Crypter and CastleBot patched NtManageHotPatch in memory to return STATUS_NOT_SUPPORTED in order to restore classic RunPE and Early Bird reliability on Windows 11 24H2 / Server 2022 24H2 systems after Microsoft hotpatch-related mitigations.
High-confidence behaviors directly mentioned in the content are: staged infection architecture; downloader/loader/backdoor functionality; task retrieval from C2; download-and-execute of DLL/EXE/PE payloads; use in MaaS-style operations; propagation via ClickFix and fake GitHub repositories; and association with TAG-150/GrayBravo. Targeting is not uniquely defined for CastleBot itself in the content, though the associated actor has targeted victims through broad social-engineering campaigns and has been linked elsewhere in the same ecosystem to logistics-themed and other lures.
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.
Groups observed using it
1 distinct threat actor attributed by public researchers. Open in Mallory to see the full evidence chain and overlapping campaigns.
Since emerging in March 2025, TAG-150 has deployed multiple likely self-developed malware families, starting with CastleLoader and CastleBot, and most recently CastleRAT...
Techniques & procedures
7 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
Execution
2 techniques
Execution
Bumblebee’s injection module ( dij command for DLL Injection) dynamically resolves NtQueueApcThread at runtime and uses it to inject a payload DLL... While the static import of NtQueueApcThread is flagged by multiple scanners, a runtime GetProcAddress lookup on ntdll.dll is invisible to import-table analysis.
Privilege Escalation
2 techniques
Privilege Escalation
Stealth
2 techniques
Stealth
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
Malware that patches NtManageHotPatch in memory to bypass Windows mitigation and restore Early Bird APC and RunPE execution reliability.
Bot malware developed by the GrayBravo threat actor, likely used for automated malicious activities.
CastleBot is a custom malware family developed by GrayBravo, likely functioning as a botnet component within their ecosystem.
CastleBot is a modular malware framework consisting of a stager/downloader, loader, and a core backdoor, used to inject modules and retrieve tasks from C2 servers.
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.