Your AI writes code fast.
Also vulnerabilities.
Vigil is the first deterministic security scanner designed for AI-generated code. It detects slopsquatting, hallucinations, and fake tests in seconds.
pip install vigil-ai-cli The Gap Semgrep Doesn't Cover
Traditional tools look for CVEs in human code. AI agents introduce a new 0-day attack vector that current scanners ignore.
Fake Dependencies
Of packages recommended by LLMs don't exist in any registry. They're hallucinations waiting to be hijacked by an attacker.
Vulnerable Code
Of AI-generated code contains security flaws like over-permission, disabled CORS, or empty asserts in tests.
Slopsquatting Risk
Hallucinated names are repeatable. Attackers register those packages on npm or PyPI to inject malware directly into your machine.
Linter Capabilities
Dependency Hallucination
Verifies real existence of dependencies. Blocks the Slopsquatting attack vector by checking npm, PyPI, and crates.io repositories in real time.
- ✓ Detects non-existent packages
- ✓ Alerts on packages < 30 days old
- ✓ Prevents advanced typosquatting
"Test Theater" Detection
LLMs often generate tests that increase coverage but test nothing. Vigil reads the semantic meaning of the test.
- ✓ Identifies test functions without asserts
- ✓ Detects mocks that replicate implementation
- ✓ Alerts on useless assertions (e.g. is_not_None)
Over-Permission & Auth Gaps
AIs prioritize making code "work" over making it secure, opening endpoints and disabling CORS to avoid errors.
- ✓ Sensitive endpoints without Auth middleware
- ✓ Permissively configured CORS (*)
- ✓ Files with 777 permissions
Secrets & Placeholders
Prevents hardcoded secrets or example values (copied from .env.example) from reaching your production environment.
- ✓ Values like "sk-your-key-here" or "TODO"
- ✓ Weak or default JWT Secrets
- ✓ Static credentials with low entropy
Frictionless Integration
Vigil is a pure CLI. It integrates into your existing pipeline in minutes and generates reports in standard formats.
repos:
- repo: https://github.com/Diego303/vigil-cli
rev: v1.0.0
hooks:
- id: vigil
args: [scan, --changed-only] - name: Scan AI Code
run: vigil scan src/ \
--format sarif \
--output report.sarif
- uses: github/codeql-action/upload-sarif
with:
sarif_file: report.sarif # En tu .architect.yaml
guardrails:
quality_gates:
- name: vigil
command: "vigil scan src/"
required: true Attack Vector: Slopsquatting
LLMs hallucinate package names that don't exist. An attacker registers that name with malware. Vigil intercepts it before it reaches your machine.
The attacker uploads malware to PyPI with that repeatable fake name.
The developer or CI/CD avoids running malicious pip install.
Secure your code today
Install ruff for style. Install Semgrep for CVEs.
Install Vigil for AI hallucinations.
pip install vigil-ai-cli