← Reddit

Built + open sourced anti-slopsquatting CLI

Reddit · doomkaiser21 · May 1, 2026
A developer created an open-source Rust CLI tool called dep-doctor that scans repository manifest files to detect slopsquatting and other supply chain attack indicators by querying package registries and the OSV API. The tool evaluates dependencies against heuristic checks including existence, recency, download frequency, and maintenance status. The motivation stems from increasing supply chain attacks and the heightened vulnerability from AI coding tools that may hallucinate similar-sounding package names, creating opportunities for malicious actors to register deceptive packages.

Detailed Analysis

A developer has released an open-source Rust command-line tool called "dep-doctor," posted to the r/ClaudeAI subreddit, designed to protect software projects from supply chain attacks — with a particular focus on a newly coined threat vector called "slopsquatting." The tool scans standard dependency manifest files — `package.json` for JavaScript, `requirements.txt` for Python, and `go.mod` for Go — and cross-references each listed package against its respective registry (npm, PyPI) as well as the OSV (Open Source Vulnerabilities) API. For each dependency, it evaluates a set of heuristic signals including package existence, age, download volume, maintenance recency, and version drift, surfacing actionable warnings and remediation guidance when red flags are detected.

The term "slopsquatting" — a portmanteau of "slop" (a colloquial term for low-quality AI-generated output) and "typosquatting" — describes a specific attack pattern enabled by the growing use of AI coding assistants. When models like Claude hallucinate plausible-but-nonexistent package names, malicious actors can preemptively register those names in public registries, embedding harmful code inside packages that AI agents will confidently install. The developer cites real-world examples such as a hypothetical `pip install lightllm` instead of the legitimate `litellm` as the kind of subtle name confusion that could occur. This threat compounds a second behavioral risk: developers using AI agents to scaffold projects tend to rubber-stamp the installation of dozens of packages simultaneously, bypassing the manual review that would ordinarily catch suspicious dependencies.

The timing of the release reflects a demonstrably worsening supply chain threat landscape. The author references recent attacks against high-profile projects including Axios, LiteLLM, Trivy, and PyTorch Lightning — the last of which was reportedly compromised the same day the post was written. These incidents illustrate that even well-maintained, widely trusted open-source libraries are not immune, and that the attack surface is expanding as the software ecosystem becomes increasingly dense and interdependent. A lightweight scanning tool that runs at the manifest level represents a low-friction intervention that can be integrated into CI/CD pipelines or local developer workflows without significant overhead.

The project sits at the intersection of two accelerating trends: the normalization of AI-assisted software development and the escalating sophistication of open-source supply chain attacks. As tools like Claude Code, GitHub Copilot, and similar agents become standard parts of the development workflow, the implicit trust developers extend to AI-generated dependency suggestions creates a structurally new attack surface that traditional security tooling was not designed to address. The dep-doctor tool represents an early community response to this gap, applying heuristic risk scoring at a layer — the package manifest — that AI agents directly manipulate. Its open-source, contribution-friendly posture positions it as a potential foundation for community-maintained heuristics that can evolve alongside both AI coding behavior and attacker tactics, though its long-term effectiveness will depend on sustained maintenance and expanding registry coverage beyond the initial three manifest formats.

Read original article →