How to Check WordPress for Malware and Recover
Signs of a hacked site include strange redirects, unknown admin users, spam pages or a browser warning. On Shared Web Hosting, open a support ticket first: our engineers review what the malware scanner flags and clean up what is confirmed. Then lock down access, restore a clean backup or clean the site, and update everything.
Applies to: cPanel WordPress Blue Arctic Shared Web Hosting (cPanel); WordPress 7.x
On this page
On Blue Arctic Shared Web Hosting, every file written to your account is scanned for malware. Infected files are quarantined (moved out of the way) automatically. Our engineers review what the scanner flags, clean up what is confirmed and look for how it got in. If you see any sign below, start with Step 1.
Note
If you have Managed WordPress Hosting, open a support ticket straight away and tell us what you see.
Signs your site may be hacked
- Visitors are sent to another website, sometimes only from search results or on phones.
- Admin users, pages or plugins you don’t recognize.
- A browser or Google warning that the site is dangerous.
- Spam links or text in your pages or search results.
- A notice from us about malware or spam from your account.
Step 1: Open a support ticket
- Write down what looks wrong, when you noticed it, and any recent changes.
- Open a support ticket from the Client Portal at my.bluearctic.com with your site address and notes.
Start Step 2 while you wait for our reply.
Step 2: Keep a copy, then lock down access
- Keep a copy of the site as it is now (see how to download a backup). Never upload it back. If you can’t make a copy, say so in your ticket and delete nothing until we reply.
- Run a full antivirus scan on your own computer.
- In WordPress, go to Users → Profile and click Set New Password. Save the long password WordPress fills in to a password manager, or write it down.
- Click Update Profile. Ask every other administrator to do the same.
- Change the passwords for your Client Portal, cPanel and every email account at your domain, using long, unique passwords. If you can’t find where to change one, ask in your ticket.
- On your profile, click Log Out Everywhere Else. For each other administrator, open Users → All Users, click Edit under their name, then Log Out Everywhere.
Next, go to Users → All Users and read the Role column. If you and anyone who helps with your site know every administrator, go to Step 3. If there is an administrator nobody recognizes, remove it:
Warning
Deleting a user can also delete their pages and posts.
- Write the unknown account’s username and email address in your ticket, then click Delete under it.
- If WordPress asks about its content, choose Attribute all content to another user, then pick your own account.
- Click Confirm Deletion.
Step 3: Choose how to recover
Warning
A restore loses anything added since that backup, and the weakness that let the attacker in is still there. After a restore, check Users for unknown administrators, then do Step 4 straight away.
Option A: restore a clean backup. We keep daily backups for 30 days on Shared Web Hosting. In your ticket, ask for a restore from a few days before you first noticed anything, because attackers often get in earlier. See how to restore a backup.
Option B: clean the site yourself (advanced). Not comfortable with these steps? Use Option A.
- Install a well-reviewed security scanner plugin and run a full scan.
- Before deleting anything it reports, ask in your ticket whether it’s safe to remove.
- Delete plugins and themes you don’t use, and reinstall the rest from their official source.
Then replace WordPress’s own files with fresh copies. This fixes WordPress’s own files if an attacker changed them. It does not remove files an attacker added.
- In WordPress, go to Dashboard → Updates. If you see Update to version, click it first, then open Updates again.
- Click Re-install version. If you don’t see this button, or WordPress asks for connection details, stop and ask in your ticket.
- Run the scan again.
Note
Re-installing also leaves .htaccess alone, a hidden settings file attackers often change. In your ticket, ask us to check .htaccess and to look for added files. For a deeper clean by hand, see WordPress’s guide FAQ: My site was hacked.
Step 4: Close the way in
- Update WordPress, every plugin and every theme (see how to update WordPress safely).
- Change all the Step 2 passwords again. In your ticket, also ask about new WordPress secret keys (they log out every session at once) and a new database password.
- Turn on two-factor sign-in for every administrator (see how to reduce login and comment spam).
- If Google warned that your site is dangerous, open the Security issues report in Google Search Console (Google’s free tool for site owners). Then click Request Review. If you have never used Search Console, add your site there first. Google’s review can take from a few days to a few weeks.
How to tell it worked
A new scan finds nothing, no unknown users or files come back over the next few days, and browser or search warnings are gone. Before you call the site clean, ask in your ticket whether our malware scanner still flags anything on your account. If we can’t tell you, or any sign comes back, use Option A.
Troubleshooting
- The infection comes back: something was missed, often a backdoor (a hidden file that lets the attacker back in) or a stolen password. Reply to your support ticket.
- A file is missing or part of your site stopped working: the malware scanner may have quarantined an infected file. Open a support ticket and tell us which page or file.
- You’re locked out of WordPress: see how to reset your WordPress password.
- Your account has been suspended for malware: we tell you why and what needs fixing. Reply to that message, or open a support ticket, straight away.
Still need help?
Reply to your ticket, or open one from the Client Portal at my.bluearctic.com. Include your site address, what you noticed and when, what your scan reported, and what you already tried. Never include a password.