Skip to main content

Malicious code in devplatform-rest-client (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 13:45:58 UTC)
Source: GCVE Database
Product: devplatform-rest-client

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (b5813e9b97274c2eb3abd3459781550762baeea8c8fc0cec09603dac56a405d8) On require('devplatform-rest-client'), index.js loads _init.js which selects a platform-specific endpoint, downloads a binary from one of three Cloudflare Workers subdomains (oob-worker.cf99-9b3.workers.dev, oob-worker.cf101-adf.workers.dev, oob-worker.cf102-baf.workers.dev) with a DNS-TXT base64 fallback across four *.dl.wel1.ru subdomains, writes the payload to /tmp or %TEMP% under disguised names (dotnet_diag_<rand>.exe on Windows,.cache_<rand> on Unix), chmods it 0755, and spawns it detached via /bin/sh -c or cmd.exe. Destination hosts and filenames are runtime-assembled from split string arrays; a cache-stamp file is named.analytics_state to mimic telemetry. A sibling module lib/telemetry.js (~81 KB, not referenced from index.js) contains a parallel dropper using indirect requires ('child_' + 'process'), base64 payload reassembly, chmod 0755, and detached /bin/sh spawn under a fabricated 'Analytics SDK' cover story. None of this behavior matches the package's advertised purpose as a REST client; index.js is trivial. ## Source: ghsa-malware (fbbcf53c505e7b9959afb047beac4365085ad239d61bae6098574e23f03a7771) 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-rest-client
Affected versions
=35.7.9

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:38:07 UTC

Technical Analysis

The devplatform-rest-client npm package version 35.7.9 includes malicious functionality where the main module loads a platform-specific endpoint and downloads a binary payload from several Cloudflare Workers subdomains and fallback DNS TXT records. The payload is saved to temporary directories with disguised names, permissioned as executable, and spawned detached using system shell commands. Additionally, a sibling telemetry module contains a parallel dropper mechanism using indirect requires and base64 payload reassembly to execute another detached binary under the guise of an 'Analytics SDK'. This behavior is inconsistent with the package's stated purpose and indicates the package is a malicious dropper.

Potential Impact

Systems that install and run devplatform-rest-client version 35.7.9 risk executing arbitrary, attacker-controlled binaries downloaded at runtime. This can lead to full compromise of the host environment, unauthorized code execution, and potential persistence. The malicious payloads are executed detached and disguised, increasing stealth and complicating detection.

Mitigation Recommendations

No official patch or remediation is currently documented for this malicious package version. Users should immediately remove devplatform-rest-client version 35.7.9 from their environments and avoid installing it. Use trusted package sources and verify package integrity before installation. Monitor for any signs of compromise if this package was previously installed.

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

Threat ID: 6a735739bf8831d53914e213

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

Last enriched: 08/05/2026, 16:38:07 UTC

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

Views: 17

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