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

anonymization-alternative

Evaluates anonymization as a retention alternative under GDPR Recital 26, applying the WP29 Opinion 05/2014 techniques including randomization and generalization. Validates anonymization effectiveness using k-anonymity, l-diversity, and t-closeness metrics. Activate for anonymization, de-identification, k-anonymity, retention alternative queries.

インストール方法を見る

含まれるファイル(5)

  • SKILL.md16.0 KB
  • assets/template.md2.1 KB
  • references/standards.md3.2 KB
  • references/workflows.md3.4 KB
  • scripts/process.py11.8 KB

SKILL.md(原文)

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

Anonymization as Retention Alternative

Overview

Anonymization transforms personal data into a form that no longer identifies or can reasonably be used to identify a natural person. Under GDPR Recital 26, truly anonymized data falls outside the scope of the regulation, meaning it can be retained indefinitely without a legal basis, without data subject rights applying, and without counting toward retention period obligations. However, achieving genuine anonymization — as opposed to mere pseudonymization — requires rigorous application of techniques validated against re-identification risk. This skill provides the assessment framework, implementation techniques, and validation methods for using anonymization as an alternative to deletion when retention of aggregate or statistical data serves a legitimate purpose.

Legal Foundation

GDPR Recital 26 — Anonymized Data Outside GDPR Scope

"The principles of data protection should therefore not apply to anonymous information, namely information which does not relate to an identified or identifiable natural person or to personal data rendered anonymous in such a manner that the data subject is not or no longer identifiable. This Regulation does not therefore concern the processing of such anonymous information, including for statistical or research purposes."

The critical test: whether the data subject is identifiable, taking into account "all the means reasonably likely to be used" either by the controller or "any other person" to identify the natural person.

Article 29 Working Party Opinion 05/2014 on Anonymization Techniques (WP216)

Adopted 10 April 2014, this Opinion establishes that effective anonymization must prevent:

  1. Singling out: Isolating some or all records which identify an individual in the dataset.
  2. Linkability: Linking at least two records concerning the same data subject (within the same dataset or between two separate datasets).
  3. Inference: Deducing, with significant probability, the value of an attribute from the values of a set of other attributes.

The Opinion evaluates randomization and generalization techniques against these three risks.

ICO Anonymization Code of Practice (Updated Guidance)

The ICO provides guidance on anonymization, emphasizing the "motivated intruder" test: could a reasonably competent person with access to resources such as the internet, public libraries, and public records re-identify individuals in the dataset?

Anonymization vs. Pseudonymization

CharacteristicAnonymizationPseudonymization
GDPR statusOutside GDPR scope (Recital 26)Still personal data (Art. 4(5))
ReversibilityIrreversible — no means to re-identifyReversible — additional information can re-identify
RetentionCan be retained indefinitelySubject to retention schedule
Data subject rightsDo not applyFully apply
Legal basisNot requiredRequired
Risk of failureIf anonymization is broken, data reverts to personal data status retroactivelyN/A — always personal data
TechniqueRandomization, generalization, suppression, data masking (irreversible)Tokenization, encryption, key-based substitution (reversible)

WP29 Anonymization Techniques

Technique 1: Randomization

Randomization alters the truthfulness of data to break the link between the data and the individual:

MethodDescriptionSingling OutLinkabilityInferenceSuitability
Noise additionAdd random noise to numerical values (e.g., age ± 3 years, salary ± 5%)Partially mitigatesPartially mitigatesMitigatesStatistical analysis where exact values are not critical
PermutationShuffle attribute values within a dataset so that values are no longer linked to the correct recordPartially mitigatesMitigatesPartially mitigatesDatasets where attribute distributions must be preserved but linkages broken
Differential privacyAdd calibrated noise to query results ensuring that the inclusion/exclusion of any single record does not significantly change the outputMitigatesMitigatesMitigatesAggregate analytics, machine learning training data

Technique 2: Generalization

Generalization reduces the granularity of data to prevent identification:

