OXLoader Uses DLL Hijacking to Deliver Multiple Malware Families
Detection stack
- AIDR
- Alert
- ETL
- Query
Summary
OXLoader is a malicious loader that abuses DLL hijacking to distribute multiple malware families, including Remcos, OverLord, and Hermes. The loader is primarily delivered through social engineering lures such as fake copyright infringement notices and cracked software activators. Once executed, it uses layered obfuscation and anti-analysis checks to evade detection while deploying additional payloads.
Investigation
Researchers analyzed several campaigns in which OXLoader was decrypted through malicious code embedded in legitimate executables or loaded via DLL hijacking. The investigation uncovered a multi-stage infection chain involving shellcode injection, Donut Loader, and a PE loader. Analysts also identified anti-analysis techniques designed to detect virtualized environments and exclude specific geographic regions.
Mitigation
Users should remain cautious of unsolicited emails involving copyright or intellectual property claims. Organizations should block suspicious downloads and treat archives containing double-extension files such as .docx.exe as high risk. Real-time malware protection and browser security controls are also recommended to reduce exposure to malicious websites and payloads.
Response
When malicious activity is detected, isolate affected systems to prevent further lateral movement or data exfiltration. Perform forensic analysis to identify the initial access vector, including malicious ZIP archives or GitLab-hosted activators. Review registry RunOnce keys and ProgramData directories for persistence mechanisms, suspicious executables, and additional payloads.
Attack Flow
Detections
Possible Persistence Points [ASEPs – Software/NTUSER Hive] (via registry_event)
Possible Malicious File Double Extension (via process_creation)
Probable Detection of Windows Virtualization Environment Using WMI (via cmdline)
IOCs (SourceIP) to detect: OXLoader abuses DLL hijacking to distribute different malware families
IOCs (DestinationIP) to detect: OXLoader abuses DLL hijacking to distribute different malware families
Detect OXLoader Persistence via RunOnce Registry Modification [Windows Process Creation]
Detection of OXLoader DLL Hijacking for Malicious Software Distribution [Windows File Event]
OXLoader DLL Hijacking Detection [Windows Image Load]
Simulation Execution
-
Attack Narrative & Commands: An adversary has successfully side-loaded a malicious DLL. To ensure they maintain access even after a reboot, they attempt to establish persistence. They use a complex, nested
cmd.execall to bypass simple string filters, aiming to write a registry entry intoHKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRunOnce. The specific payload targets a fake “fl studio pro.exe” to blend in with legitimate software activity. The command is crafted to match the OXLoader pattern:cmd /c cmd /C"set ... RunOnce /t REG_SZ /f ... fl studio pro.exe"". -
Regression Test Script:
# Simulation script to replicate the OXLoader persistence command line pattern. # Note: This script mimics the command string; it does not actually need to succeed # in registry modification to trigger the detection, as the rule looks at the CommandLine. $maliciousCommand = 'cmd /c cmd /C"set OX_PERSIST=1 & reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionRunOnce" /v "Updater" /t REG_SZ /f /d "C:UsersPublicfl studio pro.exe" ""' Write-Host "[+] Simulating OXLoader persistence command..." -ForegroundColor Cyan Start-Process "cmd.exe" -ArgumentList "/c $maliciousCommand" -NoNewWindow -Wait Write-Host "[+] Simulation command executed." -ForegroundColor Green -
Cleanup Commands:
# Cleanup: No registry changes should have been made if the command was malformed, # but we ensure the RunOnce key is clean of any 'Updater' entries. reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionRunOnce" /v "Updater" /f 2>$null Write-Host "[+] Cleanup complete." -ForegroundColor Green