Malicious code in tostpro (npm)
Description
The npm package [email protected] contains a malicious preinstall script that executes automatically during installation. This script is obfuscated and designed to send the full environment variables, potentially including sensitive credentials, to a remote server after a specific date in 2026. The package's README falsely claims no network access or data collection, indicating deliberate evasion. This behavior poses a significant risk of credential leakage and unauthorized data exfiltration.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The npm package [email protected] includes a preinstall lifecycle hook that runs a shell script (test.sh) on npm install. The script reconstructs and executes a curl command that, after October 4, 2026, posts the installer's environment variables (which may contain sensitive information such as CI tokens, cloud credentials, and API keys) to https://abbishal.com/sh/poc. The code uses string-splitting obfuscation and a time-bomb gate to evade detection. The README misleadingly states that there is no network access or data collection, indicating intentional concealment of malicious activity.
Potential Impact
If triggered, this malicious code can exfiltrate sensitive environment data from the installation environment, including credentials and tokens, potentially leading to unauthorized access and compromise of systems relying on those credentials. The time-bomb mechanism delays activation until after October 4, 2026, which may allow the package to evade early detection and analysis.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing the affected versions of tostpro. Review and remove any installations of [email protected], 100.6.0, and 100.7.0. Monitor for any suspicious network activity related to https://abbishal.com/sh/poc. Check the vendor advisory or npm security advisories for updates or fixes. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17564
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6acc008d2cdf04f656fe3821
Added to database: 10/11/2026, 21:33:01 UTC
Last enriched: 10/11/2026, 21:37:02 UTC
Last updated: 10/11/2026, 21:37:02 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.