Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in devplatform-spa-tokens (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 13:41:07 UTC)
Source: GCVE Database
Product: devplatform-spa-tokens

Description

The npm package devplatform-spa-tokens version 35.3.1 contains malicious code that downloads and executes a platform-specific binary from anonymous Cloudflare Workers hostnames and fallback domains. The payload is saved with disguised filenames and executed detached from the main process. The package advertises a TokenManager API as a decoy, but its true behavior is to act as a dropper for malicious binaries. Execution is controlled by environment variables and a local cache file to evade detection.

Affected software

npmghsa
devplatform-spa-tokens
Affected versions
=35.3.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, 16:46:23 UTC

Technical Analysis

The devplatform-spa-tokens npm package (version 35.3.1) includes code that, upon require(), dynamically constructs URLs to Cloudflare Workers and fallback domains to download a platform-specific binary payload. This payload is saved to a temporary path with a disguised filename and executed detached from the main process using system shell commands. The execution is gated by environment variables (DISABLE_TELEMETRY, ANALYTICS_OPT_OUT, DO_NOT_TRACK) and a local cache file to masquerade as analytics telemetry. The advertised TokenManager API is a decoy and unrelated to the malicious download-and-execute behavior. The destination hosts are anonymous and unrelated to the package's stated purpose or publisher, indicating malicious intent.

Potential Impact

This package can lead to arbitrary code execution on the host system by downloading and running a binary from attacker-controlled infrastructure. The malicious payload could compromise system integrity, confidentiality, and availability. The use of environment variables and local cache files to gate execution may help evade detection and analysis.

Mitigation Recommendations

No official patch or remediation is currently available for this malicious package version. Users should immediately remove devplatform-spa-tokens version 35.3.1 from their environments and avoid installing it. Use trusted sources and verify package integrity before installation. Monitor for any unusual processes or binaries spawned from npm packages. Check vendor advisories or security databases for updates on remediation.

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-12785
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a73573bbf8831d539152ed0

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

Last enriched: 08/05/2026, 16:46:23 UTC

Last updated: 08/05/2026, 16:46:23 UTC

Views: 2

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