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-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, upon import, downloads and executes attacker-controlled payloads from obfuscated command-and-control (C2) servers. The payload is saved under disguised filenames in temporary directories and executed detached from the main process. This behavior is concealed by string concatenation of hostnames and misleading comments to evade detection.

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/05/2026, 16:47:56 UTC

Technical Analysis

The 'devplatform-spa-testing' npm package version 35.8.6 includes malicious functionality in its index.js file. When required, it loads a platform-specific script that constructs obfuscated C2 hostnames by joining string fragments to evade static detection. It then retrieves a payload over HTTPS or via a DNS-TXT fallback from these C2 servers. The payload is written to a temporary directory under disguised filenames ('.cache_<random>' on POSIX systems or 'dotnet_diag_<random>.exe' on Windows), permissions are set to executable, and the payload is spawned detached using shell commands. This results in execution of attacker-controlled code on the host machine at import time.

Potential Impact

This malicious package leads to remote code execution on any system that imports it, allowing attackers to run arbitrary code with the privileges of the importing process. The obfuscation techniques and use of temporary disguised files make detection and analysis more difficult. There are no reports of known exploits in the wild yet.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing or importing 'devplatform-spa-testing' version 35.8.6. Verify package integrity and source before use. Monitor for updates or advisories from the package maintainer or npm registry. Consider removing the package from projects and replacing it with trusted alternatives.

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

Threat ID: 6a73573bbf8831d539152ef2

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

Last enriched: 08/05/2026, 16:47:56 UTC

Last updated: 08/05/2026, 16:47:56 UTC

Views: 3

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