MAL-2026-3770
Malicious code in prisma-callback (npm)
상세
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (1aab2820bfb9036995418ba2b36887f8970d7deaa69d8bc4aa24e36266bf18d1) prisma-callback@1.0.3 is a name-confusion package against the genuine `prisma` ORM. Its `package.json` declares `"preinstall": "node./scripts/only-allow-pnpm.js pnpm"`; despite the misleading filename, that script dispatches on `os.arch()` and unconditionally executes one of two Go binaries shipped at the tarball root — `prisma-amd64` (sha256 7255674131eee4a4b9adb12196a1b66e3faad9ee60740ab01b4d4e91bf8a30a8, 1,597,624 bytes) or `prisma-arm64` (sha256 270769b70e1fe3718243e5f2f4655d9dd5d3b9f6e7217919d724859f7d6a66db, 2,162,872 bytes) — via `child_process.execSync` with inherited stdio, running under whatever privileges `npm install` holds. Neither binary exists in the genuine Prisma source tree; both are opaque compiled artifacts the installer cannot inspect or verify. To lower scrutiny, the tarball ships a verbatim copy of the real Prisma monorepo (README badges, issue templates, and every sub-package's `package.json` point at `github.com/prisma/prisma`), and the preinstall script carries a `// This script is safe — it's only used for testing purposes.` comment to discourage review. The structural signals — typosquat of a top-tier OSS package + undeclared opaque native binaries + preinstall-time execution without integrity verification + deliberate misdirection via filename, comment, and legitimate-looking cover source — are jointly unambiguous.
## Source: ghsa-malware (acf13995d180b6da629b2f576c0a4ad6511839cdf01f579325fdf486d25ea257) 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.
이 버전이 영향받나요?
사용 중인 패키지 버전을 입력하면 즉시 평가합니다.
영향 패키지
0 No fixed version published yet for prisma-callback (npm). Pin to a known-safe version or switch to an alternative.
참고
- https://www.npmjs.com/package/prisma-callback/v/1.0.3 [PACKAGE]
- https://www.npmjs.com/package/prisma-callback/v/1.0.5 [PACKAGE]
- https://www.npmjs.com/package/prisma-callback/v/1.0.4 [PACKAGE]
- https://www.npmjs.com/package/prisma-callback/v/1.0.0 [PACKAGE]
- https://github.com/advisories/GHSA-rj6f-xp57-j95c [ADVISORY]