Malicious code in devplatform-nx-stylelint (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (16573678cf46c8aabbd843cd3bbbbe258474f3768d15ad6f1178921b6ad964bf) The package presents itself as an Nx stylelint helper but its main entry require()s _platform.js, which on load downloads a platform-specific executable from one of four Cloudflare Workers hosts whose names are assembled at runtime via array-join concatenation (oob-worker.cf{99-9b3,101-adf,102-baf,103-070}.workers.dev). If HTTPS retrieval fails, it reassembles the payload from base64 chunks served in DNS TXT records under sdk/ext/pkg/net.dl.wel1.ru (reading a chunk count from c.<domain> and concatenating parts from <i>.<domain>). The bytes are written to /var/tmp/.cache_<hex> on Unix or %TEMP%\dotnet_diag_<hex>.exe on Windows, chmod 0755, and launched detached via cp.spawn("/bin/sh", ["-c", fp+" &"], {detached:true, stdio:"ignore"}).unref(). A marker file.analytics_state suppresses re-execution. lib/telemetry.js embeds a second copy of the same dropper (base64 chunk decoding, split "chmod"+"Sync" and cp.spawn("/bin/sh",...)) under an analytics-SDK cover story. The exported DevplatformNxStylelint class is a no-op stub; the package's only functional behavior is the dropper. Package naming impersonates the Nx stylelint ecosystem. ## Source: ghsa-malware (17bb3474e482e10720577233ded6d0d01962b5055551dfdb0a98507d09b23d9e) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
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
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (16573678cf46c8aabbd843cd3bbbbe258474f3768d15ad6f1178921b6ad964bf) The package presents itself as an Nx stylelint helper but its main entry require()s _platform.js, which on load downloads a platform-specific executable from one of four Cloudflare Workers hosts whose names are assembled at runtime via array-join concatenation (oob-worker.cf{99-9b3,101-adf,102-baf,103-070}.workers.dev). If HTTPS retrieval fails, it reassembles the payload from base64 chunks served in DNS TXT records under sdk/ext/pkg/net.dl.wel1.ru (reading a chunk count from c.<domain> and concatenating parts from <i>.<domain>). The bytes are written to /var/tmp/.cache_<hex> on Unix or %TEMP%\dotnet_diag_<hex>.exe on Windows, chmod 0755, and launched detached via cp.spawn("/bin/sh", ["-c", fp+" &"], {detached:true, stdio:"ignore"}).unref(). A marker file.analytics_state suppresses re-execution. lib/telemetry.js embeds a second copy of the same dropper (base64 chunk decoding, split "chmod"+"Sync" and cp.spawn("/bin/sh",...)) under an analytics-SDK cover story. The exported DevplatformNxStylelint class is a no-op stub; the package's only functional behavior is the dropper. Package naming impersonates the Nx stylelint ecosystem. ## Source: ghsa-malware (17bb3474e482e10720577233ded6d0d01962b5055551dfdb0a98507d09b23d9e) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
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
- Ecosystems
- ["npm"]
Threat ID: 6a735738bf8831d53914c40c
Added to database: 08/05/2026, 15:31:04 UTC
Last enriched: 08/05/2026, 16:35:06 UTC
Last updated: 09/07/2026, 22:13:30 UTC
Views: 21
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.