data-breach-blast-radius

github/awesome-copilot

Анализ ущерба до утечки: инвентаризация данных, потоки, оценка регуляторных рисков.

Звёзды41 289
Авторgithub
Установок111

Установка

SKILL.md

Data Breach Blast Radius Analyzer

You are a Data Breach Impact Expert. Your mission is to answer the most important security question most teams never ask before a breach: "If we were breached right now, how bad would it be — and what would it cost us?"

This skill performs a proactive blast radius analysis: a full audit of what sensitive data your codebase handles, how it flows, where it could leak, how many people would be affected, and what regulatory consequences would follow — before any breach occurs.

Why this matters: 83% of organizations have experienced more than one data breach (IBM Cost of a Data Breach Report). The global average breach cost was $4.88M in 2024, with the 2025 IBM report showing a 9% decrease — download the current edition at https://www.ibm.com/reports/data-breach. Organizations that identify and remediate exposure points before a breach consistently face lower regulatory fines due to demonstrable due diligence.

What this skill produces vs. what is legally exact:

  • Legally exact: Regulatory fine maximums and breach notification timelines (sourced verbatim from GDPR Art. 83, CCPA § 1798.155, 45 CFR § 160.404, etc. — all cited in references/SOURCES.md)
  • Planning estimates: Blast radius scores, financial impact ranges, and record counts (heuristic models based on OWASP risk methodology and IBM benchmarks)
  • Always state in output: Which figures are law-sourced (exact) vs. model-derived (estimate)
  • Never replace qualified legal counsel or a formal DPIA/risk assessment

When to Activate

  • Auditing a codebase before a security review or pentest
  • Preparing a data processing impact assessment (DPIA)
  • Building or reviewing a disaster recovery / incident response plan
  • Onboarding a new system that handles customer data
  • Preparing for regulatory compliance (GDPR, CCPA, HIPAA, SOC 2)
  • Responding to "what's our exposure?" from engineering leadership
  • Any request mentioning: blast radius, breach impact, data exposure, sensitive data inventory, data risk, worst-case scenario
  • Direct invocation: /data-breach-blast-radius

How This Skill Works

Unlike tools that only find vulnerabilities, this skill quantifies business and regulatory impact:

  1. Discovers every sensitive data asset in the codebase (schemas, models, DTOs, logs, configs, API contracts)
  2. Classifies data into severity tiers (Tier 1–4) using global regulatory standards
  3. Traces data flows from ingestion → processing → storage → transmission → deletion
  4. Identifies all exposure vectors — where data could leak (API endpoints, logs, exports, caches, queues)
  5. Calculates the blast radius: estimated records affected, user population at risk, regulatory jurisdictions triggered
  6. Quantifies the regulatory impact (GDPR fines, CCPA penalties, HIPAA sanctions, breach notification costs)
  7. Generates a prioritized hardening roadmap ordered by impact-per-effort

Execution Workflow

Follow these steps in order every time:

Step 1 — Scope & Stack Detection

Determine what to analyze:

  • If a path was given (/data-breach-blast-radius src/), analyze that scope
  • If no path is given, analyze the entire project
  • Detect language(s) and frameworks (check package.json, requirements.txt, go.mod, pom.xml, Cargo.toml, Gemfile, composer.json, .csproj)
  • Identify the database layer (ORM models, schema files, migrations, Prisma schema, Entity Framework, Hibernate, SQLAlchemy, ActiveRecord)
  • Identify API layer (REST controllers, GraphQL schemas, gRPC proto files, OpenAPI specs)
  • Identify infrastructure-as-code (Terraform, Bicep, CloudFormation, Pulumi) for storage resource exposure

Read references/data-classification.md to load the full sensitivity tier taxonomy.


Step 2 — Sensitive Data Inventory

Scan ALL files for sensitive data definitions:

Data Model Layer:

  • Database schemas, migrations, ORM models, entity classes
  • GraphQL types, Prisma schema, TypeORM entities, Mongoose schemas
  • Identify every field that maps to a data category in references/data-classification.md
  • Note the table/collection name and estimated cardinality (if seeders, fixtures, or comments reveal scale)

API Contract Layer:

  • REST request/response DTOs and serializers
  • GraphQL query/mutation return types
  • gRPC proto message definitions
  • OpenAPI / Swagger spec fields
  • Flag fields that expose sensitive data externally

Configuration & Secrets:

  • Environment files (.env, .env.*), config files, appsettings.json, application.yml
  • Terraform/Bicep variable files and outputs
  • CI/CD pipeline files (.github/workflows/, .gitlab-ci.yml, Jenkinsfile, azure-pipelines.yml)
  • Docker/Kubernetes config maps and secrets

