home/roleplay/prompt-threat-modeling-2

Prompt Threat Modeling

GPTClaudeGemini··644 copies·updated 2026-07-14
prompt-threat-modeling-2.prompt
# Промт — Threat modeling

> 🇷🇺 **Русский** · [🇬🇧 English](../en/prompt-threat-modeling.md)

[← Index](./README.md) · [Стандарты](./standards.md) · [Шаблон](./template.md)

tags: #prompt #threat-modeling #security #review #single-shot
**Статус:** `🧪 Experimental`
**Owner:** Pandamy619
**Последняя правка:** 2026-05-20
**Версия:** v1
**Источник идеи:** [Microsoft — STRIDE Threat Modeling](https://learn.microsoft.com/en-us/azure/security/develop/threat-modeling-tool-threats), [OWASP — Threat Modeling Process](https://owasp.org/www-community/Threat_Modeling_Process)
**Дельта от оригинала:** обязательная DFD (или явное перечисление trust boundaries) до STRIDE-анализа, требование likelihood × impact матрицы и явный раздел residual risks. Кандидат на переписывание в `#critique` жанр (см. бэклог).

---

## Когда использовать

- Перед запуском нового сервиса или существенным изменением в существующем
- Перед security review или compliance аудитом
- Когда команда не уверена, какие угрозы реальны, а какие теоретические

## Что подставить

- `{{system_description}}` — string, e.g. `payments-api принимает запросы от mobile/web, валидирует, отправляет в Stripe, сохраняет в Postgres, эмитит event в Kafka`
- `{{data_classification}}` — string, e.g. `PCI DSS (PAN, CVV); GDPR (PII); secrets (API keys); internal (logs)`
- `{{trust_boundaries}}` — list, e.g. `internet → API gateway; gateway → service; service → DB; service → Stripe; service → Kafka`
- `{{entry_points}}` — list, e.g. `POST /v1/payments (public, authed); GET /v1/admin/payments (internal, JWT scope admin); webhook от Stripe (public, signature-verified)`
- `{{assets_at_risk}}` — list, e.g. `платёжные данные клиентов; история транзакций; API keys; user PII`
- `{{compliance_context}}` — string, e.g. `PCI DSS SAQ-D; GDPR; SOC 2 Type II`
- `{{attacker_profile}}` — string, e.g. `internet attacker (low skill); insider (employee); compromised dependency; nation-state (out of scope)`

## Definition of done

Универсальный минимум — см. [Definition of done](./standards.md#2-definition-of-done).

Специфичные критерии:

- DFD приведена (текстом или Mermaid), с явно отмеченными trust boundaries
- STRIDE проработан для каждой trust boundary, не «в целом по системе»
- Каждый risk имеет likelihood (Low/Med/High), impact (Low/Med/High) и mitigation (existing / proposed / accepted)
- Указаны residual risks — что НЕ закрыто и почему
- Для каждой mitigation сказано, как verify, что она работает

## Промт

fill the variables

This prompt has 7 variables. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.

{{system_description}{{data_classification}{{trust_boundaries}{{entry_points}{{assets_at_risk}{{compliance_context}{{attacker_profile}
Unlock with Pro →

when to use it

Community prompt sourced from the open-source GitHub repo pandamy619/Promts (MIT). A "Prompt Threat Modeling" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

roleplaycommunitygeneral

source

pandamy619/Promts · MIT