mukul975/privacy-data-protection-skills

selecting-privacy-enhancing-technologies

- Comprehensive PET selection guide covering differential privacy, homomorphic encryption, secure multi-party computation, federated learning, zero-knowledge proofs, and trusted execution environments.

소스 보기

사용 방법

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

시작 전 확인

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

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

Selecting Privacy-Enhancing Technologies

Overview

Privacy-Enhancing Technologies (PETs) are technical measures that protect personal data during collection, processing, storage, and sharing. The GDPR does not prescribe specific technologies but requires "appropriate technical measures" (Article 25(1), Article 32(1)) to implement data protection principles. The European Commission's February 2025 communication on PETs and the ENISA 2023 report on engineering privacy by design with PETs provide regulatory context for PET adoption.

Selecting the right PET depends on the processing scenario, data sensitivity, computational requirements, and the specific privacy property needed (confidentiality, anonymity, unlinkability, or transparency).

PET Taxonomy

1. Differential Privacy (DP)

Privacy property: Statistical indistinguishability — the output of an analysis is approximately the same whether or not any individual's data is included.

CharacteristicDetail
ApproachAdd calibrated noise to query results or model gradients
Privacy guaranteeMathematically provable (epsilon, delta) bounds
Data utilityConfigurable via epsilon; lower epsilon = more privacy, less utility
Performance overheadMinimal for query-time noise; moderate for DP-SGD training
MaturityProduction-ready (Apple, Google, US Census Bureau)
GDPR relevanceSupports Recital 26 anonymization when epsilon is sufficiently small; Art. 25(1) by design measure

Best for: Statistical analytics, aggregate reporting, ML model training on sensitive data.

Libraries: Google DP Library, OpenDP, IBM diffprivlib, PyDP.

2. Homomorphic Encryption (HE)

Privacy property: Computation on encrypted data — results are decrypted only by the data owner.

CharacteristicDetail
ApproachEncrypt data such that mathematical operations on ciphertext produce valid results when decrypted
Privacy guaranteeCryptographic (lattice-based hardness assumptions)
Data utilityExact results (no noise added)
Performance overheadHigh: 1,000x-1,000,000x slower than plaintext, depending on scheme and operation
MaturityEmerging for production; active research on performance optimization
GDPR relevanceArt. 32(1)(a) encryption as security measure; enables processing without exposing plaintext to processor

Schemes:

  • BFV (Brakerski/Fan-Vercauteren): Integer arithmetic, exact. Suitable for counting, matching.
  • BGV (Brakerski-Gentry-Vaikuntanathan): Integer arithmetic with modulus switching. Efficient for deep circuits.
  • CKKS (Cheon-Kim-Kim-Song): Approximate arithmetic on real/complex numbers. Suitable for ML inference.
  • TFHE (Torus FHE): Fast bootstrapping, gate-by-gate evaluation. Suitable for boolean circuits.

Libraries: Microsoft SEAL, IBM HELib, Google FHE (Fully Homomorphic Encryption transpiler), TFHE-rs, OpenFHE.

3. Secure Multi-Party Computation (SMPC)

Privacy property: Joint computation without revealing individual inputs — each party learns only the final result.

CharacteristicDetail
ApproachSecret sharing, garbled circuits, or oblivious transfer protocols
Privacy guaranteeInformation-theoretic (for secret sharing) or computational (for garbled circuits)
Data utilityExact results
Performance overheadModerate to high; depends on circuit complexity and number of parties
MaturityProduction deployments in financial services, healthcare consortia
GDPR relevanceEnables joint controllership (Art. 26) analytics without data sharing; supports data minimization (Art. 5(1)(c))

Frameworks: MP-SPDZ, CrypTen (Meta), MOTION, ABY/ABY3, Sharemind.

4. Federated Learning (FL)

Privacy property: Model training without centralizing data — raw data never leaves the data owner's environment.

CharacteristicDetail
ApproachDistribute model training to data owners; aggregate only model updates (gradients)
Privacy guaranteeData locality (raw data stays on device); strengthened with secure aggregation and DP
Data utilityDepends on data distribution across participants (IID vs non-IID)
Performance overheadCommunication overhead for gradient exchange; multiple training rounds
MaturityProduction at Google (Gboard), Apple (Siri), hospitals (NVIDIA FLARE)
GDPR relevanceSupports Art. 5(1)(c) minimization; reduces cross-border transfer requirements (Chapter V)

Frameworks: TensorFlow Federated, PySyft (OpenMined), NVIDIA FLARE, Flower, FedML.

