UAC-0099 – Cyberattackers Exploit HTA Files to Deploy MATCHBOIL Malware

Ukraine’s national cybersecurity agency CERT-UA has uncovered a sophisticated cyber campaign by the threat group UAC-0099, targeting state authorities, defense forces, and defense-industrial enterprises through a multi-stage malware deployment system.

The attacks demonstrate an evolution in the group’s tactics, introducing new tools including the MATCHBOIL loader, MATCHWOK backdoor, and DRAGSTARE information stealer.

Phishing Campaign Delivers Malicious HTA Files

The attack chain begins with deceptive emails sent primarily from UKR.NET addresses, featuring subject lines referencing “court summons” to create urgency and legitimacy.

Example of an email and a decoy file

These messages contain links to legitimate file-sharing services, often shortened through URL shorteners, which deliver double-archived packages containing HTML Application (HTA) files.

The malicious HTA files contain heavily obfuscated VBScript code designed to establish persistence and deploy the primary payload. Upon execution, the script creates multiple components: a text file containing HEX-encoded data (“documenttemp.txt”), a PowerShell script (“temporarydoc.txt”), and a scheduled task called “PdfOpenTask”.

This task executes the PowerShell code, which converts the HEX data to bytes, writes it as “AnimalUpdate.exe” to the %PUBLIC%\Downloads\ directory, and creates another scheduled task “\AnimalSoft\UpdateAnimalSoftware” for execution.

Technical Analysis of MATCHBOIL Loader

MATCHBOIL, developed in C#, serves as the primary loader, designed to replace the previously used LONEPAGE tool.

The malware performs extensive system reconnaissance, collecting CPU hardware identifiers through WMI queries (“SELECT ProcessorId FROM Win32_Processor”), BIOS serial numbers, usernames, and network interface MAC addresses.

This information is concatenated and transmitted in the “SN” header of HTTP requests to command-and-control servers.

Example of MATCHWOK program code
Example of MATCHWOK program code

The loader communicates with management servers using the HTTP protocol with custom headers including “SN” and “Count” values calculated using Euler functions.

To retrieve additional payloads, MATCHBOIL sends GET requests to specific URIs, such as “/articles/images/forest.jpg”. It then uses regular expressions to extract data within script tags, performing HEX and BASE64 decoding before writing files with “.com” extensions.

Advanced Capabilities and Anti-Analysis Features

MATCHWOK, the accompanying backdoor, executes PowerShell commands by compiling .NET programs at runtime, often using renamed PowerShell executables moved to non-standard directories.

The tool encrypts commands using AES-256 with statically defined keys and includes anti-analysis capabilities, monitoring for security tools including “idaq”, “fiddler”, “wireshark”, “proxifier”, “ollydbg”, and “procmon”.

Example of DRAGSTARE program code
Example of DRAGSTARE program code

DRAGSTARE complements the suite by performing comprehensive data exfiltration, targeting browser credentials from Chrome and Mozilla Firefox, stealing authentication data, and recursively searching for sensitive document types including .docx, .pdf, .ovpn, and .rdp files.

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

Priya
Priya
Priya is a Security Reporter who tracks malware campaigns, exploit kits, and ransomware operations. Her reporting highlights technical indicators and attack patterns that matter to defenders

Trending News

Related Stories