A hacked website is a business emergency. Visitors are redirected to spam, Google marks the site as dangerous, and customer trust drops the moment the warning appears. Panic leads to bad decisions — usually deleting files until the site loads again, while the backdoor that let the attacker in stays hidden.

This guide explains what a proper recovery looks like in Kenya, and why the order of steps matters.

Step 1: Contain, don't delete

The first move is to stop the bleeding, not to wipe the site. Take a full backup of the compromised site and database for investigation, then put the site into maintenance mode or temporarily take it offline. Deleting files before you understand the entry point destroys the evidence you need to prevent reinfection.

Step 2: Identify how they got in

Common entry points on Kenyan business sites:

  • Outdated WordPress core, themes or plugins with known vulnerabilities.
  • Weak or reused admin passwords, or no two-factor authentication.
  • Malicious or pirated themes and plugins downloaded to save money.
  • Infected local computers with saved FTP or hosting credentials.
  • Leaked credentials from another breached service.

Cleaning the symptom without closing the entry point means the attacker returns, often within days.

Step 3: Clean the site properly

A real cleanup covers:

  • WordPress core, theme and plugin files.
  • The uploads and other writable folders, where shells are often hidden.
  • The database, including spam posts, injected scripts and rogue admin users.
  • Configuration files and scheduled tasks.
  • Email forwarders and autoresponders that attackers use to send spam.

The cleanest approach for a badly damaged site is to rebuild from known-good core files, reinstall only current plugins, and re-import content that has been checked — rather than trying to delete suspicious files one by one.

Step 4: Reset access

Change every related password: WordPress administrators, hosting panel, FTP, database, and email. Rotate WordPress security salts so existing sessions are invalidated. Remove any administrator accounts you do not recognise.

Step 5: Request a Google review

If Search Console shows a security issue or a manual action, fix everything first, then submit a review request. Google re-scans and removes the warning once the site is clean. Submitting before the cleanup is complete delays recovery.

Step 6: Harden against a repeat

After recovery, the site should run with:

  • Current WordPress, PHP and plugins, with unused ones deleted.
  • Strong unique passwords and two-factor authentication for admin accounts.
  • A web application firewall or security plugin.
  • Automatic off-site backups.
  • File monitoring that alerts on changes to core files.

What recovery costs in Kenya

In 2026, malware removal and recovery typically ranges from KES 10,000 to 30,000. Severe cases needing a rebuild, or recovery after Google has flagged the domain, cost more. Ongoing maintenance from KES 2,000 to 6,000 per month is what keeps the site from returning to this state.

If a provider offers a "quick clean" without backup, log review or password reset, treat it as temporary. The measure of a recovery is not that the site loads today — it is that it is still clean in three months.

Need this done for you?

MUKI handles website repair, SSL, business email, POS installation, biometric attendance and property software onboarding across Nairobi, Kiambu, Ruiru and Thika.

Related service: Website repair, SSL and business email →