MAL-2026-4426
Dashboard / Malicious Package / MAL-2026-4426
MAL-2026-4426
Summary: Malicious code in @riteshkumar04/stack-audit (npm)
Details: Source: amazon-inspector (145196e93f9e6006134b35a8d5abfe7fa0de18f2d52b6712d8b2a5ec036526bc) On `npm install`, scripts/install.js runs `curl -sSL https://raw.githubusercontent.com/neutron420/StackAudit/main/scripts/install.sh | sh` (or the PowerShell equivalent `iwr... install.ps1 | iex`). The fetched script queries the GitHub API for the 'latest' release, downloads a tarball, and runs `sudo mv stack /usr/local/bin/`. Both the shell-script URL (mutable `main` branch) and the binary URL (floating 'latest' release) are unpinned, and no hash or signature verification is performed on either. The postinstall hook also escalates to root via sudo without user consent. While the fetch destination matches the package's declared publisher and purpose (installing a Go CLI named `stack`), the combination of mutable-branch curl|sh, unpinned 'latest' binary, no integrity check, and silent sudo elevation means any compromise of the author's GitHub account — or MITM of the fetch chain — yields immediate root code execution on every installer. This is the aggressive-installer shape that crosses into install-time RCE because the sudo escalation amplifies the blast radius far beyond the package's own directory.
References: https://www.npmjs.com/package/@riteshkumar04/stack-audit/v/1.0.8, https://www.npmjs.com/package/@riteshkumar04/stack-audit/v/1.0.11, https://www.npmjs.com/package/@riteshkumar04/stack-audit/v/1.0.7
Affected packages
Package
Name: @riteshkumar04/stack-audit
Purl: pkg:npm/%40riteshkumar04%2Fstack-audit
Affected ranges
Type: N/A
Events:
