本文へ移動
cccskills
無料GitHub で公開

pseudonymization-risk

Assessment of pseudonymization techniques and re-identification risk. Covers tokenization, hashing, encryption-based pseudonymization, and hybrid approaches. Includes re-identification risk scoring using the motivated intruder test, quantitative metrics (marketer, journalist, prosecutor models), and linkage attack resilience evaluation. References ENISA 2019 pseudonymization report.

インストール方法を見る

含まれるファイル(5)

  • SKILL.md12.7 KB
  • assets/template.md9.3 KB
  • references/standards.md6.6 KB
  • references/workflows.md9.4 KB
  • scripts/process.py20.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Assessing Pseudonymization and Re-Identification Risk

Overview

Pseudonymization (GDPR Article 4(5)) means processing personal data in such a manner that the data can no longer be attributed to a specific data subject without the use of additional information, provided that such additional information is kept separately and is subject to technical and organisational measures to ensure non-attribution. Unlike anonymization (Recital 26), pseudonymized data remains personal data — but it significantly reduces risk and is explicitly recognized as an appropriate safeguard under Articles 25, 32, and 89.

The ENISA report "Pseudonymisation Techniques and Best Practices" (November 2019) provides a comprehensive taxonomy of pseudonymization techniques and their properties. This skill implements a structured assessment framework for selecting appropriate techniques and quantifying residual re-identification risk.

Pseudonymization Techniques Taxonomy

Technique 1: Counter-Based Pseudonyms

PropertyValue
MechanismSequential or random counter assigned to each identifier
ReversibilityReversible via lookup table
Collision resistanceGuaranteed (bijective mapping)
PerformanceO(1) lookup
Storage overheadMapping table size proportional to identifier count
Key managementProtect the mapping table as additional information

Prism Data Systems AG Implementation: Customer IDs are replaced with UUIDv4 pseudonyms at the analytics ingestion boundary. The mapping table is stored in a separate HSM-backed database accessible only to the DPO and the identity resolution service (which requires dual-approval access).

Technique 2: Cryptographic Hashing (HMAC)

PropertyValue
MechanismHMAC-SHA256 with secret key applied to identifier
ReversibilityNot directly reversible; vulnerable to brute-force on low-entropy inputs
Collision resistanceNegligible collision probability (256-bit output)
PerformanceO(1) computation
Storage overheadFixed 32-byte output per identifier
Key managementHMAC key must be protected as additional information

Risk: Plain SHA-256 hashing (without key) is vulnerable to rainbow table attacks on low-entropy identifiers like email addresses. HMAC with a secret key mitigates this but the key becomes the single point of re-identification.

Prism Data Systems AG Implementation: HMAC-SHA256 with a 256-bit key rotated quarterly is used for pseudonymizing user identifiers in the analytics pipeline. The HMAC key is stored in AWS KMS with access restricted to the pseudonymization service account. Key rotation triggers re-pseudonymization of the active analytics dataset.

Technique 3: Encryption-Based Pseudonymization

PropertyValue
MechanismAES-256-GCM or format-preserving encryption (FF1/FF3-1)
ReversibilityFully reversible with decryption key
Collision resistanceGuaranteed (bijective for same key)
PerformanceO(1) computation; FPE slower than standard AES
Storage overheadCiphertext size ≈ plaintext + 16-byte tag (GCM)
Key managementEncryption key is the additional information per Art. 4(5)

Format-Preserving Encryption preserves the format of the original identifier (e.g., encrypting a 10-digit phone number produces another 10-digit number), enabling pseudonymization without schema changes.

Prism Data Systems AG Implementation: FPE (FF3-1 mode) is used for pseudonymizing phone numbers and IBAN fields in the support ticket system. This allows Tier 1 support agents to see structurally valid but pseudonymized identifiers, reducing accidental exposure while maintaining workflow compatibility.

Technique 4: Tokenization

