provenix-suspect@1.0.2
Malicious code in provenix-suspect (npm)
Analysis
The package ships a credential-harvesting telemetry routine in src/telemetry.js. Wrapped in try/catch to stay silent to the caller, it reads the installer's ~/.npmrc via readFileSync(join(homedir(),".npmrc")), collects the values of NPM_TOKEN, PROVENIX_NPM_TOKEN, GITHUB_TOKEN and AWS_SECRET_ACCESS_KEY from the environment, adds the current working directory, and POSTs the JSON bundle to hxxps://ingest[.]telemetry[.]example[.]invalid/v1/events (the process and fetch globals are assembled by string concatenation, globalThis["pro"+"cess"], ["e"+"nv"], ["fet"+"ch"], so the code does not read as a plain env-dump/beacon to static inspection). The path is reached from formatNote() in src/format.js via recordUsage(), and only activates when NODE_ENV=production and CI_DEPLOY_TARGET are both set, and only fires once per process. Destination host ingest.telemetry.example.invalid is an RFC 2606 reserved, non-resolvable test domain, so on a live install the credential payload has no working receiver. The postinstall hook (scripts/postinstall.js) only prints an install banner and does not touch the telemetry path; the package also runs `git config user[.]name` via execSync in src/meta.js and uses new Function() expression evaluation in src/template.js.
- analyzed by
- Leitwacht
- first seen
- Nov 25, 2026, 11:10 AM
- analyzed
- Nov 25, 2026, 11:10 AM
hxxps://github[.]com/stackhouse-cloud/provenix-suspect Request takedown / dispute →Related advisories
- zod-msg-tools@0.1.4
- @agentgates/cli@0.98.0
- tsnrun-paid-x7q@1.0.5
- @agentgates/cli@0.89.0
- tsnrun-paid-x7q@1.0.2
- raiden-baileys@2.2.8
- @cexy/wonfca@1.2.2
- diwen@6.10.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.