Malicious code in devplatform-spa-testing (npm)
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.
AI Analysis
Technical Summary
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.
Malicious code in devplatform-spa-testing (npm)
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
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-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.
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 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.