{
	"id": "b9a0858a-f005-4816-a9ef-bf5d3426f0cc",
	"created_at": "2026-11-24T02:21:55.969996Z",
	"updated_at": "2026-11-24T02:36:44.37871Z",
	"deleted_at": null,
	"sha1_hash": "5c7a166f96fa3f764579278bf6a95c9ddcc25aad",
	"title": "Lost in relocation: analysis of a new loader distributing CASTLESTEALER",
	"llm_title": "Lost in relocation: analysis of a new loader distributing CASTLESTEALER",
	"authors": "Daniel Stepanic, Elastic Security Labs",
	"file_creation_date": "0001-01-01T00:00:00Z",
	"file_modification_date": "0001-01-01T00:00:00Z",
	"file_size": 111875,
	"plain_text": "https://www.elastic.co/security-labs/threat-command/oxloader-malware-loader-infostealer\n\nLost in relocation: analysis of a new loader distributing\n\nCASTLESTEALER\n\nBy Daniel Stepanic\n\nPublished: 2026-06-19 · Archived: 2026-11-24 02:00:40 UTC\n\nA previously undocumented Windows loader tracked as OXLOADER is delivering the CASTLESTEALER infostealer via\n\nmalicious Google Ads, with low detection rates across static engines and sandbox detonations. The loader uses several\n\nobfuscation layers (control-flow flattening, opaque predicates, mixed Boolean-Arithmetic), self-modifying decryption stubs,\n\nand abuses the Windows  .reloc  section to stage shellcode.\n\nElastic Security Labs identified OXLOADER in an active campaign targeting one of our customers; CIS-region and\n\nRussian-language exclusions point to a financially motivated, Russian-speaking threat actor. We have found no prior public\n\nreporting on this family.\n\nKey takeaways\n\nElastic Security Labs discovers new loader (OXLOADER)\n\nOXLOADER observed in campaigns distributing CASTLESTEALER via malicious Google Ads\n\nCIS-region exclusion and Russian language checks suggest a Russian-speaking, financially motivated threat actor\n\nLow detection rates across static engines and sandbox detonations\n\nElastic Defend stops the entire attack chain using advanced prevention capabilities\n\nHow malvertising delivered OXLOADER to victims\n\nOXLOADER is distributed via malicious Google Ads impersonating Node.js. Victims are redirected through an\n\nintermediary domain to a Storj-hosted batch script, which downloads and executes OXLOADER.\n\nThe infection began when the user searched for an  lts version of node.js  and clicked a sponsored result leading to\n\nnode-js[.]prentiva99[.]info , a malicious landing page designed to impersonate a legitimate Node.js deployment\n\nplatform. The threat actor operated a Google Ads campaign targeting US-based victims; the ad was last shown on Apr 23,\n\n2026, and the site is now offline. The advertiser was registered under the verified name  ВОЛОДИМИР ТЕРЕЩЕНКО ,\n\nbased in Ukraine. Whether this reflects the actual operator, a front account, or a purchased identity remains unclear. On May\n\n14, 2026, the advertiser along with their associated ad campaigns were removed from Google entirely.\n\nAdvertiser’s profile on Google Ads Transparency Center\n\nUpon interaction, the user was redirected through  app[.]miloyannopoulos[.]com/download?subid1=download , which\n\nresponded with a  302 Found  to the payload URL\n\nlink[.]storjshare[.]io/raw/jux4e4ky5mruo4jkxsssp42sau4q/ruslan/BATPackageBuilderSetup.bat . This delivered a\n\nWindows batch script, hosted on Storj’s legitimate link-sharing service, which the threat actor abused to evade domain-\n\nbased reputation filtering.\n\nThe batch script displays a fake software installation wizard UI, immediately downloads the next-stage executable from the\n\nStorj URL  link.storjshare[.]io/raw/jwwvr4oskkkjsgevt774ta62ehya/ruslan/aBsvwbdas.exe  via PowerShell, and\n\nlaunches it with  -Verb RunAs  to trigger a UAC elevation prompt.\n\nBatch script downloading and launching OXLOADER\n\nFollowing execution of the Batch script, Elastic Defend detected malicious behavior (policy was set to detect only),\n\ntriggering multiple behavioral rules including  Microsoft Common Language Runtime Loaded from Suspicious Memory ,\n\nhinting at a .NET-based payload consistent with  CASTLESTEALER .\n\nElastic Defend alerts triggered upon script execution\n\nPage 1 of 6\n\nhttps://www.elastic.co/security-labs/threat-command/oxloader-malware-loader-infostealer\n\nThe following is the execution graph of the attack chain from payload download to  CASTLESTEALER  deployment.\n\nInfection chain\n\nOXLOADER malware loader: technical analysis\n\nThe first OXLOADER sample our team analyzed masquerades as the popular tool, API Monitor from rohitab.com. Due to\n\nthe heavy presence of legitimate code and code-hiding techniques, this loader is able to fly under the radar against static file\n\nanalyzers.\n\nVirusTotal showing small number of detections\n\nHow OXLOADER unpacks itself at runtime\n\nThe malware begins executing during the CRT initializer phase, before any user code is run. The CRT function  cinit()\n\ninvokes  initterm() , which walks the C++ initializer table ( __xc_a  →  __xc_z ) calling each entry. The malware\n\ndeveloper has hijacked one of these entries, pointing to a function that makes a  RegisterClipboardFormatW()  call before\n\ntail-jumping into the first decryption stub.\n\nMalicious code started through CRT initialization\n\nThe loader uses self-modifying techniques with several decryption stubs to unroll itself. Below is an example of a\n\ndecryption stub being patched in during runtime, before jumping to it.\n\nSmall decryption stub patched in\n\nAfter the patching has taken place, the loader decrypts a 28,233-byte region. Each byte is decrypted with a single-byte XOR\n\nkey that updates after every iteration: the just-decrypted plaintext byte is added to the key, which is then used to decrypt the\n\nnext byte. This similar decryption routine runs three times in total, each over a different region.\n\nRolling-XOR decryption of next-stage code\n\nObfuscation techniques used to evade static detection\n\nOXLOADER breaks automated function-boundary detection in binary analysis tooling such as IDA Pro using four layered\n\nobfuscation techniques: control-flow flattening (CFF), mixed Boolean-Arithmetic (MBA), opaque predicates, and function\n\nchunking across non-contiguous code regions. Functions are stitched together with unconditional jumps, and some regions\n\nare reached through indirect jumps whose target addresses are computed at runtime via MBA arithmetic. The result is that\n\nIDA Pro cannot reliably reconstruct function boundaries, requiring manual fixes.\n\nControl-flow flattening with nested MBA arithmetic example\n\nThe loader decrypts various strings at runtime using the following string decryption algorithm:\n\nAfter the code is fully unpacked/decrypted, the malware combines this string decryption function with an Adler-32 API\n\nhashing algorithm to dynamically resolve its imports.\n\nString decryption and API resolving\n\nHow does OXLOADER evade sandbox and VM detection?\n\nAfter resolving its APIs, OXLOADER performs various checks to ensure the machine executes in a clean environment,\n\navoiding execution in sandbox environments.\n\nCheck Method Threshold\n\nEmulation WNetAddConnection2W  with malformed resource Expects  ERROR_BAD_NAME  (0x43)\n\nPage 2 of 6\n\nCheck\n\nCPU count\n\nRAM\n\nDisplay refresh rate\n\nGeographic region\n\nhttps://www.elastic.co/security-labs/threat-command/oxloader-malware-loader-infostealer\n\nMethod\n\nProcess environment check\n\nGlobalMemoryStatusEx\n\nWMI  Win32_VideoController\n\nGetUserGeoID\n\nThe first check attempts to connect to a deliberately malformed network resource (\n\nThreshold\n\n≥ 3 CPUs\n\n≥ 3 GB physical memory\n\nquery ≥ 20 Hz\n\nExcludes CIS GEOIDs\n\n*72s@1s ) using\n\nmpr!WNetAddConnection2W . This technique appears to defeat emulation/sandboxes that may hook or return a successful\n\nconnection unconditionally. The malware developer verifies this call by accessing the TEB directly to retrieve the\n\nLastErrorValue . The loader expects this error code to be  ERROR_BAD_NAME (0x43) , if the error code is anything other than\n\nthis value, the malware takes the failure branch and stops execution.\n\nEmulation check via WNetAddConnection2W\n\nThe second check is an anti-sandbox test based on the processor count: the loader requires the host to have at least 3 CPUs\n\nto continue. Many sandboxes and analysis VMs are provisioned with one or two CPUs to conserve resources, so this\n\nthreshold filters out these automated analysis environments.\n\nAnti-sandbox check using CPU count\n\nThe next check uses  GlobalMemoryStatusEx()  to verify that the host has at least 3 GB of available physical memory.\n\nAnti-sandbox check based on RAM\n\nA further check uses WMI to query the system display's refresh rate, executing the WQL statement  SELECT\n\nCurrentRefreshRate FROM Win32_VideoController  and comparing the returned value (in Hertz) against a threshold of 20.\n\nPhysical monitors usually report around 60 Hz or higher, while headless and default-virtualized configurations typically\n\nreport 0 or 1, and values below 20 cause the loader to abort.\n\nAnti-sandbox check based on refresh rate\n\nGeographic and language exclusions\n\nThe final two checks halt execution if the host is located in a CIS country or configured for the Russian language. The first\n\ncheck in this category uses  GetUserGeoID  to retrieve the system’s geographic region and compares it against a hardcoded\n\nlist of CIS country GEOIDs.\n\nCIS country exclusion list\n\nThe second check uses  GetUserDefaultUILanguage  and matches against LANGID ( 0x419 - Russian, Russia ), the\n\nstandard configuration for a Russian language Windows installation.\n\nRussian language exclusion\n\nShellcode staging via .reloc section and OCX file\n\nAfter all the checks have passed, the malware makes a copy of the Windows DirectUI Engine DLL\n\n( C:\\Windows\\System32\\dui70.dll ), storing it in a temporary location using a randomly generated name with the  .ocx\n\nextension ( PFHemkxVk.ocx ). This extension choice inspired the OXLOADER family name.\n\nNewly dropped DLL copied from dui70.dll\n\nOXLOADER then creates a new section named ( .xtext ) in this target DLL ( PFHemkxVk.ocx ).\n\nNew section highlighted via PE Bear\n\nPage 3 of 6\n\nhttps://www.elastic.co/security-labs/threat-command/oxloader-malware-loader-infostealer\n\nThis new section ( .xtext ) is configured with RWX (read/write/execute) protections in preparation to store and execute the\n\nnext stage of the malicious code.\n\nPE Bear showing newly added section with characteristics\n\nThis updated DLL ( PFHemkxVk.ocx ) is then loaded into the existing loader process via  LoadLibraryA .\n\nProcess Hacker showing new loaded module\n\nIn a normal Windows executable, the  .reloc  section contains a table of  IMAGE_BASE_RELOCATION  blocks that the Windows\n\nloader applies to patch absolute addresses when the image is loaded at an address other than its preferred base. In this\n\nsample, the malware developer is using\n\nthe  .reloc  section to house malicious code instead of the base relocation entries. This is a strong static-analysis red flag:\n\nlegitimate toolchains do not emit code into the  .reloc  section.\n\nPE-bear showing code/instructions inside .reloc section\n\nThis shellcode from the  .reloc  section is then copied to the newly created section ( .xtext ) in the OCX file, and the\n\nloader then calls this code.\n\nShellcode copied from .reloc section\n\nAs observed previously, there is another decryption stub used to unpack this next stage.\n\nSelf-modifying instructions from .xtext section\n\nIn-memory infostealer delivery via DonutLoader and .NET assembly\n\nThis next-stage shellcode is a payload configured from DonutLoader, an open-source shellcode generator used to wrap .NET\n\nassemblies, DLLs, and EXEs into position-independent shellcode (PIC) for in-memory execution. During unpacking, the\n\nshellcode decrypts the loader's embedded configuration and execution context using the Chaskey-LTS block cipher in CTR\n\nmode with the key ( 6E0A1F8F77F7011561F6F9CA96B71B8F ) and IV ( 956C6128E9362E075F8D006C93616A66 ).\n\nDonutLoader shellcode after decryption\n\nAfter the decryption, the payload is decompressed via aPLib then bootstrapped through DonutLoader’s  RunPE()  function.\n\nThe final payload is a newly discovered information stealer by Huntress called CASTLESTEALER. This attribution is based\n\non the same AES key used for C2 communications found between  0xDEADBEEF  markers in a previous sample.\n\nSame AES key used in CASTLESTEALER sample\n\nSecond OXLOADER variant: same loader, different masqueraded program\n\nA second OXLOADER variant masquerades as a Node.js installer rather than API Monitor, but uses the identical loader\n\nmechanism.\n\nOn May 13, 2026, we discovered that the redirector endpoint  app.miloyannopoulos[.]com/download  responded with one of\n\ntwo  Location  header fields, chosen at random:\n\nhttps://link.storjshare[.]io/raw/jv5uebuqwzfpmtahj34q753ptykq/node/BATPackageBulderSetup.bat\n\nhttps://link.storjshare[.]io/raw/jvsmdybqmvwep2oawbobp6ub7aza/node/node-v24.15.0-x64-86.exe\n\nThe Batch installation script ( BATPackageBulderSetup.bat , with a typo for “Builder”) remained mostly identical. The only\n\ndifference was that the Storj payload link now pointed to a different binary named  node-v24.15.0-x64-86.exe .\n\nBatch script with a different embedded link pointing to OXLOADER\n\nThe payload attempts to masquerade itself as benign CMake code while retaining “node” in the filename, likely to keep the\n\nlure theme intact. We believe the earlier “API Monitor” sample was likely a distribution error by the operator.\n\nVirusTotal with small amounts of detection\n\nPage 4 of 6\n\nhttps://www.elastic.co/security-labs/threat-command/oxloader-malware-loader-infostealer\n\nUpon execution, we noticed the same pattern: indirect jumps used for in-memory self-decryption, followed by the loading of\n\nmpr.dll  and a call to  WNetAddConnection2W . We confirmed that it is the identical loader mechanism discussed previously,\n\nand this sample also loads  CASTLESTEALER .\n\nLoader behavior caught through a TinyTracer run\n\nBelow is a snippet where the self-decryption occurs. Dummy CMake-related strings appear to be passed as arguments to a\n\nfunction call, which patches a small decryption stub into memory immediately after the call site. Execution then jumps to\n\nthe stub to decrypt subsequent instructions, and this process repeats 2 more times until the main malware body is decrypted.\n\nIdentical self-decryption mechanism as the first sample\n\nConclusion: why defenders should track OXLOADER\n\nOXLOADER is in an early operational phase, but the engineering behind it suggests this family is worth watching. The code\n\nobfuscation, anti-VM measures, benign-looking code used to masquerade its binaries, and unique staging techniques reflect\n\ndeliberate engineering choices to evade analysis. That investment is paying off, resulting in low detection rates across static\n\nengines and detonation runs, giving OXLOADER a window to operate before it gets hunted down.\n\nREF8372 through MITRE ATT\u0026CK\n\nElastic uses the MITRE ATT\u0026CK framework to document common tactics, techniques, and procedures that threats use\n\nagainst enterprise networks.\n\nTactics\n\nTactics represent the why of a technique or sub-technique. It is the adversary’s tactical goal: the reason for performing an\n\naction.\n\nResource Development\n\nInitial Access\n\nExecution\n\nDefense Evasion\n\nDiscovery\n\nCommand and Control\n\nCollection\n\nExfiltration\n\nTechniques\n\nTechniques represent how an adversary achieves a tactical goal by performing an action.\n\nAcquire Infrastructure: Malvertising\n\nStage Capabilities: Upload Malware\n\nUser Execution: Malicious File\n\nCommand and Scripting Interpreter: PowerShell\n\nAbuse Elevation Control Mechanism: Bypass User Account Control\n\nObfuscated Files or Information: Encrypted/Encoded File\n\nDeobfuscate/Decode Files or Information\n\nObfuscated Files or Information: Embedded Payloads\n\nMasquerading: Match Legitimate Name or Location\n\nHijack Execution Flow: DLL Side-Loading\n\nVirtualization/Sandbox Evasion: System Checks\n\nSystem Location Discovery: System Language Discovery\n\nReflective Code Loading\n\nPrevention\n\nPage 5 of 6\n\nhttps://www.elastic.co/security-labs/threat-command/oxloader-malware-loader-infostealer\n\nPotential Browser Information Discovery\n\nPotential Evasion with Hardware Breakpoints\n\nSuspicious Thread Context Manipulation\n\nVirtualAlloc API Call from an Unsigned DLL\n\nSuspicious Remote Memory Allocation\n\nExecution from Suspicious Stack Trailing Bytes\n\nMicrosoft Common Language Runtime Loaded from Suspicious Memory\n\nSuspicious PowerShell Execution\n\nModule Stomping from a Copied Library\n\nYARA\n\nElastic Security has created YARA rules to identify this activity.\n\nWindows.Trojan.OxLoader\n\nWindows.Trojan.CastleStealer\n\nObservations\n\nThe following observables were discussed in this research.\n\nObservable\n\nnode-js\\[.\\]prentiva99\\[.\\]info\n\napp\\[.\\]miloyannopoulos\\[.\\]com\n\nfdfc7831e5c24cfa80152860dfe8c056ba079f7df1393bf6bb7b18ed974eda37\n\nde4f51649ec1a33071854aefe93ffb3fc225e19f802d8dd914676dd5dfef2615\n\n9a9939dff297997732aaade9b243d695632cbd64033c5fbcb9de3d09b7e6c28d\n\nc85f2765a6c3c3f3907c17e57df12f8f68826f74bff3bbfd272af50666d065fe\n\n4ec9d9d4d10ad78fc6d7bda7cb17d52984878ccd2dd4302fd1cef152313b9741\n\n39019279686c820c3af5684012a0085a7e2109f612c9fab886dd0577ace5b5c6\n\n89.124.95\\[.\\]161\n\n89.124.115\\[.\\]82\n\nSource: https://www.elastic.co/security-labs/threat-command/oxloader-malware-loader-infostealer\n\nPage 6 of 6\n\nType Name\n\ndomain-\n\nname\n\ndomain-\n\nname\n\nSHA-\n\n256\n\nSHA-\n\n256\n\nSHA-\napimonitor-x64.exe\n256\n\nSHA-\n\n256\n\nSHA-\n\n256\n\nSHA-\n\n256\n\nipv4\n\nipv4\n\nReference\n\nMalvertising\n\nlanding page\n\nMalvertising\n\nRedirector\n\nOXLOADE\n\nBATPackageBuilderSetup.bat downloader\n\nlauncher\n\nOXLOADE\n\nBATPackageBulderSetup.bat downloader\n\nlauncher\n\nOXLOADE\n\nnode-v24.15.0-x64-86.exe OXLOADE\n\nCASTLEST\n\nCASTLEST\n\nCASTLEST\n\nC2\n\nCASTLEST\n\nC2",
	"extraction_quality": 1,
	"language": "EN",
	"sources": [
		"OTX"
	],
	"origins": [
		"web"
	],
	"references": [
		"https://www.elastic.co/security-labs/threat-command/oxloader-malware-loader-infostealer"
	],
	"report_names": [
		"oxloader-malware-loader-infostealer"
	],
	"threat_actors": [],
	"ts_created_at": 1795486915,
	"ts_updated_at": 1795487804,
	"ts_creation_date": 0,
	"ts_modification_date": 0,
	"files": {
		"pdf": "https://archive.orkl.eu/5c7a166f96fa3f764579278bf6a95c9ddcc25aad.pdf",
		"text": "https://archive.orkl.eu/5c7a166f96fa3f764579278bf6a95c9ddcc25aad.txt",
		"img": "https://archive.orkl.eu/5c7a166f96fa3f764579278bf6a95c9ddcc25aad.jpg"
	},
	"iocs": [
		{
			"type": "domain",
			"value": "app.miloyannopoulos.com",
			"count": 3,
			"flags": [
				"defanged"
			],
			"some_flags": [
				"defanged"
			]
		},
		{
			"type": "domain",
			"value": "link.storjshare.io",
			"count": 4,
			"flags": [
				"defanged"
			],
			"some_flags": [
				"defanged",
				"in_url_host"
			]
		},
		{
			"type": "domain",
			"value": "node-js.prentiva99.info",
			"count": 2,
			"flags": [
				"defanged"
			],
			"some_flags": [
				"defanged"
			]
		},
		{
			"type": "domain",
			"value": "rohitab.com",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "domain",
			"value": "www.elastic.co",
			"count": 7,
			"flags": [
				"in_url_host"
			],
			"some_flags": [
				"in_url_host"
			]
		},
		{
			"type": "ipv4",
			"value": "89.124.115.82",
			"count": 1,
			"flags": [
				"defanged"
			],
			"some_flags": [
				"defanged"
			]
		},
		{
			"type": "ipv4",
			"value": "89.124.95.161",
			"count": 1,
			"flags": [
				"defanged"
			],
			"some_flags": [
				"defanged"
			]
		},
		{
			"type": "md5",
			"value": "6e0a1f8f77f7011561f6f9ca96b71b8f",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "md5",
			"value": "956c6128e9362e075f8d006c93616a66",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "sha256",
			"value": "39019279686c820c3af5684012a0085a7e2109f612c9fab886dd0577ace5b5c6",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "sha256",
			"value": "4ec9d9d4d10ad78fc6d7bda7cb17d52984878ccd2dd4302fd1cef152313b9741",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "sha256",
			"value": "9a9939dff297997732aaade9b243d695632cbd64033c5fbcb9de3d09b7e6c28d",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "sha256",
			"value": "c85f2765a6c3c3f3907c17e57df12f8f68826f74bff3bbfd272af50666d065fe",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "sha256",
			"value": "de4f51649ec1a33071854aefe93ffb3fc225e19f802d8dd914676dd5dfef2615",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "sha256",
			"value": "fdfc7831e5c24cfa80152860dfe8c056ba079f7df1393bf6bb7b18ed974eda37",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "url",
			"value": "https://link.storjshare.io/raw/jv5uebuqwzfpmtahj34q753ptykq/node/BATPackageBulderSetup.bat",
			"count": 1,
			"flags": [
				"defanged"
			],
			"some_flags": [
				"defanged"
			]
		},
		{
			"type": "url",
			"value": "https://link.storjshare.io/raw/jvsmdybqmvwep2oawbobp6ub7aza/node/node-v24.15.0-x64-86.exe",
			"count": 1,
			"flags": [
				"defanged"
			],
			"some_flags": [
				"defanged"
			]
		},
		{
			"type": "url",
			"value": "https://www.elastic.co/security-labs/threat-command/oxloader-malware-loader-infostealer",
			"count": 7,
			"flags": [],
			"some_flags": []
		}
	]
}