Skip to main content
Mallory
Malware4 associated actors

CastleLoader

Tracked since Nov 25, 2025 · Updated 10 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
Vulns0Associated
Actors4Associated
ATT&CK64Techniques
IOCs234Tracked
Type
Loader
Capabilities
Defense evasion
Delivery
ClickfixFake update
Platforms
Windows

CastleLoader is a multi-stage shellcode loader targeting Windows systems and associated with the TAG-150 malware-as-a-service ecosystem. It retrieves and executes additional malware, providing a delivery layer for information stealers and remote-access tools. Its infection chains use obfuscated PowerShell or batch scripts, legitimate IronPython runtimes, encoded Python code, and in-memory shellcode execution to reduce visible on-disk artifacts. Observed command-and-control tasking delivers RC4-encrypted payloads.

CastleLoader is distributed through ClickFix social engineering, fake software installers, and counterfeit software updates. ClickFix lures persuade users to execute attacker-supplied commands under the pretext of completing verification or resolving a technical problem. Campaigns have also used digitally signed malicious installers and Node.js-based shellcode injectors.

CastleLoader has delivered CastleRAT, CastleStealer, NetSupport RAT, and NeedleStealer components. The Urutyka, Garrigin, and Noidret campaign clusters use related loading infrastructure but deploy different payload combinations. In Noidret activity, follow-on NeedleStealer components include a Rust-based cryptocurrency wallet spoofer and a Go-based malicious browser-extension installer. Credential theft, session theft, cryptocurrency recovery-phrase harvesting, and remote access are functions of these downstream payloads rather than established native CastleLoader capabilities.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Threat actors

Associated threat actors

4 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details →
TAG-150

TAG-150 is behind CastleLoader, CastleBot, and CastleRAT, also tracked as DinDoor, NightshadeC2, and DenoRAT.

via riskyrisky.biz
MuddyWater

Another malware family linked to MuddyWater is a downloader called FakeSet, which the security researchers say was used in recent infections to deliver CastleLoader. CastleLoader is sold as a service to multiple affiliates and cyber crews.

via register securitytheregister.com
TAG-160

Four distinct threat activity clusters have been observed leveraging a malware loader known as CastleLoader, strengthening the previous assessment that the tool is offered to other threat actors under a malware-as-a-service (MaaS) model.

via the hacker newsthehackernews.com
TAG-161

Four distinct threat activity clusters have been observed leveraging a malware loader known as CastleLoader, strengthening the previous assessment that the tool is offered to other threat actors under a malware-as-a-service (MaaS) model.

via the hacker newsthehackernews.com
MITRE ATT&CK

Techniques & procedures

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

Resource Development

2 techniques
T1583.001DomainsEvidence1

"It infiltrates systems via phishing, malvertising, and malicious downloads."

T1585.002Email AccountsEvidence1

"Attackers abuse trusted platforms like Steam and Discord to boost credibility."

Initial Access

5 techniques
T1195Supply Chain CompromiseEvidence1

"VS Code forks... recommend extensions that are non-existent... opening the door to supply chain risks"; "Shai-Hulud supply chain outbreak"; "modified Shai-Hulud worm... npm registry"; "Rogue NuGet package..."; "malicious Rust crate..."; "malicious npm package..."

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"

T1566PhishingEvidence8

“ClickFix” attacks are based on social engineering techniques and initially appear to be legitimate security checks. During the attack, users are presented with a fake verification page containing messages such as “I am not a robot”

T1566.002Spearphishing LinkEvidence7

MITRE ATT&CK ID Technique T1566.002 Phishing: ClickFix/BatClickFix social engineering

T1566.003Spearphishing via ServiceEvidence1

"Lumma loaders were distributed... via legitimate platforms and content delivery networks... The most significant CDNs observed are: Steam workshop, Discord shared files."

Execution

14 techniques
T1053Scheduled Task/JobEvidence2

"Some chains observed by the researchers add obfuscated VBA scripts and scheduled tasks for persistence."

T1053.005Scheduled TaskEvidence2

The first task is a NetSupport RAT delivery ... write to %ProgramData%\CeoliauD\Dabkina, register as a Scheduled Task with logon trigger so the payload runs on next login

T1059Command and Scripting InterpreterEvidence5

In the Noidret campaign, the wallet spoofer is delivered through a Node.js-based injector and a small shellcode component.

T1059.001PowerShellEvidence13

As a result, users unknowingly execute a malicious PowerShell command, enabling malicious loaders to be launched at the next stage on the device.

T1059.003Windows Command ShellEvidence6

The downloaded MSI file executes a .bat file that launches a embedded IronPython installation... Obfuscated .bat file invokes an IronPython shellcode injector.