5. Zero-Knowledge Proofs (ZKP)

Privacy property: Prove a statement is true without revealing the underlying data.

CharacteristicDetail
ApproachProver demonstrates knowledge of a secret (e.g., age ≥ 18) without revealing the secret (date of birth)
Privacy guaranteeSoundness (false statements cannot be proven) and zero-knowledge (verifier learns nothing beyond the statement's truth)
Data utilityBinary verification (proof valid/invalid); no data disclosed
Performance overheadProof generation: moderate to high; proof verification: fast
MaturityProduction in blockchain identity; emerging in enterprise identity verification
GDPR relevanceUltimate data minimization — prove compliance without disclosing data; supports Art. 5(1)(c), Art. 25

Systems: zk-SNARKs (Groth16, PLONK), zk-STARKs, Bulletproofs.

6. Trusted Execution Environments (TEE)

Privacy property: Isolated computation — data is processed inside a hardware-protected enclave that even the system administrator cannot access.

CharacteristicDetail
ApproachHardware-enforced isolation using secure enclaves (Intel SGX, AMD SEV, ARM TrustZone, AWS Nitro)
Privacy guaranteeHardware-based attestation and memory encryption
Data utilityFull computation capability inside enclave
Performance overheadLow to moderate; limited enclave memory may require data streaming
MaturityProduction: Azure Confidential Computing, AWS Nitro Enclaves, Google Confidential VMs
GDPR relevanceArt. 32(1)(a) encryption in processing; Art. 28 processor guarantees; protects against insider threats

Use-Case Matching Matrix

Use CaseDPHESMPCFLZKPTEERecommended Primary
Aggregate analytics on customer data523213Differential Privacy
ML model training on distributed hospital data312513Federated Learning
Credit scoring without sharing financial records235223Secure MPC
Age verification without revealing date of birth111152Zero-Knowledge Proofs
Processing encrypted customer data in third-party cloud252114Homomorphic Encryption
Anti-money laundering across banks225323Secure MPC
Private genomic analysis343314HE + TEE combination
Confidential inference on cloud-hosted ML models242115Trusted Execution Environment
Privacy-preserving surveys and polls513121Differential Privacy
Secure keyword search on encrypted database141114Homomorphic Encryption

Scores: 1 = poor fit, 5 = excellent fit

PET Selection Decision Framework

Step 1: Define Privacy Requirements

  • What data protection principle is primary? (minimization, confidentiality, anonymization, unlinkability)
  • Is the goal to protect data in transit, at rest, or during processing?
  • Is the adversary model honest-but-curious or malicious?
  • Are there cross-organizational boundaries (multiple controllers/processors)?

Step 2: Assess Constraints

  • What is the acceptable performance overhead? (real-time vs batch)
  • What is the computational budget? (HE requires significantly more resources)
  • How many parties are involved? (SMPC scales with party count)
  • Is there a hardware trust anchor available? (TEE requires specific hardware)
  • What is the team's cryptographic engineering expertise?

Step 3: Evaluate Combinations

Many production deployments combine PETs for defense in depth:

CombinationBenefit
FL + DPFederated learning with differentially private gradient updates prevents gradient inversion attacks
FL + Secure AggregationAggregation server never sees individual gradients
HE + TEEProcess encrypted data inside an enclave for double protection
SMPC + DPAdd noise to SMPC outputs for formal anonymization guarantee
ZKP + TEEProve computation was performed correctly inside an enclave without revealing inputs

Step 4: GDPR Alignment Verification

  • Does the selected PET satisfy Article 25(1) data protection by design?
  • Does it implement a specific Article 32(1) security measure?
  • Does it support the data minimization principle under Article 5(1)(c)?
  • If anonymization is claimed, does it meet Recital 26 standards against singling out, linkability, and inference?
  • Is the PET's privacy guarantee documented sufficiently for DPIA (Article 35)?

Key Regulatory References

  • GDPR Article 25(1) — Data protection by design
  • GDPR Article 32(1)(a) — Encryption and pseudonymisation as security measures
  • GDPR Article 5(1)(c) — Data minimization principle
  • GDPR Recital 26 — Anonymous information
  • GDPR Recital 78 — Technical measures for data protection
  • ENISA Report: Data Protection Engineering (2022)
  • European Commission Communication on PETs (February 2025)
  • EDPB Guidelines 4/2019 on Article 25 Data Protection by Design and by Default

관련 작업

같은 저장소의 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일