beginner

Data Protection, Privacy and Backups

Protect information through its life: data classification, encryption in transit and at rest, access control and data loss prevention, privacy principles and the main laws (GDPR, the Nigeria Data Protection Act 2023), handling personal data and breaches, retention and secure disposal, and backup strategy that survives ransomware (3-2-1-1-0).

50 min

Data is what attackers want

Most security work ultimately protects data: customer records, financial information, intellectual property, credentials and health records. Attackers steal it, ransom it, corrupt it or sell it, and regulators fine organisations that lose control of it. Protecting data requires knowing what you have, applying controls that match its sensitivity, respecting the law and people’s privacy, and being able to recover it when something fails.

Know your data

You cannot protect data you cannot find. Build a data inventory (a data map): what data exists, where it is stored (databases, file shares, laptops, SaaS, backups, paper), who owns it, who can access it, where it flows, and why you have it.

Classification

Label data by sensitivity so handling rules are clear. A simple scheme:

Level Meaning Examples Typical handling
Public Safe to share Marketing material, published reports No restrictions
Internal For staff only Internal procedures, org charts Share internally; do not post publicly
Confidential Business-sensitive Contracts, pricing, source code, employee records Need-to-know, encrypted storage and transfer
Restricted Highest sensitivity, legal or severe harm Card numbers, health records, authentication secrets, large customer datasets Strict access, strong encryption, logging, special approval for sharing

Mark documents and systems, define who may access each class, and train people to use it. Automated discovery and labelling tools (Microsoft Purview, Google DLP, open-source scanners) help find sensitive data such as ID numbers or card numbers in unexpected places.

Types of sensitive data

  • Personal data (PII): anything that identifies a living person: name, address, phone, email, national ID, IP address, photographs, location data.
  • Special category / sensitive personal data: health, biometrics, religion, political opinion, sexual orientation, criminal records, children’s data. More protection and stricter conditions.
  • Financial data: bank and card details (PCI DSS governs card data).
  • Authentication secrets: passwords, keys, tokens.
  • Intellectual property and trade secrets.

Protecting data in its three states

State Examples Main protections
At rest Databases, disks, backups, cloud storage Full-disk and database encryption, file/object encryption, access control, key management
In transit Web, email, APIs, VPN, file transfer TLS 1.2+ (prefer 1.3), HTTPS with HSTS, VPN or private links, SFTP, mTLS between services
In use Data loaded in memory, shown on screen Least privilege, screen locks, memory protections, confidential computing for the highest needs

Encryption and key management

Encryption is only as strong as its key management: generate keys securely, store them in a key management service or hardware security module (HSM) rather than beside the data, rotate them, restrict who can use them, log use, and make sure you can recover them (a lost key means lost data). Prefer well-known algorithms (AES-256-GCM, TLS 1.3) and standard libraries; never invent your own. (The Cryptography Essentials lesson covers the building blocks.)

Reduce what you hold

The safest data is data you do not have:

  • Minimise collection and retention (below).
  • Pseudonymise (replace identifiers with tokens, keeping the mapping separately) or anonymise (irreversibly remove identity) where full identity is unnecessary, for example in test and analytics environments.
  • Mask sensitive fields on screen (show only the last four digits) and tokenise card numbers with a payment provider so you never store them.
  • Do not use real production data in development and testing.

Access control and data loss prevention

  • Least privilege and need-to-know for every data store, with periodic access reviews. Group-based access, not personal exceptions.
  • Logging of access to sensitive data (who read what and when) and alerts on unusual bulk reads or exports.
  • Data loss prevention (DLP) tools inspect email, web uploads, endpoints and cloud storage for sensitive data (patterns like card numbers, ID numbers, classification labels) and warn, block or log when it is leaving. They reduce accidental leaks (sending the wrong spreadsheet) and catch some malicious exfiltration, but need careful tuning.
  • Control sharing: review public links and external sharing in cloud drives; restrict forwarding of confidential mail (sensitivity labels and rights management).
  • Insider risk: monitor and limit mass downloads; handle leavers’ data and access promptly.
  • Cloud storage misconfiguration (public buckets) is a leading cause of exposure; use organisation policies and scanning.

Privacy and the law

Privacy is about people’s rights over their personal data; data protection is the set of rules and controls that give them effect. Many countries have laws, and they apply to where the people are, not just where the company is. Two you should know:

  • GDPR (EU General Data Protection Regulation): applies to organisations handling personal data of people in the EU/EEA, with large fines.
  • Nigeria Data Protection Act 2023 (NDPA): Nigeria’s data protection law, overseen by the Nigeria Data Protection Commission (NDPC); it sets lawful bases for processing, data subject rights, duties for data controllers and processors, requirements around data protection officers and impact assessments in some cases, cross-border transfer conditions, and breach notification. Check the Act and NDPC guidance for details that apply to your organisation, and take legal advice.
  • Others: UK GDPR, South Africa’s POPIA, Kenya’s Data Protection Act, California’s CCPA/CPRA, Brazil’s LGPD, and sector rules such as HIPAA (US health) and PCI DSS (cards).

Core principles (common across these laws)

  1. Lawfulness, fairness and transparency: have a valid lawful basis (consent, contract, legal obligation, legitimate interests and so on) and tell people what you do with their data (a privacy notice).
  2. Purpose limitation: use data only for the specified purposes.
  3. Data minimisation: collect only what you need.
  4. Accuracy: keep data correct and up to date.
  5. Storage limitation: keep it no longer than necessary.
  6. Integrity and confidentiality: protect it with appropriate security (the part this course covers).
  7. Accountability: be able to demonstrate compliance: records of processing, policies, training, assessments.