T1059.005Visual BasicEvidence3

"drop a Visual Basic Script (VBScript) responsible for launching ModeloRAT"; "obfuscated VBA scripts"

T1059.006PythonEvidence8

“It then retrieves IronPython, which runs compressed and Base64-encoded code that downloads later stages.”

T1059.007JavaScriptEvidence4

A NodeJS injector script ... decrypts and loads an 8 KB shellcode stub, which then reflectively injects the Rust payload.

T1059.010AutoHotKey & AutoITEvidence1

“TA0002: Execution T1059.010: AutoHotKey & AutoIT Execution via AutoIt script (freely.a3x)”

T1106Native APIEvidence2

pythonw.exe (windowless Python interpreter) -> Runs dynamically generated Python script -> Decrypts data1.pak (AES-CBC, key derived from NSIS script or embedded) -> VirtualAlloc + RtlMoveMemory + function pointer execution

T1129Shared ModulesEvidence1

In this case, the bytecode file is another in-memory loader that uses the Windows ctypes interface to execute shellcode received from a local named pipe.

T1204User ExecutionEvidence16

“ClickFix-style social engineering, tricking a user into running a command through the Windows Run dialog”

T1204.001Malicious LinkEvidence1

"...relies on affiliates, social engineering, fake cracked software, and fake CAPTCHA “ClickFix” lures." / "ClickFix pages trick users into pasting malicious PowerShell commands."

T1204.002Malicious FileEvidence6

“The infection begins with a ClickFix lure that instructs a target to launch a command.”

Persistence

4 techniques
T1053Scheduled Task/JobEvidence2

"Some chains observed by the researchers add obfuscated VBA scripts and scheduled tasks for persistence."

T1053.005Scheduled TaskEvidence2

The first task is a NetSupport RAT delivery ... write to %ProgramData%\CeoliauD\Dabkina, register as a Scheduled Task with logon trigger so the payload runs on next login

T1547.001Registry Run Keys / Startup FolderEvidence3

startup_method Persistence mechanism: 1=Registry Run, 2=Startup LNK, 3=Scheduled Task

T1547.009Shortcut ModificationEvidence2

startup_method Persistence mechanism: 1=Registry Run, 2=Startup LNK, 3=Scheduled Task

Privilege Escalation

8 techniques
T1053Scheduled Task/JobEvidence2

"Some chains observed by the researchers add obfuscated VBA scripts and scheduled tasks for persistence."

T1053.005Scheduled TaskEvidence2

The first task is a NetSupport RAT delivery ... write to %ProgramData%\CeoliauD\Dabkina, register as a Scheduled Task with logon trigger so the payload runs on next login

T1055Process InjectionEvidence6

The python script downloads another python script from the C2 server that is responsible for injecting CastleLoader’s stage 2 shellcode... The CastleStealer payload is stored in the .data segment of the loader and gets injected into memory.

T1055.004Asynchronous Procedure CallEvidence1

The second task is in-memory only ... launch method 7 for APC injection, fetching net40.bin and injecting the resulting .NET binary into a target process without ever touching disk

T1055.012Process HollowingEvidence2

6 Process hollowing - the launcher calls CreateProcessW with the CREATE_SUSPENDED flag ... copies the malicious PE headers and each section into the target ... sets the suspended thread ... to the payload's entry point

T1547.001Registry Run Keys / Startup FolderEvidence3

startup_method Persistence mechanism: 1=Registry Run, 2=Startup LNK, 3=Scheduled Task

T1547.009Shortcut ModificationEvidence2

startup_method Persistence mechanism: 1=Registry Run, 2=Startup LNK, 3=Scheduled Task

T1548Abuse Elevation Control MechanismEvidence1

run_as_admin The malware will relaunch its parent via cmd.exe /c <parent_process> via ShellExecuteW with the "runas" verb to elevate it as Administrator.

Stealth

19 techniques
T1027Obfuscated Files or InformationEvidence10

used caret-obfuscated commands ... The shellcode loader used triple-layer encoding (Base64, zlib, UTF-32) and Cyrillic character substitution for obfuscation and fetched an RC4-encrypted payload

T1027.002Software PackingEvidence1

“TA0005: Defense Evasion T1027.002: Software Packing Multi-stage: Inno Setup → AutoIt → PE injection”

T1027.010Command ObfuscationEvidence1

"Example command line: cmd.exe /c start /min powershell [Text.Encoding]::UTF8.GetString(...hex...) | powershell"

T1027.013Encrypted/Encoded FileEvidence1

