mukul975/privacy-data-protection-skills

cookie-audit

- Comprehensive methodology for auditing website cookies and tracking technologies.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/mukul975/privacy-data-protection-skills --skill cookie-audit

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

Auditing Website Cookies and Trackers

Overview

A cookie audit is the foundational step in achieving cookie consent compliance. It involves systematically identifying, categorizing, and documenting every cookie and tracking technology deployed on a website. The Court of Justice of the European Union in Planet49 GmbH v. Bundesverband der Verbraucherzentralen (Case C-673/17, 1 October 2019) established that pre-ticked checkboxes do not constitute valid consent under the ePrivacy Directive, and that users must be informed about cookie duration and third-party access before consenting. A thorough audit reveals what consent must be obtained and what disclosures must be made.

Audit Methodology

Phase 1: Preparation

Before scanning, document the audit scope for Pinnacle E-Commerce Ltd:

ParameterValue
Primary domainwww.pinnacle-ecommerce.com
Subdomains in scopeshop.pinnacle-ecommerce.com, account.pinnacle-ecommerce.com, blog.pinnacle-ecommerce.com
Authenticated pagesYes — customer account, checkout flow
Mobile-specific pagesm.pinnacle-ecommerce.com
Third-party integrationsGoogle Analytics 4, Meta Pixel, Hotjar, Stripe, Intercom
Scan frequencyQuarterly (next: Q2 2026)

Phase 2: Automated Scanning

Deploy scanning tools to capture all cookies and tracking technologies:

Browser-Based Scanning

Use a headless Chromium instance to crawl the site and capture:

  • First-party cookies set via Set-Cookie headers
  • First-party cookies set via document.cookie JavaScript API
  • Third-party cookies from embedded resources
  • LocalStorage and SessionStorage entries
  • IndexedDB databases
  • Pixels and beacons (1x1 image requests, navigator.sendBeacon() calls)
  • Browser fingerprinting scripts (canvas, WebGL, AudioContext)

Network-Level Capture

Monitor HTTP/HTTPS traffic to identify:

  • Tracking parameters in URL query strings (utm_*, fbclid, gclid)
  • Redirect chains through tracking domains
  • Cookie syncing between third parties
  • Server-to-server data sharing endpoints

Phase 3: Cookie Categorization

Classify each cookie using the ICC UK Cookie Guide categories, aligned with the ePrivacy Directive Article 5(3):

Category 1: Strictly Necessary Cookies essential for the website to function. No consent required under Article 5(3) exemption.

Examples for Pinnacle E-Commerce Ltd:

Cookie NameDomainDurationPurpose
session_id.pinnacle-ecommerce.comSessionMaintains user session state
csrf_token.pinnacle-ecommerce.comSessionCross-site request forgery protection
cart_itemsshop.pinnacle-ecommerce.com24 hoursShopping cart contents
auth_tokenaccount.pinnacle-ecommerce.com30 minutesAuthentication state
load_balancer.pinnacle-ecommerce.comSessionServer load distribution

Category 2: Performance/Analytics Cookies that collect aggregate usage data. Consent required.

Cookie NameDomainDurationPurpose
_ga.pinnacle-ecommerce.com2 yearsGoogle Analytics client ID
gaXXXXXXX.pinnacle-ecommerce.com2 yearsGA4 session persistence
_gid.pinnacle-ecommerce.com24 hoursGA4 session distinction
hjSessionUser.pinnacle-ecommerce.com1 yearHotjar user identification
hjSession.pinnacle-ecommerce.com30 minutesHotjar session data

Category 3: Functionality Cookies that remember user preferences. Consent required unless strictly necessary.

Cookie NameDomainDurationPurpose
locale.pinnacle-ecommerce.com1 yearLanguage preference
currencyshop.pinnacle-ecommerce.com1 yearCurrency selection
recently_viewedshop.pinnacle-ecommerce.com30 daysRecently viewed products

Category 4: Targeting/Advertising Cookies used for ad targeting and cross-site tracking. Consent always required.

Cookie NameDomainDurationPurpose
_fbp.pinnacle-ecommerce.com90 daysMeta Pixel browser ID
_fbc.pinnacle-ecommerce.com90 daysMeta click identifier
gclau.pinnacle-ecommerce.com90 daysGoogle Ads conversion linker
IDE.doubleclick.net13 monthsGoogle ad serving
fr.facebook.com90 daysMeta ad delivery and measurement

Phase 4: Gap Analysis

For each cookie identified, verify against Planet49 requirements:

