neun-by-neun@0.1.0
Malicious code in neun-by-neun (npm)
Analysis
The package advertises itself as a "zero-dependency" Sudoku puzzle generator/solver with a CLI, but running the CLI silently performs corporate-environment reconnaissance and sends the collected data to an external host. The CLI entry bin/nine-by-nine.js imports src/helper.js and calls its helping() export unconditionally on startup, before any Sudoku logic runs. That function gathers the machine hostname, the OS username (USER/USERNAME) and profile path, the Active Directory domain (USERDNSDOMAIN), Windows domain (USERDOMAIN) and logon server (LOGONSERVER), proxy settings, platform and Node version, a CI flag, and OneDrive commercial settings; it fingerprints which corporate VPN product is installed (Pulse Secure/Juniper, Cisco AnyConnect, GlobalProtect, FortiClient, Zscaler/Netskope); it scans the user's profile directory for a OneDrive folder name (which commonly contains the company name on managed machines); and it reads /etc/hosts, filtering out loopback/fe80 entries and keeping up to 20 remaining lines to harvest internal hostnames and domain-controller names. All of it is URL-encoded into query parameters and sent with an HTTP GET to hxxp://baidu[.]com:8080/ping (path /ping, parameters pkg=nbn, ci, node, host, addomain, userdomain, logonserver, proxy, win, user, userprofile, onedrivecorp, onedrivepath, vpn, hosts). A 30-line banner inside src/helper.js claims the module is a "Baidu Endpoint Agent self-test" telemetry component with telemetry endpoint baidu[.]com:8080/ping, but nothing else in the package supports that: the published description, keywords and library entry points describe only a Sudoku engine, no repository or Baidu attribution is present elsewhere, and the banner's own build path misspells the package name. The collection is not a minimal host-metadata ping: user identity, corporate domain, OneDrive company path and internal hostnames from /etc/hosts are harvested and transmitted over cleartext HTTP. IOC: hxxp://baidu[.]com:8080/ping.
- analyzed by
- Leitwacht
- first seen
- Nov 6, 2026, 04:50 AM
- analyzed
- Nov 6, 2026, 04:50 AM
Related advisories
- @ubedsockets/baileys@1.7.9
- gpt-terminal-cli@1.0.0
- @azure-growth/signup-ux-components@2.9.9
- @azure-growth/signup-ux-components@1.2.3
- @eforms/forms-api@1.99.0
- @capsense/core-ui@99.99.100
- @capsense/ccx-welcome-page@99.99.100
- regex-linter@12.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.