Skip to main content

Malicious code in devplatform-nx-stylelint (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 13:47:54 UTC)
Source: GCVE Database
Product: devplatform-nx-stylelint

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

npmghsa
devplatform-nx-stylelint
Affected versions
=35.6.9

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

AILast updated: 08/05/2026, 16:35:06 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses