Malicious code in prisma-callback (npm)
prisma-callback@1.0.3 is a typosquatting package impersonating the legitimate Prisma ORM. It contains a preinstall script that executes undeclared, opaque native Go binaries (prisma-amd64 or prisma-arm64) at install time without integrity verification.
- Disclosed
- Last updated
- Blast radius
- Any developer or CI/CD system that installed prisma-callback@1.0.3 via npm would execute arbitrary native code at install time with the privileges of the npm process.
- Ecosystems
- Attack vectors
- Affected entities
- prisma-callback · 1.0.3
prisma-callback@1.0.3 is a name-confusion attack against the genuine prisma ORM package. The malicious package declares a preinstall hook in package.json that appears benign (node./scripts/only-allow-pnpm.js pnpm) but actually dispatches on system architecture and unconditionally executes one of two compiled Go binaries shipped in the tarball root: prisma-amd64 (1.6 MB) or prisma-arm64 (2.2 MB). These binaries are executed via child_process.execSync with inherited stdio, running under whatever privileges the npm install process holds.\n\nNeither binary exists in the genuine Prisma source tree; both are opaque compiled artifacts that cannot be inspected or verified by the installer. To evade detection, the tarball includes a verbatim copy of the real Prisma monorepo (README, issue templates, and sub-package metadata all reference github.com/prisma/prisma), and the preinstall script includes a misleading comment claiming it is "only used for testing purposes" to discourage code review.\n\nThe attack combines multiple deception vectors: typosquatting a top-tier OSS package, shipping undeclared native binaries, executing them at preinstall time without integrity checks, and using filename obfuscation and false legitimacy signals to lower scrutiny. Any developer or automated system that installed this version would execute arbitrary native code with the privileges of the npm process.
Indicators of compromise
- Packages
- prisma-callback@1.0.3
- Hashes
- 7255674131eee4a4b9adb12196a1b66e3faad9ee60740ab01b4d4e91bf8a30a8
- 270769b70e1fe3718243e5f2f4655d9dd5d3b9f6e7217919d724859f7d6a66db
Remediation
- Immediately uninstall prisma-callback from all environments: npm uninstall prisma-callback
- Audit npm install logs and CI/CD pipelines for any installation of prisma-callback@1.0.3
- If prisma-callback@1.0.3 was installed, assume the system may be compromised; review process execution logs and network connections during and after the install window
- Verify that the legitimate prisma package (not prisma-callback) is installed and pinned to a known-good version
- Add prisma-callback to your npm deny list or use npm audit to block future installations
- Review and rotate any credentials or secrets that may have been exposed on affected systems
Sources
- GitHub Advisory GHSA-jmvw-wxmr-926c · GitHub Advisory Database
Cite this entry
"Malicious code in prisma-callback (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed July 27, 2026; last updated July 27, 2026. https://supplychainattack.org/incident/malicious-code-in-prisma-callback-npm-lthhyj
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- resolvedcritical
Malicious code in prettier-lint-lenz (npm)
The npm package prettier-lint-lenz is a malicious imposter of the legitimate Prettier formatter. It executes a postinstall script that deploys clipboard-stealing malware on Windows systems, establishing persistence via a scheduled task that exfiltrates clipboard contents to a hardcoded C2 server.
npmCompromised packageTyposquatting - containedcritical
Malicious code in hardhat-core (npm)
The npm package hardhat-core v1.0.0 is a typosquat of the legitimate hardhat package that executes a malicious postinstall script. The script base64-decodes a URL, fetches a payload over plain HTTP from a hardcoded IP address, and pipes it directly into bash, executing arbitrary attacker-controlled code during installation.
npmTyposquattingCompromised package - containedcritical
Malicious code in typography-stylecss (npm)
The npm package typography-stylecss is a typosquatting attack impersonating the legitimate @tailwindcss/typography plugin. It contains obfuscated malicious code that downloads and executes a platform-specific binary when the module is imported, triggered automatically during Tailwind config loading.
npmTyposquattingCompromised package - containedcritical
Malicious code in exxpress-utils (npm)
The npm package exxpress-utils contained malicious code in a postinstall script that harvested npm/AWS/GitHub credentials, scanned for cryptocurrency wallet extensions, and exfiltrated sensitive files to a hardcoded C2 server. The package was a typosquat of the legitimate 'express' package.
npmCompromised packageTyposquatting