HabitaNexus/monorepo / skills/system-reliability-engineering/security-compliance-automation
security-compliance-automation
Verified| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.4 KB |
| scripts/README.md | markdown | 2.4 KB |
| scripts/auto_remediation.py | script | 9.5 KB |
| scripts/compliance_checker.py | script | 7.7 KB |
| scripts/requirements.txt | manifest | 301 B |
| scripts/vulnerability_scanner.py | script | 8.6 KB |
scripts/README.md
View on GitHub# Security & Compliance Automation Scripts
Scripts ejecutables para vulnerability scanning, compliance checking y automated remediation.
## 📁 Archivos
- **`vulnerability_scanner.py`** - Escaneo de vulnerabilidades en imágenes de contenedores (Python CLI)
- **`compliance_checker.py`** - Verificación de compliance AWS CIS benchmark (Python CLI)
- **`auto_remediation.py`** - Remediation automática de recursos Kubernetes (Python CLI)
- **`requirements.txt`** - Dependencias Python
- **`policies/kubernetes-security.rego`** - Políticas OPA (referencia, no ejecutable)
## 🚀 Quick Start
### Instalación
```bash
pip install -r requirements.txt
# Instalar Trivy (para vulnerability scanner)
# macOS:
brew install trivy
# Linux:
# Download from https://github.com/aquasecurity/trivy/releases
```
### Vulnerability Scanner
```bash
# Escanear imagen
python vulnerability_scanner.py scan --image gcr.io/my-project/my-app:latest
# Solo vulnerabilidades críticas
python vulnerability_scanner.py scan --image my-image --severity CRITICAL
# Exportar resultados
python vulnerability_scanner.py scan --image my-image --output results.json
# Verificar compliance
python vulnerability_scanner.py compliance --image my-image
```
### Compliance Checker
```bash
# Verificar CIS benchmark
python compliance_checker.py check-cis
# Verificar regla específica
python compliance_checker.py check-rule --rule-name access-keys-rotated
# Generar reporte
python compliance_checker.py report --output compliance-report.txt
```
### Auto Remediation
```bash
# Remediar namespace completo
python auto_remediation.py remediate --namespace production
# Dry run (ver qué se remediaría)
python auto_remediation.py remediate --namespace production --dry-run
# Remediar recurso específico
python auto_remediation.py remediate-resource \
--kind Pod \
--name my-pod \
--namespace default
```
## 📋 Requisitos
- **Trivy:** Instalado y disponible en PATH (para vulnerability scanner)
- **AWS Credentials:** Configuradas para compliance checker
- **Kubernetes Access:** kubeconfig configurado para auto remediation
- **Permisos:**
- AWS Config habilitado (para compliance checker)
- Permisos de escritura en Kubernetes (para auto remediation)
## 📖 Documentación Completa
Ver [`../SKILL.md`](../SKILL.md) para documentación completa sobre:
- OPA policies
- Vulnerability scanning strategies
- Compliance automation
- Security policies as code
- Automated remediation best practices
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |