Skip to main content

Malicious code in test-in-one (npm)

0
Critical
Published: 08/29/2026 (08/29/2026, 02:09:01 UTC)
Source: GCVE Database
Product: test-in-one

Description

The npm package 'test-in-one' version 1.0.0 contains malicious code embedded as a local file dependency that executes automatically during installation. This code harvests sensitive files such as crypto-wallet directories, private SSH keys, AWS credentials, Git credentials, environment files, and npm/yarn configuration files from the user's system. The stolen data is compressed and exfiltrated to a hardcoded Telegram Bot API endpoint. Additionally, the malicious script includes functionality to steal npm tokens and attempt to propagate itself by injecting postinstall hooks into other packages owned by the same maintainer, although the final publish step is currently disabled.

Affected software

npmghsa
test-in-one
Affected versions
=1.0.0

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

AILast updated: 09/09/2026, 21:23:28 UTC

Technical Analysis

The 'test-in-one' npm package (version 1.0.0) declares a local file dependency 'detector' whose postinstall script executes automatically on npm install. This script scans the installer's home directory and common locations for sensitive data including crypto-wallet directories (e.g., MetaMask, Phantom), SSH private keys, AWS credentials, Git credentials, environment files, and npm/yarn config files. The collected data is archived and sent to a hardcoded Telegram Bot API endpoint. The script also contains code to steal the npm authentication token, enumerate all packages owned by the maintainer, download their tarballs, inject malicious postinstall hooks, increment versions, and prepare them for republishing with the stolen token. The actual republishing is currently disabled by a conditional gate. The use of a local file dependency allows the malicious code to run lifecycle scripts without fetching from the registry, making the package manifest itself the delivery vector.

Potential Impact

Sensitive user data including private keys, credentials, environment variables, and npm tokens can be exfiltrated to an attacker-controlled endpoint. This compromises user security and privacy, potentially leading to unauthorized access to crypto wallets, cloud services, source code repositories, and npm package publishing rights. The malicious code also attempts to propagate by injecting itself into other packages owned by the same maintainer, increasing the risk of wider compromise within the npm ecosystem.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing version 1.0.0 of the 'test-in-one' package. Review and revoke any potentially compromised credentials and tokens, including npm tokens, SSH keys, AWS credentials, and crypto wallet keys. Monitor for unauthorized package publications from affected maintainers. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates and remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-15562
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a92f7d9acd9273b49e75aac

Added to database: 08/29/2026, 15:16:41 UTC

Last enriched: 09/09/2026, 21:23:28 UTC

Last updated: 10/01/2026, 22:27:05 UTC

Views: 41

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses