Friday, September 11, 2026

XwormRAT Hackers Leverage Code Injection for Sophisticated Malware Deployment

A sophisticated new distribution method for XwormRAT malware that leverages steganography techniques to hide malicious code within legitimate files.

This discovery highlights the evolving tactics of cybercriminals who are increasingly using advanced obfuscation methods to bypass security detection systems and deceive unsuspecting users.

The latest XwormRAT campaign represents a significant evolution in malware distribution methodology, utilizing steganography to embed malicious code within seemingly innocent image files.

ASEC’s email honeypot system detected this new variant being distributed through phishing emails, where attackers embed malicious scripts directly into legitimate code structures.

The malware initiates its attack chain through VBScript and JavaScript, making detection particularly challenging for both security systems and end users.

 Phishing email body.
 Phishing email body.

The attack sequence begins when victims execute the initial script, which contains an embedded PowerShell component designed to download additional malware from external command-and-control servers.

During execution, the script employs the Replace() function to systematically remove these dummy characters before decoding and executing the actual malicious payload.

XwormRAT Hackers Leverage Code Injection

The current XwormRAT variant demonstrates notable technical improvements compared to previous iterations documented by ASEC researchers.

This PowerShell script incorporates Base64-encoded data interspersed with dummy characters to further obfuscate its true purpose.

Earlier versions relied on a simpler approach, embedding encoded data between clearly marked “<<BASE64_START>>” and “<<BASE64_END>>” strings at the end of JPG files.

Security researchers could more easily identify these markers, making detection and analysis more straightforward.

The new technique abandons these obvious markers in favor of a more sophisticated approach involving bitmap image manipulation.

The malware now searches for specific bitmap signatures (0x42, 0x4d, 0x46, 0xC0) embedded within JPG image files.

Once located, the malware extracts and decodes RGB pixel values from the bitmap data to reconstruct the hidden .NET loader.

(Left) Script of the past version (Right) Script of the current version being distributed.
(Left) Script of the past version (Right) Script of the current version being distributed.
 

This method makes the malicious code virtually indistinguishable from legitimate image data, significantly complicating detection efforts.

When users open the infected image file, they observe what appears to be a normal image display, creating the illusion that nothing suspicious has occurred.

However, the .NET loader secretly extracts and executes the final XwormRAT payload in the background, establishing persistent access to the compromised system.

Security Implications

The steganography techniques employed in this campaign extend beyond XwormRAT distribution, represented a broader shift in malware delivery methods that security professionals must address.

ASEC researchers emphasize that these sophisticated hiding techniques can be adapted for various malware families, making this development particularly concerning for the cybersecurity community.

The continuous evolution and modification of these steganographic methods indicate that threat actors are investing significant resources in developing detection-evasion capabilities.

This trend suggests that organizations and individuals must implement more robust email security measures and exercise increased caution when handling attachments from unknown sources.

ASEC continues monitoring these evolving threats through their regular “Phishing Email Trend Report” and “Infostealer Trend Report” publications, providing the security community with crucial intelligence about emerging attack methodologies and helping organizations adapt their defensive strategies accordingly.

Find this Story Interesting! Follow us on LinkedIn and X to Get More Instant Updates.

Mayura Kathir
Mayura Kathirhttps://gbhackers.com/
Mayura Kathir is a cybersecurity reporter at GBHackers News, covering daily incidents including data breaches, malware attacks, cybercrime, vulnerabilities, zero-day exploits, and more.

Hot this week

How To Access Dark Web Anonymously and know its Secretive and Mysterious Activities

What is Deep Web The deep web, invisible web, or...

How to Build and Run a Security Operations Center (SOC Guide) – 2023

Today’s Cyber security operations center (CSOC) should have everything...

Russian Hackers Bypass EDR to Deliver a Weaponized TeamViewer Component

TeamViewer's popularity and remote access capabilities make it an...

Web Server Penetration Testing Checklist – 2026

Web server pentesting is performed under three significant categories: identity,...

ATM Penetration Testing – Advanced Testing Methods to Find The Vulnerabilities

ATM Penetration testing, Hackers have found different approaches to...

Researchers Uncover 10,000+ Malware Loaders Behind YouTube and SEO Poisoning Campaign

A long-running pay-per-install (PPI) operation that used YouTube gaming...

VLC Media Player Flaws Let Attackers Corrupt Memory and Leak Sensitive Data

Two security vulnerabilities in VLC media player versions 3.0.0...

CISA Adds Exploited MikroTik RouterOS Flaws to Security Alert

The U.S. Cybersecurity and Infrastructure Security Agency (CISA) has...

cPanel Urges Users to Patch ConfigServer Firewall Remote Code Execution Flaw

A recently disclosed vulnerability in ConfigServer Security & Firewall...

Hackers Weaponize AI Safety Guardrails to Hide Malware From LLM-Powered Security Scanners

Threat actors are adapting malware not only for conventional...

Hackers Exploit JFrog Artifactory Flaws to Bypass Authentication and Gain Admin Access

Threat actors are actively exploiting three vulnerabilities in JFrog...

Related Articles

Recent News