Egypt's Data Protection Law 151/2020: What It Means for Your Infrastructure
Most discussion of the law is legal. But compliance succeeds or fails at the infrastructure layer — in logs, encryption and backups.
Law 151 of 2020 on Personal Data Protection is Egypt's first comprehensive legal framework on the subject. Most of what has been written about it is written from a legal angle: definitions, consent, penalties.
This article takes the other angle. Compliance is not achieved in a privacy policy document — it is achieved, or lost, in the infrastructure layer: who can reach the data, whether that is recorded, whether it is encrypted, how long it is kept, and what happens when there is a breach.
This is a technical explanation of the infrastructure impact, not legal advice. For how the law applies to your specific situation, consult a qualified lawyer.
First: does it apply to you?
The law addresses anyone who controls or processes personal data. In practice, any company holding customer names and phone numbers, employee records, patient files or payment data falls within it. That includes small companies, not only large ones.
If you run an ERP, a CRM, an HR system or an online store, the question is not "does it apply?" but "where are the gaps?"
What it means at the infrastructure layer
1. Access control is no longer an internal matter
"Everyone logs in with the same account" used to be an operational problem. It is now also a compliance problem: if you cannot demonstrate who viewed a customer record and when, you do not have access control — you have an open door.
The practical minimum:
- An individual account per user. No exceptions, no shared logins.
- Permissions by role, not by trust.
- Multi-factor authentication on any access from outside the network.
- A documented revocation procedure for the day an employee leaves — not two weeks later.
2. Logs are evidence now, not a diagnostic tool
Most companies keep logs for a week or two because disk space is finite. That is enough to diagnose a fault, and nowhere near enough to scope a breach.
Real incidents are typically discovered months after they begin. A two-week log means you cannot answer the first question you will be asked: which data was exposed, and when?
In practice: retain authentication and access logs for a period measured in months, not days, and collect them somewhere an attacker on the compromised machine cannot edit. A local log the attacker erases is not a log.
3. Encryption: in transit and at rest
Encryption in transit is close to default now. Encryption at rest is the one that gets skipped:
- The server's own disks.
- Backups — the data most likely to leave the building unprotected.
- Laptops carrying extracts of the data.
The practical difference is large. An encrypted disk that is stolen is a security incident and a hardware replacement. An unencrypted one is a data breach with notification obligations.
4. Retention limits — and actually enforcing them
Storage limitation means data is not kept indefinitely. What violates this in practice is rarely the live database. It is:
- Backups going back years with no rotation policy.
- Test databases cloned from production, carrying real customer data.
- Exported spreadsheets on desktops and network shares.
The second is both common and serious: a test environment holding real production data is a complete copy of your sensitive data with substantially weaker protection. Anonymising on copy is a simple step that closes it.
5. Breach notification assumes you can detect a breach
A notification duty implicitly assumes the ability to know you were breached. A company with no logging firewall, no endpoint protection and no log review will not know — and will not notify — not out of bad faith, but out of blindness.
The minimum: a next-generation firewall with logging enabled and retained, centrally managed endpoint protection, and an alert that reaches an actual person — not a dashboard nobody opens.
A practical roadmap
- Inventory the data. Where does personal data live? Write it down. Most companies are surprised by the number of locations.
- Fix identity. Remove shared accounts, assign permissions by role, require MFA for external access.
- Extend and centralise logs. Months, not days, and somewhere separate.
- Encrypt backups. The fastest item on this list to implement, and the highest-impact one when an incident happens.
- Clean up test environments. Anonymise anything cloned from production.
- Write a retention policy and enforce it automatically — a policy the system does not apply on its own is a document, not a control.
Nothing on this list requires a multi-million-pound programme. Most of it is correct configuration of tools you already own, and some of it is a single licence. The gap is usually not budget — it is that nobody has sat down and written the list.
Products mentioned in this article
Sophos XGS 2100 Firewall
Xstream-powered firewall with TLS inspection.
Kaspersky Endpoint Security for Business
Business endpoint protection with central management.
KESB-SELECT- Devices
- From 10 devices upwards
- Platforms
- Windows / macOS / Linux
HPE MSA 2062 Storage Array
Hybrid SAN array for mid-sized businesses.
Further Reading
Remote Access: How Most Ransomware Gets Into Egyptian Companies
The port was opened one afternoon so somebody could work from home, then forgotten. Two years later it is the door ransomware use…
Business Antivirus: Why Free Is Not Enough, and How to Choose
A consumer antivirus on company machines leaves one question unanswered: which machine is actually protected right now, and when …
Sophos XGS 2100 or FortiGate 100F? An honest comparison before you buy
We supply both devices, so recommending one of them would be meaningless. A practical comparison of FortiGate 100F and Sophos XGS…