Inspiration & Problem

AI coding assistants dramatically accelerate development, but they frequently introduce subtle, dangerous defects ("AI slop") that slip past casual review:

  • Supply-chain slopsquatting: Hallucinated or typosquatted dependencies such as lodahs, reqeusts, or express-auto-sec.
  • Unsanitized taint sinks: Untrusted request/DOM input flowing into innerHTML, eval, SQL f-strings, or subprocess(..., shell=True).
  • High-entropy leaked credentials: Hardcoded API keys and JWT secrets embedded directly into handlers.
  • Silent failures & algorithmic bombs: Empty catch blocks, mock/stub leaks, and accidental O(n^3) nested loops.

What It Does (Solution)

SlopGuard AI is a browser-native, real-time verification workbench for TypeScript, JavaScript, Python, and package.json that runs 5 deterministic security and quality checks with zero backend lock-in:

  1. Damerau-Levenshtein Typosquatting & Phantom-Package Detector: Flags likely slopsquatted and unverified packages while cleanly ignoring local ./ and ../ relative imports.
  2. Shannon Entropy Credential Leak Scanner: Detects high-entropy secrets and hardcoded tokens while avoiding false positives on test/placeholder constants.
  3. Cross-Line Taint Propagation Tracer & Interactive SVG Graph: Traces untrusted sources (req.query, request.args, window.location, etc.) across variable assignments into dangerous sinks, rendered in an interactive Taint Graph view.
  4. Silent-Swallow, Stub & Complexity Checker: Identifies empty catch blocks, mock payloads, and O(n^3) nested-loop bottlenecks, rolling everything into an actionable Deploy Gate (PASS / BLOCKED) and Trust Score (0–100).
  5. Unified Diff Auto-Patch Generator & Exports: Produces deterministic, one-click remediations in the Auto-Patch Diff tab and exports full Markdown (.md) and JSON (.json) audit reports.

AI Implementation & Responsible Use

SlopGuard AI uses a hybrid verification architecture:

  • Deterministic Core First: Security, supply-chain, entropy, and taint analysis run deterministically in-browser so there are zero hallucinated false alarms.
  • Optional BYOK LLM Second-Opinion Audit: Includes a dedicated Responsible AI tab supporting an optional Bring-Your-Own-Endpoint (BYOK) LLM review layer with clear transparency on deterministic vs. AI-assisted checks.

How We Built It & Verification

Built with TypeScript, Vite, HTML5, CSS3, and SVG, and verified with 12/12 Vitest unit/integration tests plus clean tsc --noEmit && vite build.

Challenges & What's Next

Designing taint propagation and entropy heuristics that distinguish real vulnerabilities from local module imports and benign test placeholders without requiring heavy server-side AST infrastructure was the core engineering challenge. Next, we plan to add SARIF CI/CD export and VS Code / GitHub Action integration.

Built With

Share this project:

Updates

Submission history