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

security-review

/security-review

Przegląda kod i konfigurację wg OWASP: sekrety, wstrzyknięcia, XSS, dostęp, uwierzytelnianie, SSRF i zależności przed wydaniem.

Repozytorium
The-Insectoids ↗
Licencja
MIT
Ostatnia zmiana repozytorium
12.11.2026

Ocena i bezpieczeństwo

100/ 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ść35 / 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
3
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.11.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 i konfigurację wg OWASP: sekrety, wstrzyknięcia, XSS, dostęp, uwierzytelnianie, SSRF i zależności przed wydaniem.

Oryginalny opis (EN)

OWASP-style security review of code and configuration: secrets, injection, XSS, access control, authentication, sensitive data, SSRF, unsafe deserialization, dependencies and infrastructure. Use when a change touches user input, auth, API endpoints, file uploads, payments, webhooks, crypto, secrets or sensitive data, when dependencies change, and before any release.

Jak działa

  1. When to use
  2. Principles
  3. Workflow
  4. Checklist (OWASP-style)
  5. Patterns to flag on sight
  6. Common false positives (check context first)
  7. Handling findings
  8. Output
  9. Done when
Sekcje z nagłówków SKILL.md, w oryginale · 110 linii, 1 272 słów
Podgląd SKILL.md
---
name: security-review
description: 'OWASP-style security review of code and configuration: secrets, injection, XSS, access control, authentication, sensitive data, SSRF, unsafe deserialization, dependencies and infrastructure. Use when a change touches user input, auth, API endpoints, file uploads, payments, webhooks, crypto, secrets or sensitive data, when dependencies change, and before any release.'
metadata:
  kind: skill
  castes: [reviewer, coder, inspector]
  tags: [security, review, owasp, quality]
  version: 1
  status: vetted
  sources:
    - repo: affaan-m/ecc
      path: skills/security-review/SKILL.md
      license: MIT
    - repo: affaan-m/ecc
      path: skills/security-review/cloud-infrastructure-security.md
      license: MIT
    - repo: affaan-m/ecc
      path: agents/security-reviewer.md
      license: MIT
---

# Security Review

Find vulnerabilities before they ship. One hole can expose every user, so look carefully, but report only what you can show: a guessed vulnerability wastes a fix and erodes trust like any other false finding.

This skill builds on code-review: same confidence gate, same one-line output, same verdicts. It adds the security checklist and rules for handling what you find.

## When to use

**Always** for changes that touch: authentication or authorization, user input or file uploads, new or changed API endpoints, database queries, payments or value transfers, webhooks, external API integrations, cryptography, secrets, personal or sensitive data, dependency updates, infrastructure or CI configuration.

**Immediately** for: a reported vulnerability, a dependency advisory affecting the project, an incident, or a pre-release check.

## Principles

1. **Never trust input.** Validate at every boundary with allowlists, not denylists.
2. **Least privilege.** Every user, service, token and role gets the minimum it needs.
3. **Defense in depth.** No single check is the only thing standing between an attacker and the data.
4. **Fail securely.** Errors deny access and reveal nothing internal.
5. **Keep dependencies current** and locked.

## Workflow

1. **Scope.** Read the diff and card. List the trust boundaries the change touches: where untrusted data enters, where it is stored, where it leaves, who is allowed to do what.
2. **Scan.** Run the project's available tools: dependency audit, security linter, secret scanner (examples per language in [references/owasp-checklist.md](references/owasp-checklist.md#scanning-tools)). Search the changed files for secret-shaped strings. Do not install new tools or send code to external services without approval.
3. **Review high-risk areas first:** auth, endpoints, queries, uploads, payments, webhooks, anything that runs commands or fetches URLs.
4. **Walk the checklist** below. For each relevant item, trace real data flow from the entry point to the sink.
5. **Confirm each finding** through the code-review confidence gate. A security finding at critical or high needs: the line, the attack (input, path, outcome), and why existing guards (framework escaping, ORM, middleware, types) do not stop it.
6. **Report** and set the verdict.

## Checklist (OWASP-style)

