Contact

Data Protection by Design: Data Protection Engineering Rules (½)

3

min read

Executive Summary

  • Data Protection Engineering translates GDPR privacy principles into concrete technical measures
  • ENISA published a comprehensive report on Data Protection Engineering in January 2022
  • Key techniques: encryption, pseudonymisation, access control, data minimisation by design
  • Part 1 covers foundational concepts and the mapping between GDPR principles and engineering controls

Data Protection Engineering can be perceived as part of data protection by design and by default. It aims to support the selection, deployment and configuration of appropriate technical and organisational measures to implement GDPR requirements. ENISA launched a comprehensive report on this topic in January 2022. This first part covers foundational concepts and the mapping of GDPR principles to engineering controls.

Data Protection Engineering can be perceived as part of data protection by Design and by Default. It aims to support the selection, deployment and configuration of appropriate technical and organizational measures in order to satisfy specific data protection principles. Undeniably it depends on the measure, the context and the application and eventually it contributes to the protection of data subjects’ rights and freedom.

In this regard, ENISA (the European Union Agency for Cybersecurity) has launched ‘Data Protection Engineering: From Theory to Practice’ in January 2022. The report presents existing security technologies and techniques and discusses possible strengths and applicability in relation to meeting data protection principles as set out in Article 5 GDPR.

The rest of this article talks about the report’s solutions and mentioned techniques in regard to anonymization and data masking, taking into account the relation between data protection engineering with data protection by design. Each of the presented solutions must be adapted according to the type of data, the processing operation, the context and the possible attack models. We should not assume that a general scheme can be applied to all use cases or that such a scheme would be able to provide full and unlimited protection. This is applicable to every technique and technology discussed from now on.

Anonymisation and Pseudonymisation

Anonymisation and pseudonymisation are two very well-known techniques that are widely used to practically implement data protection principles such as data minimization. Pseudonymisation is also explicitly mentioned in the GDPR as technique that can support data protection by design (Art. 25 GDPR) and security of personal data processing (Art. 32 GDPR). However, these are often confused, when in fact there is an important difference among them. On the one hand, anonymous information refers to information which does not relate to an identified or identifiable natural person – and, thus, anonymous data are not considered as personal data. On the other hand, pseudonymised data is personal data and can be (re)attributed to a natural person with the use of additional information.

Anonymisation

Data anonymisation is an optimization problem between two conflicting parameters: data utility and re-identification protection. This is achieved by altering the data, either by noising or by generalizing. Providing strong re-identification protection usually requires to strongly alter the dataset and therefore negatively impact its utility. Data anonymization therefore entails finding the best trade-off between these two parameters; and this trade-off often depends on the application and the context (i.e., how the dataset is distributed and used).

k-Anonimity

The k-anonymity model was introduced in the early 2000s and it is built on the idea that by combining sets of data with similar attributes, identifying information about any one of the individuals contributing to that data can be obscured. A dataset is considered to provide k-anonymity protection if the information for each data subject contained in the dataset cannot be distinguished from at least k-1 data subjects whose information also appears in the dataset. The key concept is to address the risk of re-identification of anonymized data through linkage to other available datasets.

For example, to anonymise the data of Table 1, several techniques are possible such as deletion or generalization. In this example, the attribute Gender was kept unmodified as it was considered important for the study of medical conditions. Furthermore, the Zip Code of the user’s address and the Year of Birth attributes were generalized by retaining only the department zip code and by using intervals of 10 years, respectively. Attempting to k-anonymize the data with a k value of two (2) and with respect to the quasi-identifier {Zip Code, Year of Birth, Gender} the initial data set is transformed to table, because for each triplet of values, there are at least two entries in the table corresponding to it, as presented in Table 2.

Differential Privacy

Differential privacy (DP) allows to study larger statistical trends in the dataset but protects data about individuals who participate in the dataset. This is not an anonymisation technique per se, but a model on which anonymisation techniques can be developed and allows to quantify a risk of re-identification.

