MaroCyber

Morocco · Threat monitor

What the data says about cyber attacks on Morocco, 2016–2026

Four sources, four different things measured. We show each one on its own, with its source, and we never add them together.

Updated: · Cloudflare years run in whole weeks; 2026 = to 16 November

153,429DDoS attacks, first half 2026First half 2022: 57,259 · NETSCOUT
26.3%Industrial computers where a threat was blocked, fourth quarter 2025Africa average 27.3% in the same quarterly report · Kaspersky
56%Share of blocked requests to Moroccan sites stopped by web firewall rules (WAF), 2026 to 16 NovDDoS was 74% in 2023 · Cloudflare
25,876e-Blagh reports since the June 2024 launchDGSN annual review

Alert DDoS attacks on Morocco roughly doubled in the second half of 2025 (69,836 → 145,396) and stayed high in the first half of 2026. NETSCOUT reports no change in method and its worldwide count was flat, so the rise looks specific to Morocco.

DDoS attacks on Morocco

Half-yearly · 2022–2026

Floods of traffic that knock sites and networks offline. Reported attacks rose from 57,259 in the first half of 2022 to 153,429 in the first half of 2026. In the first half of 2026, 134,711 of the attacks hit mobile operators.

Number of attacks per half-year

080k160k20222023202420252026Second half 2022 – First half 2023 · No dataNo dataFirst half 2022 · Attacks 57,259Second half 2023 · Attacks 39,867First half 2024 · Attacks 61,595Second half 2024 · Attacks 69,836First half 2025 · Attacks 75,624Second half 2025 · Attacks 145,396First half 2026 · Attacks 153,42957,259153,429
080k160k20222023202420252026Second half 2022 – First half 2023 · No dataNo dataFirst half 2022 · Attacks 57,259Second half 2023 · Attacks 39,867First half 2024 · Attacks 61,595Second half 2024 · Attacks 69,836First half 2025 · Attacks 75,624Second half 2025 · Attacks 145,396First half 2026 · Attacks 153,42957,259153,429

No data: we found no NETSCOUT figure for Morocco for the second half of 2022 and the first half of 2023.

Show all values
PeriodAttacks
First half 202257,259
Second half 2022No data
First half 2023No data
Second half 202339,867
First half 202461,595
Second half 202469,836
First half 202575,624
Second half 2025145,396
First half 2026153,429

Source: NETSCOUT

Industrial computers where an attack was blocked

Half-yearly · 2016–2021

Factories, energy and water. Among the countries Kaspersky ranks, Morocco was the third worst from late 2016 to mid-2018, and stayed in the top ten until 2021. The share has fallen overall since.

MoroccoWorld average

Share of industrial computers, per half-year

0%40%80%201620172018201920202021[1]Second half 2016 · Morocco 60.4% · World average 39.2%First half 2017 · Morocco 65.4% · World average 37.6%Second half 2017 · Morocco 60.4% · World average 37.8%First half 2018 · Morocco 64.8% · World average 41.2%Second half 2018 · Morocco 63.8% · World average 40.8%First half 2019 · Morocco 62.2% · World average 41.2%Second half 2019 · Morocco 56.6% · World average 39.2%First half 2020 · Morocco 51.2% · World average 32.6%Second half 2020 · Morocco 49.5% · World average 33.4%First half 2021 · Morocco 52.4% · World average 33.8%Second half 2021 · Morocco 48.7% · World average 31.4%60.4%65.4%48.7%39.2%31.4%
0%40%80%201620172018201920202021[1]Second half 2016 · Morocco 60.4% · World average 39.2%First half 2017 · Morocco 65.4% · World average 37.6%Second half 2017 · Morocco 60.4% · World average 37.8%First half 2018 · Morocco 64.8% · World average 41.2%Second half 2018 · Morocco 63.8% · World average 40.8%First half 2019 · Morocco 62.2% · World average 41.2%Second half 2019 · Morocco 56.6% · World average 39.2%First half 2020 · Morocco 51.2% · World average 32.6%Second half 2020 · Morocco 49.5% · World average 33.4%First half 2021 · Morocco 52.4% · World average 33.8%Second half 2021 · Morocco 48.7% · World average 31.4%60.4%65.4%48.7%39.2%31.4%

