Pkgtruth

•
4
•

Validates npm package integrity to prevent hallucinated, slopsquatted, or malicious dependencies from entering your lockfile.

Pkgtruth provides ground truth about npm packages, specifically designed to protect AI coding agents and CI/CD pipelines from supply chain attacks. It intercepts hallucinated and slopsquatted package names, which large language models frequently invent, before they are installed. By analyzing various signals like registry presence, security placeholders, adoption rates, and maintenance status, Pkgtruth acts as a crucial security gate, ensuring that only trusted dependencies are added to your projects.

主要功能

01Flags packages using npm security placeholders or deprecated versions.
02Analyzes package metadata for risk signals like install-time scripts, age, adoption, and maintenance status.
031 GitHub stars
04Detects hallucinated packages not present in the npm registry.
05Identifies slopsquatted or typosquatted packages impersonating popular ones.
06Provides actionable verdicts (SAFE, CAUTION, DANGER, HALLUCINATED, UNKNOWN) with supporting evidence.

使用案例

01Securely integrate with AI coding agents as an MCP server for dependency validation.
02Manually check individual npm package integrity before installation or recommendation.
03Automate dependency security checks within CI/CD pipelines to block malicious or non-existent packages.