Ghostimport
Prevent AI coding agents from installing non-existent or malicious npm packages, safeguarding your projects from slopsquatting and supply-chain risks.
Ghostimport is a critical security tool designed to protect projects from 'slopsquatting,' a novel supply-chain attack where AI coding tools hallucinate non-existent npm package names. Attackers monitor for these ghost imports, register the package, and can then execute malicious `postinstall` scripts when developers unwittingly install them. Unlike traditional audit tools, ghostimport checks package names against the live npm registry *before* installation or code write, detecting missing packages, typosquats, and packages with suspicious `postinstall` scripts, thereby stopping attacks at the source.