Malicious code in shift-sdk-v5 (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (2aca555e012d36b30d9ffe3d0f8acdca7ba67298a87ea02ea9d32731e8f2a748) [email protected] registers a postinstall script that runs dist/recon.js on npm install. The script collects hostname, username, SUDO_USER, home directory, working directory, internal network interface addresses, DNS domain (via dnsdomainname), CI provider indicators, the full list of environment variable names, and a filtered subset of environment variable names matching AWS, GCP, AZURE, NPM, TOKEN, SECRET, KEY, PASS, CRED, GITHUB, GITLAB, and SSH patterns. The collected data is POSTed over plain HTTP to the hardcoded bare IP 138.68.108.20 at path /cb. The package's main file self-identifies as `@shiftforex/shift-sdk-v4 — trading API client (scoped build)` while being published unscoped as `shift-sdk-v5`, impersonating the legitimate scoped SDK to attract installs. A `NON-SENSITIVE telemetry` comment accompanies code that explicitly enumerates sudo state, internal IPs, CI context, and credential-shaped env var names — pre-attack host and credential-surface fingerprinting against installer/CI environments.
Malicious code in shift-sdk-v5 (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (2aca555e012d36b30d9ffe3d0f8acdca7ba67298a87ea02ea9d32731e8f2a748) [email protected] registers a postinstall script that runs dist/recon.js on npm install. The script collects hostname, username, SUDO_USER, home directory, working directory, internal network interface addresses, DNS domain (via dnsdomainname), CI provider indicators, the full list of environment variable names, and a filtered subset of environment variable names matching AWS, GCP, AZURE, NPM, TOKEN, SECRET, KEY, PASS, CRED, GITHUB, GITLAB, and SSH patterns. The collected data is POSTed over plain HTTP to the hardcoded bare IP 138.68.108.20 at path /cb. The package's main file self-identifies as `@shiftforex/shift-sdk-v4 — trading API client (scoped build)` while being published unscoped as `shift-sdk-v5`, impersonating the legitimate scoped SDK to attract installs. A `NON-SENSITIVE telemetry` comment accompanies code that explicitly enumerates sudo state, internal IPs, CI context, and credential-shaped env var names — pre-attack host and credential-surface fingerprinting against installer/CI environments.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12436
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735744bf8831d539159c94
Added to database: 08/05/2026, 15:31:16 UTC
Last updated: 08/05/2026, 15:31:16 UTC
Views: 1
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
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.