AI-Powered Security Hardening for Developers & CI/CD
Stop security vulnerabilities before they reach production. Sentinel scans SAST, SCA, and DAST across Python, JS/TS, and HTML, explains real exploit paths with Multi-Vendor AI (Mistral, OpenAI, Claude, Gemini, Groq, Ollama), and applies safe auto-fixes with 1 click.
pip install sentinel-scanner
Bring Your Favorite AI Vendor
Select your preferred AI provider β Mistral, OpenAI, Anthropic Claude, Google Gemini, Groq, or local Ollama β via CLI options or interactive prompts with credentials masking.
Cloud AI Providers
Seamless integration with OpenAI, Anthropic, Mistral, Google Gemini, and Groq for AST code security analysis.
- β Vendor Selection:
--ai-vendor [mistral|openai|anthropic|gemini|groq] - β Credential Inputs: Pass
--ai-api-key, set environment vars, or prompt interactively - β Adaptive Rate Limiting: Automatic exponential backoff on HTTP 429 & server errors
- β SQLite Local Cache: Zero repeated queries and blazing fast scans
sentinel scan . --ai-vendor openai --ai-api-key sk-proj-...
Local AI (Ollama)
Zero external cloud calls and zero credentials needed. Run open-weights models locally on your hardware for absolute security.
- β Zero Cloud Calls: Data never leaves your machine
- β Custom Local Models: `mistral:7b-instruct`, `codellama`, `llama3`, `deepseek`
- β Zero API Keys Needed: Runs directly against your local Ollama daemon
- β Instant Switch:
--ai-vendor ollamaor--ai-backend local
sentinel scan . --ai-vendor ollama --ai-model codellama
Automated GitHub Security Bot
Sentinel runs automatically on every Pull Request and push, posting rich Markdown vulnerability reports and uploading SARIF security alerts.
1-Command Workflow Generator
Initialize the complete GitHub Action bot workflow in any repository with a single command:
sentinel init --github-action
- π Generates
.github/workflows/sentinel.yml - π Posts / updates PR comments automatically
- π Writes directly to GitHub Actions Job Summary
- π Uploads SARIF annotations to GitHub Code Scanning
See Sentinel In Action
Watch Sentinel conduct multi-engine scans, evaluate attack scenarios with AI, and apply auto-fixes live in the terminal.
Vulnerability Remediation Playground
Select a vulnerability to see how Sentinel identifies structural patterns and generates secure remediations offline or with AI.
SQL Injection (CWE-89)
OWASP Top 10Concatenating untrusted user inputs directly into SQL query strings.
Protocol: Parameterized Queries. Replace string concatenation or formatting inside SQL executions with placeholders and pass query parameters as a tuple. Example: Change cursor.execute(f'SELECT * FROM users WHERE username = "{user}"') to cursor.execute('SELECT * FROM users WHERE username = ?', (user,)).
# Unsafe SQL Construction
def get_user(user_id):
query = f"SELECT * FROM users WHERE id = {user_id}"
return db.execute(query)
# Click 'Apply Auto-Fix' to see secure code
Built-in Security Capabilities
Sentinel brings together multiple scanner paradigms into a unified, developer-friendly hardening engine.
Static Application Security (SAST)
Parses Abstract Syntax Trees (AST) in Python, JavaScript, TypeScript, and HTML templates to detect SQLi, XSS, command execution, hardcoded credentials, and weak hashing.
Software Composition (SCA)
Scans requirements.txt, pyproject.toml, package.json, and go.mod against OSV.dev and NVD databases with local SQLite caching.
Dynamic Web App Scan (DAST)
Actively crawls live web endpoints, injecting parameter fuzzers to detect reflected XSS, SQL error leakage, and missing security headers (CSP, HSTS, X-Frame-Options).
Dual-Tier AI Hardening & Auto-Fix
Evaluates finding severity with Mistral Cloud or local Ollama. Includes built-in API rate limiting, 429 exponential backoff, and direct 1-click AST code rewrite capabilities.
Multi-Format Reporting
Export scan results in **Markdown** (for GitHub PR comments), **SARIF v2.1.0** (for GitHub Security tab), **JSON**, or interactive **HTML** dashboards.
CI/CD & Pre-Commit Ready
Automate pipeline governance with `--ci`, severity threshold gates (`--fail-on critical,high`), and pre-commit hooks.
CLI Commands & Usage
Common commands to scan, auto-fix, export reports, and initialize CI/CD workflows.
| Goal | Command | Description |
|---|---|---|
| Standard Offline Scan | sentinel scan . |
Scans project offline (SAST & SCA) with zero external dependencies |
| Interactive AI Assistant | sentinel scan . --ai |
Prompts in CLI to select vendor (Mistral, OpenAI, Claude, Gemini, Groq, Ollama) and input credentials |
| Cloud Vendor & API Key | sentinel scan . --ai-vendor openai --ai-api-key <key> |
Enriches findings using OpenAI, Anthropic, Mistral, Gemini, or Groq |
| 100% Offline AI (Ollama) | sentinel scan . --ai-vendor ollama |
Uses local Ollama open-weights models (100% private, no API keys) |
| Custom AI Model Override | sentinel scan . --ai-vendor anthropic --ai-model claude-3-5-sonnet-20241022 |
Overrides default model with any vendor model of your choice |
| Generate PR Bot | sentinel init --github-action |
Creates .github/workflows/sentinel.yml ready for PR comments |
| Export Markdown | sentinel scan . --output-format markdown |
Exports GitHub-flavored Markdown report for CI step summary |
| DAST Live Audit | sentinel scan --dast https://myapp.dev |
Crawls and audits a live web application |
| Interactive Fixes | sentinel scan . --fix |
Prompts interactively to apply safe auto-fixes for each flaw |
Secure Your Repository in Seconds
Install Sentinel via PyPI or Docker and harden your applications today.
π Sentinel Security Scan Report
Highπ Detailed Findings & AI Remediation Recommendations
app/auth.py:42Direct user input concatenated into raw SQL statement.