agentleFS
sergeeeysergeeey/Claude-cod-top-2026/skills/extensions/data-breach-blast-radius/SKILL.md

data-breach-blast-radius

Skill9 starsChanged 7 months agoMITView on GitHub

Proactive blast radius analysis before a breach: sensitive data inventory, flow tracing, regulatory fine estimation (GDPR/CCPA/HIPAA), hardening roadmap. Triggers: /data-breach-blast-radius, breach impact.

  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Document all paths where sensitive data travels:

    line 76
  2. Distinctive:

    Never auto-apply code changes — present findings for human review

    line 218
  3. Distinctive:

    If scope is ambiguous, ask: "Should I analyze the entire codebase or a specific service?"

    line 219

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- BSV Скил : data-breach-blast-radius TL;DR : 7-шаговый аудит: инвентарь PII → трассировка потоков → расчёт штрафов → roadmap Вызов : /data-breach-blast-radius, breach impact, blast radius analysis НЕ для : Live incident response (используй incident-response скил), юридических заключений -->

Data Breach Blast Radius Analyzer

Proactive blast radius analysis before any breach occurs. Audits sensitive data handling, traces data flows, identifies exposure vectors, and quantifies regulatory consequences using law-sourced penalty formulas.

This skill does not replace qualified legal counsel or formal DPIAs. Use for risk planning and breach readiness only.


When to Use This Skill

  • Breach impact assessment and worst-case scenario planning
  • Sensitive data inventory for a codebase or architecture
  • Data flow security audits before launch
  • Pre-breach readiness review (security design reviews, SOC 2 prep)
  • Regulatory fine estimation for GDPR / CCPA / HIPAA scope

Seven-Step Execution Workflow

Step 1 — Scope & Stack Detection

Identify the analysis boundary, then enumerate:

  • Languages, frameworks, ORMs (Django, SQLAlchemy, Prisma, etc.)
  • Databases and caches (PostgreSQL, Redis, S3, BigQuery)
  • External APIs (Stripe, Twilio, SendGrid, analytics SDKs)
  • Infrastructure-as-code (Terraform, Helm, CloudFormation)
  • Deployment environment (cloud region affects jurisdiction)

Output: Stack Summary Table with data handling surface.


Step 2 — Sensitive Data Inventory

Scan models, API schemas, config files, and logging layers. Classify every sensitive field:

Search targets:
  - ORM model definitions (models.py, schema.prisma, *.entity.ts)
  - API request/response types (serializers, DTOs, OpenAPI specs)
  - Log statements (grep for: email, ssn, dob, card, password, token)
  - Config/env templates (.env.example, config.yaml)
  - Migration files (ALTER TABLE, ADD COLUMN)
FieldClassificationTierCardinality Est.Regulation
user.emailPIIT3= user countGDPR, CCPA
user.ssnPII-sensitiveT1= user countGDPR, CCPA, HIPAA
payment.card_numberFinancialT2= transaction countPCI-DSS
health.diagnosisPHIT1= patient countHIPAA
session.tokenCredentialT1= active sessionsall

Step 3 — Data Flow Tracing

Document all paths where sensitive data travels:

Ingestion   → [Forms, APIs, Webhooks, File uploads, OAuth callbacks]
Processing  → [Caching layers, Background queues, ML pipelines, ETL jobs]
Storage     → [Primary DB, Read replicas, Backups, Data warehouse, Logs]
Transmission→ [Third-party APIs, Email providers, Analytics, CDN logs]
Exposure    → [Error pages, Debug endpoints, Export features, Admin panels]

Produce a Mermaid data flow diagram:

flowchart LR
    User -->|POST /register| API
    API -->|email, password_hash| DB[(PostgreSQL)]
    API -->|email| Sendgrid[SendGrid API]
    DB -->|nightly export| S3[(S3 Backup)]
    S3 -->|analytics pipeline| BigQuery[(BigQuery)]
    BigQuery -->|dashboard| AdminPanel

Step 4 — Blast Radius Calculation

Score each exposure vector:

Blast Score = Data_Sensitivity × Exposure_Likelihood × Population_Scale × Data_Completeness

Sensitivity Tier Multipliers:

TierCategoryExamplesMultiplier
T1CatastrophicBiometrics, health records, financial credentials, SSN×5
T2CriticalName + DOB + address, card data, passport numbers×4
T3HighEmail + hashed password, phone, geolocation, IP×3
T4ElevatedFirst name only, email-only, city-level location×2
T5StandardNon-personal config, public content, anonymized data×1

Jurisdiction multipliers (applied on top of tier score):

  • Records include minors (under 18): ×2
  • Health data present: ×3
  • Financial credentials present: ×5

Exposure Likelihood (0.0–1.0):

  • Public endpoint, no auth: 0.9
  • Auth-required, known CVE: 0.6
  • Auth-required, no known CVE: 0.3
  • Internal-only, network-isolated: 0.1

Example calculation:

Exposed: 50,000 user emails + hashed passwords (T3)
Likelihood: 0.6 (auth-required, known SQLi vector in legacy endpoint)
Population scale: 50,000 / 1,000,000 = 0.05 (small fraction of max)
Data completeness: 0.7 (email + hash, no DOB/SSN)

Score = 3 × 0.6 × 0.05 × 0.7 = 0.063  → LOW-MEDIUM

Step 5 — Regulatory Impact Estimation

Calculate per-jurisdiction exposure. Figures are law-sourced; estimates are heuristic.

GDPR (Art. 83) — EU residents affected

Tier A violation (severe): up to €20M or 4% global annual turnover, whichever higher
Tier B violation (moderate): up to €10M or 2% global annual turnover

Realistic fine range = affected_EU_records × €100–€400 per record (IBM benchmark)
Notification deadline: 72 hours to supervisory authority

CCPA § 1798.155 — California residents affected

Intentional violation: $7,500 per affected consumer
Unintentional violation: $2,500 per affected consumer (30-day cure period)

Example: 10,000 CA residents × $2,500 = $25,000,000 max

HIPAA 45 CFR § 160.404 — PHI affected

Unknowing violation:    $100 – $50,000 per violation
Reasonable cause:       $1,000 – $50,000 per violation
Willful neglect (fixed): $10,000 – $50,000 per violation
Willful neglect (unfixed): $50,000 per violation

Annual cap per category: $1,800,000
Notification: individuals within 60 days; HHS within 60 days; media if >500 in a state

Non-penalty costs (IBM Cost of a Data Breach 2024)

Average total cost per breach:   $4.88M (global), $9.36M (US)
Detection + escalation:          $1.58M
Notification:                    $0.37M
Post-breach response:            $1.68M
Lost business (churn, reputation): $1.47M
Cost per record:                 $165 average; $429 for healthcare

Step 6 — Blast Radius Report

Generate the following sections in order:

  1. Executive Summary — 3-bullet risk headline, total max regulatory exposure (€/$), top 1 vector
  2. Sensitive Data Inventory — table from Step 2
  3. Data Flow Diagram — Mermaid rendered visually
  4. Top 5 Exposure Vectors — ranked by blast score, with file:line citations
  5. Regulatory Blast Radius Table — per-jurisdiction fines (max + realistic)
  6. Financial Impact Estimate — total including non-penalty costs
  7. Hardening Roadmap — prioritized by impact-per-effort

Step 7 — Hardening Roadmap

Prioritize fixes by: Impact_Score / Effort_Days. Mark quick wins (< 1 day).

PriorityFindingImpactEffortFix
P0 🔴SSN stored plaintext in users.ssnCritical0.5dEncrypt at rest (AES-256) + mask in logs
P1 🔴/admin/export returns full PII, no rate limitHigh1dAdd field allowlist + rate limit
P2 🟡Email logged in auth.log at DEBUG levelMedium0.5dReplace with user_id in log statements
P3 🟡S3 backup bucket has public-read ACLHigh0.5dSet bucket to private, enable versioning
P4 🟢No data retention policy enforcedMedium3dAdd scheduled deletion job + policy doc

Output Rules

  • Distinguish law-sourced figures (mark [LAW-SOURCED: Art. 83 GDPR]) from heuristic estimates (mark [HEURISTIC: IBM 2024])
  • Cite specific file paths and line numbers for every finding
  • State all assumptions explicitly, especially record count estimates
  • Never auto-apply code changes — present findings for human review
  • If scope is ambiguous, ask: "Should I analyze the entire codebase or a specific service?"

Quick Start Prompts

/data-breach-blast-radius analyze src/users/ — focus on PII handling
/data-breach-blast-radius worst case for EU users if our DB is exfiltrated
/data-breach-blast-radius what GDPR fines do we face if auth service is breached?
/data-breach-blast-radius full audit of this Django project

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.