← Lab /Security & privacy

New OXLOADER loader delivers CASTLESTEALER via Google Ads and evades static detection

OXLOADER is a previously undocumented Windows loader that uses multiple obfuscation layers and .reloc section staging to deliver CASTLESTEALER, and that it has low detection rates across static engines and sandboxes.

Security & privacy Elastic Security Labs 19 Jun 2026 Incident analysis Real-world evidence

Published as “Lost in relocation: analysis of a new loader distributing CASTLESTEALER”

Why it matters

The loader’s evasion techniques give it a detection gap, highlighting the need for behavior-based defenses.

Summary

Elastic Security Labs discovered a new Windows loader, OXLOADER, being delivered through malicious Google Ads that impersonate Node.js. The loader uses four layers of obfuscation, self-modifying decryption stubs, and abuses the .reloc section to stage shellcode before loading the CASTLESTEALER infostealer. Anti-sandbox checks (CPU, RAM, display refresh, geographic and language filters) allow it to bypass many analysis environments, resulting in low detection rates across static scanners and sandbox detonations. Elastic Defend’s advanced prevention capabilities were able to stop the full attack chain in testing.

What they found 3

  1. OXLOADER is delivered via malicious Google Ads impersonating Node.js

    “OXLOADER is distributed via malicious Google Ads impersonating Node.js.”

  2. The loader evades static analysis with low detection rates

    “Low detection rates across static engines and sandbox detonations”

  3. The malware abuses the .reloc section to stage malicious code

    “In a normal Windows executable, the .reloc section contains a table of IMAGE_BASE_RELOCATION blocks that the Windows loader applies to patch absolute addresses when the image is loaded at an address other than its preferred base. In this sample, the malware developer is using the .reloc section to house malicious code instead of the base relocation entries.”

Caveats 2

  • Elastic Defend stops the entire attack chain using advanced prevention capabilities
  • Whether this reflects the actual operator, a front account, or a purchased identity remains unclear.

What’s new here 4

  • First public report of the OXLOADER malware loader
  • Use of the Windows .reloc section to hide malicious shellcode
  • Four-layer obfuscation combining control-flow flattening, MBA, opaque predicates, and function chunking
  • Anti-sandbox checks that require ≥3 CPUs, ≥3 GB RAM, and a display refresh rate ≥20 Hz

In the news