Malicious code in devplatform-spa-tokens (npm)
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.
AI Analysis
Technical Summary
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.
Malicious code in devplatform-spa-tokens (npm)
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
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
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.
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 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
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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.