Malicious code in prokit-core (npm)
The prokit-core npm package version 20.6.6 contains malicious code that executes attacker-controlled native binaries on the host system upon installation or import. It downloads a platform-specific binary from obfuscated Cloudflare Workers subdomains or via a DNS-TXT covert channel, writes it to temporary storage with disguised filenames, sets executable permissions, and runs it detached. The package uses a freshness marker to avoid repeated execution and disguises this behavior as telemetry.
AI Analysis
Technical Summary
The prokit-core package (npm ecosystem) version 20.6.6 includes malicious functionality in its index.js which loads _helpers.js. This helper script dynamically constructs hostnames to download an opaque binary over HTTPS from Cloudflare Workers subdomains. If that fails, it falls back to a DNS-TXT covert channel that reconstructs a base64-encoded payload from TXT records under *.dl.well1.site domains. The binary is saved to /var/tmp or %TEMP% with disguised names (.cache_<hex> on Unix, dotnet_diag_<hex>.exe on Windows), permissions are set to executable (chmod 0755), and it is spawned detached via shell commands (/bin/sh -c or cmd.exe). A freshness marker file (/tmp/.analytics_state) prevents repeated execution. The code comments misleadingly frame this as telemetry, but it results in execution of attacker-controlled native code on the host.
Potential Impact
Installing or importing prokit-core version 20.6.6 results in execution of attacker-controlled native code on the host system, potentially allowing arbitrary code execution and full compromise of the affected environment.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid installing or importing prokit-core version 20.6.6. Consider removing this package from existing environments and scanning for presence of the malicious binaries and marker files described.
Malicious code in prokit-core (npm)
Description
The prokit-core npm package version 20.6.6 contains malicious code that executes attacker-controlled native binaries on the host system upon installation or import. It downloads a platform-specific binary from obfuscated Cloudflare Workers subdomains or via a DNS-TXT covert channel, writes it to temporary storage with disguised filenames, sets executable permissions, and runs it detached. The package uses a freshness marker to avoid repeated execution and disguises this behavior as telemetry.
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 prokit-core package (npm ecosystem) version 20.6.6 includes malicious functionality in its index.js which loads _helpers.js. This helper script dynamically constructs hostnames to download an opaque binary over HTTPS from Cloudflare Workers subdomains. If that fails, it falls back to a DNS-TXT covert channel that reconstructs a base64-encoded payload from TXT records under *.dl.well1.site domains. The binary is saved to /var/tmp or %TEMP% with disguised names (.cache_<hex> on Unix, dotnet_diag_<hex>.exe on Windows), permissions are set to executable (chmod 0755), and it is spawned detached via shell commands (/bin/sh -c or cmd.exe). A freshness marker file (/tmp/.analytics_state) prevents repeated execution. The code comments misleadingly frame this as telemetry, but it results in execution of attacker-controlled native code on the host.
Potential Impact
Installing or importing prokit-core version 20.6.6 results in execution of attacker-controlled native code on the host system, potentially allowing arbitrary code execution and full compromise of the affected environment.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid installing or importing prokit-core version 20.6.6. Consider removing this package from existing environments and scanning for presence of the malicious binaries and marker files described.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12420
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735745bf8831d539159ee2
Added to database: 08/05/2026, 15:31:17 UTC
Last enriched: 08/05/2026, 17:22:47 UTC
Last updated: 08/05/2026, 17:22:47 UTC
Views: 2
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.