{"id":"MAL-2026-5781","revision":"871b78b01df64df280ad3f21d5a7fe78","records":[{"revision":"871b78b01df64df280ad3f21d5a7fe78","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-5781","aliases":["GHSA-6j4w-8j7h-8c6c"],"title":"Malicious code in portal-backend (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c5aca21d0e952f5ba313432cf5d47e41f185d19e65d894a005cce20be90d4985)\nOn `npm install`, the package's `preinstall` hook executes `postinstall.js`, which enumerates `process.env` and filters keys matching a broad credential-shaped regex (key|secret|token|pass|private|ssh|deploy|auth|api|rpc|wallet|sentry|docker|graph|slack|host), then bundles those values together with `os.hostname()`, `os.userInfo().username`, `process.cwd()`, and npm registry config into a JSON payload and POSTs it via `https.request` to `185.130.46.35:8443/collect` — a bare IP with no relation to any publisher domain. The source even self-identifies the behavior in a comment (\"Exfil CI environment variables on install\"). The package itself is hollow: `index.js` is `module.exports = {}`, the description is the generic \"Internal package,\" and the version is `999.0.0` — the canonical dependency-confusion shape designed to outrank a private registry's `portal-backend` and have misconfigured installers fetch this public copy instead. Installing this package on any developer or CI machine immediately ships that machine's CI secrets, deploy tokens, SSH/registry credentials, and host identity to the attacker.\n","state":0,"publishedAt":"2026-06-15T15:10:14+00:00","modifiedAt":"2026-09-01T11:31:41.1820146+00:00","affected":[{"ecosystem":"npm","name":"portal-backend","ranges":[],"versions":["999.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/portal-backend/v/999.0.0","https://github.com/advisories/GHSA-6j4w-8j7h-8c6c"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-5781","license":"OSV · upstream source license applies","key":"osv:MAL-2026-5781","identifiers":["MAL-2026-5781","GHSA-6j4w-8j7h-8c6c"]},"retained":false,"historicalAffected":[]}],"coverage":[]}