To make a process differentially private, it has to be modified a little bit by, typically, some randomness or noise. This noise has to be calibrated by choosing the key parameter ε and a sensitivity. A person must choose the smallest possible one that leads to acceptable utility and privacy.

For example, let’s assume that a city wants to publish the number of individuals that suffer from a specific chronic disease. This publication can take the form of a histogram where each bucket corresponds to the count of suffering individuals in a given district. Each individual can at most influence one of these buckets by the value 1 (an individual suffers or does not suffer from the disease and only live in one district). The sensitivity is then 1.

Data Masking

Masking is a broad term which refers to functions that when applied to data, they hide their true value. The main usability of masking with regards to data protection principles is integrity and confidentiality (security) and depending on the technique or the context of the processing operation it can also include accountability and purpose limitation. The most prominent examples are encryption and hashing. This also covers additional techniques, some of which will be discussed within this section.

Homomorphic Encryption

Homomorphic encryption allows computations on encrypted data to be performed, without having to decrypt them first. The typical use case for homomorphic encryption is when a data subject wants to outsource the processing of her personal data without revealing the personal data in plaintext. Such functionalities are suited when processing is performed by a third party such as a cloud service provider.

There are two types of homomorphic encryption: partially and fully. Partially Homomorphic Encryption (PHE) is where only a single operation can be performed on cipher text, for example, addition or multiplication. Fully Homomorphic Encryption (FHE) on the other hand can support multipliable operations (currently addition and multiplication), allowing more computation to be performed over encrypted data. Homomorphic encryption is currently a balancing act between utility, protection, and performance. FHE has good protection and utility but poor performance. PHE on the other hand has good performance and protection, but its utility is very limited. There is however a catch; the performance of FHE is quite inefficient, where simple operations can take anywhere from seconds to hours depending on security parameters.

Secure Multiparty Computation

The concept of secure multiparty computation (SMPC) attempts to solve problems of mutual trust among a set of parties by distributing a computation across these parties where no individual party can see the other parties’ data. Protocols of secure two-party computation, can for example calculate functions over the input data of two parties, without revealing the input data of one party to the other party. The most prominent example of SMPC is found in blockchain technology: a set of parties, called “miners”, have to determine and agree upon the next block to append to the blockchain ledger. This problem can be separated into two sub-tasks:

a)Determine a valid block (or set of blocks) to append to the blockchain, and

b)Agree with all other miners on the blockchain that this new block is the one to be appended.

Task a) can be done individually by each miner. This task consists in finding a valid hash value that fulfils a set of requirements by means of brute-force search (this is actually the power consumptive part of the blockchain technology), and does not involve multiple parties yet. Once a miner finds and announces such a valid hash value, the majority of miners have to reach consensus that this hash – and its new block of transactions – is to be appended to the blockchain. This task is similar to a prominent variation of SMPC, Lamport’s Byzantine Agreement protocol.

Within the Byzantine Agreement, the computation extends to multiple parties and it presents itself as an auction where participants can place bids without revealing their bids. A real-life application can be seen in Denmark where Danish farmers determine sugar beet prices among themselves without the need for a central auctioneer.

Depending on the exact protocol chosen, secure multi-party protocols support the privacy protection goals of confidentiality (as the inputs of other parties are not revealed) and integrity (as even inside or external attackers cannot easily change the protocol output). This approach also fosters transparency as to what type of processing is applied to the input data. On the downside, it is far from trivial to manually override the result of a secure multi-party computation in case of errors. If, for instance, an e-mail address is written to a block of the blockchain, and its hosting block is agreed upon by the consensus protocol among the miners, it becomes a part of the blockchain forever.

Trusted Execution Environments

Trusted execution environment (TEE) can play a key role in protecting personal data by preventing unauthorized access, data breaches and use of malware. This environment is tamper-resistant processing on the main processor of a device. Running parallel to the operating system and using both hardware and software, a TEE is intended to be more secure than the traditional processing environment. The TEE resists against software attacks as well as the physical attacks performed on the main memory of the system. Unlike dedicated hardware coprocessors, TEE is able to easily manage its content by installing or updating its code and data.