MethodDescriptionSingling OutLinkabilityInferenceSuitability
AggregationReplace individual values with aggregate statistics (mean, median, count)MitigatesMitigatesPartially mitigatesReporting, trend analysis
K-anonymityEnsure that each combination of quasi-identifiers appears in at least k recordsMitigates (if k sufficiently large)Partially mitigatesDoes not mitigateReleasing microdata for research
L-diversityEnsure that within each equivalence class (k-anonymity group), there are at least l distinct values for sensitive attributesMitigatesPartially mitigatesPartially mitigatesDatasets with sensitive attributes
T-closenessEnsure that the distribution of sensitive attributes within each equivalence class is close to the overall distribution (distance ≤ t)MitigatesPartially mitigatesMitigatesDatasets where attribute distribution is sensitive
Top/bottom codingReplace extreme values with threshold values (e.g., age >90 becomes "90+")Partially mitigatesPartially mitigatesPartially mitigatesProtecting outliers in numerical data
Data maskingIrreversibly replace characters (e.g., postcode "SW1A 1AA" → "SW1A ***")Mitigates (for masked fields)Partially mitigatesPartially mitigatesReducing granularity of quasi-identifiers

Technique 3: Suppression

MethodDescriptionEffectiveness
Record suppressionRemove entire records that are unique or quasi-uniqueEliminates singling out for suppressed records
Attribute suppressionRemove entire columns that serve as identifiers or quasi-identifiersEliminates linkability via suppressed attributes
Cell suppressionReplace specific cell values with null where those values contribute to re-identification riskTargeted mitigation of singling out

Anonymization Assessment Workflow

Step 1: Determine Whether Anonymization is Appropriate

[Data Approaching Retention Expiry]
         │
         ▼
[Is there a legitimate purpose for retaining the data in anonymized form?]
   │
   ├── Statistical analysis / reporting ──► Proceed
   ├── Research purposes (Art. 89) ──► Proceed
   ├── Training ML models ──► Proceed (with separate legal basis assessment)
   ├── Historical archiving ──► Proceed
   ├── No legitimate purpose ──► DELETE (do not anonymize for no reason)
   │
   ▼
[Can the purpose be achieved with anonymized data?]
   │
   ├── Yes ──► Proceed to anonymization
   └── No ──► Consider pseudonymization with extended retention (separate assessment)

Step 2: Select Anonymization Technique

Based on the data type and intended use:

Data TypeRecommended Primary TechniqueSecondary TechniqueValidation Method
Structured numerical (age, salary, amounts)Generalization (aggregation) + noise additionTop/bottom coding for outliersK-anonymity (k ≥ 5)
Structured categorical (gender, region, job title)Generalization (hierarchy-based) + suppression of rare valuesPermutationL-diversity (l ≥ 3)
Free text (support tickets, notes)Full suppression of personal identifiers + generalization of quasi-identifiersNamed entity removal + text generalizationManual review sample + automated NER validation
Transactional (purchase history, usage logs)Aggregation to cohort level + noise additionTemporal generalization (day → week → month)T-closeness (t ≤ 0.15) + k-anonymity (k ≥ 10)
Location dataSpatial generalization (precise coordinates → region/city)Cloaking (minimum area containing k individuals)K-anonymity (k ≥ 20 for location)

Step 3: Implement Anonymization

For Orion Data Vault Corp, the standard anonymization pipeline is:

[Source Data — Personal Data Under Retention]
         │
         ▼
[Step 1: Identifier Removal]
   - Remove all direct identifiers: name, email, phone, address, NI number,
     account number, IP address, device ID
   - Remove any unique IDs that could be cross-referenced with other datasets
         │
         ▼
[Step 2: Quasi-Identifier Generalization]
   - Age: Generalize to 10-year bands (18-27, 28-37, 38-47, ...)
   - Postcode: Truncate to outward code only (SW1A 1AA → SW1A)
   - Date of birth: Remove — use age band only
   - Job title: Generalize to job function category
   - Transaction date: Generalize to month-year
         │
         ▼
[Step 3: Apply K-Anonymity]
   - Ensure each combination of quasi-identifiers appears in ≥ k records
   - Target: k ≥ 5 for standard data; k ≥ 10 for sensitive data
   - Suppress records that cannot achieve k threshold
         │
         ▼
[Step 4: Apply L-Diversity (if sensitive attributes present)]
   - Within each equivalence class, ensure ≥ l distinct values for
     each sensitive attribute
   - Target: l ≥ 3
         │
         ▼
[Step 5: Add Noise (for numerical attributes)]
   - Apply calibrated noise (Laplace mechanism for differential privacy)
   - Epsilon (ε) parameter: ε ≤ 1.0 for standard data; ε ≤ 0.1 for sensitive data
         │
         ▼
