All skills
simota avatar

/cloak

@35ffd55
by shingo imotasimota/agent-skills85 stars
15

Engineering privacy and data governance: PII detection, data flow mapping, consent patterns, GDPR/CCPA-compliant implementation, DPIA. Use when privacy-by-design is needed.

Use this Skill: https://skilld.dev/gh/simota/agent-skills/cloak

This session only. Nothing lands on disk.

referenceprivacy-regulations.md

≈3.1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Privacy Regulations Reference

2026 Enforcement Snapshot

The 2026 privacy landscape compresses three trends into a single operating reality:

  • EU AI Act — high-risk obligations (Annex III) bind on 2 Aug 2026; the GDPR penalty regime applies concurrently. New penalty ceiling adds €35M / 7% of global turnover for prohibited practices, €15M / 3% for high-risk non-compliance. See canon[regulatory]/reference/gdpr-eu-ai-act.md for the full timeline.
  • US state laws fragmenting — 19+ US states have comprehensive privacy laws in effect by Jan 2026 (Indiana, Kentucky, Rhode Island added in Jan 2026; Texas Responsible AI Governance Act and Colorado AI Act follow). Treat "is this a CCPA-only project?" as obsolete framing; any consumer-facing US product needs a state-by-state applicability matrix.
  • GDPR fines hit €7.1B cumulative — the regulators are enforcing, not warning. Treat 72-hour breach notification and DPIA-before-launch as hard deadlines, not aspirational ones.

GDPR (EU General Data Protection Regulation)

Lawful Basis Decision Tree

Is there a contract with the data subject?
├─ Yes → Art. 6(1)(b) Contract
└─ No
   Is it required by law?
   ├─ Yes → Art. 6(1)(c) Legal obligation
   └─ No
      Is explicit consent obtained?
      ├─ Yes → Art. 6(1)(a) Consent
      └─ No
         Is there a legitimate interest that doesn't override data subject rights?
         ├─ Yes → Art. 6(1)(f) Legitimate interest (document LIA)
         └─ No → Processing not permitted

Key Rights & Timelines

Right Article Deadline Implementation notes
Access Art. 15 30 days Return all personal data in machine-readable format
Rectification Art. 16 30 days Update inaccurate data; propagate to processors
Erasure Art. 17 30 days Delete + inform all processors; exceptions for legal holds
Portability Art. 20 30 days JSON/CSV export; only for consent/contract basis
Restriction Art. 18 30 days Flag and stop processing; retain data
Objection Art. 21 Immediate Must stop unless compelling grounds; always for direct marketing

Special Category Data (Art. 9)

Processing prohibited unless:

  • Explicit consent (Art. 9(2)(a))
  • Employment/social security law (Art. 9(2)(b))
  • Vital interests (Art. 9(2)(c))
  • Health care (Art. 9(2)(h))
  • Public health (Art. 9(2)(i))
  • Archiving/research (Art. 9(2)(j))

Breach Notification (Art. 33-34)

Action Deadline Condition
Notify supervisory authority 72 hours Unless unlikely to result in risk
Notify data subjects Without undue delay If high risk to rights/freedoms
Document breach internally Immediately All breaches, regardless of severity

Cross-Border Transfers (Art. 44-49)

Mechanism Use when
Adequacy decision Destination country has EU adequacy (Japan, UK, Canada, etc.)
Standard Contractual Clauses (SCCs) No adequacy; contractual safeguards with processor
Binding Corporate Rules (BCRs) Intra-group transfers within multinational
Explicit consent Last resort; must inform of risks

DPIA Required When (Art. 35)

  • Automated decision-making with legal effects (profiling)
  • Large-scale processing of special category data
  • Systematic monitoring of public areas
  • New technologies with likely high risk
  • Large-scale processing of children's data

CCPA / CPRA (California)

Consumer Rights

Right Section Deadline Notes
Know (access) §1798.100 45 days (+ 45 extension) 12-month lookback
Delete §1798.105 45 days (+ 45 extension) Exceptions: legal, security, billing
Opt-out of sale/sharing §1798.120 Immediate "Do Not Sell/Share My Personal Information" link required
Correct §1798.106 45 days CPRA addition
Limit sensitive PI use §1798.121 Immediate CPRA addition

