Ccpa cpra readiness audit

From CraftOS-dev/craftbot-agent-bundles · View interactive version

Ccpa cpra readiness audit is an AI agent skill from the GitHub repository CraftOS-dev/craftbot-agent-bundles. Audit CCPA / CPRA readiness for California — applicability, consumer rights infrastructure, "Do Not Sell or Share" link, sensitive PI limit link, GPC signal, service-provider agreements, Cal AG + CPPA enforcement focus. Output is a gap-analysis report with the consult-an-attorney disclaimer. Pairs w

How to use this skill

Skill file

CCPA / CPRA Readiness Audit

When to use

User says:

Companion skills:

Setup

# Fetch Cal AG + CPPA current guidance
curl -fsSL -o calag_ccpa.html https://oag.ca.gov/privacy/ccpa
curl -fsSL -o cppa_regs.html https://cppa.ca.gov/regulations/

# Full text — Cal. Civ. Code §1798.100 et seq.
# https://leginfo.legislature.ca.gov/faces/codes_displayexpandedbranch.xhtml?tocCode=CIV&division=3.&title=1.81.5.
curl -fsSL -o ccpa_text.html "https://leginfo.legislature.ca.gov/faces/codes_displayexpandedbranch.xhtml?tocCode=CIV&division=3.&title=1.81.5."

# CPPA Final Regulations (effective 2023+)
curl -fsSL -o cppa_final.pdf https://cppa.ca.gov/regulations/pdf/cppa_regs.pdf

# Python helpers
pip install pandas openpyxl

Common recipes

Recipe 1: Applicability check — are we subject to CCPA / CPRA?

# applicability.py
# Apply if for-profit doing business in CA AND ANY of:
applies_ccpa = (
    annual_gross_revenue > 25_000_000 OR
    annually_buy_sell_share_personal_info_of >= 100_000_consumers_households_devices OR
    derive_50pct_or_more_revenue_from_selling_sharing_personal_info
)
print("CCPA / CPRA applies:", applies_ccpa)

"Doing business in CA" = significant CA presence — selling to CA consumers, employees in CA, etc.

Recipe 2: Consumer rights infrastructure checklist

- [ ] Right to know (specific pieces in 12 months; CPRA extends on request)
  - [ ] Disclosure of categories collected, sources, purposes, third parties
  - [ ] Disclosure of specific pieces (with verification)
- [ ] Right to delete (with statutory exceptions)
- [ ] Right to correct (CPRA-new, effective 2023)
- [ ] Right to opt out of sale
- [ ] Right to opt out of share (CPRA-new — cross-context behavioral advertising)
- [ ] Right to limit use of sensitive personal info (CPRA-new)
- [ ] Right to non-discrimination (no charging more / providing less service)
- [ ] Right to data portability
- [ ] Authorized agent submission
- [ ] Verification process (proportionate to risk)
- [ ] SLA: 45 days (extendable +45 days with notice)
- [ ] Fee policy: free for first 2 requests / 12 months; reasonable fee for manifestly unfounded

Recipe 3: "Do Not Sell or Share My Personal Information" link

<!-- Required on homepage + every page where PI is collected -->
<a href="/privacy/do-not-sell-or-share">Do Not Sell or Share My Personal Information</a>

<!-- Honor GPC signal (Recipe 9) — auto-treat as opt-out request -->

Location requirements (CCPA §1798.135):

Combined with sensitive PI link if applicable:

<a href="/privacy/limit-sensitive">Limit Use of My Sensitive Personal Information</a>

Recipe 4: CCPA categories of personal info — disclosure table

import pandas as pd
categories = pd.DataFrame([
    {"category": "Identifiers", "examples": "Name, email, IP, SSN, account ID",
     "collected": "Yes", "sold_or_shared": "No"},
    {"category": "Customer records (Cal Civ §1798.80(e))", "examples": "Name, address, phone",
     "collected": "Yes", "sold_or_shared": "No"},
    {"category": "Protected class", "examples": "Race, religion, sexual orientation",
     "collected": "No", "sold_or_shared": "—"},
    {"category": "Commercial info", "examples": "Purchase records, preferences",
     "collected": "Yes", "sold_or_shared": "No"},
    {"category": "Biometric info", "examples": "Fingerprint, voiceprint",
     "collected": "No", "sold_or_shared": "—"},
    {"category": "Internet / network activity", "examples": "Browse history, interactions, ads",
     "collected": "Yes", "sold_or_shared": "Yes (analytics → CPRA 'share')"},
    {"category": "Geolocation", "examples": "Approx from IP; precise from app",
     "collected": "Yes (approx)", "sold_or_shared": "No"},
    {"category": "Sensory data", "examples": "Audio, video, electronic info",
     "collected": "No", "sold_or_shared": "—"},
    {"category": "Professional / employment", "examples": "Job title, employer",
     "collected": "Yes (B2B)", "sold_or_shared": "No"},
    {"category": "Education info (FERPA)", "examples": "School, transcript",
     "collected": "No", "sold_or_shared": "—"},
    {"category": "Inferences", "examples": "Behavioral profile, preferences",
     "collected": "Yes (with consent)", "sold_or_shared": "No"},
    {"category": "Sensitive PI (CPRA)", "examples": "Geo (precise), race, religion, mail/text content, biometric, health, sexual orientation, SSN, DL #, financial #",
     "collected": "No", "sold_or_shared": "—"},
])
categories.to_markdown("ccpa_categories.md", index=False)

