Data Desensitization
Data desensitization refers to transforming, substituting or generalizing sensitive information so that the data no longer points to a specific individual during circulation and testing, without destroying its usability. It is the most basic link in the data compliance chain, sitting between collection and use, and determines whether a dataset can be handed to a third party or enter a test environment.
Core Principles
The fundamental difficulty of desensitization is the tension between privacy and utility. The more thorough the transformation, the safer, but the more easily statistical regularities and business characteristics are lost. Around this tension the industry has formed several mature methodologies.
k-anonymity is the most classic model. It requires that each record in the published data have at least k minus one records identical to it on the quasi-identifiers, so that an individual cannot be singled out from the group. Implementation includes generalization and suppression, for example generalizing the age of 27 to "25 to 30" and merging or deleting extremely rare postal codes. But k-anonymity cannot prevent homogeneity attacks and background knowledge attacks: if the disease field of the k records in the same group is identical, the attacker already knows the conclusion even without knowing which record it is.
l-diversity requires that the sensitive attribute in each equivalence class have at least l distinct values, closing the gap of homogeneity attacks. t-closeness further requires that the distribution of the sensitive attribute be statistically close to the distribution of the whole table, preventing the attacker from inferring from a skewed distribution. Differential privacy is another route: instead of altering individual records, it adds noise to query results, mathematically bounding the maximum influence any single record can have on the output.
In terms of processing form, desensitization is static or dynamic. Static desensitization rewrites the data once at export time, suitable for development, testing and data sharing; dynamic desensitization masks in real time by role at query time, suitable for operations and customer service in production. Common techniques include masking, substitution, numeric offset, encryption, tokenization and pseudonymization.
Key Points
Difference between pseudonymization and anonymization: pseudonymization replaces identifiers with codes but keeps a mapping table, so the data is still personal information and remains subject to personal information protection rules under the GDPR framework; anonymization thoroughly removes identifiability irreversibly and in theory leaves the scope of personal information, but in practice "complete anonymity" is extremely hard to prove rigorously.
Quasi-identifier recognition: names and ID numbers are often handled first, while combinations of date of birth, gender and postal code are where de-identification most often fails; famous cases show that a few fields combined can re-identify an individual.
Format-preserving and statistics-preserving: test environments often need format-preserving desensitization so that program logic is not broken; analysis scenarios care more about distribution fidelity and must assess the statistical bias after transformation. k-anonymity sacrifices detail and l-diversity sacrifices correlation, and any choice must state its cost in the specific scenario.
Common Misconceptions
First, treating pseudonymization as anonymization, thinking that once names are removed the data is no longer personal information. Second, handling only obvious identifiers and ignoring quasi-identifier combinations, with k set too low so that re-identification risk remains high. Third, ignoring multi-table linkage: after a single table is desensitized, it can still be restored by joining with other tables through order numbers, so consistent desensitization is required.
Application Scenarios
Construction of development and test data, data analysis and modeling, third-party data sharing, display of customer service and operations tickets, publication of research data, and log retention and auditing.