LWA-2026-7349 MAL-2026-12146 ↗ confirmed malware

beaver-ui-hooks@12.6.3

Malicious code in beaver-ui-hooks (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1105 · Ingress Tool TransferT1071.001 · Web ProtocolsT1568.002 · DNS CalculationT1204.002 · Malicious File

Analysis

The postinstall hook (node setup.js || true) downloads a platform-specific native binary from attacker-controlled Cloudflare Workers subdomains (oob-worker[.]cf) and launches it as a detached background process. The downloader maps the installer's OS and architecture to a specific binary path, fetches via HTTPS (or PowerShell Invoke-RestMethod on Windows), and falls back to DNS TXT record extraction from well1[.]site if HTTP fails. The binary is written to /var/tmp/.cache_<random-hex> (or Windows temp) and executed with stdio redirected to /dev/null, detached from the parent process so it persists after npm install completes. A stamp file at /tmp/.analytics_state limits re-execution to once per 6 hours. The package claims to be a UI toolkit collecting anonymous telemetry, but the actual behaviour is downloading and running untrusted native binaries from external infrastructure.

analyzed by
Leitwacht
first seen
Aug 1, 2026, 01:04 PM
analyzed
Aug 1, 2026, 01:05 PM

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.