Skip to main content

AI-powered security scanning and autonomous remediation platform

Project description

SentinelCI

AI-Powered Security Scanning and Autonomous Remediation Platform

PyPI version Python 3.11+ License: MIT

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

Python (Recommended):

pip install sentinelci

NPM:

npm install -g sentinelci

Important: PATH Configuration

After installing via pip, if the sci command is not found, you need to add Python's Scripts directory to your PATH:

Windows:

# The warning message will show you the exact path, typically:
# C:\Users\YourName\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_xxx\LocalCache\local-packages\Python311\Scripts

# Add to PATH temporarily (current session):
$env:PATH += ";C:\Users\YourName\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_xxx\LocalCache\local-packages\Python311\Scripts"

# Or add permanently via System Properties > Environment Variables

macOS/Linux:

# Add to ~/.bashrc or ~/.zshrc:
export PATH="$HOME/.local/bin:$PATH"

# Then reload:
source ~/.bashrc  # or source ~/.zshrc

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:

  1. Groq (Recommended - Fast & Free)

  2. OpenAI

  3. Anthropic

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

๐Ÿ™ Acknowledgments


Made with โค๏ธ by the SentinelCI Team

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sentinelci-1.0.6.tar.gz (92.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sentinelci-1.0.6-py3-none-any.whl (113.4 kB view details)

Uploaded Python 3

File details

Details for the file sentinelci-1.0.6.tar.gz.

File metadata

  • Download URL: sentinelci-1.0.6.tar.gz
  • Upload date:
  • Size: 92.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for sentinelci-1.0.6.tar.gz
Algorithm Hash digest
SHA256 a1278b7b6b97c8cb7e892541e279cc0cea2787c6ba933ae2a018a04b355aa0d3
MD5 4dd6f83d6a4bf18262957b47c521e836
BLAKE2b-256 f61b57fe05889e0732e57cad2c0f31a8e99593f6912f320bf3b2dc8d6ef42eee

See more details on using hashes here.

File details

Details for the file sentinelci-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: sentinelci-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 113.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for sentinelci-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1187aa7d847a02b91bc641dcc86610228c97103f583ecc65aa64dab0503dbfb2
MD5 decf38f3b63aa2344ac643ba7ee3d07f
BLAKE2b-256 1ab349619e301ba326605c2eb8040e70d3231cd34a51d25207d3843204de7544

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page