Skip to main content

Malicious code in shift-v4-sdk (npm)

0
High
Published: 08/05/2026 (08/05/2026, 13:18:42 UTC)
Source: GCVE Database
Product: shift-v4-sdk

Description

The npm package [email protected] is a typosquatting malicious package impersonating the legitimate @shiftforex/shift-sdk-v4. Its postinstall script collects extensive system information including hostname, user details, environment variables, and credential-like environment variable names. This data is sent unencrypted over HTTP to a remote server, enabling reconnaissance for potential follow-on attacks.

Affected software

npmghsa
shift-v4-sdk
Affected versions
=1.0.5

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, 16:52:05 UTC

Technical Analysis

The malicious npm package [email protected] is a typosquat of the legitimate @shiftforex/shift-sdk-v4 package. Upon installation, its postinstall script (dist/recon.js) automatically executes and collects detailed system information such as the installer's hostname, user and sudo user names, home directory, current working directory, DNS domain, network interfaces, IP addresses, and environment variable names. It specifically filters environment variables for names resembling credentials (e.g., AWS, GCP, AZURE, TOKEN, SECRET, KEY, PASS, CRED, GITHUB, GITLAB, SSH). This collected data is sent as a JSON payload over plaintext HTTP to the IP address 138.68.108.20 at the path /cb. Although the code comments claim this is 'non-sensitive telemetry,' the actual behavior constitutes reconnaissance for targeted follow-on attacks.

Potential Impact

The package exfiltrates sensitive environment information and system details without user consent, potentially exposing credential-related environment variables and system context to an attacker-controlled server. This reconnaissance data can facilitate further targeted attacks or credential compromise. The use of plaintext HTTP for data exfiltration increases the risk of interception by network adversaries.

Mitigation Recommendations

Users should avoid installing the shift-v4-sdk package, especially version 1.0.5, as it is a malicious typosquat. Replace any usage of shift-v4-sdk with the legitimate @shiftforex/shift-sdk-v4 package. Since no official patch or fix is available for the malicious package itself, the primary mitigation is to remove the malicious package and audit systems for any sensitive data exposure. Monitor for installations of similarly named typosquatting packages and educate developers to verify package authenticity before installation.

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-12802
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a73573ebf8831d539153635

Added to database: 08/05/2026, 15:31:10 UTC

Last enriched: 08/05/2026, 16:52:05 UTC

Last updated: 09/07/2026, 22:21:12 UTC

Views: 20

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