# Find Security Vulnerabilities In Code > Revisión de seguridad de caja blanca con IA: lee el código fuente, razona sobre el flujo de datos y la autorización, y explota lo que encuentra con PoC. Fuente: https://skillsagentes.com/skills/usestrix/strix/find-security-vulnerabilities-in-code Markdown: https://skillsagentes.com/skills/usestrix/strix/find-security-vulnerabilities-in-code.md Repositorio: https://github.com/usestrix/strix Autor: usestrix Licencia: Apache-2.0 Actualizado: hace 5 días Coste de contexto: 151 tok instalada, 1k tok al activarse, 1k tok con todos los archivos del bundle Bundle: 1 archivo, 4 KB Permisos que pide: ninguno declarado ## Instalación Un skill son archivos markdown: los mismos archivos valen para cualquier agente y lo único que cambia es el directorio de destino, es decir la bandera `--agent`. Añade `-g` para instalarlo en todos los proyectos de la máquina. ```bash # Claude Code npx -y skills add usestrix/strix --skill find-security-vulnerabilities-in-code --agent claude-code # Cursor npx -y skills add usestrix/strix --skill find-security-vulnerabilities-in-code --agent cursor # Codex npx -y skills add usestrix/strix --skill find-security-vulnerabilities-in-code --agent codex # Gemini CLI npx -y skills add usestrix/strix --skill find-security-vulnerabilities-in-code --agent gemini # Windsurf npx -y skills add usestrix/strix --skill find-security-vulnerabilities-in-code --agent windsurf # Cline npx -y skills add usestrix/strix --skill find-security-vulnerabilities-in-code --agent cline ``` ## Qué hace - Lee el código fuente para modelar rutas, sinks y comprobaciones de autorización, y luego intenta explotación real en un sandbox - Cubre inyección, XSS, SSRF, control de acceso roto e IDOR, deserialización insegura, secretos en código y fallos de lógica de negocio - Cada hallazgo incluye una prueba de concepto en vez de alertas 'potenciales' de un escáner estático - Genera un informe, archivos por vulnerabilidad y un SARIF exportable ## Cuándo usarla - El usuario pide escanear, revisar o auditar su código, repo o pull request en busca de vulnerabilidades ## Qué la activa - "Escanea este repo en busca de vulnerabilidades de seguridad" - "Audita el código de autorización en src/auth con Strix" ## Antes de instalar - Añadir una instancia en ejecución de la app mejora mucho los resultados al confirmar explotabilidad en vivo. - makes network requests ## Archivos - SKILL.md — 4 KB ## SKILL.md Reproducido tal cual desde usestrix/strix bajo Apache-2.0. Esta sección es el documento original y está en inglés. # Find security vulnerabilities in code White-box security review with Strix: the agents read the source to build a model of routes, sinks, and authorization checks, then attempt real exploitation. Findings come with a proof-of-concept, so the output is a short list of proven issues rather than the hundreds of "potential" hits a pattern-matching scanner produces. Install, LLM setup, all flags, and the managed-cloud path are in the **penetration-testing-with-strix** skill. ## Run it ```bash # Local working tree strix -n -t ./ --scan-mode standard --max-budget 15 # A GitHub repo directly strix -n -t https://github.com/org/app --max-budget 15 # Monorepo: point at the service that matters, not the whole tree strix -n -t ./services/checkout --max-budget 20 # Only what a branch changed (whole-repo review is wasteful on a large repo) strix -n -t ./ --scope-mode diff --diff-base origin/main --max-budget 10 ``` A local path is mounted into the sandbox **writable**, so the agents can modify it. Run against a clean checkout. Two things sharply improve results: 1. **Add a running instance of the app.** `-t ./ -t http://host.docker.internal:3000` lets the agents confirm exploitability against live behavior instead of reasoning about it statically — this is the difference between "this looks unsafe" and a validated finding. If nothing is running, static-only findings should be described as unconfirmed. 2. **Scope the review.** Point at the risky subtree and say what matters: ```bash strix -n -t ./services/api --max-budget 15 \ --instruction "Focus on the authorization layer in src/auth and every route under src/routes/admin. Multi-tenant app: tenant id comes from the JWT. Flag any query that filters by object id without also filtering by tenant." ``` Tenancy model, trust boundaries, and which inputs are attacker-controlled are things the agents cannot infer reliably — tell them. ## Reviewing a pull request instead of the whole repo For diff-scoped review of a branch or PR (and blocking merges on findings), use **ci-security-scanning-with-strix** — it covers diff scoping, PR comments, and SARIF upload to GitHub code scanning. The managed platform can also review PRs directly via API (**managed-pentesting-with-strix**). ## Read the results In `strix_runs//`: `penetration_test_report.md` (start here), `vulnerabilities/*.md` (one per finding, with PoC and remediation), `vulnerabilities.json` / `.csv`, `findings.sarif` (upload to code scanning), `run.json`. Before reporting to the user, open each finding and check the PoC actually demonstrates impact. Report file and line alongside the exploit so the fix is obvious. Exit `0` means nothing exploitable was proven in what was analyzed — not that the codebase is clean. Check `run.json` status and cost against `--max-budget`, and note which paths went unreviewed if the run was capped. ## Complementary tooling This is exploit-validated review, not an exhaustive inventory. Keep a dependency scanner (SCA) and secret scanning in place for complete coverage of known-CVE dependencies and committed credentials; use this for the logic, authorization, and injection bugs those tools structurally cannot find. ## Fix and verify Hand results to **fix-security-vulnerabilities-with-strix**: patch the root cause (the shared authorization helper, not the one route), then re-run Strix to prove the exploit no longer works. ## Dónde encaja - Categoría: [Seguridad](https://skillsagentes.com/categorias/seguridad.md) — Auditorías, revisión de dependencias, manejo de secretos y modelado de amenazas. - Creador: [usestrix](https://skillsagentes.com/creators/usestrix.md) — 9 skills en el directorio - [Todas las skills](https://skillsagentes.com/skills.md) - [Ranking de instalaciones](https://skillsagentes.com/ranking.md) ## Otras skills del mismo repositorio - [Api Security Testing](https://skillsagentes.com/skills/usestrix/strix/api-security-testing.md): Pon a prueba una API REST, GraphQL o gRPC con Strix: agentes autónomos enumeran endpoints y explotan el OWASP API Security Top 10 (2023) con una PoC funcional por cada hallazgo. - [Penetration Testing With Strix](https://skillsagentes.com/skills/usestrix/strix/penetration-testing-with-strix.md): Pentestea una app web, API, código, repo, URL, dominio o IP con Strix: agentes autónomos que explotan y demuestran vulnerabilidades con PoC, por CLI autoalojada o nube gestionada app.strix.ai. - [Owasp Top 10 Testing](https://skillsagentes.com/skills/usestrix/strix/owasp-top-10-testing.md): Prueba una aplicación contra el OWASP Top 10:2025 con Strix: agentes de IA que intentan exploits reales y reportan solo lo probado, con PoC. - [Fix Security Vulnerabilities With Strix](https://skillsagentes.com/skills/usestrix/strix/fix-security-vulnerabilities-with-strix.md): Corrige vulnerabilidades encontradas por un pentest de Strix: clasifica por severidad, parchea la causa raíz y vuelve a escanear para probar el fix. - [Ci Security Scanning With Strix](https://skillsagentes.com/skills/usestrix/strix/ci-security-scanning-with-strix.md): Añade escaneo de seguridad al CI/CD con Strix: cada PR recibe un pentest con IA acotado al diff que bloquea código vulnerable antes de mergear. --- Skills Agentes · [Índice de páginas en markdown](https://skillsagentes.com/sitemap.md) · [Inicio](https://skillsagentes.com/index.md)