ZenWeb - Blog - Website Hacked? Steps to Clean Malware and Recover It

Website Hacked? Steps to Clean Malware and Recover It

July 20, 2026

Share this post:

Website Hacked? Steps to Clean Malware and Recover It
TL;DR: A hacked website usually starts with something boring — an outdated plugin or a weak admin password. Move fast: take the site offline, change every password, scan and remove the malicious files, restore from a clean backup if you have one, then update everything and turn on two-factor login. Confirm the fix in Google Search Console before you request a review. Prevention costs far less than recovery.

1. Introduction

Finding out your website has been hacked is a horrible feeling. Maybe a customer WhatsApp’d you a screenshot of a “Dangerous site” warning. Maybe your homepage now redirects to a gambling page. Maybe Google just dropped your pages from search. Whatever tipped you off, the clock is now running — every hour the malware sits there, it costs you visitors, leads, and trust.

The good news: most hacks on Malaysian SME websites are not the work of a genius. They get in through a handful of predictable gaps, and the cleanup follows a repeatable order. This guide walks you through it — how to confirm the hack, what to do in the first hour, how to clean the malware, and how to stop it happening again. The steps here are drawn from real recovery jobs handled by ZenWeb‘s web design and maintenance team.

Site down or defaced right now?

We handle malware cleanup and hardening as part of every build and care plan. See how we recover and protect business websites →

Most Malaysian SME sites run on WordPress, so the walkthrough below leans that way. This short video covers the same core cleanup flow before we get into the detail.

Easily Remove Virus/Malware From a Hacked WordPress Website!

Source video: WPLearningLab on YouTube


2. How to Tell If Your Website Has Been Hacked

Quick Answer: Common signs of a hacked website are browser “Dangerous site” warnings, unfamiliar pages or pop-ups, redirects to spam sites, a sudden ranking drop, and login attempts you did not make. The fastest way to confirm it is the Security Issues report in Google Search Console.

Some hacks are loud — your homepage gets replaced with a defacement message. Most are quiet, designed to hide from you while abusing your traffic. Watch for these warning signs:

  • Browser or search warnings. Chrome shows a red “Dangerous site” screen, or your listing in Google carries a “This site may be hacked” label.
  • Strange redirects. Your site opens fine for you but sends visitors on mobile, or from Google, to gambling, pharma, or scam pages.
  • Pages you never made. New URLs full of spammy keywords appear when you search site:yourdomain.com on Google.
  • A sudden traffic or ranking drop. Google quietly deindexes infected pages, so organic visits fall off a cliff.
  • Unknown admin users or logins. New user accounts, or login alerts from times and places that are not you.

Before you panic, confirm it properly. Open the Security Issues report in Google Search Console — if Google has flagged hacked content, malware, or social engineering, it will be listed there with sample URLs. A “Not Secure” label in the address bar is a different problem; if that is all you are seeing, start with our guide on removing the Not Secure warning first.

Key takeaway: Trust the Search Console Security Issues report as your source of truth. Warnings can look different on mobile, from Google, and for you as the logged-in owner — so a “clean for me” homepage does not mean a clean site.

3. What to Do in the First Hour After a Hack

Quick Answer: In the first hour, put the site into maintenance mode, change your hosting, admin, FTP and database passwords, and tell your host you have been hacked. Do not delete anything yet — you need the infected files intact to diagnose how they got in.

The first hour is about containment, not a full clean. Work through this short checklist calmly:

  • Take the site offline. Switch on maintenance mode or a temporary holding page so visitors — and Google’s crawler — stop seeing the infected version. If the whole site is unreachable instead, our guide on a website that is down and not loading covers that angle.
  • Change every password. Hosting/cPanel, WordPress admins, FTP/SFTP, and the database. Use long, unique passwords — a hacker with your login can undo any cleanup in seconds.
  • Tell your hosting provider. They can confirm whether the problem is your site alone or a shared-server issue, and many keep server-side backups you will want.
  • Take a full snapshot first. Back up the current infected files and database before deleting anything, so you can still trace the entry point.
  • Check other accounts. If you reused that admin password anywhere else, change it there too.
Key takeaway: Contain first, clean second. Passwords and maintenance mode stop the bleeding; keeping the infected files intact lets you find the hole so the hacker cannot walk straight back in.

4. How Malaysian SME Websites Actually Get Hacked

Quick Answer: The large majority of hacked SME sites are compromised through an outdated plugin or theme, a weak admin password, or a pirated (“nulled”) plugin — not a sophisticated targeted attack. These are automated bots scanning for known holes, and most are preventable with basic upkeep.

When ZenWeb cleans a hacked site, the entry point is almost never exotic. Here is how the cause broke down across our recent recovery jobs.

How hacked SME sites were broken into
Share of hacked Malaysian SME websites by entry point, from ZenWeb malware-cleanup jobs.
Entry pointShare of cleaned sitesScale
Outdated plugin or theme47%
Weak or reused admin password22%
Nulled / pirated plugin or theme14%
Outdated WordPress core9%
Shared-hosting / other cause8%

