Skip to main content

Malicious code in shift-sdk-v5 (npm)

0
High
Published: 08/05/2026 (08/05/2026, 12:57:51 UTC)
Source: GCVE Database
Product: shift-sdk-v5

Description

The npm package shift-sdk-v5 version 5.0.1 contains malicious code that executes a postinstall script collecting extensive environment and system information. This includes hostname, usernames, sudo user status, home and working directories, internal network interfaces, DNS domain, CI environment indicators, and environment variables related to cloud providers and credentials. The collected data is sent unencrypted to a hardcoded IP address. The package impersonates a legitimate scoped trading API client to increase installation likelihood.

Affected software

npmghsa
shift-sdk-v5
Affected versions
=5.0.1

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:20:29 UTC

Technical Analysis

The shift-sdk-v5 package at version 5.0.1 registers a postinstall script that runs dist/recon.js upon npm install. This script gathers detailed host and environment data, including sensitive environment variable names that match patterns related to AWS, GCP, Azure, tokens, secrets, keys, passwords, credentials, GitHub, GitLab, and SSH. The data is exfiltrated via plain HTTP POST to a fixed IP address (138.68.108.20) at the /cb path. The package masquerades as the legitimate @shiftforex/shift-sdk-v4 scoped trading API client but is published unscoped as shift-sdk-v5, likely to deceive users into installing it. The reconnaissance aims to fingerprint the host and CI environment for potential follow-up attacks.

Potential Impact

This malicious package can leak sensitive environment and system information from the host where it is installed, including credential-related environment variables and CI context. The exfiltrated data could be used by attackers to identify privileged accounts, internal network details, and cloud credentials, increasing the risk of further compromise. The data is transmitted unencrypted, exposing it to interception. There is no indication of direct code execution beyond the postinstall script, but the information gathered can facilitate targeted attacks.

Mitigation Recommendations

No official patch or remediation is currently documented for this malicious package. Users should avoid installing shift-sdk-v5 version 5.0.1. Remove the package if already installed and audit systems for potential credential exposure. Use trusted scoped packages and verify package authenticity before installation. Monitor for suspicious network traffic to the IP address 138.68.108.20. Patch status is not yet confirmed — check vendor advisories or npm security advisories for updates.

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

Threat ID: 6a735744bf8831d539159c94

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

Last enriched: 08/05/2026, 17:20:29 UTC

Last updated: 09/07/2026, 22:28:18 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