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
- nagixjs@2.1.6
- @mypwn/greatcall.customers.commandapi@99.0.1
- @adominadmininstr/fmt-date-helper@1.0.0
- @adominadmininstr/date-util-helper@1.0.0
- json-to-table-util@1.0.0
- text-line-parser@1.0.0
- num-format-helper@1.0.0
- date-sanitize-helper@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.