Malicious code in kelly-stake-sizing (npm)
Description
The npm package kelly-stake-sizing version 0.1.1 contains malicious code that executes arbitrary attacker-controlled JavaScript during installation. The package's postinstall script fetches a remote JSON configuration to download and run additional code without integrity verification, leading to full system compromise. Removal of the package does not guarantee elimination of all malicious artifacts. Immediate secret and key rotation is advised for affected systems.
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 [email protected] npm package declares a postinstall script that downloads a JSON configuration from a remote URL, which is mutable by the package author. This JSON config points to a bundle URL from which a tarball is downloaded, extracted, and installed with npm install commands. The package then requires and executes a JavaScript file from the extracted bundle, invoking a function that runs attacker-controlled code with the privileges of the npm install process. Because the fetched code is not included in the original package tarball, is not version-pinned, and lacks hash or signature verification, this allows arbitrary code execution at install time. The package effectively acts as a backdoor, compromising any system that installs it.
Potential Impact
Installing [email protected] results in arbitrary code execution with the privileges of the npm install process, leading to full system compromise. Attackers can execute any JavaScript code, install additional dependencies with their own lifecycle scripts, and potentially persist control over the affected system. All secrets and keys stored on the compromised machine are at risk and should be considered exposed.
Defensive Guidance
There is no official patch or fix available for this malicious package. The recommended mitigation is to immediately remove [email protected] from all systems. Because the package executes arbitrary code during installation, any affected system should be treated as fully compromised. All secrets and keys stored on the system must be rotated from a different, trusted machine. Monitor for any signs of persistence or additional malicious software resulting from the package installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14432
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-h8rr-x7cp-4h62"]
- Ecosystems
- ["npm"]
Threat ID: 6a9f9110acd9273b49ff2acf
Added to database: 09/08/2026, 04:37:36 UTC
Last enriched: 09/08/2026, 05:24:30 UTC
Last updated: 10/03/2026, 06:21:45 UTC
Views: 25
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.