AI-powered security scanning and autonomous remediation platform
Project description
SentinelCI
AI-Powered Security Scanning and Autonomous Remediation Platform
SentinelCI is an advanced security scanning platform that combines AI-powered analysis with autonomous remediation capabilities. It detects vulnerabilities, security misconfigurations, and compliance issues across your codebase and CI/CD pipelines, then automatically creates fixes and pull requests.
๐ Quick Start
Installation
pip install sentinelci
Initial Setup
# Run the interactive setup wizard
sci onboard
# Or set up manually
sci github setup # Configure GitHub integration
Basic Usage
# Scan current directory
sci scan
# Analyze GitHub repositories
sci github repos
# Run autonomous security agent
sci github repos
# Select repository โ "Autonomous Agent (Full Automation)"
โจ Key Features
๐ Comprehensive Security Scanning
- Secret Detection: Finds hardcoded API keys, tokens, passwords
- Vulnerability Analysis: CVE scanning with NVD integration
- Dependency Scanning: Identifies vulnerable packages and versions
- CI/CD Security: Analyzes GitHub Actions workflows for security issues
- Code Quality: Detects security anti-patterns and misconfigurations
๐ค AI-Powered Analysis
- Intelligent Threat Detection: AI analyzes context and severity
- False Positive Reduction: Smart filtering reduces noise
- Risk Assessment: Automated severity scoring and impact analysis
- Contextual Recommendations: Tailored fix suggestions
๐ ๏ธ Autonomous Remediation
- Automatic Issue Creation: Creates GitHub issues for tracking
- Pull Request Generation: Generates PRs with security fixes
- Code Patching: Applies fixes directly to repositories
- Pipeline Fixes: Corrects CI/CD security misconfigurations
- No Cloning Required: Uses GitHub API for remote operations
๐ข Enterprise Features
- Organization Scanning: Scan all repositories in an organization
- Risk Heatmaps: Visual security dashboards
- Compliance Reporting: Generate security reports
- Integration Ready: Works with existing CI/CD pipelines
๐ Requirements
- Python: 3.11 or higher
- AI API Key: Groq (recommended), OpenAI, or Anthropic
- GitHub PAT: For repository analysis and autonomous features (optional)
- NVD API Key: For enhanced CVE scanning (optional)
๐ง Configuration
AI API Setup
SentinelCI supports multiple AI providers:
-
Groq (Recommended - Fast & Free)
- Get API key: https://console.groq.com/keys
- Set:
sci onboardorexport AI_API_KEY=your_key
-
OpenAI
- Get API key: https://platform.openai.com/api-keys
- Set:
export AI_API_KEY=your_key
-
Anthropic
- Get API key: https://console.anthropic.com/
- Set:
export AI_API_KEY=your_key
GitHub Integration
# Set up GitHub Personal Access Token
sci github setup
# Required scopes:
# - 'repo' (for private repositories)
# - 'public_repo' (for public repositories)
Environment Variables
# AI Configuration
export AI_API_KEY="your_ai_api_key"
export GROQ_API_KEY="your_groq_key" # Alternative
# GitHub Configuration
export GITHUB_PAT="your_github_token"
export GITHUB_TOKEN="your_github_token" # Alternative
# NVD Configuration (Optional)
export NVD_API_KEY="your_nvd_key"
๐ Usage Examples
Local Scanning
# Basic scan
sci scan
# Scan with specific severity
sci scan --severity high
# Output to JSON
sci scan --output results.json --format json
# Watch mode (continuous scanning)
sci scan --watch
GitHub Repository Analysis
# List and analyze repositories
sci github repos
# Scan specific organization
sci github scan-org your-org-name
# Check authentication
sci github auth
Autonomous Security Agent
The autonomous agent can automatically:
- Detect security vulnerabilities
- Create fixes and patches
- Generate pull requests
- Open tracking issues
- Apply changes without manual intervention
sci github repos
# Select repository
# Choose "Autonomous Agent (Full Automation)"
# Review and approve the execution plan
Pipeline Security Analysis
# Analyze CI/CD pipelines
sci pipeline analyze .github/workflows/
# Auto-fix pipeline issues
sci pipeline fix .github/workflows/ci.yml
๐ Security Categories
SentinelCI detects and fixes:
Secrets & Credentials
- API keys, tokens, passwords in code
- Hardcoded credentials in configuration files
- Exposed secrets in environment variables
Dependencies & Supply Chain
- Vulnerable package versions
- Outdated dependencies
- Malicious packages
- License compliance issues
CI/CD Pipeline Security
- Excessive workflow permissions
- Unpinned action versions
- Code injection vulnerabilities
- Missing security checks
Code Security
- SQL injection patterns
- XSS vulnerabilities
- Insecure cryptographic practices
- Authentication bypasses
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ Scanner โ โ AI Analyzer โ โ Autonomous โ
โ Engine โโโโโถโ (Groq/OpenAI) โโโโโถโ Agent โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ Local Files โ โ Threat Intel โ โ GitHub API โ
โ Git Repos โ โ CVE Database โ โ Issue/PR Gen โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
๐ค Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
# Clone repository
git clone https://github.com/sentinelci/sentinelci.git
cd sentinelci
# Install in development mode
pip install -e ".[dev]"
# Run tests
pytest
# Format code
black sentinelci/
ruff check sentinelci/
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Support
- Documentation: https://docs.sentinelci.dev
- Issues: https://github.com/sentinelci/sentinelci/issues
- Discussions: https://github.com/sentinelci/sentinelci/discussions
๐ Acknowledgments
- Built with Typer and Rich
- AI powered by Groq, OpenAI, and Anthropic
- Security data from NVD and GitHub Security Advisories
Made with โค๏ธ by the SentinelCI Team
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sentinelci-1.0.2.tar.gz.
File metadata
- Download URL: sentinelci-1.0.2.tar.gz
- Upload date:
- Size: 76.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7467751d6b002499a0b5b9970b7747ee74e70fd2f8371e56b7d28b4739d09b5
|
|
| MD5 |
204b1607256e59385ec2c6e7d79c7e1c
|
|
| BLAKE2b-256 |
d9fba1b96a4d3f577313fba754fc958916255dc1cab25d3985fd7bb7815fa9ba
|
File details
Details for the file sentinelci-1.0.2-py3-none-any.whl.
File metadata
- Download URL: sentinelci-1.0.2-py3-none-any.whl
- Upload date:
- Size: 94.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6048a710bc6a7d5d7a0104cfcca0f66d86884b56a323349e53b221ce7c03ed28
|
|
| MD5 |
cff501688bd79c5c64313caa0f3f10fa
|
|
| BLAKE2b-256 |
767e0ddb5377c72a284ebb875bd1a1f0ffeac4a71b1b18c9120f91096a162cc3
|