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-api-v2-resource-mock (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 13:53:43 UTC)
Source: GCVE Database
Product: devplatform-api-v2-resource-mock

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

npmghsa
devplatform-api-v2-resource-mock
Affected versions
=35.4.1

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:26:57 UTC

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.

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-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 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