[Step 6: Validation]
   - Run re-identification risk assessment (see below)
   - If risk > threshold: iterate with stronger parameters
   - If risk ≤ threshold: approve anonymized dataset
         │
         ▼
[Anonymized Dataset — Outside GDPR Scope]
   - Delete source personal data per retention schedule
   - Retain anonymized dataset without retention period constraint
   - Document anonymization process in anonymization register

Step 4: Validate Anonymization Effectiveness

Re-Identification Risk Assessment

TestMethodThresholdAction if Failed
Singling outAttempt to identify unique records using all available quasi-identifiers< 0.05 (5%) probability of singling out any individualIncrease k-anonymity parameter; suppress unique records
LinkabilityCross-reference anonymized dataset with available external datasets (e.g., public records, social media)No successful linkage in test sample (n ≥ 100)Remove additional quasi-identifiers; increase generalization
InferenceAttempt to infer sensitive attribute values from quasi-identifiers within equivalence classesNo attribute can be inferred with > 80% confidenceIncrease l-diversity; apply t-closeness
Motivated intruder test (ICO)Simulate an attack by a motivated individual with access to public resourcesIntruder cannot identify any individual with reasonable effortStrengthen technique parameters; consider full suppression

K-Anonymity Validation Criteria

Dataset SizeMinimum kRationale
< 1,000 recordsk ≥ 10Small datasets are more vulnerable to singling out
1,000 — 100,000 recordsk ≥ 5Standard protection level
> 100,000 recordsk ≥ 3 (minimum); k ≥ 5 (recommended)Larger datasets provide inherent protection
Special category data (any size)k ≥ 10Elevated risk from re-identification of sensitive data
Location data (any size)k ≥ 20Location data is highly re-identifiable (Montjoye et al., 2013: 4 spatiotemporal points sufficient to uniquely identify 95% of individuals)

Anonymization Register

Orion Data Vault Corp maintains a register of all anonymization operations:

ANONYMIZATION REGISTER — Orion Data Vault Corp
(Extract as of 2026-03-14)

┌──────────────┬─────────────────┬────────────┬───────────────┬──────────┬──────────────────┬─────────────┐
│ Anon Ref     │ Source Category  │ Records    │ Technique     │ k-value  │ Re-ID Risk       │ Date        │
├──────────────┼─────────────────┼────────────┼───────────────┼──────────┼──────────────────┼─────────────┤
│ ANON-2025-041│ CAT-005 Web     │ 2.3M       │ Aggregation + │ k=15     │ < 0.01%          │ 2025-12-01  │
│              │ Analytics       │            │ noise addition│          │                  │             │
├──────────────┼─────────────────┼────────────┼───────────────┼──────────┼──────────────────┼─────────────┤
│ ANON-2026-008│ CAT-003 Trans.  │ 450K       │ Generalization│ k=8      │ < 0.02%          │ 2026-02-15  │
│              │ Records         │            │ + l-diversity │ l=4      │                  │             │
├──────────────┼─────────────────┼────────────┼───────────────┼──────────┼──────────────────┼─────────────┤
│ ANON-2026-012│ CAT-009 Support │ 28K        │ Text redaction│ k=5      │ < 0.05%          │ 2026-03-01  │
│              │ Records         │            │ + generalizn. │          │ (manual review   │             │
│              │                 │            │               │          │  validated)      │             │
└──────────────┴─────────────────┴────────────┴───────────────┴──────────┴──────────────────┴─────────────┘

Ongoing Monitoring

Annual Re-Identification Risk Review

Anonymized datasets must be reviewed annually because:

  1. New data sources: Newly available external datasets may enable linkage attacks that were not possible when anonymization was performed.
  2. Technology advances: Improved computation and AI capabilities may reduce the effectiveness of anonymization techniques over time.
  3. Contextual changes: Changes in the population represented by the data may make previously anonymous records identifiable.

If a review determines that anonymization is no longer effective, the organization must either:

  • Apply additional anonymization techniques to restore effectiveness, or
  • Treat the dataset as personal data and apply full GDPR compliance (legal basis, retention schedule, data subject rights).

レビュー

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

同じリポジトリのスキル

概要と使いどころ

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 のスキルをすべて見る

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