Recipe 5: "Sale" vs "Share" definitions (CPRA broadened both)

SALE (CCPA §1798.140(ad)): "Selling, renting, releasing, disclosing, disseminating, making available, transferring, or otherwise communicating orally, in writing, or by electronic or other means, a consumer's personal information by the business to another business or a third party for monetary OR OTHER VALUABLE CONSIDERATION."

SHARE (CPRA §1798.140(ah)): "Sharing, renting, releasing, disclosing, disseminating, making available, transferring, or otherwise communicating orally, in writing, or by electronic or other means, a consumer's personal information by the business to a third party for cross-context behavioral advertising, whether or not for monetary or other valuable consideration."

Practical: most ad-tech pixel firing = "share." Many analytics integrations = "share" or "sale" depending on data flows. Audit each tag.

Recipe 6: Service provider vs contractor vs third party

SERVICE PROVIDER (CCPA §1798.140(ag), CPRA expanded):
- Processes PI on behalf of business per written contract
- Can't sell or share PI
- Can't use PI for own purposes or "cross-context behavioral advertising"
- Contract MUST include CPRA-specific terms

CONTRACTOR (CPRA-new):
- Like service provider but not under service-provider definition

THIRD PARTY:
- Anyone who isn't business, service provider, or contractor
- Sharing with third parties may = "sale" or "share"

Service provider contract MUST include (§1798.140(ag)(2)):
1. Process only for business purposes
2. No selling / sharing
3. No combining with other PI from other sources unless allowed
4. Notification of compliance
5. Right to take reasonable + appropriate steps to remediate

Recipe 7: Privacy notice at collection (just-in-time)

Required: at or before collection, disclose:
1. Categories of PI collected
2. Purposes for which used
3. Categories of sensitive PI collected (if applicable) + purposes
4. Whether sold or shared
5. Retention period (or criteria)
6. Link to full privacy policy

Format: clear, plain language; in collection context (form, signup, app onboarding).

Recipe 8: Sensitive PI processing (CPRA new)

Sensitive PI categories (CPRA §1798.140(ae)):
- Precise geolocation
- Racial / ethnic origin
- Religious / philosophical beliefs
- Union membership
- Mail / email / text message content
- Genetic data
- Biometric for unique identification
- Health
- Sex life / sexual orientation
- SSN, driver's license #, state ID, passport #
- Financial account / debit / credit card #
- Account credentials

If used for purposes other than:
- Performing services
- Detecting security incidents
- Resisting malicious / deceptive / fraudulent / illegal actions
- Short-term, transient use
- Performing services on behalf of business
- Verifying / maintaining quality

THEN must offer "Limit Use" right.

Recipe 9: Global Privacy Control (GPC) signal

// Detect GPC + treat as opt-out request
if (navigator.globalPrivacyControl) {
  // 1. Set opt-out cookie / state
  document.cookie = "ccpa_optout=1; max-age=31536000; SameSite=Lax; Secure";
  
  // 2. Update CMP state (Cookiebot / OneTrust / etc.)
  if (window.Cookiebot) Cookiebot.renew();
  
  // 3. Update Google Consent Mode v2
  gtag('consent', 'update', {
    'ad_storage': 'denied',
    'ad_user_data': 'denied',
    'ad_personalization': 'denied'
  });
  
  // 4. Backend acknowledgment via API
  fetch('/api/privacy/optout', { method: 'POST', body: JSON.stringify({source: 'GPC'}) });
}

CA AG enforcement focus 2024-2026: GPC honor is mandatory. Sephora $1.2M settlement (2022) hinged on GPC non-honor.

Recipe 10: Authorized agent submission

CCPA §1798.135(c) allows consumers to designate an authorized agent (e.g., privacy NGO, family member, attorney).

