Data breach response

From borghei/Claude-Skills · View interactive version

Data breach response is an AI agent skill from the GitHub repository borghei/Claude-Skills. Data breach incident response with ENISA severity scoring, notification timelines, and compliance tracking. Use for breach assessment and response.

How to use this skill

Skill file

⚠️ EXPERIMENTAL — This skill is provided for educational and informational purposes only. It does NOT constitute legal advice. All responsibility for usage rests with the user. Consult qualified legal professionals before acting on any output.

Data Breach Response

Incident response and legal compliance for personal data breaches under GDPR Art. 33/34, CCPA, HIPAA, NIS2, PCI DSS, and other regulations. Calculates breach severity, tracks notification deadlines, and manages response timelines.


Table of Contents


Clarify First

Before assessing the breach, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

Tools

Breach Severity Calculator

Calculates ENISA breach severity score from breach parameters. Determines notification obligations based on severity verdict.

# Calculate severity from parameters
python scripts/breach_severity_calculator.py \
  --dpc 3 --ei 0.75 \
  --confidentiality 0.5 --integrity 0.25 --availability 0 \
  --malicious

# JSON output
python scripts/breach_severity_calculator.py \
  --dpc 2 --ei 0.5 --confidentiality 0.5 --json

# With T0 timestamp for countdown
python scripts/breach_severity_calculator.py \
  --dpc 3 --ei 1.0 --confidentiality 0.5 \
  --t0 "2026-04-10T08:00:00" --json

# Generate input template
python scripts/breach_severity_calculator.py --template

Output includes:


Breach Timeline Tracker

Tracks breach response timeline from T0 (moment of awareness). Records events, monitors deadlines, and generates status dashboards.

# Initialize a new breach timeline
python scripts/breach_timeline_tracker.py init \
  --breach-id "BR-2026-001" --t0 "2026-04-10T08:00:00" \
  --description "Unauthorized database access" \
  --output breach_timeline.json

# Record an event
python scripts/breach_timeline_tracker.py event \
  --timeline breach_timeline.json \
  --action "Containment team activated" --category containment

# View status dashboard
python scripts/breach_timeline_tracker.py status --timeline breach_timeline.json

# Check deadlines
python scripts/breach_timeline_tracker.py deadlines --timeline breach_timeline.json

# JSON status output
python scripts/breach_timeline_tracker.py status --timeline breach_timeline.json --json

Tracks:


Reference Guides

ENISA Methodology

references/enisa_methodology.md

Complete ENISA breach severity methodology:

Notification Obligations

references/notification_obligations.md

Multi-regulation notification requirements:


Workflows

Workflow 1: Standard Breach Response

Step 1: Emergency check — is there <12h remaining on any deadline?
        → If yes, skip to Step 4 (emergency notification)

Step 2: Initialize breach timeline
        → python scripts/breach_timeline_tracker.py init --breach-id "BR-2026-001" \
          --t0 "2026-04-10T08:00:00" --description "Description"

Step 3: Calculate severity
        → python scripts/breach_severity_calculator.py --dpc N --ei N \
          --confidentiality N --integrity N --availability N [--malicious]

Step 4: Based on severity verdict, determine notifications
        → LOW (<2): Internal log only, no external notification
        → MEDIUM (2 to <3): Notify supervisory authority within 72h
        → HIGH (3 to <4): Notify SA + individual data subjects
        → VERY HIGH (>=4): Notify SA + data subjects + consider public notice

Step 5: Execute containment and record events
        → python scripts/breach_timeline_tracker.py event --timeline breach.json \
          --action "Action taken" --category containment

Step 6: Monitor deadlines continuously
        → python scripts/breach_timeline_tracker.py deadlines --timeline breach.json

Step 7: Complete notification obligations and document

Workflow 2: Emergency Mode (<12h Remaining)

Step 1: Calculate severity immediately
        → python scripts/breach_severity_calculator.py --dpc N --ei N \
          --confidentiality N --t0 "original-t0" --json

Step 2: If MEDIUM or higher, prepare phased notification
        → Art. 33(4) allows phased notification when full information unavailable
        → Initial notification: what is known + promise of update
        → Supplementary notification: full details when available

Step 3: File initial SA notification before deadline expires

Step 4: Initialize timeline for ongoing tracking
        → Continue gathering information for supplementary notification

Step 5: Document emergency timeline and decisions

Workflow 3: Processor Breach Notification

Step 1: Processor becomes aware of breach
        → T0 for processor = moment of awareness

Step 2: Processor must notify controller "without undue delay"
        → Check DPA for specific contractual deadline (24h/48h common)

Step 3: Controller's T0 starts when controller becomes aware
        → Controller's 72h clock starts at this point

