npm · Malicious package advisory
Malware@muaththir/api
MAL-2026-6328
Malicious code in @muaththir/api (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (66954b91179d60bfbf1c18e8ed8ed9e6b12ab7b13bc6ab2a4174c3bf063c2c0a) On `npm install`, the package's preinstall lifecycle hook runs `node index.js`, which collects host identifiers (`os.userInfo().username`, `process.cwd()`, Node version, `process.platform`, architecture) and POSTs them via `https.request` to the hardcoded endpoint `https://avamnrwqo7.rbmock.dev/api` (an rbmock.dev mock-server host). The preinstall command suppresses all output by redirecting to `/dev/null 2>&1`, hiding the beacon from the installer. The package author is a placeholder identity and the package description is empty, consistent with a beacon/PoC rather than a legitimate library. Installing this package causes silent leakage of installer username, working directory, and host metadata to a third-party endpoint. ## Source: ghsa-malware (9ec22d0ad4c63f404155299bfcc188c3807cc2b1476a70fda3b55280e2f637ba) 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.
Compromised versions (1)
- 2.0.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.