WordPress Security for Malaysian SMEs: The Two Holes We Keep Finding

We host and maintain around thirty WordPress sites. When one of them gets into trouble, it is almost never a clever exploit. It is nearly always one of two ordinary holes: an administrator password that too many people know, or a backup file sitting in a public folder. Here is what each looks like, and how to close it.

TL;DR — Key takeaways
  • Hole one: stolen or shared admin passwords. The attacker logs in like a normal user, installs something, adds a hidden admin, and comes back after every "clean" until the account itself is fixed.
  • Fix it with one named account per person, 2FA for every administrator, the lowest role that does the job, and a monthly look at the users list.
  • Hole two: full-site backup archives left inside the web root. Their protection often relies on .htaccess, which nginx ignores, so the whole database can be downloadable.
  • Fix it by keeping backups off the server, deleting local copies after a migration, adding an nginx deny rule, and testing the URL yourself from outside.
  • A leaked database with customer details is a personal-data problem under the PDPA, not just a technical one.

WordPress core is well maintained and patched quickly. What goes wrong on small business sites is usually the way the site is run, not the code it runs on. These notes are deliberately general, because the point is the pattern: the same two keep coming back, and both are cheap to fix.

Hole one: the admin password too many people know

What it looks like

A typical SME website is set up once with an account called admin, and over the years that one login gets passed around: the marketing executive, the intern, the freelancer, the previous agency. The password lives in a WhatsApp group or a shared spreadsheet.

Then, one way or another, that password reaches the wrong person. It was reused on a site that was breached, or a laptop with saved passwords picked up an infostealer. Nobody has to break WordPress at all. The attacker simply types the username and password into the login page and is in.

From there, an administrator can do anything the real owner can. The usual sequence we see is:

This is why malware "comes back". Someone deletes the infected files and declares the site clean; a week later it is reinfected, because the attacker still has a working login. Cleaning files without fixing accounts is mopping the floor with the tap still running.

How to close it

If it has already happened

If someone has logged in who should not have, a scan and a delete is not enough. Our order of work:

  1. Change every password: WordPress users, hosting panel, database, FTP/SFTP and the email accounts tied to admin users.
  2. Regenerate the WordPress security keys and salts in wp-config.php. This logs out every existing session, including the attacker's.
  3. Audit the users list, and check the database directly for administrator accounts that do not appear in the dashboard.
  4. Compare WordPress core files against a clean copy of the same version, and reinstall plugins from their official source.
  5. Look in the places backdoors like to hide: the mu-plugins folder, any .php file inside uploads (there should be none), and scheduled tasks, both WordPress cron events and the server's own cron.
  6. Only then decide whether a backup is useful. Do not simply restore last month's copy and call it fixed: if the intruder was in before that backup was taken, the backdoor is in the backup as well.

Hole two: the backup sitting in a public folder

What it looks like

The second hole is quieter, and in some ways worse, because nothing looks wrong. Nothing is infected. The site works perfectly.

Many popular migration and backup plugins work by writing a single archive file into a folder inside wp-content. That archive is the whole site: every file, plus a complete copy of the database. The database holds user accounts with password hashes, and on most business sites it also holds customer names, emails, phone numbers, enquiry form submissions and, for online shops, order histories.

Because wp-content sits inside the web root, the archive has a public URL. The plugins know this, so they usually drop an .htaccess file into the folder to block downloads. On an Apache server, that works.

The catch is that .htaccess is an Apache feature. nginx, which runs a large share of modern VPS and managed hosting, does not read .htaccess files at all. On nginx that protection is simply ignored, and if the archive's file name can be guessed or the folder can be listed, the whole site, database included, can be downloaded by anyone who asks for it.

It is easy to miss. The archive is often left behind after a one-off migration, and some server malware scanners do not report it, because it is not malware. It is an ordinary file in the wrong place, so a clean scan tells you nothing about it.

How to close it

# Refuse common backup and database dump files anywhere on the site
location ~* \.(wpress|sql|zip|tar|gz|tgz|bak)$ {
    deny all;
}

# Refuse everything inside the backup plugin's folder
# (replace the path with the folder your plugin actually uses)
location ^~ /wp-content/your-backup-folder/ {
    deny all;
}

The PDPA angle

If a downloadable backup contains your customers' personal data, that data has been exposed, whether or not anyone downloaded it. Under Malaysia's Personal Data Protection Act you are responsible for keeping that data secure, so treat a discovery like this as a possible data breach: close it, work out what was in the file and how long it was exposed, and take advice on whether you need to notify anyone. We cover the wider obligations in our PDPA compliance guide for Malaysian websites.

Want us to check your site for both holes?

Send us your site address. We will tell you plainly whether shared logins, missing 2FA or a public backup are putting it at risk, and what it takes to fix them.

Ask for a security check WhatsApp us

A 10-minute monthly security routine

Once a month, someone who owns the site should spend ten minutes on this list:

  1. Users: open the users list. Is every account a real, current person? Is anyone an Administrator who does not need to be?
  2. 2FA: does every administrator still have two-factor authentication switched on?
  3. Updates: are core, plugins and themes up to date? Apply anything outstanding, ideally after a fresh off-site backup.
  4. Unused code: delete any plugin or theme that is deactivated and not coming back.
  5. Backups: confirm last night's backup reached off-site storage, no archive is sitting in wp-content, and the backup folder's URL is refused from outside.
  6. Files: glance at your file-integrity or security plugin report for unexpected changes, and for any .php file in uploads.
  7. Leavers: has anyone left the company or finished a contract this month? Remove their account today.

What hosting and maintenance should include

If you pay someone to host or maintain your site, most of the above should be their job. Ask them:

This is how we run our own managed WordPress hosting, and it is part of every site we build and maintain under our web development service.

FAQ

Is it safe for our staff to share one WordPress admin login?

No. A shared login cannot have two-factor authentication tied to one person, cannot be removed when someone leaves, and leaves no record of who did what. Give every person their own named account with the lowest role they need, and turn on 2FA for every administrator.

We cleaned the malware but it came back. Why?

Usually because the way in was never closed. If the attacker has a working administrator login, or added a hidden admin user, they simply log in again. Rotate every password and the salts, and audit the users list.

Our backup plugin says its archives are protected. Are they?

Often only on Apache. Many backup and migration plugins protect their folder with an .htaccess file, which nginx ignores completely. Request the backup URL yourself from outside your network: if it downloads, it is public. The safest answer is to keep no backup archives inside the web root at all.

Is a leaked website backup a PDPA issue?

It can be. A full-site backup contains the whole database, usually including customer names, emails and form submissions. If anyone can download it, personal data you are responsible for under the PDPA has been exposed, so treat it as a possible data breach.

Can we just restore last month's backup after a hack?

Not blindly. If the attacker was in before that backup was taken, the backdoor is in the backup too. After restoring, still rotate passwords and salts, audit users and check for stray PHP files.

The bottom line

Most WordPress break-ins at small businesses are not sophisticated. They come through a password too many people knew, or a backup nobody remembered. Give everyone their own account with 2FA, keep backups off the server, and check both once a month.


More reading: PDPA compliance for Malaysian websites · Best web hosting in Malaysia for 2026 · WordPress page builders for Malaysian businesses

Privacy Terms Cookie preferences Affiliate disclosure
← Back to blog Get a free quote →