Slfgod commited on
Commit ·
201413a
1
Parent(s): 9e6273a
refactor: remove excessive emojis for a more professional README appearance
Browse files1234566 unmodified lines1314151617181920212223242526272829303132333435363738394039 unmodified lines808182838485866 unmodified lines9394959697989910010110210310410510610710810911011111211311411511625 unmodified lines14214314414514614714854 unmodified lines2032042052062072082095 unmodified lines21521621721821922022142 unmodified lines26426526626726826927048 unmodified lines3193203213223233243257 unmodified lines3333343353363373383397 unmodified lines34734834935035135235317 unmodified lines37137237337437537637713 unmodified lines3913923933943953963978 unmodified lines4064074084094104114121 unmodified line41441541641741841942042142242342442542642742842943043143243343443543643743843926 unmodified lines466467468469470471472473<div align="center"># 🛡️ Shield Agents### AI-Powered Multi-Agent Cybersecurity Scanner6 unmodified lines**Production-grade security analysis using coordinated AI agents.**Detect vulnerabilities, threats, secrets, and compliance issues — then auto-fix them.[Getting Started](#-getting-started) · [Features](#-features) · [Architecture](#-architecture) · [CI/CD](#-cicd-integration) · [VS Code](#-vs-code-extension) · [Contributing](CONTRIBUTING.md)</div>---## ✨ Why Shield Agents?Most security scanners just find problems. Shield Agents **finds AND fixes them** using a team of specialized AI agents that work together like a real security team:- 🔍 **VulnAgent** — Finds SQL injection, XSS, command injection, and more- 🎯 **ThreatAgent** — Maps attack vectors to MITRE ATT&CK techniques- 🕵️ **ReconAgent** — Detects information disclosure and exposed secrets- 📋 **ComplianceAgent** — Checks against OWASP Top 10 2021- 🚨 **ResponseAgent** — Provides risk assessment and incident response plans- 🔧 **AutoFixAgent** — The "Master White Hat Hacker" that generates copy-paste-ready code fixesWorks out of the box with the **smart mock provider** — no API key needed to start scanning.---## 🚀 Getting Started### Installation39 unmodified lines---## 🛡️ Features### Core Scanning Engine6 unmodified lines### Production Features (v2.0)| # | Feature | Description ||---|---------|-------------|| 1 | **Smart Mock Provider** | Pattern-matched findings based on actual code content — demo mode feels real, not static || 2 | **Deduplication Engine** | 3-phase dedup (exact → fuzzy → category merge) — when VulnAgent and SAST both find "SQL Injection", they merge into one finding with multiple sources || 3 | **SARIF 2.1.0 Output** | GitHub Security tab integration — upload results directly to GitHub code scanning || 4 | **`.shieldignore` File** | Like `.gitignore` for false positives — 9 rule types (file, category, severity, rule, path, line, title, cwe, id) || 5 | **Caching / Incremental Scans** | Cache previous results, only re-scan changed files — production-ready performance || 6 | **LLM Fallback Parser** | 5-strategy parser for when LLMs return invalid JSON (~30% failure rate) — never crash on bad responses || 7 | **VS Code Extension** | On-save scanning with inline diagnostics — security issues appear directly in your editor || 8 | **Benchmark Suite** | 13 OWASP WebGoat-style test cases — proves the scanner actually finds real bugs || 9 | **CI/CD Mode** | `--ci` flag for pipelines — JSON to stdout, SARIF output, exit code based on risk threshold || 10 | **`--format json`** | Pipe results to other tools — structured JSON output for integration || 11 | **Auto-Exclude** | Tests, benchmarks, and examples automatically excluded from scan — eliminates ~70% false positives || 12 | **Agent-Differentiated Mock** | Each AI agent returns specialized findings in mock mode — VulnAgent finds vulns, ThreatAgent finds threats |---## 📋 CLI Reference```bashshield-agents scan <target> [options]25 unmodified lines---## ⚙️ Configuration### Environment Variables54 unmodified lines---## 🏗️ Architecture```shield-agents/5 unmodified lines│ │ ├── recon.py # Reconnaissance & info disclosure│ │ ├── compliance.py # OWASP compliance checking│ │ ├── response.py # Incident response & risk assessment│ │ └── autofix.py # Auto-remediation (Master White Hat Hacker)│ ├── scanners/ # Static analysis│ │ ├── sast.py # 10 SAST detection rules│ │ └── secrets.py # 24 secret type patterns42 unmodified lines---## 🔄 CI/CD Integration### GitHub Actions48 unmodified lines---## 💻 VS Code ExtensionReal-time security scanning directly in your editor:7 unmodified lines---## 🤖 AI Assistant CompatibilityShield Agents works seamlessly with AI coding assistants:7 unmodified lines---## 📊 Benchmark SuiteVerify detection accuracy with 13 OWASP WebGoat-style test cases:17 unmodified lines---## 🧪 Running Tests```bash# Run all 52 unit tests13 unmodified lines---## 🤝 ContributingWe love contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines.8 unmodified lines---## 📄 LicenseMIT License — see [LICENSE](LICENSE) for details.1 unmodified line<div align="center">### 🌐 En Español**Shield Agents — Escáner de Ciberseguridad Multi-Agente con IA**Shield Agents es una plataforma de análisis de seguridad de grado producción que utiliza agentes de IA coordinados para detectar vulnerabilidades, amenazas, secretos y problemas de cumplimiento en tu código fuente. No solo encuentra los problemas — los **arregla automáticamente**.**Características principales:**| Característica | Descripción ||---------------|-------------|| 🛡️ Escáner SAST | 10 reglas de detección: Inyección SQL, XSS, Inyección de Comandos, Path Traversal, Deserialización Insegura, Criptografía Débil, Problemas de Autenticación, Credenciales Hardcodeadas, SSL/TLS, SSRF || 🔑 Escáner de Secretos | 24 tipos de patrones: AWS, GitHub, Google, Slack, Stripe, conexiones DB, JWTs, Claves Privadas, con filtrado de entropía Shannon || 🤖 6 Agentes de IA | VulnAgent (vulnerabilidades), ThreatAgent (modelado de amenazas), ReconAgent (reconocimiento), ComplianceAgent (cumplimiento OWASP), ResponseAgent (respuesta a incidentes), AutoFixAgent (corrección automática — el "Hacker Ético Maestro") || 🔄 Motor de Deduplicación | 3 fases: coincidencia exacta → coincidencia difusa → fusión por categoría || 📋 Formato SARIF | Integración con la pestaña de Seguridad de GitHub || 🚫 Archivo `.shieldignore` | Como `.gitignore` pero para falsos positivos — 9 tipos de reglas || ⚡ Escaneo Incremental | Caché de resultados anteriores, solo re-escanea archivos modificados || 🔧 Auto-Fix | Correcciones instantáneas basadas en patrones + correcciones profundas con LLM || 💻 Extensión VS Code | Escaneo al guardar con diagnósticos inline || 🚀 Modo CI/CD | `--ci` para pipelines — JSON a stdout, SARIF, código de salida basado en riesgo |**Inicio rápido:**26 unmodified lines---If you find Shield Agents useful, please ⭐ star the repo — it helps others discover the project!**Built with care for the security community**</div>1234566 unmodified lines1314151617181920212223242526272829303132333435363738394039 unmodified lines808182838485866 unmodified lines9394959697989910010110210310410510610710810911011111211311411511625 unmodified lines14214314414514614714854 unmodified lines2032042052062072082095 unmodified lines21521621721821922022142 unmodified lines26426526626726826927048 unmodified lines3193203213223233243257 unmodified lines3333343353363373383397 unmodified lines34734834935035135235317 unmodified lines37137237337437537637713 unmodified lines3913923933943953963978 unmodified lines4064074084094104114121 unmodified line41441541641741841942042142242342442542642742842943043143243343443543643743843926 unmodified lines466467468469470471472473<div align="center"># Shield Agents### AI-Powered Multi-Agent Cybersecurity Scanner6 unmodified lines**Production-grade security analysis using coordinated AI agents.**Detect vulnerabilities, threats, secrets, and compliance issues — then auto-fix them.[Getting Started](#getting-started) · [Features](#features) · [Architecture](#architecture) · [CI/CD](#cicd-integration) · [VS Code](#vs-code-extension) · [Contributing](CONTRIBUTING.md)</div>---## Why Shield Agents?Most security scanners just find problems. Shield Agents **finds AND fixes them** using a team of specialized AI agents that work together like a real security team:- **VulnAgent** — Finds SQL injection, XSS, command injection, and more- **ThreatAgent** — Maps attack vectors to MITRE ATT&CK techniques- **ReconAgent** — Detects information disclosure and exposed secrets- **ComplianceAgent** — Checks against OWASP Top 10 2021- **ResponseAgent** — Provides risk assessment and incident response plans- **AutoFixAgent** — Generates copy-paste-ready code fixesWorks out of the box with the **smart mock provider** — no API key needed to start scanning.---## Getting Started### Installation39 unmodified lines---## Features### Core Scanning Engine6 unmodified lines### Production Features (v2.0)| Feature | Description ||---------|-------------|| **Smart Mock Provider** | Pattern-matched findings based on actual code content — demo mode feels real, not static || **Deduplication Engine** | 3-phase dedup (exact → fuzzy → category merge) — when VulnAgent and SAST both find "SQL Injection", they merge into one finding with multiple sources || **SARIF 2.1.0 Output** | GitHub Security tab integration — upload results directly to GitHub code scanning || **`.shieldignore` File** | Like `.gitignore` for false positives — 9 rule types (file, category, severity, rule, path, line, title, cwe, id) || **Caching / Incremental Scans** | Cache previous results, only re-scan changed files — production-ready performance || **LLM Fallback Parser** | 5-strategy parser for when LLMs return invalid JSON (~30% failure rate) — never crash on bad responses || **VS Code Extension** | On-save scanning with inline diagnostics — security issues appear directly in your editor || **Benchmark Suite** | 13 OWASP WebGoat-style test cases — proves the scanner actually finds real bugs || **CI/CD Mode** | `--ci` flag for pipelines — JSON to stdout, SARIF output, exit code based on risk threshold || **Format Options** | Pipe results to other tools — structured JSON output for integration || **Auto-Exclude** | Tests, benchmarks, and examples automatically excluded from scan — eliminates ~70% false positives || **Agent-Differentiated Mock** | Each AI agent returns specialized findings in mock mode — VulnAgent finds vulns, ThreatAgent finds threats |---## CLI Reference```bashshield-agents scan <target> [options]25 unmodified lines---## Configuration### Environment Variables54 unmodified lines---## Architecture```shield-agents/5 unmodified lines│ │ ├── recon.py # Reconnaissance & info disclosure│ │ ├── compliance.py # OWASP compliance checking│ │ ├── response.py # Incident response & risk assessment│ │ └── autofix.py # Auto-remediation│ ├── scanners/ # Static analysis│ │ ├── sast.py # 10 SAST detection rules│ │ └── secrets.py # 24 secret type patterns42 unmodified lines---## CI/CD Integration### GitHub Actions48 unmodified lines---## VS Code ExtensionReal-time security scanning directly in your editor:7 unmodified lines---## AI Assistant CompatibilityShield Agents works seamlessly with AI coding assistants:7 unmodified lines---## Benchmark SuiteVerify detection accuracy with 13 OWASP WebGoat-style test cases:17 unmodified lines---## Running Tests```bash# Run all 52 unit tests13 unmodified lines---## ContributingWe love contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines.8 unmodified lines---## LicenseMIT License — see [LICENSE](LICENSE) for details.1 unmodified line<div align="center">### En Español**Shield Agents — Escáner de Ciberseguridad Multi-Agente con IA**Shield Agents es una plataforma de análisis de seguridad de grado producción que utiliza agentes de IA coordinados para detectar vulnerabilidades, amenazas, secretos y problemas de cumplimiento.**Características principales:**| Característica | Descripción ||---------------|-------------|| Escáner SAST | 10 reglas de detección: Inyección SQL, XSS, Inyección de Comandos, Path Traversal, Deserialización Insegura, Criptografía Débil, Problemas de Autenticación, Credenciales hardcodeadas, Problemas SSL/TLS, SSRF || Escáner de Secretos | 24 tipos de patrones: AWS, GitHub, Google, Slack, Stripe, conexiones DB, JWTs, Claves Privadas, con filtrado de entropía Shannon || 6 Agentes de IA | VulnAgent (vulnerabilidades), ThreatAgent (modelado de amenazas), ReconAgent (reconocimiento), ComplianceAgent (cumplimiento OWASP), ResponseAgent (respuesta a incidentes), AutoFixAgent (correcciones automáticas) || Motor de Deduplicación | 3 fases: coincidencia exacta → coincidencia difusa → fusión por categoría || Formato SARIF | Integración con la pestaña de Seguridad de GitHub || Archivo `.shieldignore` | Como `.gitignore` pero para falsos positivos — 9 tipos de reglas || Escaneo Incremental | Caché de resultados anteriores, solo re-escanea archivos modificados || Auto-Fix | Correcciones instantáneas basadas en patrones + correcciones profundas con LLM || Extensión VS Code | Escaneo al guardar con diagnósticos inline || Modo CI/CD | `--ci` para pipelines — JSON a stdout, SARIF, código de salida basado en riesgo |**Inicio rápido:**26 unmodified lines---If you find Shield Agents useful, please star the repo — it helps others discover the project!Built with care for the security community</div>
README.md+50-50