data-breach-blast-radius
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:
- Discovers every sensitive data asset in the codebase (schemas, models, DTOs, logs, configs, API contracts)
- Classifies data into severity tiers (Tier 1–4) using global regulatory standards
- Traces data flows from ingestion → processing → storage → transmission → deletion
- Identifies all exposure vectors — where data could leak (API endpoints, logs, exports, caches, queues)
- Calculates the blast radius: estimated records affected, user population at risk, regulatory jurisdictions triggered
- Quantifies the regulatory impact (GDPR fines, CCPA penalties, HIPAA sanctions, breach notification costs)
- 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 In
