Ajoute 16 skills de sécurité (sélection web/API)

Tirés de mukul975/anthropic-cybersecurity-skills (commit 54a7988,
Apache-2.0) : contrôle d'accès/IDOR, en-têtes et CSP, CORS, OAuth, JWT,
XSS, fonctions serverless, rate limiting, paquets npm, gitleaks, RGPD,
OWASP API Top 10. Les 800 autres (offensifs, Windows/AD, forensique…)
sont laissés de côté. Voir .claude/skills/README.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
Claude committed 2026-10-08 17:36:57 +00:00
1 parent 080f733ba4
commit c5924cc009
74 files changed
+14803

No files matched your search

@@ -0,0 +1,61 @@
# API Reference: Implementing GDPR Data Protection Controls
## Key GDPR Articles
| Article | Requirement | Technical Control |
|---------|-------------|-------------------|
| Art 5 | Processing principles | Data minimization, retention policies |
| Art 25 | Privacy by design | Default privacy settings |
| Art 30 | Records of processing | ROPA documentation system |
| Art 32 | Security of processing | Encryption, access controls, testing |
| Art 33 | Breach notification | 72-hour DPA notification |
| Art 35 | DPIA | Impact assessment for high-risk processing |
## Data Subject Rights (Art 12-22)
| Right | Article | SLA |
|-------|---------|-----|
| Access | Art 15 | 1 month |
| Rectification | Art 16 | 1 month |
| Erasure | Art 17 | 1 month |
| Portability | Art 20 | 1 month |
| Object | Art 21 | Without undue delay |
## PII Detection Patterns
```python
import re
patterns = {
"email": r"\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b",
"iban": r"\b[A-Z]{2}\d{2}[A-Z0-9]{11,30}\b",
"ip_address": r"\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b",
}
```
## ROPA Required Fields (Art 30)
| Field | Description |
|-------|-------------|
| controller_name | Data controller identity |
| purposes | Processing purposes |
| data_categories | Types of personal data |
| data_subjects | Categories of data subjects |
| recipients | Data recipients |
| transfers | Cross-border transfers |
| retention_periods | Data retention schedules |
| security_measures | Art 32 controls |
## Cross-Border Transfer Mechanisms (Art 44-49)
| Mechanism | Use Case |
|-----------|----------|
| Adequacy Decision | Transfer to adequate countries (Art 45) |
| Standard Contractual Clauses (SCCs) | Most common mechanism (Art 46) |
| Binding Corporate Rules (BCRs) | Intra-group transfers (Art 47) |
| Derogations | Consent, contract necessity (Art 49) |
### References
- GDPR Official Text: https://gdpr-info.eu/
- EDPB Guidelines: https://edpb.europa.eu/our-work-tools/general-guidance/guidelines-recommendations-best-practices_en
- ICO GDPR Guide: https://ico.org.uk/for-organisations/guide-to-data-protection/guide-to-the-general-data-protection-regulation-gdpr/
@@ -0,0 +1,108 @@
# GDPR Standards Reference
## Primary Legislation
### Regulation (EU) 2016/679 - General Data Protection Regulation
- **Adopted**: April 14, 2016
- **Effective**: May 25, 2018
- **Scope**: Applies to any organization processing personal data of EU/EEA residents
- **Chapters**: 11 chapters, 99 articles, 173 recitals
- **Enforcement**: Supervisory authorities in each EU member state
- **Penalties**: Up to EUR 20 million or 4% of annual global turnover (whichever is greater)
## Key Articles Reference
### Chapter II - Principles (Articles 5-11)
- **Art. 5**: Core processing principles (lawfulness, fairness, transparency, purpose limitation, data minimization, accuracy, storage limitation, integrity and confidentiality, accountability)
- **Art. 6**: Six lawful bases for processing
- **Art. 7**: Conditions for consent
- **Art. 8**: Child's consent (minimum age varies by member state, 13-16)
- **Art. 9**: Special categories of data (health, biometric, genetic, racial/ethnic, political, religious, trade union, sexual orientation)
- **Art. 10**: Criminal conviction data
### Chapter III - Rights of the Data Subject (Articles 12-23)
- **Art. 12**: Transparent communication (one month response deadline)
- **Art. 13**: Information for direct collection
- **Art. 14**: Information for indirect collection
- **Art. 15**: Right of access (copy of data, processing purposes, recipients, retention periods, safeguards for transfers)
- **Art. 16**: Right to rectification
- **Art. 17**: Right to erasure (applies when: consent withdrawn, purpose fulfilled, unlawful processing, legal obligation)
- **Art. 18**: Right to restriction of processing
- **Art. 20**: Right to data portability (structured, commonly used, machine-readable format)
- **Art. 21**: Right to object (especially direct marketing - absolute right)
- **Art. 22**: Automated individual decision-making including profiling
### Chapter IV - Controller and Processor (Articles 24-43)
- **Art. 24**: Responsibility of the controller
- **Art. 25**: Data protection by design and by default
- **Art. 26**: Joint controllers
- **Art. 28**: Processor (DPA requirements: subject-matter, duration, nature/purpose, personal data types, data subject categories, controller obligations/rights)
- **Art. 30**: Records of processing activities
- **Art. 32**: Security of processing
- **Art. 33**: Notification to supervisory authority (72 hours)
- **Art. 34**: Communication to data subject (when high risk to rights and freedoms)
- **Art. 35**: Data Protection Impact Assessment (DPIA)
- **Art. 36**: Prior consultation with supervisory authority
- **Art. 37-39**: Data Protection Officer
### Chapter V - International Transfers (Articles 44-49)
- **Art. 45**: Adequacy decision (EU Commission determines adequate countries)
- **Art. 46**: Appropriate safeguards (SCCs, BCRs, codes of conduct, certification)
- **Art. 47**: Binding Corporate Rules
- **Art. 49**: Derogations (explicit consent, contract, public interest)
## Supporting Standards and Guidance
### ISO/IEC 27701:2019
- Privacy Information Management System (PIMS) extension to ISO 27001
- Maps GDPR requirements to ISO management system controls
- Provides controller and processor-specific guidance
### EDPB Guidelines
- Guidelines on Data Protection Impact Assessment (WP 248)
- Guidelines on Data Breach Notification (WP 250)
- Guidelines on Consent (updated 2020)
- Guidelines on International Data Transfers (post-Schrems II)
- Guidelines on Data Protection by Design and Default (04/2019)
### Transfer Mechanisms Post-Schrems II
- **Standard Contractual Clauses (SCCs)**: New modular SCCs adopted June 2021
- Module 1: Controller to Controller
- Module 2: Controller to Processor
- Module 3: Processor to Processor
- Module 4: Processor to Controller
- **Transfer Impact Assessment (TIA)**: Required to supplement SCCs
- **Supplementary Measures**: Technical (encryption, pseudonymization), contractual, organizational
- **EU-US Data Privacy Framework**: Adequacy decision adopted July 2023
### DPIA Criteria (Article 35(3) and EDPB)
DPIA required when processing involves:
1. Systematic and extensive evaluation of personal aspects (profiling)
2. Large-scale processing of special categories or criminal data
3. Systematic monitoring of publicly accessible areas
4. New technologies with potential high risk
5. Large-scale data processing
6. Matching or combining datasets
7. Data concerning vulnerable subjects
8. Innovative use of biometric data
9. Data transfers outside EU without adequacy
10. Processing that prevents data subjects from exercising rights
## Supervisory Authorities
| Country | Authority | Website |
|---------|-----------|---------|
| EU-wide | European Data Protection Board (EDPB) | edpb.europa.eu |
| France | CNIL | cnil.fr |
| Germany | BfDI (Federal), State DPAs | bfdi.bund.de |
| Ireland | DPC | dataprotection.ie |
| Netherlands | Autoriteit Persoonsgegevens | autoriteitpersoonsgegevens.nl |
| Spain | AEPD | aepd.es |
| Italy | Garante | garanteprivacy.it |
| UK | ICO (UK GDPR post-Brexit) | ico.org.uk |
## Key Enforcement Decisions (Benchmark)
- Meta (Ireland DPC, 2023): EUR 1.2 billion - Transfers to US without adequate safeguards
- Amazon (Luxembourg CNPD, 2021): EUR 746 million - Advertising targeting
- WhatsApp (Ireland DPC, 2021): EUR 225 million - Transparency failures
- Google (CNIL, 2022): EUR 150 million - Cookie consent
- H&M (Hamburg DPA, 2020): EUR 35.3 million - Employee surveillance
@@ -0,0 +1,288 @@
# GDPR Data Protection Control Workflows
## Workflow 1: Data Subject Request (DSR) Handling
```
Start
|
v
[Receive DSR from Data Subject]
- Via email, web form, phone, in-person
- Record receipt timestamp (30-day clock starts)
|
v
[Verify Identity of Requestor]
- Request additional identification if needed
- Clock pauses until identity verified
|
v
[Classify Request Type]
|
+--> Access Request (Art. 15) --> Locate all personal data
+--> Rectification (Art. 16) --> Identify incorrect data
+--> Erasure (Art. 17) --> Verify grounds for erasure
+--> Restriction (Art. 18) --> Flag data for restriction
+--> Portability (Art. 20) --> Export in machine-readable format
+--> Objection (Art. 21) --> Assess processing basis
|
v
[Check for Exemptions]
- Legal obligation to retain
- Freedom of expression
- Public health
- Archiving in public interest
- Legal claims
|
v
[Execute Request Across All Systems]
- Production databases
- Backups and archives
- Third-party processors
- Cloud services
- Analytics platforms
|
v
[Document Action Taken]
|
v
[Respond to Data Subject within 30 days]
- Extension to 60 additional days if complex (notify subject)
|
v
End
```
## Workflow 2: Data Breach Notification (Art. 33-34)
```
Start
|
v
[Breach Detected or Reported]
- Technical detection (SIEM, DLP, IDS)
- Employee report
- External notification
- Third-party processor notification
|
v
[72-hour Clock Starts]
|
v
[Assess Breach Severity]
- Number of data subjects affected
- Types of personal data compromised
- Special categories involved?
- Risk to rights and freedoms
|
v
[Determine Notification Requirements]
|
+--> [Risk to Rights and Freedoms?]
|
+--> No Risk --> Document in breach register only
|
+--> Risk exists --> Notify Supervisory Authority (72 hours)
| |
| v
+--> High Risk --> Notify Supervisory Authority (72 hours)
AND notify affected data subjects
|
v
[Prepare Supervisory Authority Notification]
- Nature of the breach
- Categories and approximate number of data subjects
- Categories and approximate number of records
- Name and contact details of DPO
- Likely consequences of the breach
- Measures taken or proposed to address the breach
|
v
[Submit Notification to Lead Supervisory Authority]
|
v
[If High Risk: Notify Data Subjects]
- Clear and plain language
- Description of breach
- DPO contact information
- Likely consequences
- Measures taken to mitigate
|
v
[Conduct Post-Breach Review]
- Root cause analysis
- Control improvements
- Update breach register
|
v
End
```
## Workflow 3: Data Protection Impact Assessment (DPIA)
```
Start
|
v
[Identify Processing Activity]
|
v
[Screen Against DPIA Criteria]
- Profiling or automated decision-making?
- Large-scale special category data?
- Systematic monitoring of public areas?
- New technology application?
- Cross-border data transfer?
- Vulnerable data subjects?
|
+--> [No DPIA triggers] --> Document screening decision --> End
|
+--> [DPIA required]
|
v
[Describe Processing Operation]
- Purpose and scope
- Data elements collected
- Data subjects categories
- Recipients and transfers
- Retention period
- Technology used
|
v
[Assess Necessity and Proportionality]
- Is processing necessary for the purpose?
- Could purpose be achieved with less data?
- Is lawful basis appropriate?
- Are data subject rights supported?
|
v
[Identify and Assess Risks]
- Risks to confidentiality
- Risks to integrity
- Risks to availability
- Risks to rights and freedoms
- Likelihood and severity of each risk
|
v
[Identify Mitigation Measures]
- Technical measures (encryption, pseudonymization, access controls)
- Organizational measures (policies, training, DPO oversight)
- Contractual measures (DPAs, SCCs)
|
v
[Determine Residual Risk]
|
+--> [Residual Risk Acceptable] --> Approve and proceed
|
+--> [Residual Risk High] --> Consult DPO
| |
| +--> [Can mitigate further] --> Add measures
| |
| +--> [Cannot mitigate] --> Prior consultation
| with Supervisory Authority (Art. 36)
|
v
[Document DPIA]
- Keep under review
- Reassess when processing changes
|
v
End
```
## Workflow 4: International Data Transfer Assessment
```
Start
|
v
[Identify Cross-Border Transfer]
- Data flowing outside EEA
- Cloud services in non-EEA regions
- Group company data sharing
- Vendor/processor locations
|
v
[Check Adequacy Decision]
- Is destination country on EU adequacy list?
- (Andorra, Argentina, Canada, Faroe Islands, Guernsey,
Israel, Isle of Man, Japan, Jersey, New Zealand, Republic
of Korea, Switzerland, UK, Uruguay, US under DPF)
|
+--> [Adequate] --> Document and proceed
|
+--> [Not Adequate]
|
v
[Select Transfer Mechanism]
|
+--> Standard Contractual Clauses (SCCs)
+--> Binding Corporate Rules (BCRs)
+--> Approved Code of Conduct
+--> Certification Mechanism
+--> Derogations (Art. 49) - limited circumstances
|
v
[Conduct Transfer Impact Assessment (TIA)]
- Laws of destination country
- Government surveillance powers
- Data protection standards
- Access by public authorities
|
v
[Identify Supplementary Measures]
- Technical: encryption with EEA-held keys
- Contractual: additional processor obligations
- Organizational: policies limiting access
|
v
[Document Transfer Mechanism]
- Signed SCCs with correct module
- TIA findings and conclusions
- Supplementary measures implemented
|
v
End
```
## Workflow 5: Records of Processing Activities (ROPA)
```
Start
|
v
[Identify All Processing Activities]
- Interview business units
- Review system inventory
- Analyze data flows
- Check vendor agreements
|
v
[For Each Processing Activity Document:]
|
v
[Controller Record (Art. 30(1))]
- Name and contact details of controller (and DPO)
- Purposes of processing
- Categories of data subjects
- Categories of personal data
- Categories of recipients
- Transfers to third countries (safeguards)
- Retention periods
- Technical and organizational security measures
|
v
[Processor Record (Art. 30(2))]
- Name and contact details of processor and controller
- Categories of processing carried out
- Transfers to third countries (safeguards)
- Technical and organizational security measures
|
v
[Maintain and Update ROPA]
- Review quarterly or when processing changes
- Update for new systems, vendors, purposes
- Make available to supervisory authority on request
|
v
End
```