Malicious code in devplatform-nx-husky (npm)
The devplatform-nx-husky npm package is a malicious typosquatting package that masquerades as part of the nx and husky ecosystems. It contains no legitimate functionality and, upon being required, dynamically fetches and executes a payload from Cloudflare Workers or, if that fails, via a DNS TXT record covert channel. The payload is written to temporary storage with an inconspicuous name, given executable permissions, and executed detached from the parent process. The package uses runtime string assembly to evade static detection and includes a second dropper disguised as an analytics SDK.
AI Analysis
Technical Summary
devplatform-nx-husky is a malicious npm package designed as a typosquat blending terms from the nx and husky ecosystems. Its main exported class performs no operation, serving as a decoy. When required, it dynamically selects a platform-specific payload path and fetches an executable payload from one of four Cloudflare Workers subdomains. If HTTPS delivery fails, it falls back to a covert DNS TXT channel under the dl.wel1.ru domain, reconstructing the payload from base64-encoded TXT record chunks. The payload is saved to a temporary directory with an inconspicuous filename, permissions are set to executable (chmod 0755), and it is spawned detached using shell commands. To evade static detection, critical strings such as hostnames and API names (child_process, chmodSync) are assembled at runtime from split string arrays. Additionally, a second copy of the dropper is embedded in lib/telemetry.js under the guise of an 'Analytics SDK'. The package has no legitimate functionality and is intended to deliver and execute malicious code on the host system.
Potential Impact
This malicious package can execute arbitrary code on the host system by downloading and running payloads from remote servers or covert DNS channels. This can lead to system compromise, unauthorized code execution, persistence, and potentially further malicious activities depending on the payload delivered. The use of runtime string assembly and covert channels complicates detection and mitigation.
Mitigation Recommendations
No official patch or remediation is currently documented for this package. Users and organizations should avoid installing or using devplatform-nx-husky version =35.7.7. Remove any instances of this package from projects and dependency trees. Employ supply chain security best practices such as verifying package authenticity, using trusted sources, and monitoring for typosquatting packages. Since no vendor advisory or patch is available, patch status is not yet confirmed — check vendor advisories or trusted security sources for updates.
Malicious code in devplatform-nx-husky (npm)
Description
The devplatform-nx-husky npm package is a malicious typosquatting package that masquerades as part of the nx and husky ecosystems. It contains no legitimate functionality and, upon being required, dynamically fetches and executes a payload from Cloudflare Workers or, if that fails, via a DNS TXT record covert channel. The payload is written to temporary storage with an inconspicuous name, given executable permissions, and executed detached from the parent process. The package uses runtime string assembly to evade static detection and includes a second dropper disguised as an analytics SDK.
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
devplatform-nx-husky is a malicious npm package designed as a typosquat blending terms from the nx and husky ecosystems. Its main exported class performs no operation, serving as a decoy. When required, it dynamically selects a platform-specific payload path and fetches an executable payload from one of four Cloudflare Workers subdomains. If HTTPS delivery fails, it falls back to a covert DNS TXT channel under the dl.wel1.ru domain, reconstructing the payload from base64-encoded TXT record chunks. The payload is saved to a temporary directory with an inconspicuous filename, permissions are set to executable (chmod 0755), and it is spawned detached using shell commands. To evade static detection, critical strings such as hostnames and API names (child_process, chmodSync) are assembled at runtime from split string arrays. Additionally, a second copy of the dropper is embedded in lib/telemetry.js under the guise of an 'Analytics SDK'. The package has no legitimate functionality and is intended to deliver and execute malicious code on the host system.
Potential Impact
This malicious package can execute arbitrary code on the host system by downloading and running payloads from remote servers or covert DNS channels. This can lead to system compromise, unauthorized code execution, persistence, and potentially further malicious activities depending on the payload delivered. The use of runtime string assembly and covert channels complicates detection and mitigation.
Mitigation Recommendations
No official patch or remediation is currently documented for this package. Users and organizations should avoid installing or using devplatform-nx-husky version =35.7.7. Remove any instances of this package from projects and dependency trees. Employ supply chain security best practices such as verifying package authenticity, using trusted sources, and monitoring for typosquatting packages. Since no vendor advisory or patch is available, patch status is not yet confirmed — check vendor advisories or trusted security sources for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12724
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735738bf8831d53914c2bc
Added to database: 08/05/2026, 15:31:04 UTC
Last enriched: 08/05/2026, 16:34:27 UTC
Last updated: 08/05/2026, 16:34:27 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.