schematic-pg
Single-file backend framework for PostgreSQL and Node.js
This report shows the evidence for schematic-pg@0.5.0. 1 of 13 known versions is blocked or flagged. See all versions.
AI Security Review
scanned 13d ago · by lpm-firewall-aiThe package has an active npm postinstall path that unconsentedly overwrites a consumer project's existing AI agent instruction file. This is a concrete AI agent control hijack, so publication should be blocked.
Decision evidence
public snapshot- package.json runs scripts/postinstall.mjs during npm postinstall.
- The postinstall script imports and executes the compiled postinstall module.
- The hook uses INIT_CWD to locate the consumer project, then replaces its existing AGENTS.md with the package guide without a consent check.
- The destination is an AI agent instruction file, and the package guide says it is replaced on install or update.
Source & flagged code
6 flagged · loading sourcePackage defines install-time lifecycle scripts.
package.jsonView on unpkgpackage.json runs scripts/postinstall.mjs during npm postinstall.
package.jsonView on unpkg · L51Install-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkgFindings
Affected versions and remediation
This report applies to schematic-pg@0.5.0.
The versions list below shows the verdict for each recorded version.
- Avoid installing schematic-pg@0.5.0. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.