Step 4: Controller assesses severity independently
        → python scripts/breach_severity_calculator.py (controller's assessment)

Step 5: Controller makes notification decisions
        → Processor provides information; controller decides on SA/subject notification

ENISA Severity Formula

SE = (DPC x EI) + CB

| Component | Range | Description |

|-----------|-------|-------------|

| DPC | 1-4 | Data Processing Context — nature and sensitivity of data |

| EI | 0.25-1.0 | Ease of Identification — how easily individuals can be identified |

| CB | -0.5 to +1.0 | Circumstances of Breach — additive factors (malicious intent, volume, loss type) |

Severity Verdicts

| Score Range | Verdict | Notification Obligations |

|-------------|---------|--------------------------|

| <2 | LOW | Internal log only. No SA or subject notification required |

| 2 to <3 | MEDIUM | Notify supervisory authority within 72h (Art. 33) |

| 3 to <4 | HIGH | Notify SA within 72h + notify individual data subjects (Art. 34) |

| >=4 | VERY HIGH | Notify SA + data subjects + consider public notice; crisis management |


Notification Decision Matrix

Quick reference for notification obligations per regulation and severity.

| Regulation | Authority Notification | Individual Notification | Trigger |

|------------|----------------------|------------------------|---------|

| GDPR Art. 33 | SA within 72h | N/A | Unless unlikely to result in risk to rights/freedoms |

| GDPR Art. 34 | N/A | Without undue delay | When likely to result in high risk |

| CCPA | State AG | Affected consumers | Unencrypted personal information compromised |

| HIPAA | HHS within 60 days | Affected individuals | Unsecured PHI; >500: notify media |

| PCI DSS | Card brands within 24h | Cardholders (via issuer) | Cardholder data compromised |

| NIS2 Art. 23 | CSIRT within 24h (early warning), 72h (notification) | N/A | Significant incident |

| AI Act Art. 62 | Market surveillance within 15 days | N/A | Serious incident involving AI system |

Controller vs. Processor Obligations

| Obligation | Controller | Processor |

|------------|-----------|-----------|

| Notify supervisory authority | Yes (Art. 33) | No (notify controller only) |

| Notify data subjects | Yes (Art. 34) | No |

| Document all breaches | Yes (Art. 33(5)) | Yes (assist controller) |

| Notify controller | N/A | Yes, without undue delay (Art. 33(2)) |

| Conduct severity assessment | Yes | Assist (provide information) |

| Timeline starts (T0) | When controller becomes aware | When processor becomes aware |


Troubleshooting

| Problem | Possible Cause | Resolution |

|---------|---------------|------------|

| Severity score is borderline between MEDIUM and HIGH | Parameters are at threshold boundaries | Score conservatively — if near 3.0, treat as HIGH and notify data subjects; document the borderline analysis |

| 72-hour deadline approaching with incomplete information | Complex breach requiring ongoing investigation | Use Art. 33(4) phased notification — notify SA with available information and supplement later |

| Processor discovered breach but delayed notifying controller | DPA contractual deadline may have been missed | Document the delay; assess whether processor's delay affected controller's ability to comply; review DPA terms |

| Cross-border breach — unclear which SA to notify | Multi-jurisdictional processing with unclear lead SA | Notify the SA of your main establishment (one-stop-shop); if unclear, notify the SA where most affected subjects reside |

| Breach involves encrypted data — unclear if notification needed | Encryption may lower severity or eliminate notification | If encryption was effective (strong algorithm, key not compromised), this may make notification unnecessary per Art. 34(3)(a); document the analysis |

| AI system involved in breach — unclear additional obligations | AI Act Art. 62 may apply alongside GDPR | Assess whether AI system is high-risk under AI Act; if serious incident, notify market surveillance authority within 15 days in addition to GDPR obligations |


Success Criteria


Scope & Limitations

In Scope:

Out of Scope:


Anti-Patterns


Tool Reference

breach_severity_calculator.py

Calculates ENISA breach severity score and determines notification obligations.

| Flag | Required | Description |

|------|----------|-------------|

| --dpc <1-4> | Yes | Data Processing Context: 1=Simple demographic, 2=Behavioral/financial, 3=Sensitive personal, 4=Special category/highly sensitive |

| --ei <0.25-1.0> | Yes | Ease of Identification: 0.25=Negligible, 0.5=Limited, 0.75=Significant, 1.0=Maximum |

| --confidentiality <0/0.25/0.5> | No | Confidentiality loss score (default 0) |

| --integrity <0/0.25/0.5> | No | Integrity loss score (default 0) |

| --availability <0/0.25/0.5> | No | Availability loss score (default 0) |

| --malicious | No | Flag for malicious intent (adds +0.5 to CB) |

| --t0 <ISO datetime> | No | T0 timestamp for deadline calculation |

| --template | No | Generate input template |

| --json | No | Output in JSON format |

breach_timeline_tracker.py

Tracks breach response timeline, events, and regulatory deadlines.

| Subcommand | Description |

|------------|-------------|

| init | Initialize breach timeline (--breach-id, --t0, --description required, --output optional) |

| event | Record event (--timeline, --action, --category required) |

| status | View status dashboard (--timeline required, --json optional) |

| deadlines | Check deadline status (--timeline required, --json optional) |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.