Malicious code in @shiftmarkets/shift-sdk-v4 (npm)
The npm package @shiftmarkets/shift-sdk-v4 version 1.0.77 contains malicious code that executes a postinstall script upon installation. This script collects extensive reconnaissance data from the installer environment, including hostname, usernames, environment variables (including those resembling credentials), network interfaces, and CI environment flags. The collected data is sent unencrypted over HTTP to a hardcoded IP address with no known affiliation, indicating a potential data exfiltration attempt. The package masquerades as a legitimate Shift Forex SDK and appears designed for dependency confusion attacks against internal registries.
AI Analysis
Technical Summary
The malicious package @shiftmarkets/[email protected] includes a postinstall script 'node dist/recon.js' that runs automatically during npm install. This script gathers detailed system and environment information such as hostname, user details, local IPv4 addresses, DNS domain, CI environment indicators, and environment variables filtered for potential secrets. It then sends this information as a JSON payload over plain HTTP to a hardcoded IP address (http://138.68.108.20:80/cb). The package provides a minimal API-compatible stub to mimic the legitimate shift-sdk-v4 package, consistent with a dependency confusion attack vector targeting users who mistakenly install this malicious package from an internal or public registry.
Potential Impact
The malicious postinstall script can leak sensitive environment information, including credential-like environment variables and internal network topology, to an attacker-controlled server. This exposure can facilitate further attacks such as credential theft, internal network reconnaissance, and compromise of CI/CD pipelines or developer machines. The use of plain HTTP for data exfiltration increases the risk of interception or detection but does not mitigate the initial data leak.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package version. Users should avoid installing @shiftmarkets/shift-sdk-v4 version 1.0.77 from untrusted sources. Verify package integrity and source before installation, and consider using package allowlists or internal registries with strict controls. Monitor for unexpected postinstall scripts in dependencies and audit environment variables for exposure. If this package has been installed, investigate potential data exposure and consider rotating any credentials that may have been leaked.
Malicious code in @shiftmarkets/shift-sdk-v4 (npm)
Description
The npm package @shiftmarkets/shift-sdk-v4 version 1.0.77 contains malicious code that executes a postinstall script upon installation. This script collects extensive reconnaissance data from the installer environment, including hostname, usernames, environment variables (including those resembling credentials), network interfaces, and CI environment flags. The collected data is sent unencrypted over HTTP to a hardcoded IP address with no known affiliation, indicating a potential data exfiltration attempt. The package masquerades as a legitimate Shift Forex SDK and appears designed for dependency confusion attacks against internal registries.
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 malicious package @shiftmarkets/[email protected] includes a postinstall script 'node dist/recon.js' that runs automatically during npm install. This script gathers detailed system and environment information such as hostname, user details, local IPv4 addresses, DNS domain, CI environment indicators, and environment variables filtered for potential secrets. It then sends this information as a JSON payload over plain HTTP to a hardcoded IP address (http://138.68.108.20:80/cb). The package provides a minimal API-compatible stub to mimic the legitimate shift-sdk-v4 package, consistent with a dependency confusion attack vector targeting users who mistakenly install this malicious package from an internal or public registry.
Potential Impact
The malicious postinstall script can leak sensitive environment information, including credential-like environment variables and internal network topology, to an attacker-controlled server. This exposure can facilitate further attacks such as credential theft, internal network reconnaissance, and compromise of CI/CD pipelines or developer machines. The use of plain HTTP for data exfiltration increases the risk of interception or detection but does not mitigate the initial data leak.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package version. Users should avoid installing @shiftmarkets/shift-sdk-v4 version 1.0.77 from untrusted sources. Verify package integrity and source before installation, and consider using package allowlists or internal registries with strict controls. Monitor for unexpected postinstall scripts in dependencies and audit environment variables for exposure. If this package has been installed, investigate potential data exposure and consider rotating any credentials that may have been leaked.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12329
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a735743bf8831d539159c35
Added to database: 08/05/2026, 15:31:15 UTC
Last enriched: 08/05/2026, 17:15:14 UTC
Last updated: 09/07/2026, 22:04:03 UTC
Views: 18
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.