Tls security checker

From gonzalezpazmonica/pm-workspace · View interactive version

Tls security checker is an AI agent skill from the GitHub repository gonzalezpazmonica/pm-workspace. Usar cuando se verifica TLS/SSL o security headers HTTP de un servidor web. Invocable pre-deploy o en auditorías periódicas.

How to use this skill

Skill file

TLS Security Checker

Triggers

Prerequisitos

Flujo de ejecución

1. Verificar security headers (sin dependencias externas)

bash scripts/web-headers-check.sh --url https://TARGET_URL [--follow-redirects]

Verifica: Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options,

X-Frame-Options, Referrer-Policy, Permissions-Policy.

Score 0-100 basado en headers presentes y valores correctos.

2. Análisis TLS completo

bash scripts/tls-security-check.sh --host TARGET_HOST [--port 443] [--severity MEDIUM]

Si testssl.sh no está instalado, muestra el comando Docker equivalente.

3. Interpretar grade TLS

| Grade | Condición |

|-------|-----------|

| A | TLS 1.3, ECDHE, HSTS, sin cipher suites débiles |

| B | TLS 1.2 mínimo, cipher suites modernas, HSTS |

| C | TLS 1.2 pero cipher suites débiles o sin HSTS |

| D | TLS 1.1 o 1.0 activo |

| F | SSLv3 activo o certificado inválido/expirado |

4. Severidades

| Severidad | Ejemplo |

|-----------|---------|

| CRITICAL | Certificado expirado, SSLv2/3 activo |

| HIGH | TLS 1.0/1.1 activo, CSP ausente |

| MEDIUM | Cipher suite débil, HSTS max-age insuficiente |

| LOW | Server header con versión expuesta |

Output

Integración con pipeline savia-web

Invocar tras cada deploy a staging/producción:

# En CI post-deploy:
bash scripts/web-headers-check.sh --url "$DEPLOY_URL" --follow-redirects
bash scripts/tls-security-check.sh --host "$DEPLOY_HOST" --severity HIGH

Grade D, F o UNKNOWN → bloquear deploy. UNKNOWN sale siempre con exit 2 (convención gate-result): escaneo fallido, informe con scanProblem/FATAL o modo Docker fallback (solo imprime el comando). La nota se calcula con todos los hallazgos LOW+ del informe; --severity solo filtra la lista mostrada. Grade C → warning, continuar con ticket.

Instalación testssl.sh (opcional)

# Opción 1: Desde repo oficial
git clone https://github.com/drwetter/testssl.sh /opt/testssl.sh
ln -s /opt/testssl.sh/testssl.sh /usr/local/bin/testssl.sh

# Opción 2: Docker (no requiere instalación)
docker run --rm drwetter/testssl.sh --severity HIGH example.com:443

Relación con otras herramientas

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.