🔒 PDPA
IT & Cybersecurity

My WordPress Website Was Hacked: A Step-by-Step Recovery Guide for Malaysian SMEs

IT & Cybersecurity - 2026-09-11 - by Cybergate Technology

My WordPress Website Was Hacked: A Step-by-Step Recovery Guide for Malaysian SMEs
What should I do if my WordPress website has been hacked?

Take the site offline or into maintenance mode immediately, change every password and access key (WordPress admin, hosting, FTP, database), scan for and remove malicious code, restore from a clean backup if one exists, update WordPress core, themes and plugins, then check Google Search Console for security warnings before bringing the site back fully live. If you are not confident doing this yourself, get a web professional to clean and harden the site rather than leaving it exposed.

What Does It Actually Mean When a WordPress Website Is 'Hacked'?

When people say a website has been hacked, they usually mean someone has gained unauthorised access to it, either through a weak password, an outdated plugin, or a vulnerable theme, and used that access to plant malicious code. This code can redirect visitors to spam or scam sites, inject hidden links to boost someone else's SEO, deface the homepage, steal customer data submitted through forms, or quietly mine the server for other attacks. Some hacks are loud and obvious. Many are silent for weeks.

WordPress itself is generally secure when kept updated, but it is the most widely used content management system in the world, which makes it the most attractive target for automated attack bots. These bots do not care whether you run a five-page company profile site or a busy eCommerce store, they scan millions of sites a day looking for known vulnerabilities in outdated plugins and themes. If your Malaysian SME website runs on WordPress, understanding this recovery process is worth reading even before anything goes wrong.

Why Malaysian SME Websites Are Common Targets

It is a common misconception that small businesses are 'too small to be worth hacking'. In reality, SME websites are targeted precisely because they are smaller and less protected than enterprise sites, yet still valuable for the attacker's purposes. A hacked SME site can be used to host phishing pages, distribute malware, or simply borrow the site's existing Google trust to rank spam pages, all without the owner noticing for a long time.

Many Malaysian SME websites are built once by a freelancer or agency and then left largely unmaintained for years. Plugins go unupdated, the original developer is no longer contactable, and nobody is actively watching for security warnings. This is exactly the environment automated attack tools are designed to find. A proper website development partner should include ongoing maintenance and monitoring as part of the relationship, not just a one-time build.

The Warning Signs: How to Tell Your Website Has Been Compromised

Some hacks are impossible to miss: your homepage is replaced with a defacement message, or visitors report being redirected to a gambling or adult site the moment they land on your domain. Others are far more subtle and are usually caught through one of a handful of signals rather than a dramatic visual change.

  • Google Search Console shows a 'Security Issues' warning or your search listing carries a 'This site may be hacked' label
  • Chrome or another browser shows a red 'Dangerous site' warning before visitors can even load your page
  • Unexplained new admin users appear in your WordPress user list
  • Search rankings or organic traffic drop suddenly with no other explanation
  • Your hosting provider emails you about unusual outbound traffic, high server load, or a suspended account
  • Strange foreign-language pages appear when you search 'site:yourdomain.com' on Google

If you notice any of these, do not assume it will resolve on its own. The longer malicious code sits on your site, the more damage it can do to both your reputation and your search rankings, and the harder it becomes to fully clean up.

Step 1: Don't Panic, But Act Fast, Put the Site Into Maintenance Mode

Your first move should be to limit further damage rather than to start investigating immediately. If your hosting control panel allows it, temporarily suspend the site or switch it into maintenance mode so visitors are not exposed to malicious redirects or malware while you work. Some hosts offer a one-click 'quarantine' feature for exactly this situation.

If you cannot take the site fully offline, at minimum avoid logging into WordPress from a device you suspect may itself be compromised, and avoid entering any passwords until you are on a device you trust. Attackers sometimes install keyloggers or capture credentials through the same vulnerability they used to get in, so re-using a compromised login session can hand them fresh access even after you think you have locked them out.

Step 2: Change Every Password and Access Key Immediately

Once the site is contained, change every credential connected to it, not just the WordPress admin password. This includes your WordPress admin and any other user accounts, your hosting control panel (cPanel or similar), FTP/SFTP credentials, the database password, and any API keys or third-party integrations (payment gateways, email marketing tools, CRM connections) that the site talks to.

Use long, unique passwords for each of these, ideally generated and stored in a proper password manager rather than reused across services. If several staff members have WordPress logins, have everyone reset their passwords too, since a hacked site often means at least one set of credentials was already compromised before the attack was even noticed.

Step 3: Scan the Site for Malware and Malicious Code

