Malicious code in test-brotli-testmetest (npm)
Description
The npm package test-brotli-testmetest version 1.0.0 contains malicious code that executes during installation. Its install script triggers a node-gyp rebuild that runs an obfuscated JavaScript loader (index.js). This loader decrypts and executes a Brotli-compressed payload, effectively running attacker-controlled code at install time without user visibility. 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-brotli-testmetest 1.0.0 npm package includes a binding.gyp file that abuses GYP command expansion to execute a JavaScript file (index.js) during the node-gyp rebuild step of installation. The binding.gyp's sources field uses shell command expansion to run 'node index.js', which is an obfuscated loader approximately 586KB in size. This loader decodes a Caesar-shifted character array, then uses AES-128-GCM with hardcoded keys to decrypt a large ciphertext payload. The decrypted payload is executed asynchronously and silently, representing a classic install-time dropper that runs attacker-supplied code during 'npm install' with no transparency. No legitimate native build occurs, indicating the sole purpose is malicious code execution.
Potential Impact
The malicious package executes arbitrary code on the system during installation, potentially allowing credential theft or other attacker actions without user awareness. This compromises the security of any environment where the package is installed, leading to possible credential exposure and system compromise.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing test-brotli-testmetest version 1.0.0. Since the package runs malicious code at install time, removing or blocking this package from dependency trees is recommended. Monitor for updates or advisories from npm or the package maintainer for remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-18181
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6ada450b4d27ba8daa6a5b52
Added to database: 10/22/2026, 17:16:59 UTC
Last enriched: 10/22/2026, 17:41:40 UTC
Last updated: 10/22/2026, 17:41:40 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.