Roles

  • Data subject: the person the data is about.
  • Data controller: decides why and how personal data is processed.
  • Data processor: processes data on the controller’s behalf (a cloud provider, payroll company), under a contract.
  • Data protection officer (DPO): independent adviser where required.

Rights of data subjects

Typically: to be informed, to access their data, to correct it, to erase it in some circumstances, to restrict or object to processing, to data portability, and to challenge solely automated decisions. Organisations need a process to receive and answer requests within the required time (often one month).

Privacy by design and DPIAs

Build privacy in from the start (privacy by design and by default): collect the minimum, make the private option the default, and run a data protection impact assessment (DPIA) for high-risk processing (large-scale sensitive data, new technologies, systematic monitoring).

Transfers, vendors and children

  • Cross-border transfers may need safeguards or a legal mechanism.
  • Vendors: assess them, sign data processing agreements, and keep a list of sub-processors.
  • Children’s data has additional protections and consent rules.

Personal data breaches

A personal data breach is a security incident that leads to accidental or unlawful destruction, loss, alteration, unauthorised disclosure of, or access to personal data. Many laws require you to notify the regulator within a short time (commonly 72 hours of becoming aware) where there is a risk to individuals, and to notify affected individuals without undue delay where the risk is high. Maintain a breach register even for incidents you decide not to report, and record the reasoning. Prepare in advance: know who decides, who drafts notifications, and which facts you will need (what data, how many people, likely consequences, measures taken). See the incident response lesson. Take legal advice on the exact obligations that apply to you.

Retention and secure disposal

  • Set a retention schedule: how long each kind of data is kept and why (legal, tax and contract requirements versus the principle of keeping it no longer than necessary). Apply it, including to backups and archives.
  • Delete securely when time is up: cryptographic erase or secure overwrite for drives, physical destruction for failed media, certified disposal services with certificates, and wiping devices before reuse or resale. Deleting a file normally does not remove the data.
  • Include paper: shredding, clear-desk practice, locked disposal bins.
  • Remember copies: exports, email attachments, test databases, cloud snapshots.

Backups: your last line of defence

Backups protect against hardware failure, mistakes, ransomware, malicious insiders and disasters. They are only useful if they work and if an attacker cannot destroy them.

The 3-2-1-1-0 rule

  • 3 copies of your data (the original plus two backups),
  • on 2 different kinds of storage media,
  • with 1 copy offsite (another site or region),
  • 1 copy offline, air-gapped or immutable (cannot be changed or deleted, even by an administrator),
  • and 0 errors: backups are verified, and restores are tested.

Design points

  • Decide RPO and RTO for each system (how much data loss and downtime are tolerable) and pick backup frequency and technology to match.
  • Types: full, incremental and differential backups, plus snapshots and continuous replication. Replication is not a backup: it copies deletions and corruption instantly.
  • Protect the backups: separate credentials from the production domain, MFA on the backup console, immutable object storage (object lock/WORM), network isolation, and monitoring and alerts for deletions or changed retention.
  • Encrypt backups and manage the keys separately, but ensure the key is available for a disaster restore.
  • Cover everything that matters: databases, file shares, configuration, identity systems (Active Directory), cloud workloads, SaaS data (Microsoft 365 and Google Workspace do not automatically give you point-in-time recovery of everything), endpoints and encryption keys.
  • Test restores regularly: restore real data to a test environment, check integrity, and time it against your RTO. Document the procedure so someone else can do it under pressure.
  • Retain enough history to recover from corruption you notice late (ransomware may lie dormant, and a silent change may go unnoticed for weeks).
  • Plan the order of recovery (identity and networking before applications).

Putting it together: a data protection checklist

  • Data inventory and classification exist, with owners
  • Sensitive data encrypted in transit and at rest, with managed keys
  • Access is least privilege, reviewed, and logged for sensitive data
  • DLP and sharing controls reduce accidental and malicious leaks
  • Privacy notice, lawful bases, records of processing and a process for data-subject requests
  • Contracts with processors; vendor assessments
  • Breach response and notification process rehearsed
  • Retention schedule applied; secure disposal procedures
  • 3-2-1-1-0 backups, immutable copy, tested restores
  • Training for staff handling personal data
A developer copies a production customer database (names, phone numbers and addresses) to a laptop to debug a problem. What risks does this create and what is a better approach?

Real personal data now sits on an unmanaged, possibly unencrypted device, outside access controls and retention, which risks a breach and violates minimisation and purpose limitation. A better approach is to use masked, pseudonymised or synthetic data in development and testing, restrict and log production access, and, if access to real data is unavoidable, do it on a managed, encrypted environment with approval and secure deletion afterward.

Can You Explain It?

Close the lesson and answer these without looking back. The goal isn't the wording — it's whether you've formed a usable mental model.

  • Describe four data classification levels and one handling rule for each.
  • List the core privacy principles and explain data minimisation with an example.
  • Explain the 3-2-1-1-0 backup rule and why replication alone is not a backup.

🧪 Want to practise this on your own computer? See how to set up your lab →

🤖

Need clarification? Ask GT

Hi, I'm GT — your AI tutor for Data Protection, Privacy and Backups. What would you like to know?
📝

Knowledge Check

1 of 4

What is the purpose of classifying data (for example Public, Internal, Confidential, Restricted)?

Report a problem

About: /lessons/data-protection-privacy-and-backups