Source: ZenWeb malware-cleanup jobs, Malaysian SME websites, 2024–2026. Licence.

Notice the pattern: the top three causes are all upkeep, not bad luck. Outdated components and nulled plugins are exactly why a proper website maintenance plan pays for itself — the updates it runs quietly are the same ones that would have closed the hole.

Key takeaway: You were almost certainly not singled out. Automated bots found a known weakness — usually an out-of-date plugin or a soft password — which means the same basic upkeep that fixes it also prevents the next one.

Not confident cleaning it yourself?

We remove the malware, close the entry point, and harden the site so it does not come back. Get help recovering your website →


5. How to Clean the Malware and Recover Your Site

Quick Answer: To clean a hacked website, restore from a known-clean backup where possible, or scan with a security plugin, remove the malicious files and unknown admin users, then reinstall WordPress core, plugins, and themes fresh. Finish by updating everything and confirming the fix in Google Search Console.

Once the site is contained, work through the cleanup in order. Skipping a step is how sites get reinfected within days.

  1. Restore from a clean backup if you have one. A recent, known-good backup is the fastest and safest recovery. Restore it, then jump to the update step below. No backup? Continue manually.
  2. Run a full malware scan. Use a reputable security plugin such as Wordfence or Sucuri, or your host’s scanner. Note every flagged file and any injected code it finds.
  3. Remove the malicious files and code. Delete unknown files in your uploads folder, clean injected code from core, theme, and plugin files, and check the .htaccess file for rogue redirects.
  4. Delete unknown admin accounts. Remove any user you did not create, and any plugin or theme you do not recognise — nulled plugins are a common backdoor.
  5. Reinstall core, themes, and plugins fresh. Replace WordPress core and every plugin/theme with clean copies from official sources rather than trusting patched files.
  6. Update everything and reset keys. Update all software to the latest version, change passwords again, and refresh your security keys (salts) to log out any lingering sessions.
  7. Reinstall your SSL and confirm the fix. Make sure HTTPS loads cleanly — see what SSL is and why every site needs HTTPS — then request a review in Google Search Console.

One warning: if reinstalling a plugin or theme triggers a blank page, that is usually a conflict, not a fresh hack. Our guide on the WordPress white screen of death walks through clearing it without losing your progress.

Key takeaway: A clean backup turns a multi-day ordeal into a one-hour restore. Without one, the manual route works but demands patience and thoroughness — miss a single backdoor file and the malware returns.

6. What a Hacked Website Costs Your Business

Quick Answer: A hack costs you far more than cleanup time. Injected spam pages, browser warnings, ranking drops, and disapproved ads all cut off traffic and leads while the infection sits there — which is why speed of response matters as much as the fix itself.

The invoice for a hack is rarely the expensive part. The real cost is the lost business while your site is flagged, slow, or invisible. Here is what we most often see on cleaned sites.

Common damage on hacked SME sites
Common consequences seen on hacked Malaysian SME websites and what each one hits, from ZenWeb cleanup jobs.
ConsequenceWhat it hitsHow often we see it
Injected spam / pharma pagesBrand + rankingsVery common
“Dangerous site” browser warningAll click-throughsCommon
Ranking drop / deindexed pagesOrganic trafficCommon
Site slow or intermittently downVisitors + ad spendOccasional
Google Ads disapproved / flaggedPaid trafficOccasional

Source: ZenWeb malware-cleanup jobs, Malaysian SME websites, 2024–2026. Licence.

If you run paid campaigns, watch this closely. A hacked landing page can get your ads suspended, and getting back in is its own process — the same one covered in our guide on fixing disapproved Google Ads.

Key takeaway: The damage compounds the longer the hack goes undetected — spam pages get indexed, warnings spread, and ad accounts get flagged. Fast detection and cleanup is what limits the bill.

Want the whole thing handled and hardened?

We clean the infection and rebuild the site’s defences so you are not back here in six months. See our web design and care pricing →


7. How Long Recovery Takes — With and Without a Backup

Quick Answer: With a recent clean backup, most sites are fully restored in a few hours. Without one, a manual cleanup runs several days — and if Google has blacklisted the site, add a review wait on top. A backup is the single biggest factor in how fast you recover.

The gap between “annoying morning” and “lost week” almost always comes down to one thing: whether you had a working backup. This is what recovery typically looks like across the scenarios we handle.

Recovery time by backup situation
Typical recovery time, data-loss risk, and effort by backup situation, from ZenWeb malware-cleanup jobs.
Backup situationTypical time to restoreData-loss risk
Recent clean backup2–6 hoursNone to minimal
Old backup (weeks stale)1–2 daysSome recent content lost
No backup, manual clean3–7 daysHigh
No backup + Google blacklist1–3 weeks (incl. review)High

Source: ZenWeb malware-cleanup jobs, Malaysian SME websites, 2024–2026. Ranges are typical, not guaranteed. Licence.

The takeaway writes itself: set up automatic off-site backups before you ever need them. It is one of the cheapest lines in any website maintenance budget, and it is the difference between a coffee break and a lost week.

