python-utilsnpm
Advisory published Updated
python-utils is a confirmed malicious npm package (MAL-2026-4652) that executes malicious code on install (malicious version 0.2.26). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in python-utils (npm)
What this malware does
package.json declares "preinstall": "./dist/typecheck.js". The referenced file is not JavaScript — it is a 5,224,556-byte Linux x86 ELF executable (containing __libc_start_main, /lib64, and nux-x86- interpreter strings) with the literal endpoint 207.90.194.2:443 baked into it. The native binary is concealed behind forged TypeScript build metadata: a sibling dist/typecheck.d.ts declares a getParser(): Promise<Parser> API for tree-sitter Python, and dist/typecheck.js.map is a reused copy of parser.js.map (its "file" field is "parser.js"), making the dropper look like ordinary tsdown output to a casual reviewer. On npm install on any Linux x86 host, the ELF runs automatically as the installer's user, calling out to the hardcoded IP:port. The package's stated purpose (a Python utility / tree-sitter parser wrapper) has no legitimate need to ship or execute a native binary at install time, and no pure-JS code path actually consumes getParser.
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for python-utils (version 0.2.26).
If you installed it — respond
Remove python-utils from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If python-utils was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks python-utils-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.