fix-security-vulnerabilities-with-strix
Qué hace
Esta skill toma los problemas de seguridad encontrados por un análisis de Strix y los corrige en la causa raíz. Es para desarrolladores que necesitan parchear vulnerabilidades y confirmar que los parches funcionan.
Cuándo usarla
- ✓Cuando un análisis de Strix ha reportado hallazgos de seguridad que hay que corregir.
- ✓Cuando alguien pide parchear o remediar una vulnerabilidad conocida.
- ✓Cuando una corrección debe comprobarse volviendo a ejecutar la prueba de ataque.
Link de la skill
https://github.com/usestrix/strix/blob/main/skills/fix-security-vulnerabilities-with-strix/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Nuestro último análisis de seguridad encontró tres problemas críticos. ¿Puedes corregirlos en el código y después comprobar que los ataques ya no funcionan?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente ordena los hallazgos por gravedad, reproduce cada uno y parchea la causa subyacente. Después vuelve a ejecutar la prueba de seguridad para confirmar que cada ataque queda bloqueado.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Fix Strix findings and verify
Turn validated Strix findings into minimal, correct fixes — and prove they work by re-scanning.
1. Triage
Get the findings from wherever the scan ran:
- OSS CLI — artifacts in
strix_runs/<run-name>/:vulnerabilities/*.md— one finding per file: description, severity, PoC steps or script, affected code locations, remediation guidance.vulnerabilities.json— the same findings as JSON (ids, severity, CWE/CVE,code_locationswithfix_before/fix_aftersuggestions when available).
- Cloud (app.strix.ai) — pull findings with the CLI:
strix cloud vulns list --scan-id <scan-id> --json(orstrix cloud scans get <scan-id> --json | jq '.vulnerabilities', orstrix cloud vulns list --severity criticalorg-wide). Each finding carriesseverity, cwe, endpoint, method, impact, technical_analysis, poc_description, poc_script_codeand, for code findings,code_file/code_diff/code_before/code_after. After a fix is verified, mark it withstrix cloud vulns update <id> --status fixed. See the managed-pentesting-with-strix skill forstrix cloud loginand scopes.
Order work by severity: critical → high → medium → low. Every Strix finding was validated with a working proof-of-concept, so do not dismiss findings as false positives without re-testing the PoC yourself.
2. Fix
For each finding:
- Reproduce it with the PoC from the finding file when feasible.
- Fix the root cause, not the specific payload (parameterize every query instead of blocking one string, and enforce authorization in the handler instead of hiding the endpoint).
- Prefer the framework's built-in defense (ORM parameterization, template auto-escaping, CSRF middleware, centralized authz) over ad-hoc sanitization.
- Keep the diff minimal and apply the repo's existing patterns. Finding files often include
fix_before/fix_aftersnippets — use them as a starting point, not verbatim.
Common finding classes and expected fixes: injection → parameterization/escaping at the sink; IDOR/broken access control → object-level authorization checks; SSRF → allowlist + block internal ranges; XSS → context-aware output encoding + CSP; secrets exposure → rotate the secret AND remove it from code/history; auth issues → fix the server-side check (never client-side).
3. Verify by re-running Strix
After fixing, re-scan scoped to the fixed area and confirm the finding is gone. Verify in whichever environment you scanned (or both):
OSS CLI:
# Re-test just the changed files (fast). Resolve the repo's real default
# branch instead of assuming origin/main (many repos use master/develop).
# Avoid the current branch's own upstream as the base — its merge base with
# HEAD would be HEAD, giving an empty diff and a falsely clean result.
DIFF_BASE=$(git symbolic-ref --quiet --short refs/remotes/origin/HEAD 2>/dev/null)
# origin/HEAD can be a dangling symbolic ref — keep it only if its target exists.
git rev-parse --verify --quiet "$DIFF_BASE" >/dev/null 2>&1 || DIFF_BASE=""
if [ -z "$DIFF_BASE" ]; then
for b in origin/main origin/master origin/develop; do
git rev-parse --verify --quiet "$b" >/dev/null && DIFF_BASE="$b" && break
done
fi
# No silent fallback: a guess like HEAD~1 would cover only the last commit of a
# multi-commit fix branch. If no base resolves, ask the user for the base branch
# (or use the focused --instruction verification below, which needs no diff base).
[ -n "$DIFF_BASE" ] || { echo "Set DIFF_BASE to the branch your fix will merge into." >&2; exit 1; }
strix -n -t ./ --scan-mode quick --scope-mode diff --diff-base "$DIFF_BASE" --max-budget 5
# Or re-test with the original finding as focus (no diff base needed)
strix -n -t ./ --instruction "Verify the SQL injection in app/api/search.py is fixed. Original PoC: <poc>" --max-budget 5
Exit codes: 2 = findings remain (read the new strix_runs/<run>/vulnerabilities/ and iterate); 0 = clean for what was analyzed. Before trusting a 0, confirm the run wasn't cut short — check run.json for a completed status and compare its llm_usage.cost with --max-budget: a hard budget stop leaves status: "stopped", but a run that wrapped up on a budget warning records "completed" with partial coverage. Give verification enough budget to finish, and prefer re-running the specific PoC as the ground-truth signal.
Cloud: rerun with the same config and re-poll, then confirm the finding no longer appears: ```bas
Preguntas frecuentes
¿Qué hallazgos se corrigen primero?
La skill ordena el trabajo de crítico a alto, luego medio y bajo.
¿Puede descartarse un hallazgo como falso positivo?
La skill indica que no hay que descartar un hallazgo sin volver a probar tú mismo su prueba de concepto.
¿De dónde vienen los datos del hallazgo?
De las carpetas de salida de un análisis local, o de la plataforma en la nube de Strix a través de su herramienta de línea de comandos.
Detalles
Descripción original del autor
Fix security vulnerabilities found by a Strix pentest (open-source CLI or app.strix.ai cloud) — triage by severity, patch the root cause rather than the symptom, and re-run Strix to prove each fix actually closes the exploit. Handles injection, XSS, SSRF, broken access control, IDOR, and other validated findings. Use after a Strix scan reports findings, or when the user asks to remediate, patch, or fix security issues from a strix_runs report, vulnerabilities.json, findings.sarif, or a cloud scan.
repo: usestrix/strix
Popularidad
- Estrellas en GitHub
- 73 mil
- Posición en el ranking
- #3099
- Licencia
- Apache-2.0
- Actualizada
- 30/10/2026
Comentarios
- …
Más skills de este repositorio
api-security-testing
73 milEnseña a tu agente a hacer pruebas de seguridad de una API REST, GraphQL o gRPC con Strix, centrándose en fallos de autorización y otros riesgos del OWASP API Top 10.
application-security-testing
73 milAyuda a tu agente a planificar pruebas de seguridad para un producto completo, eligiendo la prueba adecuada para cada parte, ejecutándolas y ordenando las correcciones según el riesgo real.
ci-security-scanning-with-strix
73 milEnseña a tu agente a añadir un análisis de seguridad automático a las pull requests, para que el código arriesgado se marque antes de fusionarse.
find-security-vulnerabilities-in-code
73 milAyuda a tu agente a revisar el código en busca de fallos de seguridad como la inyección y el control de acceso roto, y a demostrar cuáles son reales con ataques de prueba.
Skills parecidas
reverse-engineer-anything
422 milAyuda a tu agente a revisar apps y paquetes ya publicados para explicar sus funciones, comparar versiones o guiar una reconstrucción, usando la herramienta REA.
1password
394 milAyuda a tu agente a instalar la CLI de 1Password, iniciar sesión y leer o inyectar secretos sin imprimir sus valores en el chat.
healthcheck
394 milAyuda a tu agente a auditar el ordenador o servidor que ejecuta OpenClaw en busca de riesgos de seguridad, como SSH, cortafuegos, actualizaciones y copias de seguridad, y después sugerir arreglos seguros.