PhantomVAI Loader
PhantomVAI Loader is a C#/.NET malware loader tracked by Unit 42, previously referred to as Katz Stealer Loader and also known as VMDetectLoader. It has been distributed in phishing campaigns, including shipment-themed lures as well as sales, payment, and legal-action themes, using archived and obfuscated JavaScript or VBS attachments as the initial stage. These scripts execute Base64-encoded PowerShell that downloads image or GIF files containing a hidden Base64-encoded DLL payload via steganography, including samples where the payload was delimited by markers such as <<sudo_png>> and <<sudo_odt>>.
Once decoded and executed, PhantomVAI Loader performs anti-analysis checks focused on virtual machine detection using computer, BIOS, hard disk, PnP device, and Windows service information, and exits if it detects an analysis environment. The VM detection logic reportedly appears based on the GitHub VMDetector project. The loader establishes persistence through scheduled tasks that run PowerShell commands or wscript.exe, and can also use a Run registry key. It downloads a final payload from a command-line-supplied C2 URL and injects it into a target process using process hollowing, most commonly MSBuild.exe, including processes under Framework, Framework64, System32, or SysWOW64 paths.
Unit 42 initially observed PhantomVAI Loader delivering Katz Stealer, a malware-as-a-service infostealer advertised on BreachForums, exploit[.]in, and xss[.]is. Later campaigns used the loader to deploy additional malware families including AsyncRAT, XWorm, FormBook, and DCRat. Reported targeting was global and included organizations in manufacturing, education, utilities, technology, healthcare, information, and government sectors.
Techniques & procedures
14 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
The infection chain starts with a phishing email that contains a malicious attachment.
The phishing email attachments are archived JavaScript or VBS files.
Execution
6 techniques
Execution
PhantomVAI Loader uses one or all of the following methods to create persistence: A scheduled task executes PowerShell commands to download a file from an attacker-controlled URL.
The script embeds a Base64-encoded PowerShell script and executes it to download and deliver the next stage of the infection.
The phishing email attachments are archived JavaScript or VBS files.
The phishing email attachments are archived JavaScript or VBS files.
In most of the cases observed at the time of writing this article, PhantomVAI Loader injected the payload into the Microsoft Build Engine executable, MSBuild.exe.
Внутри - исполняемый файл, замаскированный под документ... Двойной клик - и малварь запущена.
Persistence
2 techniques
Persistence
PhantomVAI Loader uses one or all of the following methods to create persistence: A scheduled task executes PowerShell commands to download a file from an attacker-controlled URL.
A Run registry key to execute a specific file. The file’s path is also provided as a command-line argument.
Privilege Escalation
4 techniques
Privilege Escalation
PhantomVAI Loader uses one or all of the following methods to create persistence: A scheduled task executes PowerShell commands to download a file from an attacker-controlled URL.
"...Uses Steganography in Images to Inject Katz Stealer..."
It then injects this payload into a target process that is also defined by a command-line parameter, using the process hollowing technique.
A Run registry key to execute a specific file. The file’s path is also provided as a command-line argument.
Stealth
6 techniques
Stealth
Threat actors obfuscate these scripts in an attempt to bypass detections.
The PowerShell script downloads a GIF or other image file that conceals the loader payload. This technique is known as steganography.
"...Uses Steganography in Images to Inject Katz Stealer..."
It then injects this payload into a target process that is also defined by a command-line parameter, using the process hollowing technique.
In most of the cases observed at the time of writing this article, PhantomVAI Loader injected the payload into the Microsoft Build Engine executable, MSBuild.exe.
When PhantomVAI Loader is executed, it performs checks to determine whether it is running on a virtual machine... If any of the checks return a true response, PhantomVAI Loader exits and stops executing.
Discovery
1 technique
Discovery
When PhantomVAI Loader is executed, it performs checks to determine whether it is running on a virtual machine... If any of the checks return a true response, PhantomVAI Loader exits and stops executing.
Observables
44 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.