Tasks return encrypted payloads... Each payload from a specific tasking has a unique RC4 key... delivered as a ZIP archive ... alongside ... two AES-GCM encrypted files.

T1036MasqueradingEvidence11

Observations indicate that such campaigns make use of fake interfaces impersonating Google reCAPTCHA and Cloudflare verification pages, as well as deceptive pages associated with Google Meet, QR code services and other well-known platforms.

T1036.005Match Legitimate Resource Name or LocationEvidence2

This directory is also created under %LocalAppData% and mimics a legitimate Python installation structure, depending on the runtime variant being used (embedded CPython or IronPython).

T1055Process InjectionEvidence6

The python script downloads another python script from the C2 server that is responsible for injecting CastleLoader’s stage 2 shellcode... The CastleStealer payload is stored in the .data segment of the loader and gets injected into memory.

T1055.004Asynchronous Procedure CallEvidence1

The second task is in-memory only ... launch method 7 for APC injection, fetching net40.bin and injecting the resulting .NET binary into a target process without ever touching disk

T1055.012Process HollowingEvidence2

6 Process hollowing - the launcher calls CreateProcessW with the CREATE_SUSPENDED flag ... copies the malicious PE headers and each section into the target ... sets the suspended thread ... to the payload's entry point

T1070Indicator RemovalEvidence2

Deletes RunMRU registry key to cover its tracks: HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU

T1070.004File DeletionEvidence3

Strips Zone.Identifier ADS (Mark-of-the-Web) to evade SmartScreen

T1140Deobfuscate/Decode Files or InformationEvidence4

Embedded JavaScript dynamically fetches remote content from this endpoint, applies ROT13 to decode the response... Prior to Base64 decoding, the script replaces specific Cyrillic characters with their Latin equivalents... using Base64 encoding, XOR decryption... The first 64 bytes of the downloaded blob are treated as the RC4 key... all C2 communication is encrypted via the symmetric ChaCha algorithm.

T1218System Binary Proxy ExecutionEvidence4

CastleLoader supports 14 launch methods for executing payloads, including ... rundll32.exe ... msiexec.exe

T1480.002Mutual ExclusionEvidence1

The instance ID is used both as the CreateMutexW name (single-instance gate) and as the filename of the install marker

T1497Virtualization/Sandbox EvasionEvidence8

It uses anti-analysis techniques, including cpuid instructions to detect VMware, VirtualBox, and Parallels virtual environments.

T1497.001System ChecksEvidence1

The first thing the binary does is a Russian-locale check. The MUI languages list ... is compared against the literal “ru-RU”, and if any installed UI language matches, execution returns immediately.

T1564.001Hidden Files and DirectoriesEvidence3

The traffic1.exe is a Nullsoft installer that unpacks a Python runtime (ipyw32.exe) and an encoded script (antimony.txt) hidden under the system’s Policies folder.

T1564.003Hidden WindowEvidence1

The start "" /min launches the next stage minimized, so the victim never sees a command window appear.

T1620Reflective Code LoadingEvidence6

After substituting and decoding the Base64 blobs, this Python script implements a classic fileless shellcode, using Base64 encoding, XOR decryption, and direct Windows API calls via ctypes to execute payloads entirely in memory.

Defense Impairment

3 techniques
T1553Subvert Trust ControlsEvidence2

Arctic Wolf also recommends application allowlisting and preventing unsigned or unexpectedly signed binaries from running in user-writable locations.

T1553.002Code SigningEvidence4

We found multiple digitally signed installers pointing to the same infrastructure... The cluster has been observed using fraudulently obtained code-signing certificates... to bypass endpoint controls.

T1685Disable or Modify ToolsEvidence1

In some cases, malicious components may establish persistence on the system, attempt to weaken the operation of security software

Credential Access

3 techniques
T1539Steal Web Session CookieEvidence1

For Chromium-family browsers the stealer reads Login Data ... cookies.sqlite ... Discord is targeted ... Telegram sessions are stolen wholesale by copying the entire tdata directory.

T1555Credentials from Password StoresEvidence1

For Chromium-family browsers the stealer reads Login Data (the SQLite password store), cookies.sqlite, and Local State ... CryptUnprotectData specifically to decrypt it.

T1555.003Credentials from Web BrowsersEvidence1

MITRE ATT&CK maps this behavior primarily to Credential Access (TA0006), specifically T1555 – Credentials from Password Stores and its sub-technique T1555.003 – Credentials from Web Browsers, covering theft of saved browser passwords, cookies, and autofill data.

Discovery

6 techniques
T1082System Information DiscoveryEvidence3

The loader issues a get_tasks request to its C2 server using generated identifiers of the infected host... along with system profiling data (username, computer_name, domain_name, windows_version, arch, active_av and active_list).

