Przejdź do treści
Biblioteka skilli
Bezpieczeństwo · Planowanie

threat-model

/threat-model

Tworzy lub aktualizuje dokument docs/THREAT_MODEL.md: granice zaufania, powierzchnię ataku i zagrożenia STRIDE przed wdrożeniem.

Repozytorium
ai-workflow ↗
Licencja
MIT
Ostatnia zmiana repozytorium
22.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 22.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

Tworzy lub aktualizuje dokument docs/THREAT_MODEL.md: granice zaufania, powierzchnię ataku i zagrożenia STRIDE przed wdrożeniem.

Wyzwalacze z opisu

what could go wrong security-wiseidentify the threatslock this down before launch

Argumenty

/threat-model [focus area]
Oryginalny opis (EN)

Create or update docs/THREAT_MODEL.md — a STRIDE-style design-level threat model with trust boundaries, attack surface, threats and mitigations. Use when the user asks for a threat model, an attack-surface analysis or a STRIDE pass, or says 'what could go wrong security-wise', 'identify the threats', 'lock this down before launch'. For reviewing a specific diff or branch, use the built-in /security-review instead.

Jak działa

  1. Context Gathering
  2. Interview
  3. Write
  4. After Writing
Sekcje z nagłówków SKILL.md, w oryginale · 88 linii, 580 słów
Podgląd SKILL.md
---
name: threat-model
description: "Create or update docs/THREAT_MODEL.md — a STRIDE-style design-level threat model with trust boundaries, attack surface, threats and mitigations. Use when the user asks for a threat model, an attack-surface analysis or a STRIDE pass, or says 'what could go wrong security-wise', 'identify the threats', 'lock this down before launch'. For reviewing a specific diff or branch, use the built-in /security-review instead."
argument-hint: "[focus area]"
---
Create or update the threat model. Argument: $ARGUMENTS (an optional focus area; update only that part and leave the rest)

## Context Gathering

Before interviewing, understand the system's security surface:

1. **Check for existing docs:**
   - Read `docs/THREAT_MODEL.md` — if revising, don't start from scratch
   - Read `docs/ARCHITECTURE.md` for system structure and trust boundaries
   - Read the project's `CLAUDE.md` and `README.md`

2. **Survey the codebase** for auth, input handling, data access (raw SQL vs parameterized), secrets, exposed endpoints and service exposure (`docker-compose.yml`, deployment config).
3. Summarize what you found — "Here's what I see from a security perspective: ..."

## Interview

Use AskUserQuestion, asking only what the code and docs do not answer, in rounds of at most 3-4 questions. If the user cannot be asked (a headless run), write from what exists and list each assumption as an open question.

1. **Trust boundaries** — What is trusted? What is untrusted? Where are the boundaries?
2. **Authentication** — How do users/agents/services prove identity? What mechanisms exist today?
3. **Authorization** — Who can do what? How are permissions modeled?
4. **Sensitive data** — What data is sensitive? Credentials, PII, financial? Where does it live? How is it protected at rest and in transit?
5. **Attack surface** — What is exposed to the internet? To local users? To other services? What inputs does the system accept?
6. **Threat actors** — Who would attack this? Script kiddies, insiders, nation states? What are their capabilities?
7. **Compliance** — Any regulatory requirements? SOC2, GDPR, HIPAA, PCI? (skip if none apply)
8. **Existing security measures** — What's already in place? What's missing?

For inherited projects: "I see you're using X for auth — is that intentional or legacy? I notice Y has no input validation — is that a known gap?"

## Write

Write to `docs/THREAT_MODEL.md`:

```markdown
# Threat Model

**Last updated:** [date]

## Trust Assumptions

[What is the trust model? What is trusted, what is untrusted? Include a Mermaid diagram of the trust hierarchy.]

## Security Properties

[Non-negotiable security invariants. Things that must always hold.]

- [Property 1]
- [Property 2]

## Attack Surface

| Surface | Exposure | Controls |
|---------|----------|----------|
| [surface] | [who can reach it] | [what protects it] |

## Threats

[Walk each trust boundary and data flow through S/T/R/I/D/E (spoofing, tampering, repudiation, information disclosure, denial of service, elevation of privilege); omit categories that do not apply. If a control cannot be confirmed from the code, mark it `unverified`, never `implemented`.]

### [Component or flow]

| # | STRIDE | Attack | Impact | Likelihood | Defense | Status |
|---|--------|--------|--------|------------|---------|--------|
| 1 | [S/T/R/I/D/E] | [attack description] | [what happens] | [Low/Med/High] | [how it's prevented] | [implemented / unverified / missing] |

## Sensitive Data Inventory

| Data | Classification | At Rest | In Transit | Access Control |
|------|---------------|---------|------------|----------------|
| [data type] | [level] | [protection] | [protection] | [who can access] |

## Gaps (not yet implemented)

- [Control — what it protects against — priority]

## Compliance Requirements

[Only if applicable. Regulatory frameworks, what they require, current status.]
```

## After Writing

1. Present the document to the user for review. Iterate until they're satisfied.
2. Suggest next steps based on what exists:
   - No architecture doc? → "Define system structure with `/wf:architecture`"
   - Ready to build? → "Create feature specs with `/wf:spec <name>`, then `/wf:roadmap`"
3. Remind the user that security-sensitive PRs still need `/security-review`; this document is its input, not a substitute.

Wersje

RepozytoriumWynikLicencja
Ta strona · rafagomes/ai-workflow100MIT
mohamed-osama-aboelkheir/appsec-untangled-resources100MIT
jelvodev/yaap100MIT
cowork-os/cowork-os100MIT
andreibesleaga/gabbe100CC-BY-4.0
ClineSec/cline-skills100MIT
qa-aman/claude-skills100MIT
hamzabellouch/agent-skills100MIT
Srajangpt1/ai-security-crew100MIT

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

Pobrania w ostatnich 30 dniach: 2 · ranking

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

Podobne skille

  • 90security-threat-modeling
    Przeprowadza model zagrożeń w stylu STRIDE dla komponentu: aktywa, punkty wejścia, granice zaufania i środki zaradcze, z właścicielem każdego zagrożenia.
  • 90Threat Modeling for Secure Design
    Identyfikuje zagrożenia przy projektowaniu bezpiecznej architektury: analiza STRIDE, granice zaufania i powierzchnia ataku.
  • 100security-threat-model
    Tworzy ustrukturyzowany model zagrożeń metodą STRIDE: granice zaufania, wektory ataku, oceny ryzyka i konkretne środki zaradcze.
  • 90model
    Buduje model zagrożeń architektury: diagram przepływu danych, granice zaufania i analizę STRIDE dla aplikacji.
  • 90threat-modeling
    Buduje model zagrożeń przed projektowaniem lub w jego trakcie: aktywa, granice zaufania, zagrożenia STRIDE i ranking ryzyk z zabezpieczeniami.
  • 100fai-threat-model
    Prowadzi modelowanie zagrożeń aplikacji AI metodą STRIDE: granice zaufania, powierzchnia ataku i priorytety działań zaradczych przed wdrożeniem produkcyjnym.

Uwagi i zgłoszenia

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