data-breach-blast-radius
它能做什么
这个工具可以在数据泄露发生之前,分析其风险。它会检查你的代码中包含哪些敏感数据、这些数据如何流动,以及一旦发生泄露会带来怎样的经济和法律后果。
适用场景
- ✓在对代码进行安全审查之前。
- ✓在准备数据保护相关文件时。
- ✓当你想了解潜在数据泄露的影响时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/data-breach-blast-radius/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我分析一下我的代码项目的数据泄露风险。”
每周 5 个新技能,1 分钟读完。
工作原理
该工具会检查你的代码,找出敏感数据、了解这些数据如何被使用,以及它们可能在哪里泄露。它会估算受影响的人数和潜在的法律罚款,并参考 GDPR、CCPA 等法律法规。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
…
常见问题
什么是“敏感数据”?
指需要额外保护的信息,例如姓名、住址、信用卡号、健康信息或密码。
什么是“影响范围”(blast radius)?
这是一种衡量方式,用来评估如果发生数据泄露,损害会波及多广。
这个工具能替代律师吗?
不能。它只能基于法律法规提供估算和参考信息,并不能替代专业的法律咨询或正式的风险评估。
详情
作者的原始描述
Pre-breach impact analysis: inventories sensitive data (PII, PHI, PCI-DSS, credentials), traces data flows, scores exposure vectors, and produces a regulatory blast radius report with fine ranges sourced verbatim from GDPR Art. 83, CCPA § 1798.155(a), and HIPAA 45 CFR § 160.404. Cost benchmarks from IBM Cost of a Data Breach Report (annually updated). All citations in references/SOURCES.md for ver
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7161
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。