CastleBot is a Windows malware-loading framework associated with GrayBravo, formerly tracked as TAG-150, and used in malware-as-a-service operations. Its architecture comprises a shellcode stager/downloader, a loader, and a core backdoor. The loader injects the core module, which communicates with command-and-control infrastructure to retrieve tasks and download and execute additional executable and DLL payloads. CastleBot has distributed WARMCOOKIE and information stealers, including Rhadamanthys, enabling follow-on compromise through separately delivered malware.
Distribution methods include fraudulent GitHub repositories masquerading as legitimate software and ClickFix social engineering, which persuades victims to execute malicious commands themselves. CastleBot also employs process injection and in-memory defense evasion. It has been observed patching the Windows NtManageHotPatch function to return an unsupported-status response, bypassing hotpatch-related interference with process hollowing and Early Bird APC execution. CastleBot is distinct from the related CastleLoader and CastleRAT families within GrayBravo’s toolset.
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
eSentire described changes to TAG-150's tradecraft and its CastleLoader, CastleBot, and CastleRAT malware strains.
7 distinct techniques documented for this family, organized by ATT&CK tactic.
Infections are most commonly initiated through Cloudflare-themed “ClickFix” phishing attacks or fraudulent GitHub repositories masquerading as legitimate applications.
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.
Both versions spread by tricking users into pasting malicious commands through a technique called ClickFix, which uses fake fixes and login prompts.
Process injection sits at the top of the MITRE ATT&CK heap for the second year running. Picus Labs’ Red Report 2025 found T1055 in roughly 31% of the million-plus malware samples they examined.
Attackers spawn a process suspended, queue an APC into its main thread before the AV/EDR’s user-mode hooks have loaded, then resume. The payload runs before the security product begins.
Process injection sits at the top of the MITRE ATT&CK heap for the second year running. Picus Labs’ Red Report 2025 found T1055 in roughly 31% of the million-plus malware samples they examined.
Attackers spawn a process suspended, queue an APC into its main thread before the AV/EDR’s user-mode hooks have loaded, then resume. The payload runs before the security product begins.
The criminals use Tox Chat, the encrypted comms service that is becoming the tool favored by some malware operators for command and control
These malware families are frequently observed as initial infection vectors that deliver a wide range of secondary payloads... CastleRAT's core functionality consists of... downloading and executing additional payloads.
14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.