Documentation Index
Fetch the complete documentation index at: https://docs.nometria.com/llms.txt
Use this file to discover all available pages before exploring further.
security-scanner is a static security scanner purpose-built for AI-generated web app code. AI builders like Lovable, Bolt, v0, and Cursor frequently produce code with hardcoded secrets, missing auth guards, SQL injection patterns, and CORS misconfigs. This scanner catches those before they hit production.
Zero dependencies — pure Python stdlib.
GitHub
nometria/security-scanner
PyPI
security-scanner on PyPI
Install
Usage
What it detects
Secrets and credentials
| Pattern | Example |
|---|---|
| Hardcoded API keys | const API_KEY = "sk-proj-..." |
| Hardcoded passwords | password: "admin123" |
| Database connection strings | postgres://user:pass@host |
| AWS credentials | AWS_SECRET_ACCESS_KEY = "wJal..." |
| Private keys | PEM blocks in source files |
Authentication gaps
| Pattern | Risk |
|---|---|
| Routes without auth middleware | Anyone can call your API |
| Admin endpoints without role check | Privilege escalation |
| JWT verification skipped | Token forgery |
| Missing CSRF protection | Cross-site attacks |
Injection vulnerabilities
| Pattern | Risk |
|---|---|
| SQL string concatenation | SQL injection |
Unvalidated eval() / exec() | Code injection |
| Path traversal patterns | Directory traversal |
XSS via innerHTML with user input | Cross-site scripting |
Configuration issues
| Pattern | Risk |
|---|---|
CORS: * in production | Any origin can call your API |
| Missing security headers | Clickjacking, MIME sniffing |
| Debug mode enabled | Exposes stack traces |
| Insecure cookie flags | Session hijacking |