[1] In 2018 Kaspersky reworded the measure and revised its 2017 world figures, so both lines stop here. Compare values on the same side of the break only.

Not in the world top 15 in the first and second halves of 2022 or the second half of 2023 (cut-offs 43.0%, 42.2% and 41.8%). The report for the first half of 2023 gives no country ranking.

Show all values
PeriodMoroccoWorld average
Second half 201660.4%39.2%
First half 201765.4%37.6%
Second half 201760.4%37.8%
First half 201864.8%41.2%
Second half 201863.8%40.8%
First half 201962.2%41.2%
Second half 201956.6%39.2%
First half 202051.2%32.6%
Second half 202049.5%33.4%
First half 202152.4%33.8%
Second half 202148.7%31.4%

Compared with Africa: quarterly reports, 2025

MoroccoAfrica average

Share of industrial computers, per quarter

Second quarter 202526.7%Africa average 27.8%
Third quarter 202524.6%
Fourth quarter 202526.3%Africa average 27.3%

Since 2024 Kaspersky reports by quarter, and from 2025 it ranks Morocco within Africa only. Quarterly figures run lower than half-yearly ones (world average: 31.9% in the second half of 2023, 24.4% in the fourth quarter of 2023), so they are not put on the chart above.

Show all values
PeriodMoroccoAfrica average
Second quarter 202526.7%27.8%
Third quarter 202524.6%27.4%
Fourth quarter 202526.3%27.3%

Source: Kaspersky

What kind of attack

Yearly · 2022–2026

Requests to Moroccan websites behind Cloudflare that were blocked. In 2023, DDoS made up 74% of them; since 2025, most were blocked by web firewall rules (WAF).

Share of blocked requests, per year

DDoSWeb firewall rules (WAF)Bad IP reputation
2022
DDoS 52%WAF 37%Bad IP 10%
2023
DDoS 74%WAF 24%Bad IP 1%
2024
DDoS 52%WAF 45%Bad IP 3%
2025
DDoS 40%WAF 56%Bad IP 3%
2026
DDoS 41%WAF 56%Bad IP 3%
Show all values
YearDDoSWeb firewall rules (WAF)Bad IP reputation
202252.0%36.7%10.2%
202373.7%24.5%1.4%
202452.5%44.6%2.6%
202540.4%56.2%3.0%
202640.6%56.1%3.0%

Source: Cloudflare

Morocco's world rank

Cloudflare · web attacks · 2022–2026

56th 2022 → 63rd 2026

Among the countries Cloudflare sees · 2026 = to 16 November

Share of all web attacks Cloudflare sees worldwide: 0.21% in 2023, 0.07% in 2026 (to 16 November). This is Morocco's place in one company's view, not a measure of how safe the country is.

Show all values
YearWorld rankShare of attacks worldwide
2022560.14%
2023550.21%
2024580.14%
2025590.11%
2026630.07%

Source: Cloudflare

Where the attack traffic comes from

Share of attacks on Morocco · Cloudflare

This is where the traffic leaves from, usually rented cloud servers and hijacked devices. It does not tell us who is behind an attack. Selected countries; "–" means outside that year's top 10.

20222023202420252026
United States14.5%13.2%17.3%17.4%19.8%
Indonesia6.7%7.8%6.6%11.3%5.1%
Germany5.7%5.2%9.1%5.9%7.4%
Netherlands––6.2%3.7%8.9%
India3.8%6.9%3.3%10.5%–
China4.2%2.4%4.4%3.7%6.7%
France–––3.6%6.8%
Russia3.9%3.4%3.1%–4.2%
Brazil4.5%3.5%–2.7%2.5%

Source: Cloudflare

What reaches the police

DGSN · review of Dec 2025

The only official numbers about harm to people in Morocco. The review came out in mid-December 2025, so the year is not complete; 89 of the 415 arrests were for sextortion. There is no earlier series yet to compare with.

25,876e-Blagh reports since June 2024
13,643Cybercrime cases handled
3,131Illegal online content reported
415People arrested
370Online sextortion cases
486Sextortion victims

Source: DGSN

Digital Morocco: protocol usage

Monthly · October 2026
Current · 31 Oct

Share of encrypted web requests and of recent protocols, for Morocco, Africa and the world: same months, same filters, same definitions.

