Opinion: The CNSS attack and the road to justice

Opinion: The CNSS attack and the road to justice
Friday 25 April 2025 - 22:09

On April 8, 2025, Morocco’s National Social Security Fund (CNSS) was the target of a large-scale cyberattack that has since been classified as one of the most damaging breaches of public data in the country’s modern digital history. The attack resulted in the unauthorized access and publication of sensitive personal and institutional information, compromising nearly two million individual records and over half a million company profiles. This included sensitive data such as national identity numbers, financial details, payroll information, and health-related documents—highlighting both the scale and precision of the incursion.

In addition to the CNSS, the attack also targeted the official website of the Ministry of Economic Inclusion, Small Business, Employment and Skills. These intrusions were announced by an Algerian hacker group calling itself “Jabaroot.” According to preliminary forensic investigations, the technical perpetrator is believed to be based in Germany, though the claim of responsibility was made by Jabaroot. Notably, Moroccan cybersecurity expert Hassan Kherjouj had warned of an impending breach just days earlier, on April 3, citing vulnerabilities in the ministry’s website and predicting it could become a target of SQL injection attacks—a method that exploits unpatched input fields to gain backend access to databases.

These indicators confirm the deliberate and premeditated nature of the attack. Under international norms, including the Budapest Convention on Cybercrime, such intentional acts of unauthorized access, data theft, and system intrusion are considered serious crimes. The Convention, which Morocco ratified in 2018, obligates signatory countries to criminalize and prosecute these offenses, facilitate extradition, and cooperate in cross-border investigations. While Algeria is not a party to the Convention, suspects located outside Algeria may be apprehended via mechanisms like the Interpol Red Notice, as long as host countries recognize and act upon them.

The primary technical analysis indicates that the affected platforms lacked critical safeguards prescribed under ISO/IEC 27001, a globally recognized standard for information security management systems (ISMS). This standard outlines how organizations should manage information security risks through policy enforcement, technological barriers, risk assessments, incident response planning, and ongoing compliance audits. The failure to fully implement these controls created exploitable gaps in the websites’ backend architecture, making them vulnerable to advanced threat vectors like SQL injection and privilege escalation.

In the Moroccan regulatory framework, the protection of personal data is governed by Law No. 09-08, which mandates that both public and private entities implement appropriate security measures to safeguard data of a personal nature. The Commission Nationale de Contrôle de la Protection des Données à Caractère Personnel (CNDP) is tasked with ensuring enforcement of this law. The CNDP can initiate audits, impose sanctions, and refer cases of gross negligence to judicial authorities. The CNSS, being a data controller under this law, bears full responsibility for failing to protect sensitive personal data if proven negligent in maintaining minimum security standards.

Further reinforcing Morocco’s cybersecurity posture is Law No. 05-20 on Cybersecurity, which mandates that critical information infrastructures, including public administration networks, comply with rigorous standards of digital security. It sets out obligations for risk identification, the implementation of intrusion detection systems, incident notification to authorities, and sector-specific strategies. The law also establishes the role of the General Directorate for Information System Security (DGSSI), which coordinates national and sectoral cybersecurity strategies in collaboration with the National Centre for Cybersecurity.

On the legal front, Morocco’s Penal Code and Law No. 07-03 on cybercrime criminalize unauthorized access, interception, data modification, and system disruption. German law, through sections 202a–202c, 263a, and 303a of the Strafgesetzbuch (StGB), offers equivalent criminalization for data espionage, computer fraud, and system tampering. The principle of dual criminality is thus met, making extradition legally permissible. Since the suspect is not a German national, and the crime has transnational impact, German law allows for extradition, though subject to judicial review and diplomatic processes. Germany’s 2008 bilateral judicial cooperation agreement with Morocco provides the formal pathway for extradition and mutual legal assistance.

Beyond bilateral arrangements with Germany, particularly through the Quadripartite Judicial and Security Cooperation Mechanism—an annual high-level commission involving Morocco, France, Spain, and Belgium that also convenes periodically as needed—Morocco can also draw on judicial cooperation protocols with other European countries and broader partnerships with countries across other continents. Regional frameworks established under the League of Arab States also enable avenues for mutual legal assistance and extradition in criminal matters.

If extradition is delayed or denied, Morocco’s legal system allows for trial in absentia under conditions that ensure procedural fairness, such as representation by legal counsel and rights to appeal. Meanwhile, any suspects found outside Algeria could be pursued via Interpol Red Notices or other multilateral mechanisms if they reside in participating jurisdictions.

Morocco already possesses a solid legal arsenal to address cybercrime, but more effort is required at the operational level—especially in terms of compliance enforcement, cybersecurity risk assessments, institutional coordination, and early threat detection systems.

This cyberattack is a clear reminder of the urgent need for comprehensive cybersecurity governance. It was not an opportunistic breach—it was premeditated, targeted, and timed with regional tensions in mind. While political frictions between states are unfortunate, it is imperative that non-state actors do not exploit these dynamics to justify criminal acts. Innocent people are the ones who suffer the consequences of these breaches. Their data, their privacy, and sometimes even their livelihoods are put at risk. Cyber aggression undermines trust in public institutions, endangers citizens’ privacy, and threatens national stability.

Holding the perpetrators accountable—whether through extradition, trial in absentia, or multilateral cooperation—is not only a legal necessity but also a moral one. Attacks of this nature should not be tolerated. They must be addressed with the most serious legal, diplomatic, and operational tools available. In the interconnected world of 2025, digital sovereignty is as sacred as territorial integrity—and it must be protected with the full force of the law and in defense of the people it ultimately affects.

add your comment

Terms of publication : Not to offend the writer, people, sacred things, or attack religions or the divine self, and refrain from racist incitement and insults.

News
From speedboats to the sky: Drug networks seek new routes into Morocco
Wednesday 2 December 2026 - 23:00

From speedboats to the sky: Drug networks seek new routes into Morocco

Economy
Morocco pushes back after EU ‘Made in Europe’ draft leaves it off partner list
Wednesday 2 December 2026 - 21:30

Morocco pushes back after EU ‘Made in Europe’ draft leaves it off partner list

Sports
Yassine Bounou named Africa’s Best Goalkeeper at 2026 CAF Awards
Wednesday 2 December 2026 - 20:04

Yassine Bounou named Africa’s Best Goalkeeper at 2026 CAF Awards

Sports
Morocco named Africa’s Best Men’s National Team at 2026 CAF Awards
Wednesday 2 December 2026 - 19:59

Morocco named Africa’s Best Men’s National Team at 2026 CAF Awards