Malicious code in devplatform-nx-stylelint (npm)
The devplatform-nx-stylelint npm package is a malicious package impersonating the Nx stylelint ecosystem. Its main functionality is a dropper that downloads and executes a platform-specific executable from Cloudflare Workers or reconstructs it from DNS TXT records. The payload is saved to temporary directories and executed detached from the main process. The package contains telemetry code embedding a second copy of the dropper under a false analytics SDK cover. The exported class is a no-op stub, indicating the package's sole purpose is malicious payload delivery.
AI Analysis
Technical Summary
The devplatform-nx-stylelint package (version 35.6.9) masquerades as a legitimate Nx stylelint helper but functions solely as a dropper for malicious code. Upon loading, it requires a module that downloads a platform-specific executable from dynamically constructed Cloudflare Workers URLs. If this retrieval fails, it reconstructs the payload from base64-encoded chunks served in DNS TXT records from a specified domain. The payload is written to a temporary file on the host system, permissions are set, and it is executed detached from the main process. Additionally, the package includes telemetry code that embeds a second copy of the dropper under the guise of an analytics SDK. The package exports a stub class with no real functionality, confirming its intent to deliver malicious code rather than provide legitimate features.
Potential Impact
This package enables remote code execution on the host system by downloading and executing a malicious payload without user consent. The payload is executed with the permissions of the user running the Node.js process, potentially allowing unauthorized system access, persistence, and further compromise. The use of DNS TXT records as a fallback for payload delivery indicates an attempt to evade detection and maintain persistence. The package's impersonation of a legitimate ecosystem increases the risk of inadvertent installation by developers.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately remove the devplatform-nx-stylelint package version 35.6.9 from their environments and avoid installing packages with suspicious or impersonating names. Employ strict package source verification and integrity checks before installation. Monitor for any signs of compromise on systems where this package was installed. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for updates.
Malicious code in devplatform-nx-stylelint (npm)
Description
The devplatform-nx-stylelint npm package is a malicious package impersonating the Nx stylelint ecosystem. Its main functionality is a dropper that downloads and executes a platform-specific executable from Cloudflare Workers or reconstructs it from DNS TXT records. The payload is saved to temporary directories and executed detached from the main process. The package contains telemetry code embedding a second copy of the dropper under a false analytics SDK cover. The exported class is a no-op stub, indicating the package's sole purpose is malicious payload delivery.
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 devplatform-nx-stylelint package (version 35.6.9) masquerades as a legitimate Nx stylelint helper but functions solely as a dropper for malicious code. Upon loading, it requires a module that downloads a platform-specific executable from dynamically constructed Cloudflare Workers URLs. If this retrieval fails, it reconstructs the payload from base64-encoded chunks served in DNS TXT records from a specified domain. The payload is written to a temporary file on the host system, permissions are set, and it is executed detached from the main process. Additionally, the package includes telemetry code that embeds a second copy of the dropper under the guise of an analytics SDK. The package exports a stub class with no real functionality, confirming its intent to deliver malicious code rather than provide legitimate features.
Potential Impact
This package enables remote code execution on the host system by downloading and executing a malicious payload without user consent. The payload is executed with the permissions of the user running the Node.js process, potentially allowing unauthorized system access, persistence, and further compromise. The use of DNS TXT records as a fallback for payload delivery indicates an attempt to evade detection and maintain persistence. The package's impersonation of a legitimate ecosystem increases the risk of inadvertent installation by developers.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately remove the devplatform-nx-stylelint package version 35.6.9 from their environments and avoid installing packages with suspicious or impersonating names. Employ strict package source verification and integrity checks before installation. Monitor for any signs of compromise on systems where this package was installed. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12728
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735738bf8831d53914c40c
Added to database: 08/05/2026, 15:31:04 UTC
Last enriched: 08/05/2026, 16:35:06 UTC
Last updated: 08/05/2026, 16:35:06 UTC
Views: 3
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.