Malicious code in ssite-mock-server (npm)
- GHSA-h5wr-6cx4-x5v4
- MAL-2026-18417
Description
Show the whole descriptionHide the whole description
ssite-mock-server is a dependency-confusion package with no functional code (its description is "Authorized Test Package"). Its postinstall script runs `node ./index.cjs` on npm install, which POSTs the hostname, home directory, platform and CI provider (GitHub Actions, GitLab CI, Azure Pipelines or Jenkins) to `https://130.162.231.177:8443/`. It was published by the npm account notsemz, which published two more packages with the same beacon on 2026-10-29 and seven placeholder-only names. On npm install, the package's postinstall hook executes index.cjs, which collects host reconnaissance data (os.hostname(), os.homedir(), process.platform) and CI-provider fingerprints derived from well-known CI environment variables, then POSTs them as JSON to a hardcoded bare-IP HTTPS endpoint at https://130.162.231.177:8443/. The destination is not a package publisher domain, is not caller-configurable, and the behavior fires automatically on default install with no documentation or opt-out. The package's self-description as a mock/test server does not match this install-time outbound beacon behavior. 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.
Text from the OSV record.
Affected
ssite-mock-servernpm
- all versions, no fix listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.