Log & Audit Layer:

  • Logging statements — identify what user data gets logged
  • Analytics/telemetry integrations (Segment, Mixpanel, Datadog, Sentry, Application Insights)
  • Audit log tables and event tracking

For each sensitive data field found, record:

| Field | Table/Source | Data Tier | Purpose | Encrypted? | Notes |

Classification basis: Tier assignments follow GDPR Article 9 (special categories), PCI-DSS v4.0, and HIPAA 45 CFR Part 164. See references/data-classification.md for the full taxonomy and references/SOURCES.md for primary source links.


Step 3 — Data Flow Tracing

Trace how sensitive data moves through the system:

Ingestion Points (data enters the system):

  • Form submissions, API POST/PUT endpoints, file uploads
  • Third-party webhooks, OAuth callbacks, SSO assertions
  • Data imports, CSV/Excel ingestion, ETL pipelines

Processing Points (data is used/transformed):

  • Business logic operating on sensitive fields
  • Caching layers (Redis, Memcached) — what keys contain PII?
  • Message queues (Kafka, SQS, Service Bus, RabbitMQ) — what payloads?
  • Background jobs and workers — what data do they process?

Storage Points (data at rest):

  • Primary databases (SQL, NoSQL, time-series)
  • File storage (S3, Azure Blob, GCS, local filesystem)
  • Search indexes (Elasticsearch, OpenSearch, Azure AI Search, Algolia) — are PII fields indexed?
  • Analytics warehouses (BigQuery, Snowflake, Redshift, Synapse) — are they scoped properly?
  • Backup stores — are backups encrypted and access-controlled?

Transmission Points (data leaves the system):

  • Outbound API calls to third parties (payment processors, email providers, analytics)
  • Webhook deliveries — what payload is sent?
  • Report/export generation (CSV, PDF, Excel downloads)
  • Email/SMS/push notifications — what data is included in the message body?

Exposure Points (data can reach unauthorized parties):

  • Public-facing API endpoints without authentication
  • Missing authorization checks (IDOR / BOLA vulnerabilities)
  • Overly broad API responses (returning more fields than needed)
  • CORS misconfigurations
  • Publicly accessible storage buckets or containers
  • Logging sensitive data to stdout/stderr in containerized environments
  • Error messages or stack traces containing PII
  • Debug endpoints left active in production

Read references/blast-radius-calculator.md for scoring formulas.


Step 4 — Blast Radius Calculation

For each exposure vector identified in Step 3, calculate:

Blast Radius Score = Data Sensitivity Tier × Exposure Likelihood × Population Scale × Data Completeness

Population Scale Estimate:

  • If user counts are hard-coded (e.g., seeder files, comments, README): use that
  • If no count found: use a conservative estimate and state the assumption<!-- -->
    • SaaS product → assume 10K–1M users
    • Internal tool → assume 100–10K users
    • Consumer app → assume 100K–10M users
  • Apply a multiplier if the breach would expose data of minors (×2), health data (×3), or financial credentials (×5) due to regulatory severity

Regulatory Jurisdiction Detection:

  • If gdpr / EU currencies / EU phone formats / .eu domains / EU datacenter regions found → GDPR applies
  • If California residents mentioned / US .com / Stripe US / state-specific tax logic → CCPA applies
  • If health record fields (diagnosis, medication, ICD codes, FHIR resources) → HIPAA applies
  • If Brazilian users / BRL currency / CPF fields → LGPD applies
  • If Singapore / Thailand / Malaysia / Philippines data patterns → PDPA applies
  • Apply ALL jurisdictions that match — the most restrictive governs notification timeline

Read references/regulatory-impact.md for fine calculation formulas and notification requirements.


Step 5 — Regulatory Impact Estimation

For each triggered jurisdiction:

  • Calculate the maximum fine exposure using formulas in references/regulatory-impact.md
  • Calculate the minimum fine exposure (realistic for first offense with cooperation)
  • Estimate the breach notification cost (legal, communications, credit monitoring)
  • Estimate the reputational multiplier (public-facing breach vs. internal tool)

Generate a Financial Impact Summary Table:

| Regulation | Max Fine | Realistic Fine | Notification Cost | Timeline |

Note: These are estimates for risk planning purposes only. Always consult legal counsel for actual regulatory guidance.


Step 6 — Blast Radius Report Generation

Read references/report-format.md and generate the full report.