Required process:
1. Consumer signs written permission OR power of attorney
2. Agent submits request with proof
3. Business verifies BOTH:
   - Consumer's identity (per Recipe 2 verification)
   - Agent's authorization

Permission Slip / DataGrail / Transcend handle agent flows.

Recipe 11: Verification methodology (CCPA Regs §7060-7064)

Verification proportionate to:
- Type of request (delete > know specific pieces > know categories)
- Sensitivity of data
- Risk of harm

Methods:
- 2+ data points matching account records (low risk)
- 3+ data points + signed declaration (medium risk)
- Gov ID + signed declaration (high risk — delete sensitive PI)

Don't request MORE PI than necessary for verification.

Recipe 12: CPPA enforcement focus areas (2024-2026)

California Privacy Protection Agency (created by CPRA) enforcement focus:
1. Children's data (under 13 consent; opt-in for under 16 sale/share)
2. Dark patterns in consent flows
3. GPC signal honor
4. "Sensitive PI" handling (precise geo, biometric)
5. Service provider contractual compliance
6. Data broker registration + Delete Act compliance

Recipe 13: CCPA audit gap-analysis report skeleton

# CCPA / CPRA Readiness Audit — <Co.>

**Date:** 2026-06-09
**Auditor:** Legal Counsel (AI agent)
**Scope:** All processing of California consumer PI

## Executive summary
- HIGH gaps: <N>
- MED gaps: <N>
- LOW gaps: <N>

## Applicability
- Revenue: $X — meets §1798.140(d)(1)(A)? Y/N
- Consumer count: X — meets (B)? Y/N
- Revenue from PI sale: X% — meets (C)? Y/N
- **Subject to CCPA / CPRA:** Yes / No

## Findings
### 1. Privacy policy
- §1798.130 disclosures: ✓ / Gaps
- Annual update: ✓ / Gaps

### 2. Notice at collection
- Just-in-time notices: ✓ / Gaps

### 3. Consumer rights infrastructure
- Right to know: ✓ / Gaps
- Right to delete: ✓ / Gaps
- Right to correct: ✓ / Gaps
- Right to opt-out (sale + share): ✓ / Gaps
- Right to limit sensitive PI: ✓ / Gaps
- Right to non-discrimination: ✓ / Gaps

### 4. "Do Not Sell or Share" link
- Homepage: ✓ / Gaps
- Each PI collection page: ✓ / Gaps
- Method to submit (online + toll-free for online-only biz): ✓ / Gaps

### 5. GPC signal
- Honor GPC: ✓ / Gaps
- Document GPC implementation: ✓ / Gaps

### 6. Service provider contracts
- All vendors signed CPRA-compliant service provider agreement: ✓ / Gaps

### 7. Sensitive PI
- Map sensitive PI flows: ✓ / Gaps
- Limit Use link (if applicable): ✓ / Gaps

### 8. Verification + agent submission
- Documented verification process: ✓ / Gaps
- Authorized agent flow: ✓ / Gaps

### 9. Record retention + SLA tracking
- 45-day SLA tracker: ✓ / Gaps
- Records of requests (2 years): ✓ / Gaps

## Remediation plan
| Gap | Priority | Owner | Deadline |
|---|---|---|---|

---
**Disclaimer:** This is informational guidance from an AI agent. Always consult a licensed attorney in your jurisdiction before relying on this audit for compliance posture or regulatory filings.

Examples

Example 1: B2C SaaS first-time CCPA audit

Goal: Pre-CA-launch readiness.

Steps:

  1. Recipe 1 applicability check.
  2. Recipe 4 inventory categories of PI.
  3. Recipe 5 audit "sale" + "share" — pay special attention to ad pixels + analytics.
  4. Recipe 6 verify service-provider contracts (especially with analytics vendors).
  5. Recipe 7-8 implement notice + sensitive PI handling.
  6. Recipe 9 implement GPC.
  7. Recipe 13 report with remediation plan.
  8. Add disclaimer; send to licensed counsel.

Result: Audit + remediation plan ready to execute.

Example 2: Adding a new analytics vendor — CCPA check

Goal: Add Mixpanel without triggering "sale" / "share."

Steps:

  1. Review Mixpanel's CCPA service-provider contract addendum.
  2. Confirm Mixpanel commits to no own-purpose use, no cross-context advertising.
  3. Sign service-provider agreement.
  4. Update privacy policy + Recipe 4 categories table.
  5. Update sub-processor list.
  6. Test GPC propagation through Mixpanel SDK.

Result: Compliant addition without "share" classification.

Edge cases / gotchas

Warning: This is informational guidance from an AI agent. Always consult a licensed attorney in your jurisdiction before relying on this audit for compliance posture, regulatory filings, or binding decisions.

Sources

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.