Skip to main content

Malicious code in @shiftmarkets/shift-sdk-v4 (npm)

0
High
Published: 08/05/2026 (08/05/2026, 13:02:35 UTC)
Source: GCVE Database
Product: @shiftmarkets/shift-sdk-v4

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

npmghsa
@shiftmarkets/shift-sdk-v4
Affected versions
=1.0.77

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

AILast updated: 08/05/2026, 17:15:14 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses