After Egypt and South Africa, Morocco ranks as the third most targeted country by cyberattacks in Africa. Amal El Fallah Seghrouchni, the Minister Delegate to the Head of Government in charge of Digital Transition and Administrative Reform, said that the relevant institutions are working closely together to address existing vulnerabilities, including through strengthened legislation. DR ‹ › Repeated cyberattacks are forcing governments to rethink not only online security for users, but also how digital services are regulated. At the heart of this challenge lies the protection of personal data and the ability to prevent hacking and cyber threats. In Morocco, the issue has become increasingly urgent, as the country now ranks third in Africa among the most targeted by cyberattacks, after Egypt and South Africa. Speaking on Faites entrer l'invité on Radio 2M, Minister Delegate for Digital Transition and Administrative Reform Amal El Fallah Seghrouchni said the government has responded by developing the Digital X.0 framework law, describing it as a cornerstone of Morocco's cybersecurity strategy. "Le #Maroc est le 3e pays africain le plus ciblé par les cyberattaques et la loi "Digital X.0" a été co-construite avec la DGSSI, la DGSN, la CNDP et l'ADD". (Amal El Fallah Seghrouchni -@Ministere_TNRA, dans Faites Entrer L'invité sur @Radio2M) pic.twitter.com/0Ha4rO4dok — 2M.ma (@2MInteractive) January 5, 2026 Unveiled in October 2025, the legislation aims to strengthen digital sovereignty, regulate the use of artificial intelligence, and reinforce personal data protection, in line with the Morocco Digital 2030 roadmap. A stronger legal shield for digital data The push for new legislation comes in the wake of several incidents, including the CNSS data breach in April 2025, as well as a rise in disinformation campaigns. To protect public services and critical information systems, the framework relies heavily on coordination with the General Directorate of Information Systems Security (DGSSI), which operates under the National Defense Administration. «This framework law was built jointly with the General Directorate of National Security, the DGSSI, the National Commission for the Protection of Personal Data, the Digital Development Agency, and our ministry. Cybersecurity requires constant and close cooperation between all these institutions», the minister explained. Beyond defending against cyberattacks, the law also lays the groundwork for what authorities describe as ethical or «blue» AI. This is particularly important at a time when artificial intelligence is increasingly being used to automate hacking attempts, data intrusions, and coordinated cyber operations. «Since the CNSS incident, there have been no further major breaches. Given Morocco's exposure, the DGSSI has done remarkable work in neutralizing these threats», Amal El Fallah Seghrouchni added. AI-driven threats and coordinated attacks The minister also warned of the growing role of artificial intelligence in spreading disinformation and strengthening cyberattacks. «What we call 'red AI' is used to amplify attacks. These threats will not disappear, but digital transformation must be designed in a way that limits their impact», she said. She further cautioned that coordinated cyberattacks, often launched simultaneously from multiple countries, pose an increasing risk. «This phenomenon is particularly dangerous for democracies today», she warned. Her comments echo the findings of Microsoft's Digital Defense Report 2025, which ranked Morocco among the three most targeted African countries for cyberattacks last year. According to the report, more than 120 countries worldwide were targeted by coordinated cyber operations in 2025. In Africa, Morocco recorded 26 attacks, compared to 32 in Egypt and 31 in South Africa. The report also shows that 37% of attacks targeted sensitive data, 33% involved extortion, and 19% aimed to disrupt computer systems. It notes that attackers increasingly rely on generative AI to produce false but convincing content, capable of misleading users and even influencing AI systems themselves.