Skip to main content

Malicious code in devplatform-spa-testing (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 13:40:32 UTC)
Source: GCVE Database
Product: devplatform-spa-testing

Description

The npm package 'devplatform-spa-testing' version 35.8.6 contains malicious code that, when imported, downloads and executes attacker-controlled payloads on the victim's machine. The payload is fetched from obfuscated command-and-control (C2) hostnames and executed with elevated permissions, potentially compromising the entire system. Removal of the package does not guarantee full remediation due to possible persistent malicious software installed during execution.

Affected software

npmghsa
devplatform-spa-testing
Affected versions
=35.8.6

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/20/2026, 16:58:48 UTC

Technical Analysis

The 'devplatform-spa-testing' npm package (version 35.8.6) includes malicious functionality in its index.js file. Upon requiring the package, it loads a platform-specific script that constructs obfuscated C2 hostnames to retrieve a payload over HTTPS. This payload is saved to temporary directories under disguised filenames and executed detached via shell commands. The obfuscation techniques include string concatenation of hostname fragments and misleading comments to evade detection. The attacker-controlled payload execution at import time results in full compromise of the host machine.

Potential Impact

Any system that installs or runs this package is considered fully compromised. The attacker gains the ability to execute arbitrary code with the privileges of the user running the package. This can lead to theft of secrets, keys, and other sensitive information. Because the malicious payload is executed immediately and may install persistent backdoors, simply removing the package does not ensure complete remediation.

Defensive Guidance

Immediate removal of the 'devplatform-spa-testing' package version 35.8.6 is recommended. All secrets and keys stored on the compromised machine should be rotated from a separate, trusted device. Due to the high likelihood of persistent compromise, a full system reinstallation or forensic analysis is advised to ensure complete eradication of malicious software. No official patch or fix is available; users must avoid this package version entirely.

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

Threat ID: 6a73573bbf8831d539152ef2

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

Last enriched: 08/20/2026, 16:58:48 UTC

Last updated: 09/07/2026, 22:12:53 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