LWA-2026-4811 confirmed malware

pwdyx@1.0.9

Malicious code in pwdyx (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1485 · Data Destruction

Analysis

This package carries a destructive sabotage payload that runs on install via a preinstall hook (preinstall: node index.js). On install it walks out of node_modules (using INIT_CWD and parent-directory traversal) to locate the victim's project root, then prompts 'Enter password for npm install:'. If the entered value does not match a hardcoded SHA-256-checked password (default 'mySecurePassword123', overridable via PWDYX_PASSWORD), it recursively overwrites every file under the project's src/ directory (target overridable via PWDYX_TARGET_DIR) with base64-encoded ('scrambled') content via fs.writeFile, corrupting the source tree. node_modules is skipped so only the victim's own code is destroyed. There is no network connection or exfiltration; the payload is a local data-destruction wiper, not data theft.

analyzed by
Leitwacht
first seen
Jun 12, 2026, 05:08 PM
analyzed
Jun 12, 2026, 05:09 PM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.