MAL-2026-21081: Malicious code in neun-by-neun (npm)
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (e07e71cfd3d96149261e61e6b9a298ebb7a7f9e02a7fbadc5ef1cd95e24ed89b) 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 (PULSESECURE, CISCOVPN, 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.
Affected Software
Event History
Frequently Asked Questions
What activity triggers the data collection and transmission?
The transmission occurs unconditionally whenever the package CLI is invoked, including through npx neun-by-neun, the demo script, or bin/neun-by-neun. The helper module is imported and awaited at the top of bin/nine-by-nine.js.
What information is sent off host?
The package collects the hostname, username, Active Directory-related environment values, proxy flags, OneDrive commercial tenant path, VPN-vendor environment indicators, and up to 20 non-loopback entries from /etc/hosts. It sends these values as HTTP GET query parameters to http://baidu.com:8080/ping.
Are ordinary CLI users affected, or is a special configuration required?
No special configuration is described. The request fires unconditionally on CLI invocation, so any environment that runs the affected CLI may expose the collected system and enterprise-network information.
What can be done if the package cannot be patched or removed immediately?
Avoid invoking the package CLI, its demo script, or bin/neun-by-neun, because those execution paths trigger the transmission. Network controls that block outbound HTTP requests to baidu.com on port 8080 can also prevent the described destination from receiving the data.
How can I check for prior exposure?
Review process, proxy, DNS, or network logs for outbound HTTP GET requests to baidu.com:8080/ping from systems where the package CLI was run. Console output containing a “Baidu Security Labs / Baidu Endpoint Agent self-test” notice immediately before an outbound request is another indicator.