Morocco Data Breach Notification Law: What Law 09-08 and Law 05-20 Require
Morocco's Law 09-08 sets a data security duty; Law 05-20 sets incident reporting for named groups. What the official texts say, and what to check.

Who has to report a cyber incident in Morocco, and to whom? Two laws matter. Law 09-08 (2009) requires anyone who handles personal data to protect it with appropriate security measures (Article 23). In the official text published on the data protection commission's site, we did not find a general duty to report a breach. Law 05-20 on cybersecurity (2020) does require incident reports to the national authority, but only from named groups: state entities, critical infrastructure, network and internet operators, and digital service providers.
Sources checked 3 December 2026.
This article is by CyphrQ.ai. It reads the official French texts of both laws and the national cybersecurity authority's own incident page. It is a plain-language summary for general information, not legal advice. Whether a duty applies to your organisation depends on facts we cannot see; confirm with the authorities or a Moroccan lawyer.
Which laws make up Morocco's data breach notification rules?
There are two, and they do different jobs.
| Law 09-08 | Law 05-20 | |
|---|---|---|
| Subject | Protection of individuals when their personal data is processed | Cybersecurity of information systems |
| Official publication | Dahir 1-09-15 of 18 February 2009, Bulletin officiel No. 5714 of 5 March 2009 | Dahir 1-20-69 of 25 July 2020, Bulletin officiel No. 6906 of 6 August 2020 |
| Supervisor named in the text | National Commission for the Control of the Protection of Personal Data (CNDP) | "National authority", designated by regulation |
| Core duty relevant here | Appropriate technical and organisational security (Article 23) | Declare incidents to the national authority (Articles 8, 30 and 33) |
Sources: Law 09-08, official text on the CNDP site and Law 05-20, Bulletin officiel No. 6906, on the DGSSI site.
What does Law 09-08 require after a personal data breach?
Article 23 is the security article. It says the controller must put in place appropriate technical and organisational measures to protect personal data against accidental or unlawful destruction, accidental loss, alteration, disclosure or unauthorised access, including when data travels over a network. The measures must give a level of security suited to the risks and to the nature of the data, taking account of the state of the art and the cost.
Three more points in the same article matter to IT teams:
- If someone else processes the data for you, you must choose a processor that gives sufficient security guarantees, and you must make sure those measures are followed.
- The processing must be covered by a contract or legal act, under which the processor acts only on your instructions and carries the same security obligations.
- The contract elements and the security requirements must be recorded in writing or an equivalent form, to keep evidence.
Article 24 adds a list of access, media, transmission and input controls for controllers who handle sensitive or health data.
We searched the French text for a duty to notify the CNDP or the people affected when a breach happens, and did not find one. Other rules, sector rules or CNDP decisions may apply, so ask the CNDP or counsel instead of relying on our reading alone. The CNDP's own site lists how to reach it, including the number 3020, on its security page.
What does Law 05-20 require, and who must report?
Law 05-20 sorts organisations into groups, and the reporting duty differs by group. Article 1 names them: public-sector "entities", critical infrastructure ("infrastructures d'importance vitale"), and "operators", meaning public telecom network operators, internet access providers, cybersecurity service providers, digital service providers and internet platform publishers.
| Who | What the law says | Article |
|---|---|---|
| Each state "entity" (administrations, local authorities, public bodies) | Declare to the national authority an incident affecting the security or operation of its information systems, as soon as it becomes aware of it. Supply further information without delay if asked. | 8 |
| Telecom network operators, internet access providers, cybersecurity providers, digital service providers, platform publishers | Inform the national authority without delay when they detect events likely to affect the security of their customers' systems | 30 |
| Digital service providers | Declare, as soon as they become aware, incidents affecting the networks and systems needed to provide their services, where the information they hold shows a significant impact on the service | 33 |
The same operators must also inform their customers of the vulnerability of their systems or of an attack that could affect them (Article 27).
Two details are easy to miss. The law gives no fixed number of hours: the wording is "as soon as" or "without delay". And the national authority sets the technical details and the way reports are sent (Article 8, last paragraphs). For an operational answer, use the authority's own guidance.
Where do you report a cyber incident in Morocco?
Law 05-20 says the national authority is "designated by regulation". The General Directorate of Information Systems Security (DGSSI) runs an incident-declaration page for its response centre, maCERT. The page calls on public administrations, public bodies and critical infrastructure to declare any cyber incident immediately, using the declaration form it provides, and it lists the types of incident it means: unauthorised access (intrusion), denial of service, data exfiltration, malicious code, phishing and website defacement (DGSSI incident declaration page). Use the contact details and form on that page rather than from any third party.
What penalties does the text set?
Both laws set fines in Moroccan dirhams (DH). Figures below are quoted from the official texts.
- Law 05-20, Article 50: a fine of 100,000 to 200,000 DH for anyone who fails the incident-declaration duties in Articles 8, 30 and 33. Article 52 doubles penalties for a repeat offence within 4 years of a final conviction or the end of the sentence.
- Law 05-20, Article 49: a fine of 200,000 to 400,000 DH for, among other things, hosting sensitive data outside national territory (Article 11), or running a sensitive system at a critical infrastructure without the security approval required by Article 19.
- Law 09-08, Articles 53 to 56: fines of 20,000 to 200,000 DH, and for some offences three months to one year of prison, for refusing data subject rights, unlawful collection, or keeping data too long.
Which article applies to a given facts pattern is a legal question. Ask counsel.
Going deeper: for security and IT teams
Read the scope before the clock. Law 05-20 does not apply one reporting rule to everyone. A private retailer holding customer records is not, on the face of Article 1, an "entity", a critical infrastructure or an "operator", so Law 05-20's incident duties may not reach it directly; Law 09-08's security duty still does. A cloud or software provider may be a "digital service provider" under Article 33; counsel decides. Map each system and supplier to a group in writing, and have counsel confirm it. Confirm with the DGSSI or counsel whether your organisation counts as critical infrastructure; do not assume.
Build a reporting trigger around the legal wording. The text uses three triggers, and your runbook should too:
- "As soon as it becomes aware" (Articles 8 and 33): the clock starts at awareness, not at confirmation. Define who in your team can declare "aware" and how fast.
- "Without delay" (Article 30): operators who detect events affecting customers' systems.
- "Significant impact" (Article 33): digital service providers should record the facts they used to judge whether an impact was significant, because the duty depends on the information they hold.
Evidence and logs are a legal topic here. Article 26 tells operators to follow the national authority's directives on keeping the technical data needed to identify any incident: connection data, computer logs and traces of security events from operating systems, applications and security products. It sets the retention period at one year, which regulation may change. If you are an operator, check that your log retention is at least a year and that you can produce it on request. Even outside that group, a year of logs is a sensible target when an intrusion can go unnoticed for weeks.
Sensitive data location. Article 11 requires sensitive data to be hosted exclusively on national territory, and Article 12 requires a Moroccan-law contract for outsourcing a sensitive system, with commitments on information protection, auditability and reversibility. Article 10 makes a provider of an outsourced sensitive system follow the national authority's rules. For procurement teams, these are contract clauses to check, not suggestions.
Supplier clauses under Law 09-08. Article 23 paragraphs 2 to 4 translate directly into a processor contract checklist: instructions-only processing, security obligations passed down, written record of the security requirements.
What the national authority itself lists as incident types. The DGSSI page names six: intrusion, denial of service, data exfiltration, malicious code, phishing and website defacement. Use them as the categories in your incident taxonomy so your internal tickets map to what you would declare.
Questions to ask your own team:
- Which of our systems and suppliers fall under Law 05-20 groups, and who decided?
- Who can declare awareness, and who files the declaration form?
- Can we show a processor contract that meets Article 23?
- Do we keep a year of security logs where Article 26 applies?
- Does any sensitive data sit outside national territory (Article 11)?
Key takeaways
- Morocco has two relevant laws: Law 09-08 (personal data security, Article 23) and Law 05-20 (cybersecurity incident reporting).
- In the CNDP's published text of Law 09-08, we found a security duty but no general breach-notification article. Confirm with the CNDP or counsel.
- Law 05-20 requires incident declaration to the national authority from state entities (Article 8), network and internet operators (Article 30) and digital service providers (Article 33).
- There is no fixed hour count in the text: the wording is "as soon as" or "without delay".
- Fines under Law 05-20 for missing a declaration run from 100,000 to 200,000 DH (Article 50).
- This week: map your systems and suppliers to the Law 05-20 groups, name who can declare an incident, and check your processor contracts against Article 23.
This is general information, not legal advice. Laws and regulations change; check the current text and the authorities' guidance before you act.
Sources
- Bulletin officiel No. 5714 via the CNDP: Law 09-08 and Dahir 1-09-15, official text
- CNDP: Security of information systems page
- Bulletin officiel No. 6906 via the DGSSI: Law 05-20 on cybersecurity and Dahir 1-20-69
- DGSSI: Incident declaration page
Spotted a mistake? Report a correction.