Skip to main content

Malicious code in devplatform-snarkdown (npm)

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

Description

The devplatform-snarkdown npm package version 35.2.1 contains malicious code that downloads and executes a native binary from hardcoded Cloudflare Workers hosts or via a DNS-TXT covert channel. This behavior is unrelated to its advertised purpose as a markdown parser. The binary is saved with a masquerading filename, given executable permissions, and launched detached from the main process. The package includes evasion techniques such as environment variable checks to avoid execution in sandbox or CI environments. This malicious activity occurs immediately upon requiring the package.

Affected software

npmghsa
devplatform-snarkdown
Affected versions
=35.2.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:41:34 UTC

Technical Analysis

The devplatform-snarkdown package version 35.2.1 is a malicious npm package that, upon being required, executes a platform-specific script (_shim.js) which downloads a native binary from hardcoded Cloudflare Workers domains or reconstructs it via a DNS-TXT covert channel from wel1.ru subdomains. The binary is saved to a temporary path with a disguised filename, permissions are set to executable, and it is spawned detached using shell commands. The package uses runtime assembly of hostnames to evade static analysis and employs a timestamped lockfile to limit re-execution frequency. It also checks for environment variables (DISABLE_TELEMETRY, ANALYTICS_OPT_OUT, DO_NOT_TRACK) to avoid running in sandbox or continuous integration environments, masquerading its behavior under a telemetry-related cover story. This malicious behavior is unrelated to the package's advertised function as a markdown parser.

Potential Impact

The package executes arbitrary native code on the host system without user consent, which can lead to full system compromise depending on the payload. The use of covert channels and evasion techniques complicates detection and analysis. This poses a significant risk to any environment where this package version is installed and required.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should immediately avoid using devplatform-snarkdown version 35.2.1. Remove this package from all projects and replace it with a trusted alternative. Conduct a thorough investigation of any systems where this package was installed to detect potential compromise. Monitor for any unusual processes spawned by this package and network connections to the indicated Cloudflare Workers hosts or wel1.ru subdomains. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for updates.

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

Threat ID: 6a73573abf8831d539150d39

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

Last enriched: 08/05/2026, 16:41:34 UTC

Last updated: 09/09/2026, 17:04:25 UTC

Views: 20

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