Help us improve
Share bugs, ideas, or general feedback.
From cybersecurity-skills
Implements and audits privacy controls (GDPR, CCPA, LGPD, PIPEDA) in code, data, and infrastructure. Covers data minimization, DSARs, DPIAs, consent management, breach notification timing, and right-to-be-forgotten across backups and caches.
npx claudepluginhub briiirussell/cybersecurity-skills --plugin cybersecurity-skillsHow this skill is triggered — by the user, by Claude, or both
Slash command
/cybersecurity-skills:privacy-engineeringThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Implement privacy controls at the code, data, and infrastructure layers. This skill is not legal compliance theater — it is the engineering work that turns the legal requirements into systems that actually do what they claim.
Assess GDPR compliance for data processing, rights, privacy controls, and incident response obligations.
Scans repositories for personal data collection, classifies sensitivity under GDPR, determines applicability, and reports required roles, obligations, and remediation.
Guides GDPR-compliant data processing, consent management, privacy controls, and data subject requests for systems handling EU personal data.
Share bugs, ideas, or general feedback.
Implement privacy controls at the code, data, and infrastructure layers. This skill is not legal compliance theater — it is the engineering work that turns the legal requirements into systems that actually do what they claim.
Privacy and security overlap but are not the same. Security protects against unauthorized access; privacy protects against authorized-but-improper use. A perfectly secure system that logs every keystroke and shares the log with vendors is a privacy disaster. This skill covers the privacy half of that distinction.
Cross-references: owasp-audit for the security side, iam-audit for access control to personal data, secrets-audit for credential handling, incident-triage for the response side of a privacy breach (72-hour GDPR notification clock starts when you find out, not when you finish investigating), security-comms for the customer-disclosure draft.
The skill produces compliant technical implementations. Final compliance determinations stay with counsel; this skill is the technical execution layer.
| Regulation | Scope | Key engineering hooks |
|---|---|---|
| GDPR (EU) | Any processing of personal data of EU/EEA residents | Articles 5 (principles), 6 (lawful basis), 7 (consent), 15-22 (data subject rights), 25 (privacy by design), 30 (records of processing), 32 (security), 33 (breach notification — 72 hours), 35 (DPIA) |
| CCPA / CPRA (California) | Businesses processing CA resident data above thresholds | Right to know, delete, correct, opt out of sale / share. Sensitive PI category. Annual privacy notice. Service-provider contracts |
| LGPD (Brazil) | Brazilian residents | Similar shape to GDPR with local twists |
| PIPEDA (Canada) | Federal commercial | Consent-based with reasonable expectation, breach notification |
| State laws (US) | Varies — VA, CO, CT, UT, etc. | Roughly CCPA-shaped; engineering practices that meet GDPR + CCPA usually cover state laws |
Engineering reality: build for the strictest regime that applies and stop worrying about the rest. GDPR is the strictest in most dimensions; CCPA adds the "opt out of sale / share" and sensitive-PI category.
You cannot enforce privacy on data you have not classified. Every data store needs a classification.
A minimal classification (more is fine, less is not):
| Class | Definition | Engineering treatment |
|---|---|---|
| Public | Information published or freely sharable | No special handling |
| Internal | Internal business data, no PI | Standard access controls |
| Personal | Data identifying a natural person (email, name, IP, device ID, account ID) | Access logging, retention limits, deletion path |
| Sensitive personal | GDPR Art 9 special categories (health, biometric, political, sexual orientation, race, religion), CCPA SPI (precise location, race, religion, biometric, genetic, sex life, mail content, government ID, financial account, citizenship, union membership) | Stricter access (need-to-know), encryption at rest with separate KMS key, audit on every read |
| Regulated | PHI under HIPAA, PCI cardholder data, NPI under GLBA | Regulation-specific controls; out of scope here, see hipaa-audit and pci-audit |
Audit step: for each data store (database, S3 bucket, BigQuery dataset, etc.), confirm classification is documented and matches the actual data. Many systems start "internal" and quietly become "personal" because someone added an email column.
Collect the minimum to deliver the service; retain the minimum to deliver value; share the minimum with vendors.
Common minimization findings:
Audit grep patterns:
email, phone, name, address, ssn, dob, birth, gender, ip, user_agent, device_id, ip_addresslog\..*\$\{user\.email\}, console\.log\(.*user\., logger\.info\(.*emailanalytics\.identify\(.*email, full-page URL parametersEvery processing activity needs a documented lawful basis under GDPR Article 6. CCPA requires purpose-of-use disclosure.
Common bases and where they fit:
Engineering hook: the application logs every processing activity (insert into data_processing_log or equivalent) with the lawful basis. When DSARs arrive, this is the source of truth for what to disclose.
Consent is the most over-engineered and under-built part of privacy. The skill is keeping it simple and provable.
The consent record:
Withdrawal of consent must be as easy as granting it (GDPR Art 7(3)). If "accept all" is one click on the cookie banner, "reject all" must also be one click. Banners that require traversing five panels to refuse are non-compliant.
Common audit findings:
Users have rights under GDPR Articles 15-22 and CCPA. The technical implementation often falls down in the same places.
Right to access (Art 15 / CCPA "right to know"): The user gets a copy of personal data held about them. Implementation:
Right to deletion (Art 17 / CCPA "right to delete"): The user gets data deleted. The technical reality is harder than it looks.
Audit grep patterns:
analytics\.track, segment\.identify, sentry\.setUser, mixpanel\.people\.set, datadog.*user, posthog\.identifySentry\.init, analytics\.load, LogRocket\.init, FullStory\.initRight to portability (Art 20): Machine-readable export of data the user provided. Distinct from access — only covers data they gave you, in a structured format. JSON / CSV is fine.
Right to rectification (Art 16 / CCPA "right to correct"): Update incorrect data. Engineering hook: build the correction path into the product; do not require email-to-support.
Right to object (Art 21): Stop processing for direct marketing / specific other purposes. Engineering hook: a suppression list / opt-out flag honored everywhere processing happens.
Audit step: simulate a DSAR end to end against your own account before a real user does. Most teams find broken parts on first try.
Every vendor processing personal data is a sub-processor. GDPR requires a Data Processing Agreement (DPA) with each one and a documented sub-processor list available to users.
Engineering audit:
Common findings:
GDPR Article 33: notify supervisory authority within 72 hours of becoming aware of a personal data breach. Article 34: notify affected individuals without undue delay if breach poses high risk.
Engineering hooks (this skill is for the technical detection / scoping side; legal handles the actual notification):
siem-detection)secrets-audit, incident-triage)Required for high-risk processing (Art 35) — large-scale processing of sensitive data, systematic monitoring, automated decision-making affecting individuals.
Engineering input to a DPIA:
threat-modeling artifact)owasp-audit, iam-audit, crypto-audit outputs)This skill produces the engineering inputs; legal / privacy counsel produces the DPIA itself.
# Privacy Engineering Audit / Implementation Report
## Scope: [system / product / data flow]
## Regulation context: [GDPR / CCPA / both / other]
## Date: [date]
### Data inventory
| Data store | Classification | Categories of PI | Lawful basis | Retention |
|------------|----------------|------------------|--------------|-----------|
### Findings
| ID | Severity | Practice | Issue |
|----|----------|----------|-------|
### DSAR pipeline status
- [ ] Access — implemented and tested end-to-end
- [ ] Deletion — implemented with full fan-out (DBs, caches, search, analytics, vendors)
- [ ] Portability — implemented in machine-readable format
- [ ] Rectification — self-service path exists
- [ ] Objection / opt-out — honored in all processing paths
### Vendor / sub-processor inventory
| Vendor | Purpose | Data shared | DPA | Deletion path | Data residency |
|--------|---------|-------------|-----|---------------|----------------|
### Consent records (if applicable)
[State: present / partial / missing. Storage location. Fields captured.]
### Action items
[Prioritized with owner and deadline]
Disposition rule (Fixed / Deferred / Accepted Risk) per owasp-audit's Report Format. Accepted-risk decisions for privacy findings often need legal sign-off as well as engineering — note this in the writeup.
security-commseur-lex.europa.eu/eli/reg/2016/679ico.org.ukoag.ca.gov/privacy/ccpa