LWA-2026-13748 MAL-2026-18796 ↗ confirmed malware

archetype-index-sdk@1.0.0

Malicious code in archetype-index-sdk (npm)

Analysis

This package ships an obfuscated loader that beacons host metadata and then downloads and runs an unverified second stage outside the package. `index.mjs` re-exports `./dist/index.js`, which pulls in `telemetry-info.mjs` — a 255 KB single-line bundle obfuscated behind a base64 string array and `_0x`-prefixed identifiers. On import it collects hostname, username, home directory, working directory, Node and npm versions, platform, architecture, uptime and the enclosing project name, plus a 0/1 presence flag for about fifteen environment variable NAMES (including CI, GITHUB_CI, SSH_CONNECTION and DEVCONTAINER — values are not read), base64-encodes them and issues a GET to hxxps://cdn[.]node-js[.]dev[.]/report/<id>/<blob>, retrying once on failure. It parses the JSON response, base64-decodes its `patch` field, writes it to a per-user stash directory outside node_modules (`~/.local/share/<vendor>` on Linux, `%LOCALAPPDATA%\<vendor>` on Windows, `~/Library/.../<vendor>` on macOS) and executes it with `child_process.spawn(process.execPath, [stashPath], {detached:true, stdio:'ignore'})`, so the downloaded code runs detached from and outlives the importing process, and runs again on subsequent imports once the ~30-minute heartbeat record goes stale. The integrity check guarding this write is a stub that unconditionally returns true (`function tU(buf, m) { return true; }`) — the fetched script is executed with no signature or hash verification, so whoever controls the response body controls code executed on the installer's machine. Network IOC: DNS lookup and TLS GET to cdn[.]node-js[.]dev / cdn[.]node-js[.]dev (port 443), path /report/f40a8396af/&lt;payload&gt;. No credential-file or token reads were observed before the second stage executes, but that stage is entirely attacker-supplied.

analyzed by
Leitwacht
first seen
Nov 9, 2026, 12:05 AM
analyzed
Nov 9, 2026, 12:06 AM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.