Before you can clean anything, you need to know the scope of the infection. Security plugins such as Wordfence or Sucuri offer free malware scanning that will flag suspicious files, unexpected changes to core WordPress files, and known malware signatures. Run a full scan and read through the results carefully rather than only glancing at the summary.

Pay particular attention to files in your theme folder, the wp-content/uploads directory (which should never contain PHP files), and any recently modified files that you did not personally change. Attackers commonly hide malicious code inside legitimate-looking files with names close to genuine WordPress files, so a line-by-line comparison against a clean copy of the same file is often necessary.

Step 4: Find and Remove the Backdoor

A backdoor is code the attacker leaves behind specifically so they can regain access even after you think you have cleaned the site. This is the step most DIY cleanups miss, and it is why so many hacked sites get reinfected within days of being 'fixed'. Common backdoor locations include disguised files in the themes and plugins folders, hidden admin user accounts, and scheduled tasks (cron jobs) that silently re-download malicious code.

If you are not confident identifying and removing backdoors yourself, this is the point at which bringing in a professional makes sense. A partial cleanup that removes the visible symptoms but leaves the backdoor in place is, in some ways, worse than doing nothing, because it gives you false confidence that the problem is solved.

Step 5: Restore From a Clean Backup, or Clean the Files Manually

If you have a backup from before the infection, restoring it is usually faster and safer than manually hunting down every piece of injected code. The key word is 'before the infection', restoring a backup that already contains the malware simply brings the problem straight back. Check file modification dates against when you first noticed suspicious behaviour to estimate how far back the clean backup needs to go.

If no clean backup exists, or if too much legitimate content has changed since then to make restoring practical, manual cleanup is the only option. This involves comparing your WordPress core files against a fresh official download, removing and reinstalling every plugin and theme from trusted sources rather than trying to clean the existing copies, and checking the database for injected spam content or malicious script tags. This is exactly why a proper backup and disaster recovery plan matters, a clean, recent, offsite backup turns a stressful multi-day recovery into a much faster restore.

Step 6: Update WordPress Core, Themes, Plugins and PHP

Once the site is clean, the vulnerability that let the attacker in needs to be closed, otherwise you are simply waiting to be hacked again. Update WordPress core to the latest version, update every theme and plugin, and remove any plugins or themes you are not actively using, since inactive software can still be exploited if it remains on the server.

Check your hosting account's PHP version too. Older PHP versions no longer receive security patches and are a common entry point for attacks even when WordPress itself is fully updated. Most Malaysian hosting providers allow you to change the PHP version from the control panel, and a competent website development team can confirm your theme and plugins are compatible with a current version before you switch.

Step 7: Check Google Search Console for Security Issues

Log into Google Search Console and check the Security Issues report under the left-hand menu. If Google detected the hack, it will list the specific issue type (malware, hacked content, harmful downloads, or social engineering) along with example URLs affected. This report will not clear itself automatically, even after you clean the site.

Once you are confident the site is fully clean, use the 'Request Review' option inside the Security Issues report to ask Google to re-check the site. Be honest and specific in the notes about what you found and fixed, vague or rushed review requests are more likely to be rejected, sending you back to the start of the queue.

Recovering Your Search Rankings After a Hack

A hack that triggers a Google security warning almost always causes a temporary drop in rankings and traffic, since Google actively protects searchers from sites flagged as unsafe. The good news is that this drop is usually recoverable once the site is clean and the security warning is cleared, Google does not permanently penalise a site for having been the victim of an attack.

The speed of recovery depends on how thoroughly the cleanup was done and how quickly you request a review after fixing the issue. Continue monitoring your SEO and rankings closely for a few weeks after recovery, and resubmit your sitemap in Search Console so Google recrawls your pages faster. If spam pages were injected and indexed under your domain, use the URL Removal tool for those specific URLs once they have been deleted from the site.

Notifying Customers and Handling PDPA Obligations

If your website collects any personal data, contact forms, customer accounts, payment details, or an email newsletter list, you need to assess whether that data may have been accessed or exposed during the breach. Under Malaysia's Personal Data Protection Act, businesses have obligations around safeguarding personal data and, depending on the nature and scale of the breach, may need to notify affected individuals or the relevant authority.

Document what happened, when you discovered it, what data was potentially exposed, and what steps you took to fix it. This record matters both for compliance and for rebuilding customer trust if you do need to communicate about the incident. If you are unsure of your specific PDPA obligations following a breach, this is worth checking with a qualified advisor rather than guessing.

Hardening Your Website So It Doesn't Happen Again

