Cyber Security

AFRICA’S DIGITAL FORTRESS: HOW THE CONTINENT IS BUILDING CYBERSECURITY LAWS IN AN AGE OF RANSOM AND ESPIONAGE

AFRICA’S DIGITAL FORTRESS: HOW THE CONTINENT IS BUILDING CYBERSECURITY LAWS IN AN AGE OF RANSOM AND ESPIONAGE

From Cape Town to Cairo, African governments are racing to enact cybersecurity legislation that would have been unthinkable a decade ago. By November 2025, 38 of the continent’s 54 countries had adopted dedicated cybercrime or data-protection laws, up from just eight in 2015, according to the African Union. The shift is driven not by abstract principles but by hard lessons: ransomware that shut down ministries, foreign actors stealing voter rolls, and mercenary spyware turning presidential phones into surveillance devices.

 

Kenya’s 2024 Digital Security Act stands as the most comprehensive legal framework so far. It criminalizes everything from distributed denial-of-service attacks to the sale of zero-day exploits, mandates 72-hour breach notifications for critical infrastructure, and creates a National Cyber Command reporting directly to the presidency. After the 2023 ransomware strike on the Finance Ministry which delayed civil-service salaries for nine days Nairobi had little alternative. Similar command centers now exist in Rwanda, Morocco, Egypt, and Nigeria, though only Kigali and Rabat appear capable of limited offensive cyber operations when their national interests are threatened.

 

Related Article: 

 

North Africa has adopted the most authoritarian posture. Egypt’s 2018 Cybercrime Law and Morocco’s 2022 update grant security agencies warrantless access to encrypted communications in “national security” cases a provision more frequently invoked against journalists and opposition figures than against bona fide hackers. Both states host Chinese-trained cyber units and have quietly purchased Israeli and Italian intrusion tools. Laws ostensibly targeting ransomware and cyber fraud also criminalize the use of unregistered VPNs, creating what critics describe as “a managed Splinternet with Arab characteristics.”

 

Southern Africa presents a more mixed landscape. South Africa’s 2021 Cybercrimes Act and the 2019 POPIA data-protection law are widely praised for their alignment with GDPR standards, yet enforcement outside Johannesburg and Cape Town remains inconsistent. Botswana and Namibia have largely copied South Africa’s model, while Zimbabwe’s 2024 Maintenance of Peace and Order Act folded expansive surveillance powers into legislation framed around “fake news,” digital finance, and cryptocurrency fraud.

 

The African Union’s 2014 Malabo Convention the continent’s intended harmonizing instrument for cybersecurity and data protection has had little practical effect. Ratified by only 15 states a decade after adoption, it remains more symbolic than binding. Real cooperation takes place in quieter spaces such as Africa CERT and the Smart Africa Alliance, where engineers and CERT teams from Senegal to Seychelles share technical indicators of compromise more efficiently than diplomats can negotiate legal frameworks.

 

Meanwhile, military cyber commands have emerged as the least transparent actors. Egypt and Morocco openly showcase theirs; Algeria is believed to operate the continent’s largest. Nigeria launched its Defence Cyber Operations Centre in 2023 after suspected Russian-linked actors disrupted the voter-registration portal ahead of national elections. Ethiopia’s Information Network Security Administration (INSA), once focused mainly on domestic surveillance, now devotes increasing resources to countering suspected Eritrean and Sudanese cyber intrusions.

 

Financing remains the system’s most persistent vulnerability. A fully capable national Computer Emergency Response Team (CERT) costs between $40 million and $80 million to build and maintain to international standards, according to the World Bank. Only a handful of countries Morocco, Kenya, Rwanda, and Mauritius have reached that level of operational maturity. The majority rely on a patchwork of Global Fund for Cybersecurity grants, Chinese loans tied to Huawei “Safe City” packages, and sporadic training from France’s ANSSI or U.S. Cyber Command. Without sustained funding, even strong laws risk becoming hollow frameworks.

 

By late 2025, the continent faces a widening divide: a small group of digitally sovereign states capable of both defense and retaliation, and a much larger group whose sophisticated-sounding laws falter when confronted by state-backed hackers or advanced criminal syndicates. Africa, once debating whether widespread internet access would ever arrive, now wrestles with a more urgent question: can it secure the digital infrastructure it already depends on?

 

Legislation is no longer the bottleneck. The real test cooperation, trust, sustained investment, and operational readiness will determine whether Africa can defend a shared cyberspace when the next continent-wide cyberattack inevitably comes.

Written by
King Richard Igimoh, Group Editor ALO

King Richard Igimoh, Group Editor African Leadership Organisation is an award-winning journalist, editor, and publisher with over two decades of expertise in political, defence, and international affairs reporting. As Group Editor of the African Leadership Organisation—publishers of African Leadership Magazine, African Defence & Security Magazine, and Africa Projects Magazine—he delivers incisive coverage that amplifies Africa’s voice in global security, policy, and leadership discourse. He provides frontline editorial coverage of high-profile international events, including the ALM Persons of the Year, the African Summit, and the African Business and Leadership Awards (ABLA) in London, as well as the International Forum for African and Caribbean Leadership (IFAL) in New York City during the United Nations General Assembly.

Related Articles

Cyber Security

RETHINKING HUMAN SECURITY IN AFRICA’S CHANGING DIPLOMATIC LANDSCAPE

Africa’s diplomatic and security thinking is undergoing a quiet but significant shift....

AFRICA’S CYBERSECURITY STANDING IN A HIGH-RISK DIGITAL AGE
Cyber Security

AFRICA’S CYBERSECURITY STANDING IN A HIGH-RISK DIGITAL AGE

Africa’s rapid digital expansion has brought economic opportunity, but it has also...

CYBERWAR GAMES: SHOULD AFRICAN MILITARIES JOIN THE TREND?
Cyber Security

CYBERWAR GAMES: SHOULD AFRICAN MILITARIES JOIN THE TREND?

Cyberwar games have become indispensable to modern military strategy. Around the world,...