LWA-2026-7232 MAL-2026-12032 ↗ confirmed malware

add-two-numbers-x7q9m@1.0.0

Malicious code in add-two-numbers-x7q9m (npm)

T1059.007 · JavaScriptT1552.001 · Credentials In FilesT1041 · Exfiltration Over C2 ChannelT1195.002 · Compromise Software Supply Chain

Analysis

The package's preinstall hook (scripts/preinstall.js) reads .txt files from the installer's Desktop directory, scans for npm authentication tokens matching the pattern npm_[A-Za-z0-9_-]+, and exfiltrates any found token to the URL hxxps://lively-bird-15[.]webhook[.]cool via an HTTP GET request with the token in the query parameter. The postinstall hook is a decoy that only prints a success message. The exported index.js is a trivial add-two-numbers function; all malicious behaviour is in the install-time lifecycle hook.

analyzed by
Leitwacht
first seen
Jul 29, 2026, 06:39 PM
analyzed
Jul 29, 2026, 06:41 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.