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
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–2026Floods 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
No data: we found no NETSCOUT figure for Morocco for the second half of 2022 and the first half of 2023.
Show all values
| Period | Attacks |
|---|---|
| First half 2022 | 57,259 |
| Second half 2022 | No data |
| First half 2023 | No data |
| Second half 2023 | 39,867 |
| First half 2024 | 61,595 |
| Second half 2024 | 69,836 |
| First half 2025 | 75,624 |
| Second half 2025 | 145,396 |
| First half 2026 | 153,429 |
Source: NETSCOUT
Industrial computers where an attack was blocked
Half-yearly · 2016–2021Factories, 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.
Share of industrial computers, per half-year
[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
| Period | Morocco | World average |
|---|---|---|
| Second half 2016 | 60.4% | 39.2% |
| First half 2017 | 65.4% | 37.6% |
| Second half 2017 | 60.4% | 37.8% |
| First half 2018 | 64.8% | 41.2% |
| Second half 2018 | 63.8% | 40.8% |
| First half 2019 | 62.2% | 41.2% |
| Second half 2019 | 56.6% | 39.2% |
| First half 2020 | 51.2% | 32.6% |
| Second half 2020 | 49.5% | 33.4% |
| First half 2021 | 52.4% | 33.8% |
| Second half 2021 | 48.7% | 31.4% |
Compared with Africa: quarterly reports, 2025
Share of industrial computers, per quarter
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
| Period | Morocco | Africa average |
|---|---|---|
| Second quarter 2025 | 26.7% | 27.8% |
| Third quarter 2025 | 24.6% | 27.4% |
| Fourth quarter 2025 | 26.3% | 27.3% |
Source: Kaspersky
What kind of attack
Yearly · 2022–2026Requests 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
Show all values
| Year | DDoS | Web firewall rules (WAF) | Bad IP reputation |
|---|---|---|---|
| 2022 | 52.0% | 36.7% | 10.2% |
| 2023 | 73.7% | 24.5% | 1.4% |
| 2024 | 52.5% | 44.6% | 2.6% |
| 2025 | 40.4% | 56.2% | 3.0% |
| 2026 | 40.6% | 56.1% | 3.0% |
Source: Cloudflare
Morocco's world rank
Cloudflare · web attacks · 2022–202656th 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
| Year | World rank | Share of attacks worldwide |
|---|---|---|
| 2022 | 56 | 0.14% |
| 2023 | 55 | 0.21% |
| 2024 | 58 | 0.14% |
| 2025 | 59 | 0.11% |
| 2026 | 63 | 0.07% |
Source: Cloudflare
Where the attack traffic comes from
Share of attacks on Morocco · CloudflareThis 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.
| 2022 | 2023 | 2024 | 2025 | 2026 | |
|---|---|---|---|---|---|
| United States | 14.5% | 13.2% | 17.3% | 17.4% | 19.8% |
| Indonesia | 6.7% | 7.8% | 6.6% | 11.3% | 5.1% |
| Germany | 5.7% | 5.2% | 9.1% | 5.9% | 7.4% |
| Netherlands | – | – | 6.2% | 3.7% | 8.9% |
| India | 3.8% | 6.9% | 3.3% | 10.5% | – |
| China | 4.2% | 2.4% | 4.4% | 3.7% | 6.7% |
| France | – | – | – | 3.6% | 6.8% |
| Russia | 3.9% | 3.4% | 3.1% | – | 4.2% |
| Brazil | 4.5% | 3.5% | – | 2.7% | 2.5% |
Source: Cloudflare
What reaches the police
DGSN · review of Dec 2025The 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.
Source: DGSN
Digital Morocco: protocol usage
Monthly · October 2026Share 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
Share of encrypted requests (HTTPS) among all web requests.
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)
Share of web requests over HTTP/3.
Share of requests over IPv6, computed by the source on content reachable over both IPv4 and IPv6 only.
- Morocco
- Africa
- World
Change over 12 months
- Morocco
- Africa
- World
All values
| Month | HTTPS requests · Morocco | HTTPS requests · Africa | HTTPS requests · World | TLS 1.3 · Morocco | TLS 1.3 · Africa | TLS 1.3 · World | HTTP/3 · Morocco | HTTP/3 · Africa | HTTP/3 · World | IPv6 · Morocco | IPv6 · Africa | IPv6 · World |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| October 2026 | 96.7% | 97.5% | 95.4% | 78.1% | 69.4% | 73.4% | 16.7% | 24.7% | 19.7% | 3.0% | 6.4% | 29.3% |
| September 2026 | 95.9% | 97.2% | 95.3% | 78.3% | 68.8% | 73.0% | 16.4% | 25.1% | 19.8% | 2.6% | 6.1% | 29.5% |
| August 2026 | 96.5% | 97.3% | 95.0% | 77.5% | 69.1% | 72.6% | 17.2% | 24.4% | 20.2% | 2.4% | 5.8% | 29.2% |
| July 2026 | 92.2% | 95.9% | 94.9% | 78.3% | 69.5% | 72.5% | 15.6% | 22.8% | 20.5% | 2.1% | 5.9% | 29.9% |
| June 2026 | 90.1% | 96.3% | 95.0% | 77.2% | 68.2% | 71.6% | 16.5% | 23.5% | 21.6% | 1.8% | 5.6% | 30.4% |
| May 2026 | 95.1% | 97.4% | 95.1% | 77.1% | 67.9% | 71.0% | 18.1% | 24.9% | 22.2% | 1.7% | 5.6% | 31.3% |
| April 2026 | 94.6% | 96.8% | 94.5% | 77.4% | 67.3% | 71.3% | 17.6% | 26.1% | 22.0% | 1.5% | 5.5% | 31.0% |
| March 2026 | 94.7% | 96.6% | 94.5% | 77.0% | 65.8% | 71.0% | 17.9% | 27.5% | 22.0% | 1.4% | 5.0% | 31.0% |
| February 2026 | 94.3% | 96.3% | 94.0% | 77.0% | 65.7% | 70.3% | 17.8% | 27.4% | 22.4% | 1.3% | 4.8% | 30.6% |
| January 2026 | 88.9% | 95.1% | 94.0% | 77.3% | 66.9% | 70.1% | 15.9% | 25.4% | 22.4% | 1.2% | 4.7% | 30.6% |
| December 2025 | 88.5% | 95.0% | 93.9% | 78.4% | 68.8% | 71.0% | 14.9% | 23.7% | 21.4% | 1.1% | 4.6% | 30.4% |
| November 2025 | 93.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