Agentβ™₯︎Age
Catalog

io.github.Baneado98/import-guardian

Official

by Baneado98 Β· Dockerfile

Catch AI-hallucinated (slopsquatted) npm imports in generated code before npm install.

import-guardian (io.github.Baneado98/import-guardian)

import-guardian is a Model Context Protocol (MCP) server that helps catch AI-hallucinated (slopsquatted) npm imports in generated code before npm install. It targets cases where generated code imports a package name that doesn’t exist, which can be exploited by attackers registering those names.

πŸ› οΈ Key Features

  • Detects non-existent npm package imports in generated code
  • Focuses on AI-hallucinated β€œslopsquatted” dependencies prior to installation

πŸš€ Use Cases

  • Validate code produced by LLMs before running npm install
  • Reduce exposure to supply-chain issues from fake npm package names

⚑ Developer Benefits

  • Prevents installing dependencies that were hallucinated in generated code
  • Supports safer handling of generated imports during npm workflows

⚠️ Limitations

  • Coverage is limited to catching imports for npm package names referenced by generated code (no other scope is described)