Architected by vidit. Engineered by AI(Antigravity)
Catch hallucinated, non-existent npm, PyPI, Crates.io, and Maven/Gradle packages before you run install and get owned.
Web Scanner: slop-deps.pages.dev · npm: npm install -g slop-deps
npx slop-deps
npm install -g slop-deps
slopdeps
Windows standalone binary slopdeps-installer.exe is also available on Releases.
$ slopdeps
CRITICAL fake-jwt-decoder-super-auth-xyz (npm)
src/auth/jwt.ts:4
Package DOES NOT EXIST on npm. Potential AI hallucination trap!
Did you mean 'jsonwebtoken'?
WARN reqeusts (pypi)
services/api.py:12
Typosquat risk: 1 edit from 'requests'.
Summary: 2 flagged (1 CRITICAL, 1 WARN), 140 clean.
Elapsed: 142ms. Zero dependencies. Fail-closed exit.
AI coding assistants (Claude, Cursor, Copilot) invent package names that don't exist on public registries. Attackers crawl GitHub for these 404 imports, register the exact hallucinated package on npm/PyPI with a malicious preinstall payload, and wait.
The moment you run npm install or pip install:
- Package manager executes lifecycle scripts (
preinstall,setup.py) before compilers or linters touch the code. - The payload runs in your shell, exfiltrating
.envsecrets or SSH keys. - Traditional tools (
npm audit, Snyk) only inspect dependenciesafter install scripts have already executed.
slop-deps statically scans raw source files (.js, .ts, .py, .rs, .kt, .gradle) and manifests to catch hallucinations before anything touches your disk or package manager.
- Static Lexer: Zero-dependency lexical parser for JS/TS, Python, Rust, Kotlin/Gradle, and manifests. Handles dynamic imports, static concatenation (
'a' + 'b'), and type-only imports without compiler overhead. - Bundled Popularity Corpus: 4,179 ecosystem packages verified offline in sub-millisecond time with zero telemetry.
- Upstream Registry Probes: Direct HTTPS checks to
npmjs.org,pypi.org,crates.io, and Maven Central / Google Maven / Gradle Plugin Portal with local TTL disk caching. - Offline Typosquat Engine: Damerau-Levenshtein and homoglyph detection for lookalike attacks targeting popular dependencies (
reqeusts->requests). - Private Scope Discovery: Auto-detects internal enterprise packages from
.npmrcand rootpackage.jsonto prevent false alarms on internal monorepo code.
slopdeps
slopdeps --staged
slopdeps --offline
slopdeps --fix
slopdeps --json
slopdeps --sarif > results.sarif
slopdeps --strict
| Flag | Purpose |
|---|---|
-d, --dir <path> |
Target directory to scan (default: cwd). |
--staged |
Pre-commit mode: only scans git-staged files. |
--offline |
Air-gapped verification via local corpus + cache (zero network calls). |
--fix |
AI-assisted import repair with atomic .bak backups and safety guards. |
--strict |
Fail-closed gate: exit code 2 on warnings, critical findings, or errors. |
--json / --sarif |
Machine-readable outputs for GitHub Code Scanning and CI pipelines. |
--update-corpus |
Refresh popularity dataset from live registries & recalculate SHA-256 manifest. |
slop-deps guarantees a strict, predictable exit code contract for CI/CD automation:
| Code | Meaning | Condition |
|---|---|---|
0 |
Clean | All imports verified to exist on registries or local corpus. |
1 |
Findings | At least one confirmed hallucinated/non-existent package detected. |
2 |
Strict Failure / Error | In --strict mode: at least oneUNKNOWN probe/lexer result; or unhandled syntax/tool error. |
Every release publishes verified distribution artifacts on GitHub Releases:
slopdeps-installer.exe: Standalone Windows desktop installer.SHA256SUMS.txt: Cryptographic SHA-256 checksums of all release binaries and assets.sbom.spdx.json: SPDX-2.3 compliant Software Bill of Materials (SBOM) cataloging all distributed source files with 0 runtime dependencies.
Verify downloaded assets against published checksums:
Get-FileHash -Algorithm SHA256 slopdeps-installer.exe
sha256sum -c SHA256SUMS.txt
Windows release binaries (slopdeps-installer.exe) are currently self-distributed and unsigned (no commercial Authenticode EV certificate). On first run, Windows SmartScreen may present a warning dialog ("Unknown Publisher"). Users can cryptographically verify the installer's authenticity before execution using the published SHA-256 digests in SHA256SUMS.txt.
slop-deps bundles an offline popularity corpus verified against a cryptographically secured SHA-256 manifest (corpus/manifest.json):
- Startup Integrity: On startup,
slop-depsverifies the bundled corpus file (src/corpus.generated.js) against the SHA-256 digest incorpus/manifest.json. Any modified or tampered corpus dataset is rejected immediately with anECORPUS_TAMPEREDerror. - Corpus Version: Tracked in
corpus/version. - Refreshing the Corpus: Run: This queries registry endpoints for top packages, updates
slopdeps --update-corpus
src/corpus.generated.js , and regeneratescorpus/manifest.json with the updated SHA-256 checksum.
Full Disclosure on AI Commits: Every line of code, test case, and commit in this repository was authored and executed by AI coding agents (Google Antigravity, Claude, DeepSeek) under human architectural orchestration and ruthless test verification.
- Human-Directed Architecture: Threat modeling, scanner scope, and fail-closed exit contracts defined by Vidit.
- AI Agent Execution: 100% of commits, AST lexers, registry clients, and CI workflows implemented by AI agents.
- Verification Over Trust: Zero code accepted without passing the automated 96-test deterministic regression suite and zero-runtime-dependency CI invariant.
- Red-Team Hardened: Subjected to 3 rounds of adversarial audits to eliminate parser blindspots, TOML escapes, and secret leakage.
- Native Windows Release: Inno Setup 6 installer with verified PE resource headers and SHA-256 release checksums.
hey there, this is vidit i like typing too much so the actual story behind this was one day i was working on my assignments then i saw my ai agent antigravity idle and i was like u lazy shit build something for me he said tell me what to build i got frustrated by him after all tho then i went to zcode devday offer which i claimed i used it for the first time and then showed the code to antigravity antigravity showed brooo fake packages. then i ran antigravity and said broo i need solution for this and then i named it slop deps( ai slop dependencies) then i made this in 2 weeks yes 2 weeks i went to claude he told me 4.5/10 and then i went to z.ai yes the one who is best in cybersecurity i guess. he checked fixed it and done. i know this is not an actual product to be sold i might launch a skill to stop the hallucinated packages so be ready give me ratings here
👉 Rate slop-deps & Drop Feedback
MIT © Vidit Patil
Made for devs who code at 2 AM with AI agents. Good luck with your hallucinated packages.