SquatScan: an MCP server that blocks AI-hallucinated npm package attacks before install

FunInflation3972 · reddit · 2026-11-21

Attackers register npm package names that coding assistants hallucinate ("slopsquatting"), so running the suggested install pulls malware. SquatScan is an open-source MCP server that scores each package on 7 signals—name similarity to popular packages, age, downloads, repo links, versions/maintainers—and returns a 0–100 risk score with GREEN/YELLOW/RED verdicts. One-command install via Docker, fully local, built in Java with the official MCP SDK.

Original post →

More from coding & agent

coding & agent channel →