Applicability Thresholds

CCPA applies if the business:

  • Annual gross revenue > $25M, OR
  • Buys/sells/shares PI of 100,000+ consumers/households, OR
  • Derives 50%+ revenue from selling/sharing PI

Key Implementation Requirements

  1. Privacy policy disclosing categories of PI collected and purposes.
  2. "Do Not Sell or Share" link on website (if applicable).
  3. Verification of consumer identity before fulfilling requests.
  4. Non-discrimination for exercising rights.
  5. Service provider contracts with use restrictions.

APPI (Japan — Act on the Protection of Personal Information)

Key Concepts

Concept Definition Equivalent
Personal Information (個人情報) Information that can identify a living individual GDPR: Personal Data
Requiring Special Care (要配慮個人情報) Race, creed, social status, medical history, criminal record GDPR: Special Category
Anonymously Processed Information (匿名加工情報) Irreversibly de-identified data GDPR: Anonymized Data
Pseudonymously Processed Information (仮名加工情報) Re-identifiable with additional info GDPR: Pseudonymized Data

Key Requirements

Requirement Article Notes
Specify purpose of use Art. 17 Must be as specific as possible
Consent for purpose change Art. 18 Unless reasonably related
Consent for sensitive data Art. 20(2) Always required for requiring-special-care data
Proper acquisition Art. 20 No deception or improper means
Accuracy & up-to-date Art. 22 Maintain accuracy to extent necessary
Security measures Art. 23 Organizational + technical safeguards
Third-party provision Art. 27 Consent required (with opt-out exceptions)
Cross-border transfer Art. 28 Equivalent protection or consent
Disclosure on request Art. 33 Without delay
Breach notification Art. 26 To PPC and data subject (promptly)

