lodhash-cli
Affected
- Versions:
1.0.0
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: None
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in lodhash-cli (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (73ad64f6c3a93b504c64c10175e325463652fafd741c36cfad433bed93f24cc8)
lodhash-cli is a lodash-typosquat whose main entry (index.js) exports an empty object; the package's only behavior is a postinstall dropper. scripts/postinstall.js XOR-decodes (key 'stf2026') a URL pointing at github.com/bebraz1/qPzM50V1AKG0rVlH/releases/.../main.exe, downloads the binary to %TEMP%\main.exe, and spawns it detached with windowsHide. When running under WSL (detected via /proc/version, /proc/sys/kernel/osrelease, WSL_DISTRO_NAME), it XOR-decodes a powershell.exe command line and executes it via child_process.exec to run the same fetched binary on the Windows host from inside the Linux subsystem. In parallel, the script POSTs a platform label to http://193.70.34.101:20099/vote (host assembled by joining ['193','70','34','101'] to evade literal-string detection), a plain-HTTP install-success beacon. URLs and shell commands are stored as XOR-encoded byte arrays and reconstructed at runtime; no hash or signature verification is performed on the fetched executable. The download source is a personal GitHub account unrelated to any lodash publisher, and the package advertises no functionality other than the dropper.
Not rated by the source.
1.0.0None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0