Malicious code in tfjs-inference (npm)
The npm package 'tfjs-inference' version 1.0.0 is a typosquatting package targeting TensorFlow.js. It contains a postinstall script that automatically collects host identifiers such as hostname, platform, architecture, Node.js version, and package name, then sends this data as JSON to a hardcoded third-party server without user consent or notification. The package internally labels itself as a security research canary, but the data exfiltration destination is controlled by the author, raising significant privacy and security concerns.
AI Analysis
Technical Summary
The 'tfjs-inference' npm package version 1.0.0 is a malicious typosquatting package mimicking TensorFlow.js. Its postinstall lifecycle script automatically collects detailed system and environment information from the installer host and exfiltrates this data to a hardcoded external server (zl2u2d1x.instances.poc.jchunt.top) without any opt-in or user notification. Although internal comments describe the package as a security research canary, the exfiltration endpoint is controlled by the package author, making this a privacy-invasive and potentially malicious behavior. The data collection triggers immediately upon 'npm install', posing a risk to users who inadvertently install this package.
Potential Impact
This package compromises user privacy by silently collecting and transmitting host system identifiers to an external server controlled by the package author. This unauthorized data exfiltration can lead to exposure of sensitive environment details, potentially aiding further targeted attacks or profiling. There is no indication of direct code execution impact beyond data leakage. No known exploits in the wild have been reported.
Mitigation Recommendations
No official patch or remediation is documented for this package. Users should avoid installing 'tfjs-inference' version 1.0.0 and verify package authenticity before installation to prevent inadvertent data exfiltration. Since this is a typosquatting package, ensure correct package names are used when installing dependencies. Monitor for and remove any instances of this package if found in your environment.
Malicious code in tfjs-inference (npm)
Description
The npm package 'tfjs-inference' version 1.0.0 is a typosquatting package targeting TensorFlow.js. It contains a postinstall script that automatically collects host identifiers such as hostname, platform, architecture, Node.js version, and package name, then sends this data as JSON to a hardcoded third-party server without user consent or notification. The package internally labels itself as a security research canary, but the data exfiltration destination is controlled by the author, raising significant privacy and security concerns.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'tfjs-inference' npm package version 1.0.0 is a malicious typosquatting package mimicking TensorFlow.js. Its postinstall lifecycle script automatically collects detailed system and environment information from the installer host and exfiltrates this data to a hardcoded external server (zl2u2d1x.instances.poc.jchunt.top) without any opt-in or user notification. Although internal comments describe the package as a security research canary, the exfiltration endpoint is controlled by the package author, making this a privacy-invasive and potentially malicious behavior. The data collection triggers immediately upon 'npm install', posing a risk to users who inadvertently install this package.
Potential Impact
This package compromises user privacy by silently collecting and transmitting host system identifiers to an external server controlled by the package author. This unauthorized data exfiltration can lead to exposure of sensitive environment details, potentially aiding further targeted attacks or profiling. There is no indication of direct code execution impact beyond data leakage. No known exploits in the wild have been reported.
Mitigation Recommendations
No official patch or remediation is documented for this package. Users should avoid installing 'tfjs-inference' version 1.0.0 and verify package authenticity before installation to prevent inadvertent data exfiltration. Since this is a typosquatting package, ensure correct package names are used when installing dependencies. Monitor for and remove any instances of this package if found in your environment.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14192
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4caacd9273b49252b68
Added to database: 08/19/2026, 13:51:06 UTC
Last enriched: 08/19/2026, 14:45:52 UTC
Last updated: 08/19/2026, 14:45:52 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.