Insights — Business — 02 Nov 2026 — 3 min read

Cyberattack: the first 24 hours, a plan for small businesses in Morocco

An office desk with a wall clock, an unplugged network cable, a blank checklist and mint tea

Files encrypted, accounts hacked, ransom note: the first hours decide how bad a cyberattack becomes. Here is a simple plan, in ten steps, for a Moroccan small business.

Every case in this series shows the same thing: the companies that recover best are those that knew what to do in the first hours. Here is a simple plan, to print and keep, for a small business.

The first 10 steps

  • Stay calm and write down the time, what you saw and who noticed it: these notes will help later.
  • Disconnect affected computers from the network (cable and Wi-Fi), but do not switch them off, to preserve evidence.
  • Warn your team: no one clicks, deletes or reinstalls anything without instructions.
  • From a clean device, change the passwords of your email, bank, website and admin accounts, and turn on two-factor authentication.
  • Call your bank if payments or bank details may be affected.
  • Contact your IT provider, web agency or host, and ask them to keep their logs.
  • Do not pay a ransom on impulse: payment guarantees neither data recovery nor deletion.
  • Report the incident: Morocco’s DGSSI and its maCERT team can advise organisations, and filing a complaint lets the authorities investigate.
  • If personal data is concerned, look at your obligations under Law 09-08 and contact the CNDP.
  • Prepare a short, honest message for customers: what happened, what you are doing, what to watch for.

Prepare before it happens

A plan written on the day of the attack is a bad plan. Write down now who to call (IT provider, bank, host), where your backups are and how to restore them, and who decides what.

And your website?

Keep the access to your hosting, domain name and website admin in a safe place, with two-factor authentication. On the day of an incident, being able to take back control of your site quickly makes a real difference.

A crisis plan is written on a calm day, not in the middle of the storm.

Sources: DGSSI / maCERT, CNDP, and the incidents covered in this series.

Want a secure website with backups and a clear recovery plan? Tell us about your project through our estimate form: we will reply with an estimate and the next steps.

Working on something ambitious?

Start a project →

More thinking

Start a project