Malicious code in shiftmarkets-sdk (npm)
The shiftmarkets-sdk npm package version 2.1.0 contains malicious code that executes a postinstall script collecting extensive system and environment information. This script gathers hostname, usernames, network interface details, and environment variable names filtered for credential-like keywords, then sends this data unencrypted to a hardcoded external IP address. The package mislabels this data collection as 'NON-SENSITIVE telemetry,' while it clearly performs reconnaissance for sensitive credentials.
AI Analysis
Technical Summary
The shiftmarkets-sdk npm package version 2.1.0 includes a postinstall hook that runs a script (dist/recon.js) upon installation. This script collects system information such as hostname, username, sudo user, home directory, current working directory, internal IPv4 addresses, DNS domain, CI environment indicators, and environment variable names filtered against a regex targeting credential-related keywords (e.g., AWS, GCP, TOKEN, SECRET, PASS). The collected data is sent via an unencrypted HTTP POST request to a hardcoded IP address (http://138.68.108.20/cb) unrelated to the package's stated purpose. The code's labeling of this activity as 'NON-SENSITIVE telemetry' is misleading, indicating deliberate concealment of reconnaissance activity aimed at harvesting sensitive information.
Potential Impact
This malicious behavior can lead to exposure of sensitive environment variables and system information, potentially including credentials and tokens for cloud services, version control, and other critical systems. The unencrypted transmission to an external IP address increases the risk of interception and unauthorized access. This compromises the confidentiality of the affected system's environment and may facilitate further attacks or unauthorized access.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing shiftmarkets-sdk version 2.1.0 and remove it if already installed. Verify dependencies for malicious postinstall scripts and monitor for unexpected network connections to suspicious IP addresses. Patch status is not yet confirmed — check the vendor advisory or official sources for current remediation guidance.
Malicious code in shiftmarkets-sdk (npm)
Description
The shiftmarkets-sdk npm package version 2.1.0 contains malicious code that executes a postinstall script collecting extensive system and environment information. This script gathers hostname, usernames, network interface details, and environment variable names filtered for credential-like keywords, then sends this data unencrypted to a hardcoded external IP address. The package mislabels this data collection as 'NON-SENSITIVE telemetry,' while it clearly performs reconnaissance for sensitive credentials.
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 shiftmarkets-sdk npm package version 2.1.0 includes a postinstall hook that runs a script (dist/recon.js) upon installation. This script collects system information such as hostname, username, sudo user, home directory, current working directory, internal IPv4 addresses, DNS domain, CI environment indicators, and environment variable names filtered against a regex targeting credential-related keywords (e.g., AWS, GCP, TOKEN, SECRET, PASS). The collected data is sent via an unencrypted HTTP POST request to a hardcoded IP address (http://138.68.108.20/cb) unrelated to the package's stated purpose. The code's labeling of this activity as 'NON-SENSITIVE telemetry' is misleading, indicating deliberate concealment of reconnaissance activity aimed at harvesting sensitive information.
Potential Impact
This malicious behavior can lead to exposure of sensitive environment variables and system information, potentially including credentials and tokens for cloud services, version control, and other critical systems. The unencrypted transmission to an external IP address increases the risk of interception and unauthorized access. This compromises the confidentiality of the affected system's environment and may facilitate further attacks or unauthorized access.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing shiftmarkets-sdk version 2.1.0 and remove it if already installed. Verify dependencies for malicious postinstall scripts and monitor for unexpected network connections to suspicious IP addresses. Patch status is not yet confirmed — check the vendor advisory or official sources for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12803
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735741bf8831d539153c03
Added to database: 08/05/2026, 15:31:13 UTC
Last enriched: 08/05/2026, 16:58:07 UTC
Last updated: 08/05/2026, 16:58:07 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.