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

review-as-security

/review-as-security

Ocenia analizę lub specyfikację z perspektywy bezpieczeństwa: granice zaufania, uwierzytelnianie, spójność danych i bezpieczne zachowanie przy awarii.

Repozytorium
cf-powers ↗
Licencja
MIT
Ostatnia zmiana repozytorium
15.10.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
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 15.10.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

Ocenia analizę lub specyfikację z perspektywy bezpieczeństwa: granice zaufania, uwierzytelnianie, spójność danych i bezpieczne zachowanie przy awarii.

Oryginalny opis (EN)

Use when reviewing a technical analysis, design document, or specification from a security perspective - checking attack vectors, trust boundaries, authentication, data integrity, and fail-safe behavior

Jak działa

  1. Overview
  2. Input
  3. Review Checklist
  4. Output Format
  5. Severity Levels
  6. Key Principles
Sekcje z nagłówków SKILL.md, w oryginale · 147 linii, 909 słów
Podgląd SKILL.md
---
name: review-as-security
description: Use when reviewing a technical analysis, design document, or specification from a security perspective - checking attack vectors, trust boundaries, authentication, data integrity, and fail-safe behavior
---

# Review as Security Engineer

**Runtime:** Follow project instructions. Use native skill loading and ordinary
project reads directly. Before dispatch, resume, model selection, or shared plugin
resource resolution, read [runtime operations](../using-superpowers/references/runtime.md)
and the active-host reference once per context. Keep workflow decisions and child runtime constraints unchanged.

## Overview

Review a technical analysis or specification document from a security engineer perspective. Focus on whether the proposed solution correctly handles trust boundaries, input validation, authentication, data integrity, and fail-safe behavior.

**Announce at start:** "I'm reviewing this document as a Security Engineer."

## Input

- Design + analysis document (typically `docs/plans/YYYY-MM-DD-<topic>.md`)
- The actual codebase (read relevant files to verify security claims)
- applicable project instructions (CLAUDE.md on Claude Code, AGENTS.md on Codex) security-related sections (if project defines security invariants, they are absolute)

## Review Checklist

### 1. Security Invariant Compliance (DO THIS FIRST)

**CRITICAL:** Check if the project defines security invariants in applicable project instructions (CLAUDE.md on Claude Code, AGENTS.md on Codex). If so, verify every proposed change against them. Any violation is automatically CRITICAL.

Read the actual code paths affected by the proposed changes.

### 2. Attack Surface Analysis

- Can an attacker poison caches or shared state? (TOCTOU between validation and use)
- Can an attacker bypass validation? (race conditions, partial inputs, encoding tricks)
- Can an attacker serve or receive different data than what was validated? (hash/integrity verification)
- Can an attacker manipulate external responses? (TLS verification, redirect following, DNS rebinding)
- Can an attacker trigger denial of service? (large payloads, zip/tar bombs, unbounded allocations)
- Can an attacker exploit processing of untrusted input? (injection, deserialization, path traversal)

### 3. Trust Boundary Analysis

- Map all trust boundaries (client-server, service-to-service, internal-external, user-admin)
- Verify input validation at each boundary
- Check that data from untrusted sources is never used unsanitized
- Verify outputs from external services are validated before acting on them
- Check inter-process/inter-service channel security

### 4. Authentication and Authorization

- Are API endpoints properly authenticated?
- Is authorization checked at every access point (not just at the UI level)?
- Are credentials stored and transmitted securely?
- Is the UI protected against CSRF, XSS, session hijacking?
- Are there privilege escalation paths?
- Is the principle of least privilege followed?

### 5. Data Integrity and Cryptography

- Is sensitive data encrypted at rest and in transit?
- Are hashes/signatures verified end-to-end where needed?
- Are TLS certificates validated for external connections?
- Is there protection against downgrade attacks?
- Are cryptographic primitives used correctly (no custom crypto, proper key management)?

### 6. Secrets and Sensitive Data

- Are secrets excluded from logs and error messages?
- Are API keys, tokens, and credentials properly scoped?
- Is sensitive data masked in user-facing output?
- Are secrets managed through proper secret management (not hardcoded)?

### 7. Fail-Safe Behavior

