Malicious code in test-brotli2-testmetest (npm)
Description
The npm package test-brotli2-testmetest version 1.0.0 contains malicious code that executes during installation. Its install script triggers node-gyp to run an obfuscated JavaScript loader (index.js) that decrypts and executes a Brotli-compressed payload. This payload acts as a credential stealer. The package was published by the npm account testnewtestme2 on 2026-10-21.
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 test-brotli2-testmetest 1.0.0 npm package includes a malicious install script that leverages node-gyp's build process to execute an obfuscated loader script (index.js). The binding.gyp file uses GYP command expansion to run index.js during the configure phase, despite declaring no actual build targets or source files. The loader script is a large Caesar-shifted character array that, when decoded, imports node:crypto to decrypt an AES-128-GCM encrypted payload. This decrypted payload is executed on the installer's machine and functions as a credential stealer. The package was published on 2026-10-21 by the npm user testnewtestme2. No readable logic or URLs are exposed in the source, making the payload opaque and malicious.
Potential Impact
Installing this package results in execution of a concealed malicious payload on the installer's machine, which steals credentials. This compromises the security and privacy of the affected system and any credentials stored or accessible during installation.
Mitigation Recommendations
No official patch or remediation is indicated. Users should avoid installing the test-brotli2-testmetest package version 1.0.0. Remove any installations of this package and audit systems for potential credential compromise. Monitor npm package sources and verify publisher authenticity before installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-18182
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6ada450b4d27ba8daa6a5b51
Added to database: 10/22/2026, 17:16:59 UTC
Last enriched: 10/22/2026, 17:41:36 UTC
Last updated: 10/22/2026, 17:41:36 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.