Sentinel v1.0.12 β€” Dual-Tier AI & GitHub Bot Active

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 built-in Mistral AI, and applies safe auto-fixes with 1 click.

$
pip install sentinel-scanner
βœ“ Built-in AI with Rate Limiting βœ“ Zero Config Required βœ“ Automated PR Bot
sentinel scan . --ai
LIVE DEMO
3-in-1 SAST + SCA + DAST Engines
1-Click AI Remediation & Patching
0 Setup Built-in AI Key Included
100% Open Source & CI/CD Ready

Dual-Tier AI Architecture

Enjoy built-in AI assistance with automatic rate limiting and exponential backoff retry, or bring your own Mistral key for unrestricted high-speed analysis.

OUT-OF-THE-BOX
⚑

Default Community Tier

Ready instantly with zero setup or registration. Uses Sentinel's embedded Mistral AI engine.

  • βœ“ Included by default: No API key needed
  • βœ“ Smart Rate Limiter: 1.0 req/s client pacing
  • βœ“ HTTP 429 Adaptive Backoff: Exponential retry & Retry-After support
  • βœ“ SQLite Local Cache: Zero repeated queries
Terminal Command
sentinel scan .
πŸš€

Bring Your Own Key (BYOK)

Provide your personal Mistral API key for unthrottled maximum throughput and custom models.

  • βœ“ Unrestricted Speed: Artificial rate limiting bypassed
  • βœ“ Custom Models: `mistral-small-latest`, `codestral-latest`, etc.
  • βœ“ Custom Pacing Option: `--ai-rate-limit `
  • βœ“ Local Backend: Fully offline with `--ai-backend local` (Ollama)
Terminal Command
export MISTRAL_API_KEY=your-key
sentinel scan . --ai-model codestral-latest

Automated GitHub Security Bot

Sentinel runs automatically on every Pull Request and push, posting rich Markdown vulnerability reports and uploading SARIF security alerts.

Open Pull Request #42: Add User Authentication Endpoint
opened by dev-team into main
πŸ€–
github-actions bot commented just now

πŸ” Sentinel Security Scan Report

πŸ”΄ Status: Vulnerabilities Detected (2 total) β€” Threshold: High
πŸ”΄ Critical 🟠 High 🟑 Medium 🟒 Low
1 1 0 0
πŸ”Ž Detailed Findings & AI Remediation Recommendations
πŸ”΄ Critical SQL Injection (CWE-89) app/auth.py:42

Direct user input concatenated into raw SQL statement.

- query = f"SELECT * FROM users WHERE username = '{user}'"
+ query = "SELECT * FROM users WHERE username = ?"
+ cursor.execute(query, (user,))

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.

sentinel_demo_tour.mp4

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 10

Concatenating untrusted user inputs directly into SQL query strings.

πŸ’‘ Remediation Protocol:

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,)).

❌ Vulnerable Code Python
# Unsafe SQL Construction
def get_user(user_id):
    query = f"SELECT * FROM users WHERE id = {user_id}"
    return db.execute(query)
βœ… Hardened Remediation Auto-Fix
# 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.

Python AST TypeScript / JSX Regex & Structural Rules
πŸ“¦

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.

Rate Limiting Built-in Exponential Backoff BYOK Unrestricted
πŸ“Š

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 Scan sentinel scan . Scans project with built-in rate-limited AI assistance
Unrestricted AI sentinel scan . --ai-api-key <key> Runs with your personal Mistral key at full unrestricted speed
Custom AI Model sentinel scan . --ai-model codestral-latest Uses designated cloud model (e.g. Codestral or Mistral-Small)
Custom Rate Limit sentinel scan . --ai-rate-limit 2.0 Controls requests-per-second limit to match your quota
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.