In what is now the most significant cybersecurity incident in Morocco’s history, the National Social Security Fund (CNSS) suffered a devastating breach that exposed the personal and financial records of nearly 2 million people. The attackers, a hacker group identifying as JabaROOT DZ and claiming ties to Algeria, published the stolen data on Telegram and several dark web forums. This was not a typical financially-motivated attack: it was political.
What Was Compromised
The scope of the exposed data is massive:
National ID numbers (CIN), names, emails, and phone numbers
Social security records and bank account information
Salary data from public, private, and foreign-owned organisations
Internal CNSS communications and archived documentation
The breach impacted data from over 500,000 businesses registered with CNSS. Some files date back more than a decade, indicating prolonged or deep access to core systems and legacy archives.
Technical Breakdown: Not Sophisticated, Just Neglected
This was not a zero-day attack. The breach succeeded due to weak internal governance and outdated systems.
Initial Entry Point
Likely vectors include:A vulnerable Oracle-based public application
A phishing campaign that compromised admin credentials
VPN or API access via a third-party contractor
Internal Spread
Once inside, the attackers escalated access rights and moved freely through internal systems. Absence of network segmentation allowed them to harvest large volumes of data unnoticed.Data Theft and Public Dump
The group exfiltrated the data gradually and eventually leaked it in full – without demanding ransom. Their aim was visibility, not money.Total Detection Failure
CNSS had no effective intrusion detection. The organisation only acknowledged the attack after the leak had gone public.
CNSS and Government Response
CNSS issued a short statement dismissing some leaked files as “misleading.” However, third-party security firm Resecurity confirmed the authenticity of most of the data. Morocco’s data protection authority, CNDP, issued a public warning that viewing, downloading, or sharing the files is illegal.
Geopolitical Context
This breach is part of a broader digital conflict between Morocco and Algeria. In March, Moroccan actors allegedly defaced the Algerian state media’s X (Twitter) account. The CNSS breach appears to be a retaliatory escalation – targeting a key institution to damage Morocco’s credibility and stability.
National-Level Failures
This attack revealed systemic cybersecurity failures across Moroccan public infrastructure:
No zero-trust security architecture
Poor control over vendor and contractor access
Absence of real-time monitoring and forensic capabilities
No public playbook for handling cyber incidents
These weaknesses go beyond CNSS- they reflect a nationwide vulnerability.
What Now?
To avoid another national embarrassment, Morocco must act:
Audit all government digital systems and third-party access
Enforce strict segmentation and privilege controls
Deploy proper SIEM, EDR, and alerting infrastructure
Establish a national cybersecurity incident response protocol
Build talent pipelines and modernise outdated tech stacks
This wasn’t a sophisticated breach, it was a preventable one. It exploited years of neglect in public-sector cybersecurity. Morocco must treat this not as an isolated failure, but as a national wake-up call.
CEO - Kegate