Planet49 Compliance Checklist:

  1. Active consent mechanism: Is consent collected via affirmative action (click, toggle), not pre-ticked boxes? (Planet49, para. 62)
  2. Pre-consent information: Before consent is given, is the user informed of:
  • Cookie duration? (Planet49, para. 81)
  • Whether third parties have access? (Planet49, para. 81)
  • The specific purpose of each cookie category?
  1. Granularity: Can users consent to cookie categories individually, not just accept all?
  2. No cookie walls: Is site access available without consenting to non-essential cookies?
  3. Withdrawal mechanism: Can users withdraw consent as easily as they gave it?

Gap Analysis Template:

CookieCategoryConsent CollectedDuration DisclosedThird-Party DisclosedGap
_gaAnalyticsYesNo — listed as "persistent" not "2 years"No — Google not namedDuration + third-party disclosure
_fbpTargetingYesYesYesNone
localeFunctionalityNoNoN/AAssess if strictly necessary

Phase 5: Reporting

The audit report for Pinnacle E-Commerce Ltd must include:

  1. Executive summary: Total cookies found, breakdown by category, critical gaps
  2. Complete cookie inventory: Full table with name, domain, duration, purpose, category, legal basis
  3. Third-party tracker inventory: All third-party domains receiving data, with data types shared
  4. Compliance gap register: Each gap, severity (high/medium/low), remediation recommendation
  5. Cookie policy update recommendations: Specific text changes needed
  6. Consent mechanism assessment: Whether current banner meets Planet49 requirements
  7. Recommended scan schedule: Quarterly for production, on-demand for new feature deployments

Ongoing Monitoring

Schedule automated scans to detect new cookies introduced by:

  • Developer deployments (new analytics or marketing tags)
  • Third-party script updates (vendor SDK updates adding new cookies)
  • A/B testing platforms adding experiment cookies
  • CDN or infrastructure changes

Integrate cookie scanning into the CI/CD pipeline: any new cookie detected in staging must be categorized and documented before deployment to production.

Key Legal References

  • CJEU Case C-673/17 (Planet49) — Active consent required; pre-ticked boxes invalid; cookie duration and third-party access must be disclosed before consent
  • ePrivacy Directive 2002/58/EC, Article 5(3) — Consent required for storing/accessing information on user devices, with strictly necessary exemption
  • GDPR Article 4(11) — Definition of consent: freely given, specific, informed, unambiguous indication
  • EDPB Guidelines 05/2020 on Consent — Detailed guidance on valid consent mechanisms
  • ICC UK Cookie Guide (2012) — Cookie categorization framework (strictly necessary, performance, functionality, targeting)
  • CNIL Deliberation No. 2020-091 (17 September 2020) — Guidelines on cookies and other trackers

관련 작업

같은 저장소의 Skills

더 많은 Skills

모든 Skills
mukul975
커뮤니티

applying-privacy-design-patterns

- Systematic application of the eight privacy design patterns per Hoepman: minimize, hide, separate, abstract, inform, control, enforce, and demonstrate. Covers pattern selection methodology per processing activity, mapping to GDPR principles, and practical implementation guidance for privacy-by-design system architecture.

설치 수
1
GitHub Stars
315
업데이트
3월 16일
mukul975
커뮤니티

brazil-lgpd

- Guides compliance with Brazil's Lei Geral de Proteção de Dados (LGPD, Lei 13.709/2018). Covers the 10 lawful bases under Art. 7, DPO appointment, ANPD enforcement, data subject rights under Arts. 17-22, and international transfer mechanisms. Keywords: LGPD, Brazil data protection, ANPD, lawful bases, data subject rights, international transfers.

설치 수
1
GitHub Stars
315
업데이트
3월 16일
mukul975
커뮤니티

adequacy-assessment

- Guides assessment of third-country adequacy decisions under GDPR Article 45 for international data transfers. Covers the current EC adequacy decisions list, adequacy assessment criteria, partial adequacy handling, and monitoring of adequacy decision reviews. Keywords: adequacy decision, Article 45, third country, adequate protection, EC adequacy list.

설치 수
1
GitHub Stars
295
업데이트
3월 16일
mukul975
커뮤니티

age-gating-services

- Implements age-gating mechanisms for online services to restrict access based on user age. Covers hard gates versus soft gates, neutral age prompts, re-verification triggers, circumvention prevention, and regulatory requirements under GDPR, COPPA, UK Online Safety Act, and DSA. Keywords: age gate, age restriction, neutral prompt, children, online services, access control.

설치 수
1
GitHub Stars
295
업데이트
3월 16일