CLoader Bot Campaign Targets Thai Organizations with LuaJIT Malware
Detection stack
- AIDR
- Alert
- ETL
- Query
Summary
A CLoader bot malware campaign is targeting organizations and individuals in Thailand through spear-phishing emails. The attack relies on a multi-stage infection chain combining obfuscated JavaScript with a LuaJIT executable to deliver malicious payloads. The malware also uses multiple defense evasion techniques, including UPX packing and manipulation of Windows Defender exclusions.
Investigation
Researchers uncovered the activity during routine threat hunting after identifying a spear-phishing email containing a malicious attachment. The infection chain begins with a double-extension JavaScript file that drops a LuaJIT interpreter to execute obfuscated Lua scripts. Analysts observed the malware establishing C2 communications, retrieving secondary payloads, and attempting to evade security and analysis tools.
Mitigation
Organizations should deploy email filtering to block suspicious attachments and double-extension files. Security teams should monitor for unauthorized modifications to Windows Defender exclusion lists performed through PowerShell. Restricting execution of untrusted scripts and monitoring for suspicious scheduled tasks or registry Run keys is also recommended.
Response
When malicious activity is detected, investigators should isolate affected endpoints to prevent further compromise or lateral movement. Review scheduled tasks and registry Run keys for masquerading entries such as SecurityHealthAgent. Inspect outbound network traffic for connections to known C2 domains and IP addresses, and perform memory forensics to recover decoded payloads.
Attack Flow
Detections
Suspicious Command and Control by Unusual Top Level Domain (TLD) DNS Request (via dns)
Possible Persistence Points [ASEPs – Software/NTUSER Hive] (via registry_event)
Possible Malicious JS File with Double Extension (via cmdline)
Schtasks Points to Suspicious Directory / Binary / Script (via cmdline)
Suspicious Process DNS Query Known Abuse Web Services (via network_connection)
IOCs (HashMd5) to detect: CLoader Bot Campaign Targets Thai Organizations Through LuaJIT-Based Malware Delivery
IOCs (SourceIP) to detect: CLoader Bot Campaign Targets Thai Organizations Through LuaJIT-Based Malware Delivery
IOCs (DestinationIP) to detect: CLoader Bot Campaign Targets Thai Organizations Through LuaJIT-Based Malware Delivery
Detect CLoader Bot Campaign Targeting Thailand [Windows Network Connection]
Detection of CLoader Bot Campaign LuaJIT Execution [Windows Process Creation]
Simulation Execution
-
Attack Narrative & Commands: An adversary has successfully delivered a LuaJIT-based dropper via a phishing attachment (T1566.001). To establish persistence and fetch the actual bot payload, the malware executes a PowerShell command (T1059.011) that initiates an outbound HTTPS connection to the C2 domain
cloaderx.sytes.net(T1071). This action is intended to bypass simple filename signatures by using legitimate living-off-the-land binaries to perform the network callback. -
Regression Test Script:
# CLoader Simulation Script # This script simulates a process attempting to connect to a known CLoader C2 domain. $C2_Domain = "cloaderx.sytes.net" Write-Host "[!] Simulating CLoader callback to $C2_Domain..." -ForegroundColor Red try { # Attempting a web request to the malicious domain to trigger the network connection telemetry $response = Invoke-WebRequest -Uri "http://$C2_Domain" -UseBasicParsing -TimeoutSec 5 Write-Host "[+] Connection attempted successfully." -ForegroundColor Green } catch { # We expect a connection failure if the domain is sinkholed/non-existent, # but the ATTEMPT itself generates the necessary Event ID 3 telemetry. Write-Host "[*] Connection failed as expected (Domain likely inactive), but telemetry should be generated." -ForegroundColor Yellow } -
Cleanup Commands:
# No persistent files or registry keys were created by the simulation script. # If any temporary files were created, they would be removed here. Write-Host "[*] Simulation cleanup complete. No artifacts left." -ForegroundColor Cyan