| # | Area | Check |
|---|---|---|
| 1 | Injection | Queries parameterized; no string-built SQL/NoSQL; no user input in shell commands (use argument lists, allowlists); no `eval` / dynamic code on input; template injection. |
| 2 | Broken authentication | Passwords hashed with a slow algorithm (bcrypt, scrypt, argon2); tokens signature- and expiry-checked; sessions in httpOnly, Secure, SameSite cookies, not browser storage; brute-force throttling on login and reset. |
| 3 | Sensitive data exposure | Secrets from environment or a secret manager, never in source or history; HTTPS enforced; sensitive data encrypted at rest; no secrets or personal data in logs; generic error messages to clients, details only in server logs. |
| 4 | XML external entities | XML parsers with external entities and DTDs disabled. |
| 5 | Broken access control | Authorization checked on every route and operation, server-side, per object (no reading another user's record by changing an id); row-level ownership enforced in queries or database policies; CORS limited to known origins. |
| 6 | Security misconfiguration | Debug mode off in production; default credentials changed; security headers set (CSP without `unsafe-inline`/`unsafe-eval` by default, frame-ancestors, nosniff, referrer policy); least-privilege service accounts. |
| 7 | Cross-site scripting | Framework auto-escaping not bypassed; user HTML sanitized with an allowlist sanitizer at the same call site; user URLs scheme-checked (no `javascript:`); CSP set. |
| 8 | Insecure deserialization | No unsafe deserializers on untrusted data (native object deserialization, unsafe YAML loaders); schema-validate parsed JSON. |
| 9 | Known vulnerable components | Dependency audit clean at high and above; lockfiles committed; reproducible installs in CI. |
| 10 | Logging and monitoring | Security events logged (failed logins, permission denials, admin actions) without sensitive data; alerts for anomalies. |
| + | CSRF | State-changing requests authenticated by cookies have CSRF tokens or SameSite=Strict/Lax as appropriate. |
| + | SSRF | Server-side fetches of user-supplied URLs restricted to an allowlist of hosts; internal addresses blocked. |
| + | Rate limiting | Public and expensive endpoints throttled per IP and per user. |
| + | File uploads | Size, type and extension allowlisted; stored outside the web root under generated names; path traversal impossible. |
| + | Value transfers | Recipient and amount validated server-side; balance check and debit in one transaction with a row lock; idempotency on retries; no blind signing. |

Detailed checks, code examples and security test patterns: [references/owasp-checklist.md](references/owasp-checklist.md). Cloud, CI/CD, network and backup checks: [references/cloud-infrastructure.md](references/cloud-infrastructure.md).

## Patterns to flag on sight

| Pattern | Severity | Fix |
|---|---|---|
| Hardcoded secret, key or password | critical | Load from environment or secret manager; rotate it |
| User input in a shell command | critical | Argument-list API, allowlist values |
| String-built SQL with user input | critical | Bound parameters / ORM |
| Plaintext password storage or comparison | critical | Slow hash and its compare function |
| Route or operation with no auth check | critical | Add authentication and authorization |
| Balance or stock check without a lock | critical | Check and update in one transaction with a row lock |
| User HTML assigned as raw markup | high | Text content, or allowlist sanitizer |
| Server fetch of a user-provided URL | high | Host allowlist, block internal ranges |
| No rate limit on login or expensive endpoint | high | Per-IP and per-user throttling |
| Session token in browser storage | high | httpOnly Secure cookie |
| Secrets or passwords written to logs | medium | Redact before logging |

## Common false positives (check context first)

- Placeholder values in `.env.example` or docs.
- Clearly marked test credentials in test files.
- Keys that are public by design (publishable keys, public client ids).
- MD5 or SHA-1 used for checksums or cache keys, not passwords or signatures.
- Non-cryptographic randomness used for jitter, sampling or animation.

## Handling findings

- **Never copy a secret's value** into a finding, card result, log or the Brain. Cite file and line and the secret's type only.
- A real exposed secret is critical: mark the card blocked and escalate to the Queen at once. Rotation, history rewriting, and notifying anyone outside the hive need user approval.
- Include the fix: a secure code example at the same call site.
- After a fix, verify it: re-run the scan and add a test that proves the attack now fails (e.g. unauthenticated request returns 401, other user's id returns 403 or 404, malicious input rejected with 400).
- Record recurring weaknesses for this repo in the Brain so future insects check them.

## Output

Use the code-review format, adding the vulnerability class:

```
src/api/files.ts:31: critical: path traversal (CWE-22). `name` from query joined into path unchecked; "../../etc/passwd" reads outside uploads. Resolve the path and reject anything not under UPLOAD_DIR.
```

Critical findings get a short paragraph: attack scenario, impact, fix. End with:

```
scans:   <tools run and results, or "unavailable: <why>">
checked: <checklist areas reviewed> | not applicable: <areas>
risk:    <what could not be verified>
verdict: approve | changes-requested | block
```

Block on any critical. Request changes on any high.

## Done when

- [ ] Trust boundaries of the change listed and each relevant checklist area walked.
- [ ] Available scans run, or marked unavailable.
- [ ] Every finding has line, attack, fix; no secret values reproduced.
- [ ] Critical findings escalated; verdict recorded in the card result.
Pliki w paczce (3)
  • SKILL.md 9 KB
  • references/cloud-infrastructure.md 5 KB
  • references/owasp-checklist.md 10 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · Sanit-mann/The-Insectoids100MIT
microsoft/power-platform-skills100MIT
VasulenkoIllia/claude-code-base100MIT
rjmurillo/ai-agents100MIT
github/awesome-copilot100MIT
sageox/ox100MIT
mcouthon/agents100MIT
relatedb/relate100Apache-2.0
maragudk/fabrik100MIT

Migawka bazy z 13.11.2026 · wersja paczki aac8ef99f16f (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-audit
    Audytuje kod i pisze bezpieczny kod wg OWASP Top 10: kontrolę dostępu, wstrzyknięcia, XSS, SSRF, sesje, sekrety i nagłówki.
  • 90security-reviewer
    Przeprowadza dedykowany przegląd bezpieczeństwa pod kątem OWASP, wycieków sekretów, błędów uwierzytelniania, wstrzyknięć i SSRF oraz XSS.
  • 100security
    Pomaga przeglądać zmiany wrażliwe na bezpieczeństwo: API, uwierzytelnianie, autoryzację, dane, sekrety i zależności według OWASP.
  • 100security-scan
    Skanuje bazę kodu lub zmianę pod kątem XSS, wstrzyknięć, SSRF, przejścia katalogów i sekretów, raportując zweryfikowane znaleziska.
  • 90security-owasp
    Podpowiada bezpieczne praktyki kodowania według OWASP Top 10: kontrolę dostępu, uwierzytelnianie, zapobieganie wstrzykiwaniu i błędy kryptografii.
  • 90secure-code-review
    Przegląda zmiany w aplikacjach webowych pod kątem błędów kontroli dostępu, wstrzyknięć, XSS, CSRF, SSRF i przesyłania plików, z poprawkami.

Uwagi i zgłoszenia

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