Traffic from Morocco observed by Cloudflare; it does not represent the whole Moroccan Internet.

Transport security

HTTPS requests96.7%Africa 97.5% · World 95.4%

Share of encrypted requests (HTTPS) among all web requests.

TLS 1.378.1%Africa 69.4% · World 73.4%

Share of TLS 1.3 among HTTPS requests. As the source does, QUIC traffic (HTTP/3), which also uses TLS 1.3, is counted separately: 17.3% in Morocco.

Modernisation (outside the security reading)

HTTP/316.7%Africa 24.7% · World 19.7%

Share of web requests over HTTP/3.

IPv63.0%Africa 6.4% · World 29.3%

Share of requests over IPv6, computed by the source on content reachable over both IPv4 and IPv6 only.

  • Morocco
  • Africa
  • World
Comparison, October 2026HTTPS requestsMorocco · 96.7%96.7%Africa · 97.5%97.5%World · 95.4%95.4%TLS 1.3Morocco · 78.1%78.1%Africa · 69.4%69.4%World · 73.4%73.4%HTTP/3Morocco · 16.7%16.7%Africa · 24.7%24.7%World · 19.7%19.7%IPv6Morocco · 3.0%3.0%Africa · 6.4%6.4%World · 29.3%29.3%
Comparison, October 2026HTTPS requestsMorocco · 96.7%96.7%Africa · 97.5%97.5%World · 95.4%95.4%TLS 1.3Morocco · 78.1%78.1%Africa · 69.4%69.4%World · 73.4%73.4%HTTP/3Morocco · 16.7%16.7%Africa · 24.7%24.7%World · 19.7%19.7%IPv6Morocco · 3.0%3.0%Africa · 6.4%6.4%World · 29.3%29.3%

Change over 12 months

  • Morocco
  • Africa
  • World
HTTPS requests
HTTPS requests · Change over 12 months80%90%100%96.7%Nov 2025Oct 2026
TLS 1.3
TLS 1.3 · Change over 12 months65%75%85%78.1%Nov 2025Oct 2026
HTTP/3
HTTP/3 · Change over 12 months10%20%30%16.7%Nov 2025Oct 2026
IPv6
IPv6 · Change over 12 months0%20%40%3.0%Nov 2025Oct 2026
All values
MonthHTTPS requests · MoroccoHTTPS requests · AfricaHTTPS requests · WorldTLS 1.3 · MoroccoTLS 1.3 · AfricaTLS 1.3 · WorldHTTP/3 · MoroccoHTTP/3 · AfricaHTTP/3 · WorldIPv6 · MoroccoIPv6 · AfricaIPv6 · World
October 202696.7%97.5%95.4%78.1%69.4%73.4%16.7%24.7%19.7%3.0%6.4%29.3%
September 202695.9%97.2%95.3%78.3%68.8%73.0%16.4%25.1%19.8%2.6%6.1%29.5%
August 202696.5%97.3%95.0%77.5%69.1%72.6%17.2%24.4%20.2%2.4%5.8%29.2%
July 202692.2%95.9%94.9%78.3%69.5%72.5%15.6%22.8%20.5%2.1%5.9%29.9%
June 202690.1%96.3%95.0%77.2%68.2%71.6%16.5%23.5%21.6%1.8%5.6%30.4%
May 202695.1%97.4%95.1%77.1%67.9%71.0%18.1%24.9%22.2%1.7%5.6%31.3%
April 202694.6%96.8%94.5%77.4%67.3%71.3%17.6%26.1%22.0%1.5%5.5%31.0%
March 202694.7%96.6%94.5%77.0%65.8%71.0%17.9%27.5%22.0%1.4%5.0%31.0%
February 202694.3%96.3%94.0%77.0%65.7%70.3%17.8%27.4%22.4%1.3%4.8%30.6%
January 202688.9%95.1%94.0%77.3%66.9%70.1%15.9%25.4%22.4%1.2%4.7%30.6%
December 202588.5%95.0%93.9%78.4%68.8%71.0%14.9%23.7%21.4%1.1%4.6%30.4%
November 202593.5%96.1%94.4%77.1%67.9%70.1%17.0%25.1%22.4%0.9%4.6%31.0%

Source: Cloudflare Radar · CC BY-NC 4.0 licence · attribution