Cleaning up a hacked site is expensive in time, stress, and sometimes lost business, so the priority afterward should be making sure it does not happen twice. A handful of relatively simple habits close most of the common entry points attackers rely on.

  • Keep WordPress core, themes and plugins updated on a set schedule rather than only when you remember
  • Use strong, unique passwords and enable two-factor authentication for all admin accounts
  • Limit login attempts and rename or protect the default wp-admin login page
  • Remove plugins, themes and old user accounts you no longer actively use
  • Install a web application firewall to filter malicious traffic before it reaches WordPress
  • Choose reputable, security-conscious hosting rather than the cheapest available plan
  • Restrict admin-level access to only the staff who genuinely need it

The Role of Managed Backups and Monitoring

The single biggest factor in how painful a hack recovery turns out to be is whether a clean, recent backup exists. Automated daily or weekly backups stored offsite, separate from the hosting account itself, mean a hack becomes a same-day restore rather than a week-long forensic cleanup. A solid backup and disaster recovery setup should cover your website the same way it covers your business files and email.

Ongoing security monitoring is the other half of the equation. Uptime monitoring, malware scanning, and file-integrity checks catch problems within hours instead of weeks, which dramatically limits both the SEO damage and the scope of cleanup required. Many Malaysian SME owners only think about this after their first hack, it is far cheaper to set up beforehand.

DIY Cleanup vs Hiring a Professional

A confident, technically comfortable business owner can follow the steps above and clean a straightforward infection themselves, particularly with the help of a security plugin's scanning tools. However, backdoors, deeply nested malicious code, and database-level infections are genuinely difficult to fully remove without experience, and a partial cleanup often leads to reinfection within days.

If your website is central to how customers find and trust your business, generates leads or sales directly, or you simply do not have the time to spend a full day (or more) on cleanup, bringing in a professional is usually the more cost-effective choice once you account for lost business during downtime. Cybergate's website development and cybersecurity teams handle hacked WordPress recovery as part of ongoing support for Shah Alam, Melaka and Klang Valley businesses.

What Website Security and Recovery Costs in Malaysia

Pricing for hack cleanup varies depending on how deeply the site is infected and how long it has gone unnoticed, so treat any flat number you see online with caution. As a general guide, ongoing website care that includes monitoring and maintenance to prevent this in the first place starts from RM120 per month, while a rebuilt or hardened website starts from RM1,199.

If your existing site needs urgent, one-off cleanup work, request a proper assessment first, since the scope can range from a quick plugin fix to a full rebuild depending on how compromised the underlying files and database are. Cybergate is not SST-registered, so any quote provided is the final price with no hidden tax added on top.

Key Takeaways

A hacked WordPress site is stressful but almost always recoverable if you act methodically: contain it, change every credential, scan and remove malicious code including backdoors, restore from a clean backup where possible, update everything, and clear the Google Search Console security warning. Prevention through updates, strong access controls, monitoring and proper backups is far cheaper than any cleanup, so treat this guide as a checklist to implement now rather than only after something goes wrong.

Need help with this?

Cybergate provides IT support, cybersecurity, Microsoft 365 and SEO for Malaysian businesses. Free consultation, no obligation.

Get Free Consultation WhatsApp Us

Frequently Asked Questions

How long does it take to recover a hacked WordPress website?
A clean restore from a recent backup can take as little as a few hours. A manual cleanup without a usable backup, including finding and removing backdoors, typically takes one to several days depending on how long the infection went unnoticed and how large the site is.
Will Google permanently penalise my site for being hacked?
No. Google does not treat a hacked site as the website owner's fault. Once the site is genuinely clean and you request a review through Google Search Console, the security warning is lifted and rankings typically recover over the following weeks.
Can I recover a hacked website without a backup?
Yes, but it is slower and riskier. Without a clean backup you need to manually compare every core file, theme file and plugin against trusted original copies, check the database for injected content, and remove any backdoors by hand. This is the scenario where professional help is most valuable.
Do I need to tell my customers if my website was hacked?
It depends on whether personal data was collected on the site and whether it may have been exposed. Under Malaysia's PDPA, businesses have data protection obligations that may require notification depending on the nature of the breach. Document everything and check your specific obligations with a qualified advisor.
How much does it cost to fix a hacked WordPress website in Malaysia?
Cost depends on the depth of infection and the size of the site, so avoid trusting a flat number without an assessment. Ongoing managed support that includes monitoring to prevent hacks starts from RM500 per month, and a hardened or rebuilt website starts from RM1,199.
What is the single most effective way to prevent a WordPress hack?
Keeping WordPress core, themes and plugins fully updated closes the majority of known vulnerabilities that automated attack bots scan for. Combine this with strong unique passwords, two-factor authentication, and a web application firewall for the strongest practical protection.
Keep Reading

Related Articles