Privacy concerns the right of people to control how their personal data is collected, used and shared. The cloud makes this harder, because the data is held by another party in unknown places.

Privacy Challenges in the Cloud

Loss of control: the customer does not control where the data is, or who handles it. Data location and sovereignty: data may be stored in other countries, with different laws. Multi-tenancy raises the risk of exposure to other tenants. Third parties and sub-processors may have access. Unauthorised secondary use, such as use of data for advertising. Difficulty in deletion, since copies and backups exist. Government access to data under foreign law. Lack of transparency about practices.

Data Protection Techniques

Encryption protects data at rest and in transit. Access control and least privilege limit who can read it. Data masking hides parts of a value, such as showing only the last four digits of a card. Anonymization removes the identity from data so that people cannot be traced, and pseudonymization replaces identifiers with codes, which can be reversed with a separate key. Tokenization swaps sensitive data for a random token. Data minimization collects only what is needed. Data classification labels data as public, internal, confidential or restricted, and sets the controls for each. Backup and recovery protect against loss. Secure deletion destroys data, in part by crypto-shredding, which deletes the key. Data loss prevention (DLP) tools detect and block leaks. Logging and audit record access.

Definition: Anonymization. The process of removing or altering personal identifiers in data so that the individuals cannot be identified, directly or indirectly.

Advanced Techniques

Homomorphic encryption allows computing on encrypted data without decrypting it. Confidential computing protects data in use inside a secure hardware area. Differential privacy adds noise to results so that no single person can be identified.

Personal Data and Its Kinds

Personal data is any information that relates to an identified or identifiable person, such as a name, phone number, address or online identifier. Sensitive personal data needs more care, and includes health records, financial details, passwords, biometric data and beliefs. A cloud customer should first find out what personal data it holds, where it is kept and who can reach it, since a duty of protection cannot be met for data that is not known. A data inventory and a privacy impact assessment done before a new service is used help to find risks early and to choose suitable controls.

Table 3.3: Data protection techniques

Technique What it does Example
Masking Hides part of a value XXXX-XXXX-1234
Pseudonymization Replaces identity with a code Name to ID 4821
Anonymization Removes identity for good Aggregate statistics
Tokenization Swaps data for a token Card number to token

Example 3.3: Masking a card number

Problem: Write a function to mask a 16-digit card number, so that only the last four digits show.

Solution:

  1. Take the last four digits.
  2. Replace the rest with X.
  3. Join them.

Result: The masked number shows XXXXXXXXXXXX3456 for the sample.

def mask(n):
    return "X" * (len(n) - 4) + n[-4:]
print(mask("4111111111113456"))

Output

XXXXXXXXXXXX3456

Common mistakes

  • Treating pseudonymized data as fully anonymous. It can be reversed with the key.
  • Collecting more personal data than is needed.
  • Deleting data in the main store but leaving copies in backups.

Key takeaways

  • Privacy challenges include loss of control, data location and third parties.
  • Techniques include encryption, masking, anonymization, tokenization and minimization.
  • Classification sets the level of protection.
  • Crypto-shredding deletes data by destroying the key.

Practice questions

  1. What is data masking?
  2. Distinguish anonymization and pseudonymization.
  3. What is data minimization?

Answers to the practice questions

  1. Hiding part of a value, such as showing only the last four digits of a card number.
  2. Anonymization removes identity for good, pseudonymization replaces it with a code that can be reversed with a separate key.
  3. Collecting and keeping only the personal data that is needed for the purpose.

Sources

  • Official BCA syllabus Cloud Computing, course code 25BCA405DS03, Unit III