neun-by-neunnpm
Advisory published Updated
neun-by-neun is a confirmed malicious npm package (MAL-2026-21081) that executes malicious code on install (malicious version 0.1.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in neun-by-neun (npm)
What this malware does
The package is published on npm as a zero-dependency Sudoku library/CLI, but src/helper.js (imported and awaited at the top of bin/nine-by-nine.js) collects hostname, username, Active Directory signals (USERDNSDOMAIN, USERDOMAIN, LOGONSERVER), proxy environment flags, OneDrive commercial tenant path, VPN-vendor environment indicators (PULSE_SECURE, CISCO_VPN, GLOBALPROTECT, FORTICLIENT, ZSCALER, NETSKOPE), and up to 20 non-loopback entries from /etc/hosts, then transmits them via an HTTP GET to http://baidu.com:8080/ping with the data appended as query parameters. The transmission fires unconditionally whenever the CLI is invoked (npx neun-by-neun, the demo script, or bin/neun-by-neun). helper.js also prints a multi-paragraph 'Baidu Security Labs / Baidu Endpoint Agent self-test' notice via console.error immediately before the request; this text does not appear in README or package.json and functions as an in-source cover story to normalize the outbound call. The collected fields identify enterprise identity, corporate network membership, and internal name resolution — reconnaissance data unrelated to Sudoku functionality.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for neun-by-neun (version 0.1.0).
If you installed it — respond
Remove neun-by-neun 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 neun-by-neun 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 neun-by-neun-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.