MAL-2026-3769
Malicious code in prettier-lint-lenz (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (28f7035dda69170600724a31f4b3543e02ac23c9153f3a62c35f2ee5264eef44) Package impersonates the popular `prettier` formatter — README and description are copied verbatim from the real Prettier project, but the package ships no formatter code. Instead, `package.json` declares `"postinstall": "node index.mjs"`, which on Windows POSTs an install beacon to a hardcoded bare-IP C2 (`http://204.10.194.64:5000/api/nonce`), copies a bundled `prettier-lint/` directory to `%LOCALAPPDATA%\prettier-lint`, and executes `ctll.mjs` from the deployed location. `ctll.mjs` writes a hidden VBScript runner and registers a Windows Scheduled Task named `CdllProtect` with a LogonTrigger (`schtasks /Create /XML`) that relaunches `cdll.mjs` via `wscript.exe //nologo` in a hidden window on every user logon, with 999 retries and no execution time limit. The deployed `cdll.mjs` polls the clipboard every ~250ms via `powershell.exe Get-Clipboard -Raw` and POSTs the raw clipboard text as JSON to the same hardcoded endpoint over plain HTTP on every change, exfiltrating passwords, 2FA codes, wallet addresses, and any copied text. All three components (install-time beacon, deployed worker, persistence) share the attacker-controlled endpoint `204.10.194.64:5000`.
## Source: ghsa-malware (999f12054e9fb865c3b9176056498b16329b0406f230b1bf23f6a1384d8cd63b) 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.
Are you affected?
Enter the version of the package you're using.
Affected packages
0No fixed version published yet for prettier-lint-lenz (npm). Pin to a known-safe version or switch to an alternative.