2022 Amendment Key Changes

  • Pseudonymously Processed Information category added.
  • Cross-border transfer requirements strengthened (must inform of destination country's regime).
  • Breach notification to PPC became mandatory.
  • Individual rights expanded (deletion, usage cessation).

2026 APPI Amendment (in progress)

The Japanese Cabinet approved a fresh APPI amendment bill on 2026-04-07 and submitted it to the Diet. Expected to take full effect by 2028 if passed during 2026. Key practical impacts:

  • Cross-border transfer monitoring — when relying on the "receiving country's protection system" basis, the controller must now monitor the receiving party's protection regime at least once per year (the previous rule was open-ended).
  • Cross-border consent disclosure — when relying on data-subject consent for an overseas transfer, the controller MUST disclose (i) the destination country name, (ii) that country's data protection regime, and (iii) the receiving party's specific protective measures before obtaining consent.
  • Tighter alignment with GDPR / China PIPL / Korea PIPA — the amendment is explicitly framed as continuing the trajectory toward global-standard parity.

Plan APPI projects against this trajectory even before the effective date; the cross-border monitoring requirement is the most operationally disruptive change for SaaS providers serving Japan from outside Japan.

Regulation Comparison Matrix

Feature GDPR CCPA/CPRA APPI EU AI Act (2026-08+)
Opt-in vs Opt-out Opt-in (consent first) Opt-out (collect, allow opt-out) Opt-in (consent for sensitive) N/A — risk-tier based
Territorial scope EU residents (worldwide) CA residents (revenue threshold) Japan residents + Japan-based operators EU users (worldwide)
Max penalty €20M or 4% global revenue $7,500 per intentional violation ¥100M or criminal penalties €35M / 7% (prohibited), €15M / 3% (high-risk)
DPO required Certain organizations No No (recommended) Conformity assessor for high-risk
Children's age <16 (member states may lower to 13) <16 (COPPA <13) No specific age threshold N/A
Breach notification 72h to DPA No fixed timeline (AG action) Promptly to PPC High-risk system serious-incident reporting

When a project triggers more than one regime, penalties apply concurrently — GDPR + EU AI Act on the same EU-user data flow can produce two ceilings, not one. Plan to the strictest applicable rule per regime.

DPIA Template Structure

# Data Protection Impact Assessment

## 1. Processing Description
- **Purpose:** [Why this processing exists]
- **Data categories:** [What PII is processed]
- **Data subjects:** [Whose data]
- **Recipients:** [Who receives data]
- **Retention:** [How long]
- **Cross-border:** [Transfer destinations]

## 2. Necessity & Proportionality
- Is the processing necessary for the stated purpose?
- Could the purpose be achieved with less data?
- Is the lawful basis appropriate?

## 3. Risk Assessment
| Risk | Likelihood | Impact | Score | Mitigation |
|------|-----------|--------|-------|-----------|
| Unauthorized access | [1-5] | [1-5] | [L×I] | [Action] |
| Data breach | [1-5] | [1-5] | [L×I] | [Action] |
| Function creep | [1-5] | [1-5] | [L×I] | [Action] |
| Re-identification | [1-5] | [1-5] | [L×I] | [Action] |

## 4. Measures & Safeguards
- [ ] Encryption at rest and in transit
- [ ] Access controls (role-based)
- [ ] Pseudonymization where possible
- [ ] Audit logging
- [ ] Retention automation
- [ ] DSAR process documented
- [ ] Breach response plan

## 5. Conclusion
- [ ] Residual risk acceptable
- [ ] DPO consulted (if applicable)
- [ ] Review date scheduled

2026 Regulatory Landscape (SKILL.md excerpt)

EU AI Act (full enforcement August 2026): High-risk AI systems processing personal data trigger both a Fundamental Rights Impact Assessment (FRIA, Art. 27) and a GDPR DPIA (Art. 35). Data governance requirements (Art. 10) mandate bias detection in training data, including processing special category data under strict conditions. Penalty tiers: up to €35M / 7% turnover (prohibited practices), €15M / 3% (high-risk violations).

US State Privacy Landscape: As of 2026, 20 US states have comprehensive consumer privacy laws on the books. Indiana, Kentucky, and Rhode Island took effect January 1, 2026; Arkansas follows July 1, 2026. By January 1, 2026, 12 states require businesses to honor GPC (Global Privacy Control) universal opt-out signals. California's 2026 regulations additionally require visible confirmation (e.g., "Opt-Out Request Honored") when a GPC signal is processed. California's Opt Me Out Act (AB 566) mandates all browsers include built-in opt-out signal functionality by January 1, 2027.

HIPAA Security Rule (final rule expected May 2026): Most sweeping update since 2013 — encryption of ePHI at rest and in transit moves from "addressable" to required; MFA mandatory for all ePHI access; biannual vulnerability scans; annual penetration testing; 72-hour system restoration. Critical for HealthTech projects.

Frameworks: NIST Privacy Framework 1.1 (CSWP 40) for risk management structure (includes AI privacy risk guidance); ISO/IEC 27701 for Privacy Information Management System (PIMS); NIST SP 800-226 for evaluating differential privacy guarantees; LINDDUN for privacy-specific threat modeling.

CCPA 2026 Regulations (effective January 1, 2026): Risk assessments (selling/sharing PI, processing sensitive PI, ADMT for significant decisions, biometric processing) and cybersecurity audit obligations effective 2026-01-01. ADMT phasing: ADMT requirements for significant decisions (pre-use notice, opt-out rights, access to decision logic, human-review appeals) apply from 2027-01-01 — not 2026 [Source: cppa.ca.gov]. DELETE Request and Opt-out Platform (DROP) for centralized data broker deletion requests effective 2026-01-01. Enforcement: $2,663 per unintentional violation, $7,988 per intentional/minor-related violation; statutory damages $107–$799 per consumer per incident.

Source: SKILL.md on GitHub

No alerts13d4 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    The skill is a specialized tool for privacy engineering and regulatory compliance. The analysis identifies a risk of indirect prompt injection because the skill's primary function is to ingest and analyze potentially untrusted external data sources, such as source code, application logs, and database schemas. While the skill mandates PII redaction, it lacks explicit boundary markers to prevent the agent from inadvertently following instructions embedded within the data it scans. No other malicious behaviors or data exfiltration attempts were detected.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: LOW · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 35ffd55. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 2 weeks ago

README badge

README badge for simota/agent-skills/cloak