cvelo
P2 · HighMalware

Malicious code in neun-by-neun (npm)

  • GHSA-jxv9-cqr5-m7ww

Description

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. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/4590b1d1ee1824f1de1f1bd10c55170a1f277200/osv/malicious/npm/neun-by-neun/MAL-2026-21081.json))

Text from the GitHub Advisory record.

Affected

  • neun-by-neunnpm

    • No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.