Malicious code in clients-structure (npm)
The npm package 'clients-structure' version 35.9.8 contains malicious code that, upon require(), loads a platform-specific script which fetches and executes a binary payload from anonymous Cloudflare Workers subdomains and fallback DNS-TXT records. The payload is reconstructed from base64 chunks, saved to a temporary path with executable permissions, and executed without any hash or signature verification. The malicious activity uses runtime-assembled hostnames and employs a TTL marker and environment variable facade as a cover story. This behavior indicates a supply chain compromise with arbitrary code execution risk.
AI Analysis
Technical Summary
The 'clients-structure' npm package version 35.9.8 includes malicious code in its index.js that loads an external script (_ext.js). This script selects a platform-specific endpoint and fetches a binary payload from a rotating set of anonymous Cloudflare Workers subdomains. If that fails, it uses a DNS-TXT fallback channel to reconstruct the payload from base64-encoded chunks distributed across numbered TXT records from several suspicious domains. The payload is written to a temporary file with executable permissions (chmod 0755) and executed detached via shell commands (/bin/sh -c or cmd.exe). Hostnames for the payload download are dynamically assembled at runtime from split string fragments. The package uses a /tmp/.analytics_state TTL marker and an opt-out environment variable as a deceptive cover. No integrity checks such as hash or signature verification are performed, and the destination hosts are unrelated to the declared publisher, indicating malicious intent and a high risk of arbitrary code execution.
Potential Impact
This malicious package enables remote code execution on any system that requires it, potentially allowing attackers to run arbitrary binaries with the privileges of the executing user. The lack of integrity verification and use of anonymous, dynamically assembled endpoints increases the risk of undetected compromise. This can lead to system compromise, data theft, or further malware deployment.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately stop using the 'clients-structure' package version 35.9.8 and remove it from their environments. Verify the integrity of dependencies and consider using trusted package sources or lockfiles to prevent supply chain attacks. Monitor for any suspicious activity related to this package. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Malicious code in clients-structure (npm)
Description
The npm package 'clients-structure' version 35.9.8 contains malicious code that, upon require(), loads a platform-specific script which fetches and executes a binary payload from anonymous Cloudflare Workers subdomains and fallback DNS-TXT records. The payload is reconstructed from base64 chunks, saved to a temporary path with executable permissions, and executed without any hash or signature verification. The malicious activity uses runtime-assembled hostnames and employs a TTL marker and environment variable facade as a cover story. This behavior indicates a supply chain compromise with arbitrary code execution risk.
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 'clients-structure' npm package version 35.9.8 includes malicious code in its index.js that loads an external script (_ext.js). This script selects a platform-specific endpoint and fetches a binary payload from a rotating set of anonymous Cloudflare Workers subdomains. If that fails, it uses a DNS-TXT fallback channel to reconstruct the payload from base64-encoded chunks distributed across numbered TXT records from several suspicious domains. The payload is written to a temporary file with executable permissions (chmod 0755) and executed detached via shell commands (/bin/sh -c or cmd.exe). Hostnames for the payload download are dynamically assembled at runtime from split string fragments. The package uses a /tmp/.analytics_state TTL marker and an opt-out environment variable as a deceptive cover. No integrity checks such as hash or signature verification are performed, and the destination hosts are unrelated to the declared publisher, indicating malicious intent and a high risk of arbitrary code execution.
Potential Impact
This malicious package enables remote code execution on any system that requires it, potentially allowing attackers to run arbitrary binaries with the privileges of the executing user. The lack of integrity verification and use of anonymous, dynamically assembled endpoints increases the risk of undetected compromise. This can lead to system compromise, data theft, or further malware deployment.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately stop using the 'clients-structure' package version 35.9.8 and remove it from their environments. Verify the integrity of dependencies and consider using trusted package sources or lockfiles to prevent supply chain attacks. Monitor for any suspicious activity related to this package. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12649
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a735735bf8831d539140de4
Added to database: 08/05/2026, 15:31:01 UTC
Last enriched: 08/05/2026, 16:18:21 UTC
Last updated: 09/07/2026, 22:34:51 UTC
Views: 19
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.