XWorm
- Type
- RAT
- Capabilities
- Credential theftKeyloggingExfiltrationPersistenceLateral movementPost exploitationDefense evasionReconnaissanceProcess injectionDDOS
- Delivery
- PhishingMalspamLanding pageLureUSB
- Platforms
- Windows
XWorm is a commercially distributed .NET remote access Trojan targeting Windows systems. Available to multiple operators through a malware-as-a-service model, it is used in both criminal campaigns and operations against military targets. Its capabilities include remote shell command execution, file and process management, plugin loading, keylogging, clipboard monitoring, screenshot capture, webcam access, hidden VNC, browser credential theft, reverse proxying, distributed denial-of-service attacks, and USB propagation. Some versions also support optional ransomware functionality; these features are not necessarily exercised in every infection.
XWorm gathers victim and host information, including usernames, hardware details, antivirus status, and webcam availability. Analyzed variants use AES-encrypted command-and-control communications over TCP and encrypted configuration data. Infection chains frequently employ obfuscated JavaScript or VBScript, hidden PowerShell execution, and in-memory .NET loading. Some campaigns inject XWorm into legitimate Windows processes, while others execute it through .NET application-domain loading. Registry-based startup persistence has also been observed. Delivery components can add anti-analysis checks and security-control interference, although these behaviors may belong to an accompanying loader rather than XWorm itself.
Distribution commonly relies on phishing emails, malicious archives, script attachments disguised as PDF documents, and attacker-controlled landing pages hosted on legitimate cloud or content-delivery services. Lures include tax documents, invoices, payment receipts, business correspondence, Social Security notices, and judicial notifications. Malicious Excel attachments have also been used. Associated delivery tools include UpCrypter, Cruciferra, and reused .NET loaders.
Campaigns have targeted Brazilian users and Colombian organizations, alongside broader international distribution. In June 2024, Storm-2049, also tracked as UAC-0184, used XWorm and Remcos to compromise at least 50 Ukrainian military devices. XWorm's availability to unrelated operators means its presence alone does not establish threat-actor attribution.
Associated vulnerabilities
7 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
15 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
In June 2024, Storm-2049 (UAC-0184) used Xworm and Remcos RAT ... to compromise at least 50 Ukrainian military devices.
In June 2024, Storm-2049 (UAC-0184) used Xworm and Remcos RAT ... to compromise at least 50 Ukrainian military devices.
XWorm: Remote access trojan / post-exploitation tool. Used after Tsundere Bot to maintain access and execute attacker commands.
Persistence is achieved into the machine using a malware build detected as XWorm.
NullBulge ... reportedly uses publicly available tools ... like Async RAT and Xworm before delivering LockBit payloads built using the leaked Lockbit builder.
XWorm is among the most popular RATs, used by many threat actors including TA 558.
+9 more in the app. View in Mallory
Techniques & procedures
152 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
3 techniques
Reconnaissance
“The emails include… geofencing and IP filtering…”
или анализ Passive DNS (T1596.001, Reconnaissance)... Passive DNS - агрегированная история DNS-резолвов
За это время аналитик может обнаружить сервер через сканирование баз данных Scan Databases (T1596.005, Reconnaissance)
Resource Development
10 techniques
Resource Development
These fake CAPTCHAs arrive via phishing emails, URL redirection or malvertisement, or SEO poisoning.
MITRE ATT&CK Mapping ... Resource Development Acquire Infrastructure: Domains T1583.001 joscramp[.]top + 7 co-hosted domains via Dynadot
MITRE ATT&CK T1583.003 — Virtual Private Server (PFCLOUD, ThinkHuge, OMEGATECH)
MITRE ATT&CK Mapping ... Resource Development Acquire Infrastructure: Server T1583.004 Google Cloud VM with custom DNS/mail infrastructure
Proofpoint is tracking a cluster of cybercriminal threat activity leveraging Cloudflare Tunnels to deliver malware. Specifically, the activity abuses the TryCloudflare feature that allows an attacker to create a one-time tunnel without creating an account.
“GTIG observed BREEZE COMET using compromised Brazilian small government websites to stage RMM tools... [and] as C2 endpoints.”
NJRat/Xworm Botnet Servers ... Extremely high number of running services (typically 200-400) ... At least one dns.name pointing to an ngrok address
“Using compromised Brazilian small government websites to stage RMM tools ... and backdoors ... as well as using them as C2 endpoints.”
T1588.001 — Obtain Capabilities: Malware (Resource Development)
Attackers also use SEO poisoning to lure victims to fake CAPTCHA landing pages.
Initial Access
8 techniques
Initial Access
USB spreader code (!), implemented in a class called USB
Users encounter a CAPTCHA page that mimics a legitimate human verification prompt, often while browsing seemingly harmless content websites.
« Utilisation de sites gouvernementaux brésiliens compromis pour héberger des infostealers ... et des backdoors »
In parallel to the Discord campaign, the attackers also published a malicious npm package: Package: @kindo/selfbot Versions: 1.0.0 through 1.0.4 Claimed purpose: "Just a selfbot" Actual purpose: Malware dropper
These fake CAPTCHAs arrive via phishing emails, URL redirection or malvertisement, or SEO poisoning.
The initial attack vector is an advance-fee phishing scam containing attachments... the attachment type is LZH.
“Those lures pushed recipients to sites controlled by the operation.”
основним каналом доставки шкідливих програм є популярні месенджери, а методи первинного проникнення передбачають використання елементів соціальної інженерії
Execution
19 techniques
Execution
The script reconstructs the hidden command at runtime, then leverages WMI (Win32_Process and Win32_ProcessStartup) to create and execute a process silently.
A scheduled task is then created called EscanDissldo referencing the newly created file that runs once every 200 minutes.
XWorm established persistence through a scheduled task, and its plugins were stored in the registry.
The file might be different kinds of executables, shortcut (LNK) files, or script files such as HTML application (HTA) or Windows script file (WSF).
Loader Execution: wscript.exe launches a hidden instance of PowerShell.
Execution Command and Scripting Interpreter: .NET T1059.003
The extracted VBA script... downloads and executes a malicious powershell script.
The startup file changes the directory to %Userprofile%\Downloads\Support\Python312 and executes the Python scripts EAdate.py, FAScis.py, GXrop.py and HPUope.py
This file is a WSH JavaScript ( .js ) script, not browser JavaScript.
Instead of dropping a conventional executable, however, the malware deploys a legitimate LuaJIT or AutoIt interpreter alongside a file disguised as .ttf that actually contains encrypted Lua bytecode.
The execute_shellcode function contains a huge base64-encoded string, which is decrypted using RC4, allocated as executable memory using Windows APIs, and then jumped into.
MSBuild.exe abused by XWorm and Remcos for reflective DLL injection and payload execution
"plugins are implemented as .NET modules (DLL files) that the XWorm RAT can dynamically load... plugin and savePlugin are used to transfer and execute the plugins"
bitsadmin Download Path (Wave 2 — opposite-lodge) : LNK: cmd.exe /c bitsadmin /transfer job /priority FOREGROUND [tunnel]/dd.wsf %TEMP%\dd.wsf
Rather than using macros to execute malicious VBscript, this document uses a known vulnerability from last year (CVE-2022-30190).
Il tema sanitario ... viene utilizzato come elemento di fiducia per convincere l’utente ad avviare il file ricevuto.
The URLs in the phishing emails redirected to an attacker-controlled landing page on the malicious domain permit-service[.]top that employed several rounds of user interaction.
The JavaScript dropper relies on user execution of a masqueraded file, uses heavy Unicode obfuscation, and spawns PowerShell to transition into the next stage.
The core of this campaign lies in the abuse of a legitimate utility... The key vulnerability is that the design of ahost.exe is vulnerable to DLL side-loading or search order hijacking. An attacker can exploit this vulnerability by placing a malicious DLL, named libcares-2.dll, in the same directory as ahost.exe.
Persistence
13 techniques
Persistence
Based on options chosen by the operator, the script can perform the following persistence techniques: Method 1: Logon Script
Finally, it creates a registry entry in UserInitMprLogonScript to run this batch file during the user logon process.
A scheduled task is then created called EscanDissldo referencing the newly created file that runs once every 200 minutes.
XWorm established persistence through a scheduled task, and its plugins were stored in the registry.
The new local user is then added to the administrators and Remote Desktop Users groups.
a registry key is created under “HKCU:\Software\Classes\CLSID\{fdb00e52-a214-4aa1-8fba-4357bb0072ec}\InProcServer32” with a default value set to “C:\IDontExist.dll”
The script creates a local administrator account named “System32” and adds it to the Remote Desktop Users group.
The script creates a local administrator account named "System32" and adds it to the Remote Desktop Users group.
bitsadmin Download Path (Wave 2 — opposite-lodge) : LNK: cmd.exe /c bitsadmin /transfer job /priority FOREGROUND [tunnel]/dd.wsf %TEMP%\dd.wsf
then decompiling the RAT to find a UEFI bootkit with BlackLotus DBX bypass
"calls CreateProcessA() with the full path to Msbuild.exe and the CREATE_SUSPENDED flag"
Persistence Boot or Logon Autostart Execution (optional modules) T1547
“backdoors such as XWORM set to persist via automated startup shortcut modifications.”
Privilege Escalation
16 techniques
Privilege Escalation
Based on options chosen by the operator, the script can perform the following persistence techniques: Method 1: Logon Script
Finally, it creates a registry entry in UserInitMprLogonScript to run this batch file during the user logon process.
A scheduled task is then created called EscanDissldo referencing the newly created file that runs once every 200 minutes.
XWorm established persistence through a scheduled task, and its plugins were stored in the registry.
The first payload is loaded into memory by PowerShell and acts as a loader for the second payload. Figure 11: Process injection.
The injection is performed using a technique commonly known as DLL injection via LoadLibrary.
Gen 4 (Wave 4, Mar 23) encrypted_loader.py Low AES-256-CBC (key+IV in as_key.bin) CreateRemoteThread
The technique used here is Early Bird APC Queue injection. It plants code into a newly created process before that process starts running its main thread
Both binary files are injected into the RegSvcs.exe or Msbuild.exe process using in-memory execution using .NET assemblies via reflection.
The custom DOTNET loader... inject[s] a payload into a signed microsoft binary via process hollowing... starts a process in a suspended state... unmap[s] the memory of the target process, writes the payload... and then resume[s] the thread.
The new local user is then added to the administrators and Remote Desktop Users groups.
"calls CreateProcessA() with the full path to Msbuild.exe and the CREATE_SUSPENDED flag"
Persistence Boot or Logon Autostart Execution (optional modules) T1547
“backdoors such as XWORM set to persist via automated startup shortcut modifications.”
The prerequisite for both the dll files to work is that XWorm malware should be running with elevated privileges.
UAC bypass attempts to gain administrator rights and modify registry for persistence
Stealth
45 techniques
Stealth
This vulnerability carries a high severity score of 8.4 and affects WinRAR on Windows operating systems due to a path traversal flaw.
Rootkit.dll, when executed, installs a modified r77 rootkit using shellcode installer method. It will hide all the processes that have the prefix '$CRX'.
The script contains a large string variable composed of: Unicode homoglyphs Emoji Repeating delimiter characters
HeartCrypt was originally discovered through underground forums... it has been used to pack over 2,000 malicious payloads... The packed payload was consistently added as a resource to a legitimate binary... Each resource embedded in the binary contains PIC disguised as a bitmap (BMP) image file. This begins with a standard BMP header followed by a repeating hexadecimal pattern for padding.
This file is then bundled with malicious code using PyInstaller, a tool developers use to create executable applications from scripts. In this scenario, PyInstaller is repurposed as a delivery mechanism for the XWorm malware.
The most distinctive characteristic of TA558's recent attack campaigns... is the concealment of malicious PowerShell code or payloads within seemingly innocuous JPG images.
Defense Evasion Fileless Execution T1027.004
The script uses a simple substitution cipher -- !! is replaced with A at runtime -- to obscure strings from static scanners... Their sole purpose is to inflate the script, break static analysis signatures, and push the actual payload past AV scanner byte-window limits.
The API are resolved by fetching necessary DLLs from the PEB and looping through export list to find the ones needed. Keep in mind that the API are hashed, so they will first go through a resolving function.
The PowerShell that gets executed at this stage is semi-obfuscated... Once decoded, we’re presented with a hugely obfuscated JScript one-liner.
This indicates a fileless execution technique where the payload is retrieved and executed dynamically.
MITRE ATT&CK Mapping Technique ID Implementation ... Obfuscated Files: Encrypted/Encoded File T1027.013 AES-CBC + XOR + base64 layers
Double extension to impersonate a PDF
MITRE ATT&CK® Techniques ... Defense Evasion T1036.005 Masquerading – Drops PE files with benign system names
Defense Evasion Masquerading: Double Extension T1036.007 1–6 .pdf.lnk, .pdf.wsh, .PDF.lnk
The first payload is loaded into memory by PowerShell and acts as a loader for the second payload. Figure 11: Process injection.
The injection is performed using a technique commonly known as DLL injection via LoadLibrary.
Gen 4 (Wave 4, Mar 23) encrypted_loader.py Low AES-256-CBC (key+IV in as_key.bin) CreateRemoteThread
The technique used here is Early Bird APC Queue injection. It plants code into a newly created process before that process starts running its main thread
Both binary files are injected into the RegSvcs.exe or Msbuild.exe process using in-memory execution using .NET assemblies via reflection.
The custom DOTNET loader... inject[s] a payload into a signed microsoft binary via process hollowing... starts a process in a suspended state... unmap[s] the memory of the target process, writes the payload... and then resume[s] the thread.
Defense Evasion Indicator Removal / Single Instance Execution T1070
The batch script executes the PowerShell script and deletes all other files and directories being dumped... the script deletes itself and other processed files.
MSBuild.exe abused by XWorm and Remcos for reflective DLL injection and payload execution
The function `_Expand` decrypts the data using AES... The data read from dumped files is decrypted and loaded into memory.
bitsadmin Download Path (Wave 2 — opposite-lodge) : LNK: cmd.exe /c bitsadmin /transfer job /priority FOREGROUND [tunnel]/dd.wsf %TEMP%\dd.wsf
It chooses between three possible processes: C:\Windows\System32\svchost.exe C:\Windows\Microsoft.NET\Framework\v2.0.50727\RegSvcs.exe C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegSvcs.exe
Abuse of CasPol.exe (a .NET LOLBIN) aids in evasion by blending malicious execution with trusted system binaries.
Compiled HTML Help files, once used for Windows application manuals, are now being weaponized to deliver malware. These files support scripting, making them containers for multi-stage infections.
“[The chain] then reached InstallUtil.exe, a signed Windows utility that can be abused to run malicious code.”
The script then uses Microsoft HTML Application Host (mshta) or base64-encoded PowerShell to execute a highly obfuscated command.
The first script will use RegAsm to run XWorm encoded in a Base64 variable... The second script used RegAsm to run an executable encoded in a Base64 variable.
...inject the XWorm payload into a legitimate system process, Msbuild.exe, effectively masking its activity behind a trusted Windows component.
Clicking it downloads a ZIP file containing an internet shortcut, and opening it connects to a TryCloudflare subdomain.
"First, it will create a Mutex on the victim’s computer"
Check for debugger using the windows API checkRemoteDebuggerPresent Check for Sandboxie by trying to get the handle for 'SbieDll.dll'
Check for Sandboxie by trying to get the handle for 'SbieDll.dll'
then decompiling the RAT to find a UEFI bootkit with BlackLotus DBX bypass
This payload is encrypted and hidden within the file, later unscrambling itself and hiding in the %LOCALAPPDATA% folder under a deceptive name, "Win.Kernel_Svc_AJ8iOw.exe," while also being marked as a hidden system file.
The samples we observed concealed their payload within the PE overlay... Attackers often hide their payloads inside the PE overlay, because some static analysis tools skip processing this area.
The script is executed with a hidden window and bypasses the execution policy.
The core of this campaign lies in the abuse of a legitimate utility... The key vulnerability is that the design of ahost.exe is vulnerable to DLL side-loading or search order hijacking. An attacker can exploit this vulnerability by placing a malicious DLL, named libcares-2.dll, in the same directory as ahost.exe.
Loads a .NET assembly directly in memory Invokes the assembly’s Main() method
The malware also checks for hooks on the Nt functions. It checks for jmp operands and skips them if found. 0xe9 & 0xea are the JMP & JMP FAR opcodes.
ClickFix is a social engineering technique that tricks users into manually executing malicious code on their own computers.
Defense Impairment
5 techniques
Defense Impairment
a registry key is created under “HKCU:\Software\Classes\CLSID\{fdb00e52-a214-4aa1-8fba-4357bb0072ec}\InProcServer32” with a default value set to “C:\IDontExist.dll”
Code Signing T1553.002 Microsoft Trusted Signing 3-day AOC cert
The script is executed with a hidden window and bypasses the execution policy.
finally decompressing it and then executing it in memory... it avoids file drops (fileless).
Layer 3 Set-PSReadlineOption -HistorySaveStyle SaveNothing No PowerShell command history persists
Credential Access
5 techniques
Credential Access
The DLL carries full RAT capabilities, including startup registration, scheduled task creation, system information collection, user activity monitoring, and encrypted communication back to the attacker.
These malware families provide threat actors with a variety of functionalities including keylogging
chrome_decrypt.dll is able to steal user data such as cookies, password, and credit card information.
enabling comprehensive theft of sensitive system data including keystrokes, browser credentials, and FTP accounts
chrome_decrypt.dll is able to steal user data such as cookies, password, and credit card information.
Discovery
13 techniques
Discovery
ServiceManager.dll : Shows all the active services.
MITRE ATT&CK Mapping Technique ID Implementation System Network Configuration Discovery T1016 Hosts file modification for DNS hijack
The client creates a unique ID by combining Processor Count, Username, MachineName, OSVersion, and Total size of SystemDirectory
TCPConnections.dll ... uses the api 'GetExtendedTcpTable' to retrieve a table containing all TCP connections.
ProcessManager.dll : Shows all the processes running in the machine.
The method Info() captures the following system information, which could be used for host profiling and environment reconnaissance.
FileManager Retrieves and sends back lists of folders and files from a specified directory.
Check for debugger using the windows API checkRemoteDebuggerPresent Check for Sandboxie by trying to get the handle for 'SbieDll.dll'
Check for Sandboxie by trying to get the handle for 'SbieDll.dll'
Programs.dll : Shows all the installed programs.
Functions such as ... GetSecurityInfo ... support host reconnaissance.
Geofencing: Registry queries to HKLM\SYSTEM\ControlSet001\Control\Nls\CustomLocale\en and ExtendedLocale\en -- locale and keyboard layout checks that may skip execution for certain regions
The malware also checks for hooks on the Nt functions. It checks for jmp operands and skips them if found. 0xe9 & 0xea are the JMP & JMP FAR opcodes.
Lateral Movement
3 techniques
Lateral Movement
hVNC utilizes the Microsoft Windows Desktop API to craft a hidden desktop via the Windows feature CreateDesktop. This concealed desktop remains invisible to users... hVNC capabilities go beyond mere observation, actively emulating keyboard and mouse input, allowing cybercriminals to navigate compromised systems with precision.
This enables the attacker to log in via Remote Desktop Protocol (RDP)... disables the machine's firewall to allow inbound RDP connection attempts.
USB spreader code (!), implemented in a class called USB
Collection
10 techniques
Collection
Used for stealing victim’s data.
The DLL carries full RAT capabilities, including startup registration, scheduled task creation, system information collection, user activity monitoring, and encrypted communication back to the attacker.
These malware families provide threat actors with a variety of functionalities including keylogging
including keylogging, taking screenshots
Clipboard.dll : Displays the content present in the clipboard.
including keylogging, taking screenshots, audio and webcam recording
including keylogging, taking screenshots, audio and webcam recording
...de voler des informations sensibles telles que des identifiants et des mots de passe...
Our journey started with the sample PO Order Listed PDF_1.lzh ... This LZH archive contained just a single file - PO_Order_Listed_PDF.exe.
“…retrieve more payloads as ZIP archives with files that trigger an attack sequence upon extraction…”
Command and Control
21 techniques
Command and Control
For instance, in the case of the XWorm malware infection I examined, this Remote Access Trojan (RAT) encrypts commands sent from the Command and Control (C2) server using the AES encryption algorithm in ECB mode, making the payload unreadable.
Command and Control Application Layer Protocol T1071
"XWORM C2 TRAFFIC: tcp[:]//43.228.157[.]141:7007/"
the group primarily used the archive.org data platform and the Cloudinary video platform... leveraged legitimate cloud storage services ... as payload distribution channels
MITRE ATT&CK Mapping Technique ID Implementation Proxy: Multi-hop Proxy T1090.003 Dual C2 infrastructure across providers
web-service C2 such as Telegram (T1102)
marchcap28[.]blogspot[.]com Blogspot dead drop aprilfoolclpa[.]blogspot[.]com Blogspot dead drop
Le principe : un token bot et un chat_id embarqués dans le binaire permettent d’envoyer les données volées directement dans un chat Telegram via api.telegram.org, sans infrastructure propre à gérer.
A lightweight HTTP POST beacon (status=success) is transmitted to attacker-controlled infrastructure hosted on TryCloudflare, providing operators confirmation of successful staging and injection.
Staging is the practice of wrapping a core payload with multiple layers. Detonating several payloads in sequence, versus doing everything all at once, is an attempt by the attacker to evade detection.
Threat actors used the BITSAdmin and certutil tool to download additional malware.
The beacon URL is constructed by XOR-encrypting a pipe-delimited fingerprint string and appending it to the C2 path... The XOR-encrypted string is Base64-encoded with / replaced by _ for URL safety.
Useful starting points are MITRE ATT&CK techniques for remote access software (T1219)
The use of dynamic DNS domains for C2 communications is a central technique in the arsenal of the DDGroup actor.
The decrypted C2 domain is laohe1[.]myvnc[.]com — a No-IP dynamic DNS domain ... We resolved all six "laohe" DDNS domains under the myvnc[.]com namespace.
Here, we can see the actor has regularly updated their domains and has primarily relied on dynamic DNS services such as ddns and duckdns.
dynamic analysis provided a connection with the following information: 212.87.204[.]83:3000 Port3000newspm.duckdns[.]org
C2 Protocol Tunneling T1572 1–6 Cloudflare tunnel for origin obfuscation
Command and Control Encrypted Channel T1573
MITRE ATT&CK Matrix ... Command and Control T1573.001: Encrypted Channel: Symmetric Cryptography
All tunnels use Cloudflare's free Quick Tunnel service ( trycloudflare.com ). The origin server IP is never exposed — all traffic proxies through Cloudflare's anycast network
Exfiltration
3 techniques
Exfiltration
sendMessage Credential and OTP submission from phishing pages; victim telemetry (IP, geolocation, browser UA) at point of interaction; installation confirmation and execution beaconing.
When executed, it establishes a connection to an external file share, typically via WebDAV, to download an LNK or VBS file.
XWorm provided redundant access and exfiltration... and exfiltrated through the Telegram Bot API.
Impact
6 techniques
Impact
Ransomware.dll XWorm has a plugin with ransomware functionality, which allows RAT Operators to encrypt and decrypt files.
The image selected by the RAT operator is saved in a temp folder as 'XBackground.bmp' and set as the desktop wallpaper.
newer Xworm builds also incorporate destructive capabilities to deploy stealthy infostealer payloads, file encryption, and distributed denial-of-service (DDoS) features.
StartDDos [url] - DDoS the specified target StopDDoS - Stop the DDoS
Stub.ProcessCritical BSoD protection via RtlSetProcessIsCritical ... BSoD kill switch (RtlSetProcessIsCritical -- killing the process crashes Windows)
sedit Writes specified content to a text file, effectively editing it.
Observables
930 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
200 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.