Skip to content
Slopscan

Slopscan

github.com • November 29, 2026

45% of AI-generated code has security vulnerabilities. slopscan is built for that.

AI coding tools ship code fast. They also ship SQL injection, hardcoded API keys, and SSRF at scale — and generic SAST tools were not designed for this.

slopscan detects AI-generated files first using three offline heuristics — patterns, structural regularity, and token fingerprints — then applies stricter scanning exactly where the risk is highest. It also detects slopsquatting (hallucinated package names that attackers pre-register), secrets in .env and MCP config files, and prompt injection strings in source code.

Requires Python 3.10+. Semgrep and detect-secrets are installed automatically.

Scan only changed files (faster in CI):

Get your security score and badge:

AI-powered fix suggestions (requires free Gemini API key ):

Set up pre-commit + GitHub Action in 60 seconds:

Findings appear inline on pull requests via the GitHub Security tab.

81 rules across 8 languages. Every rule includes the specific reason AI models produce that pattern.

JavaScript — 18 rules

GitHub Actions — 2 rules

Supply chain detection

slopscan also runs supply chain checks that go beyond Semgrep rules:

All AI features are optional and require a free Gemini API key (1,500 requests/day free). Everything works without a key — AI features degrade gracefully.

Create .Slopscan.toml in your project root:

slopscan scan [PATH] Scan a directory or file slopscan fix [PATH] AI-powered fix suggestions (needs GEMINI_API_KEY) slopscan score [PATH] Security score + README badge slopscan rules List all 81 built-in rules slopscan init Interactive setup wizard

How slopscan compares

Writing a YAML rule takes under 30 minutes and has the highest impact per hour of any contribution. See CONTRIBUTING.md .

The full story

This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.