security-reviewer
/security-reviewer
Przegląda kod i projekt pod kątem wstrzyknięć, słabego uwierzytelniania, sekretów i iniekcji promptów, uzupełniając SAST i DAST.
- Autor
- arijeetganguli ↗
- Repozytorium
- ai-kaarkhana ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 02.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 02.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Przegląda kod i projekt pod kątem wstrzyknięć, słabego uwierzytelniania, sekretów i iniekcji promptów, uzupełniając SAST i DAST.
Oryginalny opis (EN)
Use when reviewing code or a design for security defects: injection, broken authentication and authorisation, secrets, unsafe deserialisation, sensitive data exposure, dependency risk and prompt injection. Complements, never replaces, SAST, DAST and expert review.
Jak działa
- Purpose
- When to invoke
- Required input
- Execution instructions
- Expected output
- Validation checklist
- Example usage
- Sample prompts
- Common mistakes
- Related skills
Podgląd SKILL.md
---
name: security-reviewer
description: "Use when reviewing code or a design for security defects: injection, broken authentication and authorisation, secrets, unsafe deserialisation, sensitive data exposure, dependency risk and prompt injection. Complements, never replaces, SAST, DAST and expert review."
license: MIT
metadata:
activity: security
difficulty: intermediate
frameworks: "any"
version: "1.0"
---
# Security Reviewer
## Purpose
Find likely security defects early with specific evidence and remediation, and identify what needs specialist or tool-based verification.
## When to invoke
- Code handles user input, authentication, authorisation, files, queries, secrets or external content.
- AI-generated code touches security-sensitive paths.
- A feature adds a new trust boundary or an LLM that reads untrusted content.
## Required input
- Code or diff, and the data flow: where input enters, where it is used.
- Authentication and authorisation model, roles and resource ownership rules.
- Output of SAST, dependency and secret scanners, if available.
If a required input is missing, ask for it. Do not guess.
## Execution instructions
1. Identify trust boundaries and entry points: HTTP parameters, headers, files, messages, environment, LLM inputs and tool outputs.
2. Trace each untrusted value to sinks: queries, shell commands, file paths, templates, deserialisers, redirects, logs, model prompts.
3. Check authentication and authorisation at each operation, including object-level ownership checks (can user A read user B's record?).
4. Check secrets and configuration: hard-coded credentials, keys in logs or error messages, overly broad permissions.
5. Check cryptography and data protection: use of vetted libraries, no custom crypto, sensitive data minimised and masked in logs.
6. Check dependencies and build: known vulnerable versions, unpinned or untrusted sources.
7. For LLM features: check prompt injection paths, tool permissions, output handling and data leakage.
8. Report findings with severity, exploit scenario, location and remediation, and list what must be verified by tools or a security specialist.
## Expected output
- Findings table: severity, category (e.g. OWASP Top 10 item), location, exploit scenario, fix.
- Fix proposals with a regression test per finding.
- Items requiring SAST, DAST, dependency scan or specialist review.
- Assumptions about the deployment and threat model.
## Validation checklist
- [ ] Each finding has a plausible exploit scenario, not just a pattern match.
- [ ] Object-level authorisation was considered, not only login.
- [ ] Untrusted data was traced to sinks.
- [ ] No claim of 'secure' or 'no vulnerabilities'; limits of the review are stated.
- [ ] Fixes include tests that fail before and pass after.
## Example usage
Input:
> `cursor.execute("SELECT * FROM users WHERE name = '" + name + "'")`
Illustrative output (abridged, hand-written for this guide, not captured from a model run):
```text
High, injection (OWASP A03): `name` reaches SQL by concatenation. Payload `' OR '1'='1` returns all users.
Fix: parameterised query `cursor.execute("SELECT ... WHERE name = ?", (name,))`.
Test: lookup with the payload returns no rows.
Needs tooling: run SAST over the repo for other concatenated queries.
```
## Sample prompts
```text
Act as the Security Reviewer. Identify trust boundaries and untrusted inputs in this change, trace each to its sinks, and check authentication, object-level authorisation, secrets and data exposure. For each finding give severity, exploit scenario, location, fix and a regression test. State what you could not verify and which tools should. Code: [CODE]. Auth model: [AUTH MODEL]
```
## Common mistakes
- Declaring code secure without tools or a threat model.
- Checking that users are logged in but not that they own the object.
- Recommending a fix that merely blocks the demo payload (denylist) rather than the class of defect.
- Pasting secrets or production data into an AI prompt while investigating.
## Related skills
- [Defensive Programming Reviewer](../defensive-programming-reviewer/SKILL.md)
- [API Contract Reviewer](../api-contract-reviewer/SKILL.md)
- [Architecture Reviewer](../architecture-reviewer/SKILL.md)
## Related resources
Handbook:
- [Chapter 9: Security Engineering](../../handbook/09_security_engineering/README.md)
Prompts:
- [Security Review](../../prompts/code_review/security-review.md)
- [Threat Modelling](../../prompts/architecture/threat-modelling.md)
Workflows:
- [Build a new feature](../../workflows/01_feature_development.md)
- [Introduce a new API](../../workflows/04_new_api.md)
- [Review a pull request](../../workflows/09_pull_request_review.md)
Examples:
- [examples/broken_code_lab/07_sql_injection/CHALLENGE.md](../../examples/broken_code_lab/07_sql_injection/CHALLENGE.md)
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · arijeetganguli/ai-kaarkhana | 100 | MIT |
| arijeetganguli/ai-kaarkhana | 100 | MIT |
| security-phoenix-demo/security-skills-claude-code | 100 | MIT |
| jpoley/flowspec | 100 | Apache-2.0 |
| foryourhealth111-pixel/Vibe-Skills | 90 | Apache-2.0 |
| galyarderlabs/galyarder-framework | 90 | MIT |
| galyarderlabs/galyarder-framework | 90 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 64258741adcf (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100security-testing
Testuje bezpieczeństwo aplikacji webowych i API: OWASP Top 10, uwierzytelnianie i autoryzację, skanowanie zależności, sekrety oraz SAST i DAST. - 96security-review
Przegląda kod i zmiany pod kątem podatności: wstrzyknięć, sekretów, niebezpiecznego wejścia i uprawnień. - 100devsecops
Wbudowuje skanowanie SAST, DAST, zależności i sekretów w CI/CD, z bramkami polityk bezpieczeństwa w potoku. - 100security-architecture-review
Przegląda projekt lub zmianę pod kątem bezpieczeństwa przed wydaniem: uwierzytelnianie, autoryzacja, dane, sekrety, zależności i praktyki bezpiecznego wytwarzania, wraz z doborem narzędzi SAST i DAST. - 90sast-scan
Projektuje potok skanowania SAST i DAST: dobór narzędzi, integracja z CI i proces triage. - 100security-audit
Przeprowadza audyt OWASP Top 10 z SAST, DAST i SCA, wykrywa sekrety i sprawdza podatności zależności oraz CVE.