Independent cyber news · Morocco21 November 2026
MaroCyber
News

Law 05-20: how Morocco gave itself a cybersecurity law in July 2020

In July 2020 Parliament unanimously adopted Law 05-20, setting security, incident reporting and data hosting duties for public bodies and vital infrastructure.

Key points

  • The Council of Ministers approved draft Law 05-20 on cybersecurity on 6 July 2020. The House of Representatives and the House of Councillors adopted it unanimously on 14 and 17 July 2020.
  • The law covers administrations, local authorities, public institutions and companies, and vital infrastructure, plus several operators and digital providers.
  • Covered entities must apply minimum security rules, report incidents to the national authority, appoint a security officer and prepare continuity plans.
  • Vital infrastructure must host its sensitive data only on national territory. The implementing decree 2-21-406, approved in June 2021, names the DGSSI as the national cybersecurity authority.

What happened

According to the DGSSI, the draft law was prepared by the National Defence Administration. The Council of Ministers approved it on 6 July 2020. Parliament then moved quickly: the House of Representatives adopted it unanimously on 14 July 2020 and the House of Councillors on 17 July 2020.

The DGSSI presents the law as the continuation of earlier steps: a first National Cybersecurity Strategy in 2012, a national directive on information systems security that applied to public bodies from 2014, a 2016 decree on the sensitive systems of vital infrastructure, and a 2018 order on the accreditation of auditors.

Who is covered

The law applies to state administrations, local authorities, public institutions and companies, other public-law bodies and vital infrastructure. It also sets duties for public telecom network operators, internet access providers, cybersecurity service providers, digital service providers and internet platform publishers.

The main obligations

According to the DGSSI's summary:

The law also defines the roles of a Strategic Cybersecurity Committee, the national authority and a committee for managing major cyber crises. The DGSSI lists four main offences that carry sanctions: failing to report incidents, hosting sensitive data abroad, obstructing security audits and not applying the required security measures.

The implementing decree

The DGSSI reports that the Council of Ministers approved decree 2-21-406 on 28 June 2021. It designates the DGSSI as the national cybersecurity authority. It sets a framework for classifying data and systems by the impact of a possible incident, requires each covered entity to appoint an information systems security officer, and creates a qualification scheme for audit and incident-response providers.

Opinion

MaroCyber's view

From our experience in the field, Law 05-20 was a real step forward, because it made incident reporting a duty rather than a favour. The weak point is not the text but its reach: the strictest rules target public bodies and vital infrastructure, while many small companies and suppliers that hold sensitive data sit outside its core. We still meet organisations where the "security officer" is a title added to an overloaded IT job. The law will deliver its full value when that role comes with real time, budget and direct access to management.

Sources

  1. DGSSIwww.dgssi.gov.ma
  2. DGSSIwww.dgssi.gov.ma