- Do failures fail safe (deny by default) or fail open? Is the choice appropriate?
- What happens when external dependencies are unreachable?
- Are there timeouts on all external calls?
- Is there circuit-breaking for repeated failures?
- Are error messages safe (no stack traces, internal paths, or secrets leaked)?

## Output Format

Structure your review exactly like this:

```markdown
# Security Review: <topic>

## Summary
[1-2 sentence security posture assessment]

## Security invariants
- ✅ [Invariant maintained — cite evidence]
- CRITICAL: [Invariant violated — cite code, describe attack]
(If project has no defined invariants, note "Project defines no explicit security invariants in applicable project instructions (CLAUDE.md on Claude Code, AGENTS.md on Codex)")

## Attack surface
- HIGH: [Attack vector — scenario, impact, remediation]
- MEDIUM: [Defense-in-depth gap — describe and suggest improvement]

## Trust boundaries
- ✅ [Boundary with proper validation]
- HIGH: [Boundary with insufficient validation — describe risk]

## Authentication and authorization
- ✅ [Properly secured access point]
- HIGH: [Missing or insufficient auth check]

## Data integrity and cryptography
- ✅ [Correct integrity check]
- MEDIUM: [Missing or weak check]

## Secrets and sensitive data
- ✅ [Properly handled secrets]
- HIGH: [Exposed or mishandled secret — describe risk]

## Failure behavior
- ✅ [Correct fail-safe behavior]
- MEDIUM: [Missing timeout or circuit breaker]

## Security questions
1. [Question about security design decision]
2. [Clarification about threat model assumption]

## Recommendations
1. [Actionable security recommendation — priority order]
2. [Actionable security recommendation]

## Verdict
**Security assessment:** [OK / Needs improvement / Critical gaps]
**Recommended next step:** [Proceed to planning / Incorporate feedback / Requires security redesign]
```

## Severity Levels

- **CRITICAL** — Security invariant violation or directly exploitable vulnerability
- **HIGH** — Significant security weakness that needs fixing before deployment
- **MEDIUM** — Defense-in-depth improvement
- **LOW** — Hardening suggestion

## Key Principles

- **Verify against code** — Always read the actual files; don't trust the analysis claims
- **Think like an attacker** — For each component, ask "how would I abuse this?"
- **Specific attack scenarios** — Don't say "could be vulnerable"; describe the exact attack path
- **Prioritize by exploitability** — Real risks over theoretical concerns
- **Proportionate controls** — Prefer existing controls that satisfy the threat model. Justify custom infrastructure with a concrete unmet requirement.
- **Safe simplification** — Reduce speculative scope, not required authorization, data integrity, secret protection, audit, or recovery controls.
- **Defense in depth** — One control failing shouldn't compromise the system
- **Project invariants are sacred** — If applicable project instructions (CLAUDE.md on Claude Code, AGENTS.md on Codex) define security invariants, any violation is CRITICAL

Wersje

W bazie nie ma innych skilli o nazwie review-as-security.

Migawka bazy z 13.11.2026 · wersja paczki 5a6f258cf6e4 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 1 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100review-as-dev
    Ocenia analizę lub specyfikację z perspektywy dewelopera: wykonalność techniczną, architekturę, punkty integracji, wydajność i bezpieczeństwo.
  • 100secure-software-engineering
    Prowadzi bezpieczne projektowanie i implementację oprogramowania: wymagania bezpieczeństwa, modelowanie zagrożeń, bezpieczne ustawienia domyślne, uwierzytelnianie, autoryzacja, sekrety, zależności i granice zaufania multi-tenant.
  • 100security-review
    Ocenia kod i konfigurację pod kątem ryzyka dla wrażliwych danych, granic zaufania, uwierzytelniania, uprawnień, wejścia, sekretów i zależności.
  • 90check-security
    Podaje listę kontrolną bezpieczeństwa przy przeglądzie zmian i projektów: logowanie, uprawnienia, sekrety, wstrzykiwanie, granice zaufania i zależności.
  • 100review-as-ba
    Ocenia analizę techniczną lub specyfikację z perspektywy analityka biznesowego: kompletność wymagań, przepływy użytkowników i przypadki brzegowe.
  • 100security-threat-model
    Tworzy ustrukturyzowany model zagrożeń metodą STRIDE: granice zaufania, wektory ataku, oceny ryzyka i konkretne środki zaradcze.

Uwagi i zgłoszenia

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