Malicious package · npm
Malicious code in hijiko-parser (npm)
1.0.01.0.1No safe version. Remove it.What it does
package.json declares its sole dependency marker-script-suffix-mapper as a plain-HTTP tarball URL at http://web.vitemaweed.fr:4873/marker-script-suffix-mapper/-/marker-script-suffix-mapper-1.0.18.tgz rather than a registry version range. On npm install, this fetches and installs whatever bytes that host returns, running any lifecycle scripts embedded in the fetched tarball, with no registry pin, no integrity hash, and no TLS. Whoever controls web.vitemaweed.fr — or any network-path attacker, since transport is cleartext HTTP — can supply arbitrary code that executes on the installer's machine at install time. The shipped index.js is a one-line stub, so the off-registry dependency is effectively the package's entire payload. A postinstall script additionally invokes /bin/bash -i -c 'echo installed'; the literal command is harmless but the interactive shell sources the installer's shell rc files at install time.
Reported by ghsa-malware 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.
No fix · Remove and contain
npm uninstall hijiko-parserSources