Przejdź do treści
Biblioteka skilli
Bezpieczeństwo · Przegląd i audyt

security-code-audit

/security-code-audit

Przegląda kod źródłowy pod kątem OWASP Top 10 we frontendzie, API i bazie danych, tworząc rejestr ustaleń z ważnością i lokalizacją w kodzie.

Licencja
MIT
Ostatnia zmiana repozytorium
12.06.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
4
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.06.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Przegląda kod źródłowy pod kątem OWASP Top 10 we frontendzie, API i bazie danych, tworząc rejestr ustaleń z ważnością i lokalizacją w kodzie.

Oryginalny opis (EN)

Use when you have application source code and want to find security vulnerabilities by reading it — covers OWASP Top 10 across frontend, backend API, and database. Produces a findings register with severity, file:line, and exploitability.

Jak działa

  1. Overview
  2. Method: source → sink tracing
  3. OWASP Top 10 — what to grep for
  4. Domain references (load the ones that match your stack)
  5. Output: findings register
  6. Hand-off
  7. Common mistakes
Sekcje z nagłówków SKILL.md, w oryginale · 53 linii, 448 słów
Podgląd SKILL.md
---
name: security-code-audit
description: Use when you have application source code and want to find security vulnerabilities by reading it — covers OWASP Top 10 across frontend, backend API, and database. Produces a findings register with severity, file:line, and exploitability.
---

# Security Code Audit (FIND phase)

## Overview
Read source code and find vulnerabilities by pattern. No running app required — works in any
AI coding tool. Trace untrusted input from its **source** (where it enters) to its **sink**
(where it's used dangerously).

**Core principle:** A vulnerability is *untrusted data reaching a dangerous sink without
adequate validation/encoding in between*. Find the source→sink paths.

## Method: source → sink tracing
1. From the threat model (or by scanning entry points), pick a **source** of untrusted input.
2. Follow the data through the code to where it's **used** (the sink).
3. Ask: is it validated, sanitized, parameterized, or encoded *for that sink*? If not → finding.
4. Record severity, `file:line`, the exact data path, and how to exploit it.

## OWASP Top 10 — what to grep for
| Risk | Smell / sink to search |
|------|------------------------|
| Injection (SQL/NoSQL/cmd) | string-built queries, `exec`, `eval`, `system`, template interpolation in queries |
| Broken access control (IDOR) | object lookups by user-supplied id with no ownership check |
| Broken auth | custom crypto, weak session handling, missing MFA, token in URL |
| Cryptographic failures | `md5`/`sha1` for passwords, hardcoded keys, `Math.random` for tokens, no TLS |
| SSRF | server fetches a user-supplied URL (`requests.get(input)`, `fetch(input)`) |
| Security misconfig | debug=true, default creds, permissive CORS `*`, verbose errors |
| XSS | `innerHTML`, `dangerouslySetInnerHTML`, `v-html`, unescaped template output |
| Insecure deserialization | `pickle.loads`, `yaml.load`, native deserialize on input |
| Vulnerable dependencies | check lockfiles vs advisories (`npm audit`, `pip-audit`, `osv`) |
| SSTI / path traversal | template render of input, `../` in file paths from input |

## Domain references (load the ones that match your stack)
- `references/web-frontend.md` — XSS, CSRF, CSP, client-side secrets, clickjacking
- `references/api-backend.md` — authz/IDOR, injection, SSRF, JWT, rate limiting, mass assignment
- `references/database.md` — SQLi/NoSQLi, access control, data exposure, ORM pitfalls

## Output: findings register
| ID | Severity | Title | Location | Source→sink | Exploitability | Fix pointer |
|----|----------|-------|----------|-------------|----------------|-------------|
| F1 | High | SQLi in user search | `api/users.py:42` | `?q=` → raw SQL | Unauth, dumps DB | parameterize → `security-hardening` |

Severity = the threat-model risk score, adjusted for how exploitable the code actually is.

## Hand-off
High-severity findings on a running app → **`active-pentest`** to validate.
All findings → **`security-hardening`** to fix.

## Common mistakes
- Pattern-matching sinks without confirming input is actually attacker-controlled (false positive).
- Stopping at the first sink — one source often reaches several.
- Trusting client-side validation — it's bypassable; the server must validate.
- Ignoring authorization: most real-world breaches are *access control*, not exotic injection.
Pliki w paczce (4)
  • SKILL.md 3 KB
  • references/api-backend.md 3 KB
  • references/database.md 2 KB
  • references/web-frontend.md 2 KB

Wersje

W bazie nie ma innych skilli o nazwie security-code-audit.

Migawka bazy z 13.11.2026 · wersja paczki b063155ab7c8 (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

  • 100owasp-code-audit
    Przegląda kod źródłowy pod kątem OWASP Top 10 2021 i zwraca priorytetową listę ustaleń z odwołaniami do plików i wierszy.
  • 100iblai-vibe-security-owasp-audit
    Audytuje kod źródłowy aplikacji pod kątem kategorii OWASP Top 10 i wskazuje typowe słabości bezpieczeństwa w bazie kodu.
  • 90app-security-code-review-skill
    Przegląda kod frontendu, backendu, API i aplikacji iOS lub Android pod kątem wytycznych OWASP i przygotowuje zgłoszenia.
  • 95owasp-security
    Przegląda kod pod kątem podatności, wspiera wdrażanie uwierzytelniania i autoryzacji oraz obsługę danych wejściowych, w oparciu o OWASP Top 10:2025, ASVS 5.0 i bezpieczeństwo agentów AI.
  • 100security-audit
    Waliduje polityki RLS, audytuje trasy API, skanuje pod kątem problemów bezpieczeństwa i przegląda kod pod kątem podatności oraz zgodności z OWASP.
  • 100owasp-audit
    Audytuje kod źródłowy aplikacji pod kątem kategorii OWASP Top 10:2025, od kontroli dostępu po logowanie i integralność, z raportem findings.json.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.