TEEs enable clients to attest and verify the code running on a given server. In particular, when the verifier knows which binary code should run in the secure enclaves, TEEs can be used to verify that a device is running the correct code (code integrity). For example, in a federated learning setting, TEEs and remote attestations may be particularly helpful for clients to be able to efficiently verify key functions running on the server, such as secure aggregation or shuffling.

Private Information Retrieval

Private information retrieval (PIR) is a cryptographic technique which allows a user to recover an entry in a database without revealing to the data custodian (such as the owner or administrator of the database) which element has been queried. This is why it can be used as a data minimization technique by data controllers. 

Let’s assume that a company wants to provide access to a database to its customers. In a default setting, each time a customer makes an access to the database, the data custodian knows which entry has been accessed. Over time, the data controller will be able to identify which database entries are of interest to the customers. By implementing private information retrieval, the data controller minimizes the amount of information revealed on what was accessed PIR prevents the data controller from learning which entries have been accessed.

There are two main models of private information retrieval. The first model is Computational Private Information Retrieval and there is only one server storing the database. This model is considered to provide better level of protection but has limitations with regards to the connections that can be established to the server and the database. In the second model, Information Theoretic Private Information Retrieval, the database is stored on several servers which are controlled by different owners. This model allows for better communication complexity, but it is assumed that the servers do not collude or exchange information.

Synthetic Data

Synthetic data is a new area of data processing in which data are elaborated in a way that they realistically resemble real data (both personal and non-personal), but actually they do not refer to any specific identified or identifiable individual, or to the real measure of an observable parameter in the case of non-personal data. For example, they may be entirely simulated data with the goal of testing services or software applications. Alternatively, they can be personal data, which are manipulated in a way to limit the potentials for individuals’ re-identification.

By using synthetic data, a controller will be respectful of individuals’ confidentiality, as they differ from real data and the generation and processing of synthetic data does not invade the personal sphere of data subjects. However, this choice may introduce issues in terms of data accuracy. So controllers will always need to reconcile a tension between different data protection principles, especially if the result of the processing entails consequences (i.e. legal or health consequences) for data subjects. Synthetic data should always be adopted having in mind the necessity to explore with a trial-and-error approach whether their use actually generates more accurate and unbiased estimates over time. In this perspective, synthetic data are privacy engineering tools that can provide granular data without sacrificing data subjects’ privacy and confidentiality.

 

For more information about privacy by design and privacy engineering, you can contact us at [email protected]

Key Takeaways

  • Data Protection Engineering maps each GDPR principle to concrete technical controls
  • Encryption: AES-256 at rest, TLS 1.3 in transit, E2E for communications
  • Pseudonymisation: keyed hashing with salt, tokenisation, separate key management
  • Access control: RBAC/ABAC + Zero Trust + MFA for sensitive data access
  • Immutable audit logs for all data access — foundation of accountability engineering

Clarity for informed decisions

Understanding the relevant risks, responsibilities, and objectives provides the necessary perspective for setting priorities and strengthening organizational resilience

What implications might this have for existing activities and processes?

Understanding the implications for activities, processes, responsibilities, organizational objectives, and decisions is the foundation of an informed and sustainable approach.

Effective risk management requires clear responsibilities, appropriate processes, and monitoring mechanisms that are commensurate with the level of exposure.

Clear roles and coordination mechanisms contribute to the coherence and sustainability of decisions.

Regular assessments of processes, responsibilities, and control mechanisms provide the necessary foundation for strengthening organizational resilience and governance.

Featured article

Recommended articles

NIS2 in Romania: First DNSC Fine for Failure to Notify. What Organisations Need to Know About Compliance

Cybersecurity

ENISA findings and risks for NIS2 companies

Cybersecurity