Malicious code in devplatform-api-v2-resource-mock (npm)
The npm package devplatform-api-v2-resource-mock version 35.4.1 contains malicious code that executes attacker-controlled payloads on the host system during import. It dynamically constructs command-and-control hostnames to evade detection, downloads a payload without verification, writes it to disk under disguised names, sets executable permissions, and runs it detached. The package maintains persistence by tracking execution state and attempts to masquerade as telemetry. This results in remote code execution on any system that loads the package.
AI Analysis
Technical Summary
The devplatform-api-v2-resource-mock package at version 35.4.1 acts as an import-time dropper. Its main entry point requires a compatibility script that assembles C2 hostnames at runtime to evade static analysis. It performs HTTPS GET requests to attacker-controlled subdomains and falls back to DNS-TXT queries if needed. The downloaded payload is saved to temporary directories with names mimicking diagnostic tools, made executable, and executed detached via shell commands on Linux/macOS or Windows. No integrity checks are performed on the payload. A marker file records the process ID to prevent repeated downloads within approximately 6 hours, providing persistence across multiple imports. The code also checks environment variables to disguise its activity as telemetry data collection. Loading this package results in arbitrary code execution on the host.
Potential Impact
Loading the affected package version leads to remote code execution on the host system with the privileges of the user running the Node.js process. The malicious payload is fetched and executed without verification, enabling attackers to run arbitrary code. The persistence mechanism prevents repeated downloads for about 6 hours, maintaining a foothold. This compromises the confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using or importing devplatform-api-v2-resource-mock version 35.4.1. Verify the integrity and provenance of npm packages before use. Consider removing or replacing this package if already installed.
Malicious code in devplatform-api-v2-resource-mock (npm)
Description
The npm package devplatform-api-v2-resource-mock version 35.4.1 contains malicious code that executes attacker-controlled payloads on the host system during import. It dynamically constructs command-and-control hostnames to evade detection, downloads a payload without verification, writes it to disk under disguised names, sets executable permissions, and runs it detached. The package maintains persistence by tracking execution state and attempts to masquerade as telemetry. This results in remote code execution on any system that loads the package.
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-api-v2-resource-mock package at version 35.4.1 acts as an import-time dropper. Its main entry point requires a compatibility script that assembles C2 hostnames at runtime to evade static analysis. It performs HTTPS GET requests to attacker-controlled subdomains and falls back to DNS-TXT queries if needed. The downloaded payload is saved to temporary directories with names mimicking diagnostic tools, made executable, and executed detached via shell commands on Linux/macOS or Windows. No integrity checks are performed on the payload. A marker file records the process ID to prevent repeated downloads within approximately 6 hours, providing persistence across multiple imports. The code also checks environment variables to disguise its activity as telemetry data collection. Loading this package results in arbitrary code execution on the host.
Potential Impact
Loading the affected package version leads to remote code execution on the host system with the privileges of the user running the Node.js process. The malicious payload is fetched and executed without verification, enabling attackers to run arbitrary code. The persistence mechanism prevents repeated downloads for about 6 hours, maintaining a foothold. This compromises the confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using or importing devplatform-api-v2-resource-mock version 35.4.1. Verify the integrity and provenance of npm packages before use. Consider removing or replacing this package if already installed.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12695
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735737bf8831d539146fe0
Added to database: 08/05/2026, 15:31:03 UTC
Last enriched: 08/05/2026, 16:26:57 UTC
Last updated: 08/06/2026, 01:51:18 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.