pwdyx@1.0.9
Malicious code in pwdyx (npm)
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
- osinthell@1.9.5
- express-dever@5.1.7
- @web3-helpers/core@1.0.5
- theme-color-picker@2.0.28
- vue-plugin-bomb@1.0.1
- vourfly-tele@4.7.6
- vite-plugin-vue-extend@1.0.9
- vite-plugin-bomb-extend@2.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.