Key takeaway: Recovery speed is decided before the hack, not after. A daily off-site backup is the highest-return thing you can set up today.

8. How to Stop It Happening Again

Quick Answer: Prevent the next hack by keeping everything updated, enforcing strong passwords with two-factor login, running a security plugin or firewall, scheduling off-site backups, and removing plugins and themes you no longer use. Hacked sites almost always lack several of these basics.

Cleaning the site fixes today’s problem. Hardening it fixes next quarter’s. When we audit hacked sites, the same controls are missing again and again — here is how often each basic safeguard was simply not in place.

Basic safeguards missing on hacked sites
Share of hacked Malaysian SME sites that lacked each basic security control, from ZenWeb cleanup jobs.
Missing safeguardNot in place onScale
Two-factor login on admin81%
Automatic updates enabled68%
Scheduled off-site backups64%
Security plugin or firewall59%
Unused plugins/themes removed44%

Source: ZenWeb malware-cleanup jobs, Malaysian SME websites, 2024–2026. Licence.

None of these are expensive or technical. Turn on updates, add two-factor login, install one security plugin, schedule backups, and delete what you do not use. A managed web design and care plan does all five in the background so you never have to remember.

Key takeaway: The safeguards that block hacks are cheap and boring — updates, two-factor, a firewall, and backups. Put all of them in place at once; layered basics beat any single clever trick.

9. When to Clean, and When to Rebuild

Quick Answer: Clean the site when the damage is contained and the platform is otherwise sound. Rebuild when the site keeps getting reinfected, runs on an abandoned theme, or was already overdue for a refresh — sometimes a clean rebuild is faster and safer than repeatedly patching an old, fragile site.

Cleaning is the right call most of the time. A rebuild becomes the honest option in three situations:

  • It keeps getting reinfected. The site is hit again within days despite a thorough clean, which usually means a backdoor you cannot find.
  • It runs on a nulled or abandoned theme. Software that will never get security patches stays a target no matter how often you clean it.
  • It was already old and slow. If the site was overdue for a refresh before the hack, patching it is money spent on a site that will fail again.

If yours fits that picture, weigh the cleanup effort against a website redesign built on a maintained, secure foundation.

Key takeaway: Repeated reinfection or an abandoned theme is a signal, not bad luck. When patching stops paying, a clean rebuild on a secure platform is the cheaper long-term fix.

10. Conclusion

A hacked website feels like a disaster, but it follows a script. Confirm the hack in Search Console, contain it with maintenance mode and fresh passwords, clean or restore, update everything, and turn on the basics that stop a repeat. The businesses that recover quickly are almost always the ones that had a backup ready and their software up to date.

If any of this is beyond your comfort zone, do not gamble with your main sales channel. Getting a hacked site cleaned and hardened properly the first time is far cheaper than cleaning it three times.

Website hacked and need it fixed properly?

Book a free 30-minute session — we’ll assess the damage, give you a clear cleanup plan, and show you how to harden the site so it stays clean.

Get my free recovery review →


11. Frequently Asked Questions

1. How do I know for sure my website is hacked?

Check the Security Issues report in Google Search Console — it is the reliable source of truth. Also search site:yourdomain.com on Google for pages you never created, and open your site on a phone and from a Google result, since many hacks only trigger for outside visitors. If you see redirects, spam pages, or a browser warning, treat it as a hack and act.

2. Can I remove website malware myself without a developer?

Often yes, for a first attempt. If you have a recent clean backup, restoring it is straightforward. A security plugin like Wordfence or Sucuri can scan and remove many infections. But if the site keeps getting reinfected, or you cannot find the backdoor, bring in a professional before more damage is indexed.

3. Will Google remove my site from search if it’s hacked?

Google may show a “This site may be hacked” label or drop infected pages from results to protect users. Once you have cleaned the site, you request a review in the Search Console Security Issues report. Reviews can take anywhere from a few days to a couple of weeks, so cleaning promptly matters.

4. How long does it take to recover a hacked website?

With a recent clean backup, usually a few hours. Without one, a careful manual cleanup runs several days, and if Google has blacklisted the site you add a review wait on top. The single biggest factor is whether you had a working off-site backup before the hack happened.

5. How do I stop my website from being hacked again?

Keep WordPress core, plugins, and themes updated, use strong unique passwords with two-factor login, run a security plugin or firewall, schedule automatic off-site backups, and delete plugins and themes you no longer use. Most hacked sites were missing several of these basics — putting them all in place is the reliable fix.

Table of Contents

Table of Contents

See Also

Online Store Cart Not Updating? How to Fix It Fast

Online Store Cart Not Updating? How to Fix It Fast

Forms Working but Leads Never Arrive? How to Fix It

Forms Working but Leads Never Arrive? How to Fix It

Website Feels Slow to Everyone? How to Diagnose Why

Website Feels Slow to Everyone? How to Diagnose Why

Get A Free Proposal

Complete the form and our team will contact you to discuss your goals. Let’s grow your business.

Meowketing Specialist

Online

Today

Meow! 👋

We are Official Google Partner,
Ask us anything about Marketing!