From check-security
Auditoria de seguridad adaptada al stack multi-tecnologia de Proportione.
How this skill is triggered — by the user, by Claude, or both
Slash command
/check-security:check-securityThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Auditoria de seguridad adaptada al stack multi-tecnologia de Proportione.
Auditoria de seguridad adaptada al stack multi-tecnologia de Proportione. Combina revision manual de Claude con herramientas automatizadas (Semgrep, Checkov).
Target: $ARGUMENTS (proyecto, directorio, o ficheros especificos)
This skill references external paths. Set these environment variables or replace inline:
$QA_PROPORTIONE_DIR — Root of the QA_Proportione repo (e.g. /path/to/QA_Proportione)# Verificar antes de empezar
which semgrep # pip install semgrep (--break-system-packages en este Mac)
which checkov # pip install checkov (solo para Terraform/Ansible)
Si no estan instaladas, informar al usuario y ofrecer instalarlas.
Pregunta o infiere:
Ejecuta Semgrep con las reglas custom de Proportione + reglas de la comunidad:
# Reglas custom de Proportione
semgrep --config $QA_PROPORTIONE_DIR/rulesets/semgrep/ \
--json --output /tmp/semgrep-results.json \
[directorio-del-proyecto]
# Reglas de la comunidad (las mas relevantes)
semgrep --config "p/python" --config "p/owasp-top-ten" \
--json --output /tmp/semgrep-community.json \
[directorio-del-proyecto]
Para Terraform/Ansible, anadir Checkov:
checkov -d [directorio-terraform] --output json > /tmp/checkov-results.json
Revisa el codigo buscando las 10 categorias principales:
current_user_can() antes de acciones admin?$wpdb->prepare(), SQLAlchemy params, $1 en PostGIS)os.system(), subprocess con shell=True, exec() con input del usuario?esc_html() en WP, {variable} en React ya escapa)|safe o dangerouslySetInnerHTML sin sanitizar?# Python
pip audit
# Node.js
npm audit
# WordPress
wp plugin list --update=available --ssh=[host]
# Via SSH al servidor
wp config get --ssh=[host]
wp option get siteurl --ssh=[host]
# Verificar WP_DEBUG=false, DISALLOW_FILE_EDIT=true
# Service accounts y sus permisos
gcloud iam service-accounts list --project=automation-brain
# Buckets publicos
gsutil ls -p automation-brain | xargs -I{} gsutil iam get {}
checkov -d [terraform-dir] --framework terraform
## Security Audit — [proyecto] — [fecha]
### Resumen ejecutivo
[2-3 frases con nivel de riesgo general: ALTO/MEDIO/BAJO]
### Herramientas ejecutadas
- Semgrep: [n] reglas, [n] hallazgos
- Checkov: [n] checks, [n] failed (si aplica)
- pip audit / npm audit: [n] vulnerabilidades
### Hallazgos
#### CRITICAL (riesgo alto, corregir inmediatamente)
1. **[OWASP-AXX]** [fichero:linea] — [descripcion]
- Riesgo: [que puede explotar un atacante]
- Remediacion: [codigo o pasos especificos]
#### HIGH (riesgo medio-alto, corregir esta semana)
...
#### MEDIUM (riesgo medio, planificar correccion)
...
#### LOW / INFO (riesgo bajo o informativo)
...
### Dependencias vulnerables
| Paquete | Version actual | CVE | Severidad | Version fix |
...
### Recomendaciones priorizadas
1. [Accion mas urgente]
2. [Segunda accion]
3. ...
Para hallazgos CRITICAL y HIGH, pregunta:
Quieres que aplique las correcciones de seguridad CRITICAL/HIGH?
Aplica fixes y vuelve a ejecutar Semgrep para verificar que se resolvieron.
***.Provides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.
npx claudepluginhub proportione/proportione-plugins --plugin check-security