Azalea Agent Campaign Targets Ukrainian Government Bodies
Summary
An unattributed campaign targeted Ukrainian government officials with spear-phishing emails containing malicious RAR archives. The attack follows a multi-stage infection chain involving LNK files, custom droppers, and native loaders that ultimately deploy the Azalea Agent RAT. The malware is a .NET-based remote access tool designed for command-and-control activity and information theft.
Investigation
Researchers analyzed a five-stage infection chain beginning with a malicious LNK file that uses curl to download a secondary executable. The investigation traced execution from HIODropper through a native loader that decrypts the final payload directly into memory using the .NET runtime. Analysis of Azalea Agent also revealed anti-sandbox capabilities and encrypted configuration blocks.
Mitigation
Organizations should enforce strict email filtering to block suspicious RAR attachments, macro-enabled documents, and LNK files. Endpoint detection and response (EDR) solutions can help identify unusual child processes spawned by cmd.exe and suspicious curl activity. Restricting execution of unsigned binaries from temporary directories is also strongly recommended.
Response
When malicious activity is detected, isolate affected systems from the network to disrupt further C2 communication. Perform memory forensics to identify injected .NET assemblies and recover decrypted configuration data. Security teams should review network logs for connections to the identified C2 IP and investigate potential lateral movement across the government environment.
Attack Flow
Detections
Possible Persistence Points [ASEPs – Software/NTUSER Hive] (via registry_event)
View in Prime Core
Suspicious Scheduled Task (via audit)
View in Prime Core
Possible Malicious LNK File with Double Extension (via cmdline)
View in Prime Core
Suspicious CURL Usage (via cmdline)
View in Prime Core
IOCs (HashSha256) to detect: From Phishing Email to Azalea Agent: Uncovering a Multi-Stage Attack on Ukrainian Government Bodies
View in Prime Core
IOCs (SourceIP) to detect: From Phishing Email to Azalea Agent: Uncovering a Multi-Stage Attack on Ukrainian Government Bodies
View in Prime Core
IOCs (DestinationIP) to detect: From Phishing Email to Azalea Agent: Uncovering a Multi-Stage Attack on Ukrainian Government Bodies
View in Prime Core
Decrypted PE File Loaded into Memory Detection [Windows Sysmon]
View in Prime Core
Detection of Malicious LNK File Leading to Azalea RAT Deployment [Windows Process Creation]
View in Prime Core
Simulation Execution
-
Attack Narrative & Commands: The adversary aims to execute a fileless payload by obfuscating the presence of a PE file. To test the current security posture (or exploit the detection’s specific signature), the attacker executes a PowerShell command that includes the literal string “MZ signature” within its arguments. This mimics an adversary attempting to bypass detection by using “living-off-the-land” techniques, though in this specific case, it is designed to hit the specific (and weak) string match defined in the detection rule.
-
Regression Test Script:
# Simulation script to trigger the 'MZ signature' detection rule # This simulates an adversary passing the signature string in a command line Start-Process "powershell.exe" -ArgumentList "-Command", "Write-Output 'Simulating payload load with MZ signature string...'" -
Cleanup Commands:
# No files were created, but we clear the console for hygiene Clear-Host Write-Host "Simulation Cleanup Complete."