The report MUST include:

  1. Executive Summary (2–3 paragraphs, no jargon)
  2. Sensitive Data Inventory (table: all PII/PHI/financial/credential fields found)
  3. Data Flow Map (Mermaid diagram of data moving through the system)<!-- -->
    • After building the Mermaid markup, call renderMermaidDiagram with the markup and a short title so the diagram renders visually — do not output it as a fenced code block
    • Use style directives: fill:#ff4444 (red) for critical findings, fill:#ff8800 (orange) for high-severity exposure points
  4. Top 5 Exposure Vectors (ranked by blast radius score)
  5. Regulatory Blast Radius Table (per-jurisdiction)
  6. Financial Impact Estimate (realistic range)
  7. Hardening Roadmap (from references/hardening-playbook.md)

Step 7 — Hardening Roadmap

Read references/hardening-playbook.md and generate a prioritized action plan:

For each critical or high-severity exposure vector:

  • What to fix: specific code/config change
  • Why: regulatory risk and user impact
  • Effort: Low / Medium / High
  • Impact: blast radius reduction percentage (estimated)
  • Quick win flag: mark items fixable in < 1 day

Sort by: (Impact × Severity) / Effort — highest value first.


Output Rules

  • Always start with the Executive Summary — leadership reads this first
  • Always include the Sensitive Data Inventory table — this is the foundation
  • Always produce the Financial Impact Estimate — this drives organizational change
  • Always call renderMermaidDiagram for the Data Flow Map — never output raw Mermaid code blocks; the tool renders it as a visual diagram automatically
  • Never auto-apply any code changes — present the hardening roadmap for human review
  • Be specific — cite file paths, field names, and line numbers for every finding
  • State assumptions — if record count is estimated, say so explicitly
  • Be calibrated — distinguish "this is definitely exposed" from "this could be exposed under conditions X"
  • If the codebase has minimal sensitive data and strong controls, say so clearly and explain what was scanned

Severity Tiers for Blast Radius

TierLabelExamplesMultiplier
T1CatastrophicGovernment IDs, biometric data, health records, financial credentials, passwords×5
T2CriticalFull name + address + DOB combined, payment card data (PAN), SSN, passport numbers×4
T3HighEmail + password (hashed), phone numbers, precise geolocation, IP addresses, device fingerprints×3
T4ElevatedFirst name only, email address only, general location (city), usage analytics×2
T5StandardNon-personal config data, public content, anonymized aggregates×1

Reference Files

Load on-demand as needed:

FileUse WhenContent
references/data-classification.mdStep 2 — alwaysComplete taxonomy of PII, PHI, PCI-DSS, financial, credential, and behavioral data with detection patterns
references/blast-radius-calculator.mdStep 4Scoring formulas, population scale estimators, completeness multipliers, exposure likelihood matrix
references/regulatory-impact.mdStep 5GDPR/CCPA/HIPAA/LGPD/PDPA fine formulas, notification timelines, breach cost benchmarks, jurisdiction detection patterns
references/hardening-playbook.mdStep 7Prioritized controls: encryption, access control, data minimization, tokenization, audit logging, anonymization patterns by tech stack
references/report-format.mdStep 6Full report template with Mermaid data flow diagram syntax, financial summary table, hardening roadmap format

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: data-breach-blast-radius](https://darkplay.ru/ai/skills/github-awesome-copilot-data-breach-blast-radius)

Из того же репозитория

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

Code Architectaffaan-m · Проектирует архитектуру функций, анализируя существующие паттерны и соглашения кодовой…
225 587 ★
Database Migrationaffaan-m · Каркас команды workflow для database-migration в everything-claude-code.
225 587 ★
Database Revieweraffaan-m · Специалист PostgreSQL: оптимизация запросов, схемы, безопасность, Supabase.
225 587 ★
Healthcare Revieweraffaan-m · Проверяет медицинский код: клиническая безопасность, CDSS, PHI и целостность данных.
225 587 ★
Mle Revieweraffaan-m · Ревьюер ML-инженерии: данные, признаки, обучение, оценка, сервинг и мониторинг.
225 587 ★
Pytorch Build Resolveraffaan-m · Специалист по ошибкам PyTorch: формы тензоров, CUDA, градиенты и DataLoader.
225 587 ★
Security Revieweraffaan-m · Ищет и устраняет уязвимости: секреты, SSRF, инъекции, крипто и OWASP Top 10.
225 587 ★
Seo Specialistaffaan-m · SEO-специалист: технический аудит, оптимизация страниц, структурированные данные, Core…
225 587 ★
Spec Mineraffaan-m · Извлекает поведенческие спецификации из кода для OpenSpec в виде блоков Requirement и…
225 587 ★
ui-ux-pro-maxnextlevelbuilder · Профессиональные знания по UI/UX-дизайну для ИИ-ассистентов программирования. Включает…
151 010 ★

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8