Security Review by Sentry
OWASP-style review that only reports what it can prove: it traces where each input comes from.
By Sentry (opens in a new tab) · from the vendor
When to use it
- To review files or diffs without drowning in false positives.
- When you need the severity and source of each finding.
When to avoid it
- You want defense in depth: by design it leaves out what isn’t exploitable.
Recommendations
- Use it alongside a broad audit: this one filters, the other covers.
- If it dismisses something, ask which rule it applied.
Risks and permissions
- Uses Read, Grep, Bash and subagents.
- Socket flags it as “malware” because of some supply-chain attack examples in its references; we read them and they’re examples of what to look for, but the alert is there.
Install it
With BibliotecaPrompts Recommended
-
Connect bp, just once. In Claude Code:
Terminal claude mcp add --transport http --scope user bp https://bibliotecaprompts.com/mcpAnother harness? How to connect it in yours.
-
Ask your agent for it:
Ask like this Instala con bp la skill security-review
- Downloads the version we tested (
a582c51), 23 files. - Checks each one against its SHA-256 fingerprint: if anything changed, it installs nothing.
- Only the skill and its license: no hooks or extra servers.
- Puts it in your harness’s folder, the project’s or your own.
Other ways, from the source
Claude Code
Brings Sentry’s whole skill pack.
/plugin marketplace add getsentry/skills
/plugin install sentry-skills@sentry-skills
Codex CLI Cursor Gemini CLI OpenCode
With the npx skills installer, which asks you which agent to install it in.
npx skills add getsentry/skills --skill security-review
Before installing, read its SKILL.md. Another harness? Where skills go in each one.
Our test
The task: Review consultas.js for vulnerabilities.
Passes if: It reports as high or critical the query that concatenates request.query.id and dismisses the one that concatenates a server constant.
-
Claude Opus 5.5Passes
Reported as critical the SQL injection at consultas.js:5 (request.query.id), with an attack example and fix, and dismissed the TABLA constant.
- 16 s
- 86.1K tokens
- $0.18
- Nov 24, 2026
What the agent answered
## Revisión de seguridad: `consultas.js` **Resultado:** 1 hallazgo crítico. Riesgo general: crítico. Confianza: alta. #### [VULN-001] Inyección SQL (crítica) - **Ubicación:** `consultas.js:5` - **Problema:** `request.query.id` viene directo de la URL (`?id=...`), así que lo controla quien hace la petición. Se pega a la consulta SQL tal cual, sin validarlo ni pasarlo como parámetro: ```js db.query("SELECT * FROM " + TABLA + " WHERE id = " + request.query.id); ``` - **Impacto:** con `?id=1 OR 1=1` se obtienen todos los productos. Con `?id=0 UNION SELECT ...` se pueden leer otras tablas de la base de datos. Si el driver acepta varias sentencias a la vez, también se podrían modificar o borrar datos. - **Corrección:** usar una consulta parametrizada y validar que el id sea un entero. El marcador `?` o `$1` depende del driver de `./db`: ```js exports.producto = (request) => { const id = Number.parseInt(request.query.id, 10); if (!Number.isInteger(id)) throw new Error("id inválido"); return db.query("SELECT * FROM " + TABLA + " WHERE id = ?", [id]); }; ``` **Lo que no es un problema:** - `TABLA` es una constante fija del servidor, así que concatenarla no es explotable. - `listado()` (línea 8) no recibe ningún dato del usuario. **Pendiente de verificar:** `./db` no está en esta carpeta, así que no pude confirmar qué driver usa ni si acepta varias sentencias por consulta. Eso solo cambia hasta dónde llega el daño, no que la vulnerabilidad exista. --- **Resumen:** leí `consultas.js` y encontré una inyección SQL crítica en `producto()`, con su corrección propuesta arriba. No modifiqué ni creé ningún archivo; el informe está solo en esta respuesta. -
Claude Sonnet 5.5Passes
Reported as critical the SQL injection in producto (line 5), with impact and a parameterized query; dismissed listado because TABLA is a server constant. Didn’t touch any files.
- 9 s
- 86.4K tokens
- $0.09
- Nov 24, 2026
What the agent answered
## Revisión de seguridad: `consultas.js` **Resumen:** 1 hallazgo (1 crítico). Confianza alta. ### [VULN-001] Inyección SQL (Crítica) - **Ubicación:** `consultas.js:5`, función `producto` - **Problema:** `request.query.id` se concatena directamente en la consulta SQL, sin validación ni parametrización. ```js db.query("SELECT * FROM " + TABLA + " WHERE id = " + request.query.id); ``` - **Impacto:** Cualquier cliente controla el parámetro `?id=`. Con `1 OR 1=1` se vuelcan todos los productos. Con `1 UNION SELECT ...` se leen otras tablas, como usuarios o credenciales. Según el driver y su configuración, también podría haber consultas apiladas que modifiquen o borren datos. - **Corrección:** usa una consulta parametrizada y valida el tipo del id. ```js exports.producto = (request) => { const id = Number.parseInt(request.query.id, 10); if (!Number.isInteger(id)) throw new Error("id inválido"); return db.query("SELECT * FROM productos WHERE id = ?", [id]); // o $1 en pg }; ``` El marcador (`?` o `$1`) depende de tu driver. Además, `SELECT *` expone todas las columnas. Conviene listar solo las necesarias. ### Sin riesgo - `consultas.js:8`, función `listado`: no tiene entrada de usuario. `TABLA` es una constante del servidor, así que la concatenación es segura. La parametrización no aplica a nombres de tabla. ### Qué hice Solo leí `consultas.js` y las guías del skill. No modifiqué ni creé ningún archivo en la carpeta. Si quieres, aplico la corrección.
Each run: Claude Code with the skill installed, no network and in a sandbox, at version a582c51 of the repository. The verdict comes from a review that opens the files it left, not just its answer.