PropertyValue
MechanismRandom token generated and stored in a secure vault; no mathematical relationship to original
ReversibilityReversible only via vault lookup
Collision resistanceGuaranteed by vault uniqueness constraint
PerformanceO(1) vault lookup; network latency for centralized vault
Storage overheadVault stores original-to-token mapping
Key managementVault access controls replace key management

Prism Data Systems AG Implementation: Payment card data is tokenized using a PCI DSS-compliant token vault. The vault is operated by the payment processor and is logically separated from Prism's infrastructure. Detokenization requires a PCI-scoped service account with transaction-level authorization.

Technique 5: Synthetic Data Replacement

PropertyValue
MechanismReplace real identifiers with structurally similar but fictional values
ReversibilityNot reversible (one-way replacement)
Collision resistanceDepends on generation method; risk of accidental collision with real data
PerformanceO(1) generation
Storage overheadNo mapping table needed (irreversible)
Key managementNot applicable

Use case: Test environments where referential integrity must be maintained but no re-identification path is acceptable.

Technique Comparison Matrix

CriterionCounterHMACEncryptionTokenizationSynthetic
ReversibilityLookup tableBrute-force onlyDecryption keyVault lookupIrreversible
DeterministicConfigurableYes (same key)Yes (same key+IV)ConfigurableNo
Format preservingNoNoFPE onlyConfigurableYes
Linkability (same dataset)YesYesYesConfigurableNo
Linkability (cross-dataset)NoSame key: YesSame key: YesNoNo
Brute-force resistanceN/AKey-dependentKey-dependentN/AN/A
Suited for analyticsYesYesLimitedYesLimited
Suited for testingNoNoNoYesYes
ENISA recommendation levelBasicIntermediateAdvancedAdvancedSpecialized

Re-Identification Risk Assessment Framework

The Motivated Intruder Test

The UK Information Commissioner's Office (ICO) Anonymisation Code of Practice defines the motivated intruder test: would a reasonably competent, motivated person with access to resources such as the internet, public libraries, and public records be able to identify an individual from the pseudonymized data?

Assessment Factors:

FactorLow Risk (1)Medium Risk (3)High Risk (5)
Population uniquenessCommon attributes, large equivalence classesModerate uniqueness, some rare combinationsHighly unique attribute combinations
Auxiliary information availabilityNo public datasets linkableSome public records overlapRich public profiles (social media, registers)
Identifier entropyHigh entropy (e.g., UUID)Medium entropy (e.g., hashed email)Low entropy (e.g., hashed phone number)
Dataset richnessFew quasi-identifiersModerate quasi-identifiers (5-10)Many quasi-identifiers (>10)
Temporal precisionYearly or coarserMonthlyDaily or finer
Geographic precisionCountry levelRegion/city levelPostcode or finer
Domain sensitivityLow sensitivity domainModerate sensitivityHealth, financial, political data

Quantitative Risk Models

Prosecutor Model

The attacker knows a specific individual is in the dataset and attempts to find their record. Risk = 1 / k, where k is the size of the equivalence class containing the target record.

Journalist Model

The attacker does not know if the target is in the dataset but attempts to re-identify any individual for a story. Risk = max(1/k) across all equivalence classes (the smallest group is most vulnerable).

Marketer Model

The attacker attempts to re-identify as many individuals as possible. Risk = (1/n) * Σ(1/k_i) — the average re-identification probability across all records.

Linkage Attack Categories

Attack TypeDescriptionMitigation
Record linkageMatching pseudonymized records with identified records in external datasets using quasi-identifiersGeneralize quasi-identifiers, enforce k-anonymity
Attribute linkageInferring sensitive attributes from group characteristics even without identifying the individualEnforce l-diversity on sensitive attributes
Table linkageDetermining that an individual is present in a sensitive dataset (membership inference)Apply differential privacy, enforce t-closeness
Composition attackCombining multiple independent pseudonymized releases to narrow equivalence classesTrack cumulative privacy budget, limit releases
Temporal linkageLinking records across time periods using behavioral patterns or trajectory dataApply temporal generalization, add noise to timestamps

Risk Scoring Methodology

Step 1: Technique Assessment (0-100)

Score the pseudonymization technique on five properties:

PropertyWeightScore Range
Key/mapping security30%0-100 based on key management maturity
Brute-force resistance25%0-100 based on input entropy and computational cost
Cross-dataset unlinkability20%0-100 based on determinism and key reuse
Implementation maturity15%0-100 based on library validation and audit history
Operational resilience10%0-100 based on key rotation, backup, disaster recovery

Step 2: Data Environment Assessment (0-100)

Score the data environment on re-identification risk factors:

FactorWeightScore Range
Population uniqueness25%0-100 (higher = more unique = higher risk)
Auxiliary data availability25%0-100 (higher = more auxiliary data = higher risk)
Quasi-identifier count20%0-100 based on number and granularity
Dataset size15%0-100 (smaller datasets = higher risk per record)
Release frequency15%0-100 (more frequent releases = higher composition risk)

Step 3: Residual Risk Score

Residual Risk = Data Environment Risk × (1 - Technique Score / 100)
Residual Risk RangeClassificationAction Required
0-15LowAcceptable. Document and monitor
16-35ModerateAdditional controls recommended
36-60HighTechnique upgrade or data reduction required
61-100Very HighProcessing should not proceed without anonymization

Prism Data Systems AG — Assessment Summary

Data FlowTechniqueTechnique ScoreEnvironment RiskResidual RiskClassification
Analytics pipelineHMAC-SHA256 (keyed)78429.2Low
Support dashboardFPE (FF3-1)82356.3Low
Payment processingTokenization (vault)91555.0Low
Test environmentsSynthetic replacement95201.0Low
Research exportsCounter + k-anonymity725816.2Moderate
ML training dataHMAC + differential privacy85487.2Low

The research exports flow received a "Moderate" classification due to the combination of rich quasi-identifiers in the exported dataset and the counter-based technique's susceptibility to record linkage. Remediation: apply l-diversity (l≥3) on sensitive attributes and generalize quasi-identifiers to achieve k≥11 before export.

Key Regulatory References

  • GDPR Article 4(5) — Definition of pseudonymization
  • GDPR Recital 26 — Anonymization vs. pseudonymization distinction
  • GDPR Article 25(1) — Pseudonymization as a data protection by design measure
  • GDPR Article 32(1)(a) — Pseudonymization as a security measure
  • GDPR Article 89(1) — Pseudonymization for research processing safeguards
  • ENISA "Pseudonymisation Techniques and Best Practices" (November 2019)
  • ICO Anonymisation Code of Practice — Motivated intruder test
  • Article 29 Working Party Opinion 05/2014 (WP216) on Anonymisation Techniques
  • EDPB Guidelines 4/2019 on Article 25 — Pseudonymization as by-design measure

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Implements 42 CFR Part 2 protections for substance use disorder patient records. Covers written consent requirements stricter than HIPAA, re-disclosure prohibition, court order procedures, qualified service organization agreements, and 2024 amendments aligning Part 2 with HIPAA. Keywords: 42 CFR Part 2, substance use disorder, SUD records, re-disclosure, consent, Part 2 amendments.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

Evaluates and implements age estimation and verification technologies for online services. Covers facial age estimation, digital ID verification, self-declaration with risk assessment, AI-based age estimation, and the accuracy versus privacy tradeoff. Includes ICO guidance and euCONSENT framework. Keywords: age verification, age estimation, facial analysis, digital ID, children, online safety.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

Preparing EU AI Act compliance documentation for high-risk AI systems. Covers Annex III classification, technical documentation under Art. 11, conformity assessment, risk management systems, and CE marking requirements. Keywords: EU AI Act, high-risk AI, Annex III, conformity assessment, CE marking.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

Implements GDPR Art. 22 automated decision-making and AI Act Art. 14 human oversight requirements for AI systems. Covers identification of solely automated decisions, meaningful human intervention design, logic explanation mechanisms, and contestation procedures. Keywords: Art. 22, automated decision, human oversight, AI Act, profiling, contestation.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

mukul975 のスキルをすべて見る

このスキルの問題を報告する