T1497Virtualization/Sandbox EvasionEvidence8

It uses anti-analysis techniques, including cpuid instructions to detect VMware, VirtualBox, and Parallels virtual environments.

T1497.001System ChecksEvidence1

The first thing the binary does is a Russian-locale check. The MUI languages list ... is compared against the literal “ru-RU”, and if any installed UI language matches, execution returns immediately.

T1518Software DiscoveryEvidence2

get_installed_av Enumerate installed AV products via WMI root\SecurityCenter2 using CoCreateInstance and CoSetProxyBlanket

T1518.001Security Software DiscoveryEvidence1

"The batch script does some initial environment checking... tasklist | findstr 'SophosHealth ... AvastUI AVGUI'"

T1614System Location DiscoveryEvidence1

MITRE ATT&CK Mapping ... Discovery System Location Discovery T1614 Checks computer location settings

Collection

3 techniques
T1113Screen CaptureEvidence3

It can also capture screenshots of the desktop via the GDI BitBlt pipeline.

T1115Clipboard DataEvidence1

When the user checks the “I'm not a robot” box, two things happen. First, a payload gets copied to the clipboard via the classic document.execCommand(“copy”).

T1560Archive Collected DataEvidence3

After decryption, the buffer resolves with a ZIP archive containing the resources of the final payload.

Command and Control

6 techniques
T1071Application Layer ProtocolEvidence5

CastleLoader queries its C2 via a get_tasks command. Tasks return encrypted payloads... By replicating the get_tasks request... we were able to decrypt the HTTP response and confirm the payload manifest and downstream C2s...

T1071.001Web ProtocolsEvidence6

For the initial configuration fetch, the malware issues a GET request to a hardcoded base URL... the loader contacts only the base endpoint and transmits encrypted data within the HTTP POST request body.

T1071.004DNSEvidence1

"A failed ping to a fake random domain leaves a detectable DNS trace."

T1105Ingress Tool TransferEvidence21

“It abuses Windows finger.exe to retrieve a batch script… [which] retrieves IronPython… code that downloads later stages, including CastleLoader and CastleRAT.”

T1568Dynamic ResolutionEvidence1

“…rapidly migrating to new hosting providers and adapting alternative loaders and delivery techniques”.

T1573Encrypted ChannelEvidence2

Apart from the malware's initial GET request, all C2 communication is encrypted via the symmetric ChaCha algorithm.

Exfiltration

2 techniques
T1041Exfiltration Over C2 ChannelEvidence2

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

T1567Exfiltration Over Web ServiceEvidence1

Exfiltration: The log is transmitted to the operator, frequently via the Telegram Bot API, which has become the dominant C2 channel because it is cheap, resilient to takedown, and blends into normal traffic.

Indicators of compromise

Observables

234 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Activity feed

Recent activity

74 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
splunk researchNews · Nov 12, 2026Detection: Windows CMD Evasive Patterns Through Native Commands | Splunk Security ContentNamed only in a supporting reference URL. The detection text does not explicitly attribute the described command-obfuscation or self-deletion techniques to CastleLoader.Read more ↗rogueauthority blogNews · Oct 18, 2026A “setup.iso” that runs Python from a text file, then steals your browser and hands over your PC - rogueauthority.orgReferenced as a tentative identification for the observed loader architecture, which progresses through shellcode and reflective PE loading to a command-driven bot delivering StealC and NetSupport. The report explicitly states that the family attribution is behavioral and unconfirmed; code-similarity analysis did not establish a CastleLoader match.Read more ↗cyber security newsNews · Oct 9, 2026CastleStealer Malware Uses Browser Protection Bypass and Remote Shell to Expand Attacker AccessMalware loader launched by a Python script that victims were socially engineered into executing during the April 2026 ClickFix campaign associated with CastleStealer. The content provides no further technical details about its capabilities.Read more ↗flashpoint blogNews · Oct 8, 2026CastleStealer: An Emerging Infostealer Growing More Sophisticated | FlashpointLoader used in CastleStealer's April 2026 delivery chain. ClickFix social engineering delivered a Python script that executed CastleLoader. Analysts assess that the loaders delivering CastleStealer appear to be developed in-house, with substantial anti-analysis and stealth capabilities; the content does not specify CastleLoader's individual implementation techniques.Read more ↗
+64 more in the timeline. Sign up to see them
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Mallory platform

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 matching234Match every observed IP, domain, and hash against your live telemetry.
Associated threat actors4Groups linked to this family, with evidence pinned to each claim.
Associated vulnerabilitiesCVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping64Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.