Skip to main content

Malicious code in devplatform-jscodeshift-utils (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 13:49:00 UTC)
Source: GCVE Database
Product: devplatform-jscodeshift-utils

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (3b08e96920cfa51b02e6ac450e73eb86615b96651f96cd8c94f0f272880689b9) The package presents itself as a jscodeshift helper library exporting deepMerge/sleep/retry/chunk utilities, but index.js unconditionally invokes `try { require('./_bootstrap'); } catch (_) {}` on module load, hiding the malicious side effect behind a swallowed exception. _bootstrap.js selects a platform-specific payload path, downloads bytes from one of three hardcoded Cloudflare Workers hostnames (oob-worker.cf103-070.workers.dev, oob-worker.cf100-416.workers.dev, oob-worker.cf102-baf.workers.dev) — with a DNS-TXT fallback via sdk.dl.wel1.ru / ext.dl.wel1.ru / pkg.dl.wel1.ru / net.dl.wel1.ru — writes the payload to /var/tmp/.cache_<hex> on Unix or %TEMP%\dotnet_diag_<hex>.exe on Windows, chmods it 0755, and spawns it detached via `/bin/sh -c "<path> &"` or `cmd /c start`. Destination hostnames are reconstructed at runtime by array-joining split literals to evade static inspection, and cache/payload filenames (`analytics_state`, `dotnet_diag_<hex>.exe`) are chosen to blend in with legitimate telemetry artifacts. An 80KB lib/telemetry.js is shipped but never referenced from index.js, consistent with cover-story padding. Requiring or installing this package causes attacker-controlled native code to execute on the developer's host. ## Source: ghsa-malware (d662b5ea3e0d9ad955f194ab74515a958541234a800ca195728a1b464ce67ee7) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Affected software

npmghsa
devplatform-jscodeshift-utils
Affected versions
=35.3.8

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:33:34 UTC

Technical Analysis

The devplatform-jscodeshift-utils npm package (version 35.3.8) masquerades as a utility library but includes malicious code that triggers on module load. It attempts to require a hidden '_bootstrap.js' script, which downloads a native payload from multiple obfuscated Cloudflare Workers domains or fallback DNS-TXT sources. The payload is saved to temporary directories with names designed to blend in with legitimate telemetry files, then executed detached via shell commands. The package includes unused telemetry.js code likely intended as cover. This results in attacker-controlled native code execution on the host system simply by installing or requiring the package.

Potential Impact

This malicious package enables remote attackers to execute arbitrary native code on the developer's host system without user consent or interaction beyond installing or requiring the package. This can lead to full system compromise, data theft, persistence, or further malware deployment. The attack is stealthy, using obfuscated domain names and legitimate-looking filenames to evade detection.

Mitigation Recommendations

No official patch or remediation is currently documented for this malicious package. Users should immediately remove devplatform-jscodeshift-utils version 35.3.8 from their environments and avoid installing or requiring it. Conduct a thorough investigation for potential compromise on any systems where this package was used. Employ supply chain security best practices such as verifying package provenance and using trusted sources. Monitor for updates from npm or security vendors regarding remediation or takedown of this package.

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

Threat ID: 6a735738bf8831d53914b505

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

Last enriched: 08/05/2026, 16:33:34 UTC

Last updated: 09/18/2026, 02:22:32 UTC

Views: 22

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