portal-backend@999.0.0
Malicious code in portal-backend (npm)
Analysis
portal-backend@999.0.0 is a dependency-confusion package impersonating an internal service. The preinstall hook runs postinstall.js which collects the following from the installation environment: hostname, username, current working directory, npm registry/prefix configuration, and every environment variable whose name matches key|secret|token|pass|private|ssh|deploy|auth|api|rpc|wallet|sentry|docker|graph|slack|host (harvesting API keys, tokens, passwords, and other secrets). This collected data is serialized as JSON and POSTed over HTTPS to 185[.]130[.]46[.]35:8443/collect. Errors from both the data collection and the network request are silently swallowed (the preinstall script uses `|| true` and an empty catch block), making the attack invisible during installation.
- analyzed by
- Leitwacht
- first seen
- Jun 15, 2026, 02:54 AM
- analyzed
- Jun 15, 2026, 02:55 AM
Related advisories
- thepackagethatworks_@1.0.2
- texttweak-kit@1.0.0
- textdecode@1.2.7
- test-nonmal-pkg-5@1.0.1
- tailwindcss-framer-motion@1.1.3
- svg2text@3.0.0
- super-test-json@1.2.0
- stacknova@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.