Skip to content

How to check if your WordPress site is hacked before you pay an agency

By William · · updated · 5 min read

A closed laptop on a desk next to paper files and a pen
AI-generated image.

Run a 10-minute manual check using browser warnings, file timestamps, and database queries to confirm the hack. A clean scan does not guarantee safety because backdoors can be hidden, so verify these specific signs first.

Key takeaways

  • A clean scan does not guarantee safety because backdoors can be hidden.
  • A new admin account with a generic name may indicate unauthorized access.
  • PHP files modified in the last 48 hours without a plugin update are a strong sign of a hack.
  • Unexpected values in the 'home' or 'siteurl' fields indicate the site is redirecting visitors to a malicious site.
  • Do not hand over your credentials to a paid fixer until you have confirmed the problem.

Check the browser and Google Safe Browsing warnings

Open your site in an incognito or private browser window. Do not use your normal browser profile, which may have cached pages or extensions that mask the warning. Look for a full-page red warning that says the site may harm your computer. Google Safe Browsing displays a malware warning message when a user attempts to visit an unsafe site, indicating a likely hack [1].

If the warning appears, the site is serving malicious code to visitors. This confirms an active compromise. Take a screenshot of the warning. Save it to your local computer, not the compromised site. You will show this to a fixer or keep it for your own records before proceeding.

If no warning appears, do not assume the site is safe. Some malware only activates for specific visitor types or after a delay. Continue to the next checks.

Verify your admin account still exists

Try logging in to wp-admin with your original admin username and password. If you receive the error "The username 'yourusername' is not registered on this site", it is likely that a hacker deleted the account and created a new admin account [1].

Illustration: Verify your admin account still exists

If you can log in with a different account, go to Users in the wp-admin sidebar. Look for new users with generic names like "admin2", "test", or "support". A new admin account with a generic name may indicate unauthorized access. Check the creation date of each user against your own records. If you do not remember creating an account on that date, treat it as suspicious.

If you cannot log in at all, you have lost access to the admin panel. This is a strong sign of compromise. You will need to reset your password through your hosting control panel or contact your host to restore access.

Review file timestamps for recent changes

Access your site files via FTP or your host's file manager. Navigate to the wp-content/plugins and wp-content/themes folders. Look for PHP files that were modified in the last 48 hours.

Malware on WordPress is unwanted code that steals data, spam-sends, redirects visitors, or keeps a backdoor open [2]. If you see files you do not recognize or that were updated without you installing a plugin, this is a strong sign of a hack.

For example, suppose you see a file called "cache-helper.php" in a theme folder that you did not create. Check its modification date. If it was changed yesterday and you did not update that theme, it is likely malicious. Do not delete it yet. Note its name and location. You will need this information when you clean the site.

Search the database for suspicious entries

Connect to your MySQL or MariaDB database using phpMyAdmin or a similar tool [3]. WordPress is written in the PHP programming language and paired with a MySQL or MariaDB database [3].

Search the wp_options table for unexpected values in the 'home' or 'siteurl' fields that point to unknown domains. If these fields contain a domain you do not recognize, the site is redirecting visitors to a malicious site.

Check the wp_users table for new accounts you did not create. Look for spam comments or posts in the wp_comments and wp_posts tables that were published recently. If you see posts in a language you do not use or with links to unknown sites, these are likely spam injected by the attacker.

Understand why a clean scan is not enough

A backdoor is defined as hidden access an attacker leaves to return without the original vulnerability [2]. Free malware scanners only find what they already recognise, so a backdoor can survive and reinfect the site.

Illustration: Understand why a clean scan is not enough

Reinfection is the tell-tale sign of a backdoor that was never found, so a clean scan does not guarantee the site is safe. If you find any of the signs above, the site is hacked even if a scanner reports no threats.

Do not hand over your credentials to a paid fixer until you have confirmed the problem using the steps above.

What to do once you confirm the hack

Do not pay an agency until you have confirmed the hack using the steps above. If you are unsure whether the site is hacked, seek professional verification rather than assuming it is safe.

Change all passwords after cleanup [4]. This includes your WordPress admin password, your hosting account password, and any database passwords.

Request a Google review to remove the Safe Browsing warning after the site is cleaned [1]. You can submit this request through the Google Search Console.

For a full step-by-step recovery process, see How to recover a hacked WordPress site in 7 steps. Before you start cleaning, back up the compromised site so you have a record of what was changed. See How to back up a hacked WordPress site before you clean it.

If you want a complete checklist you can follow from isolation to hardening, the WordPress Hack Recovery Guide pack walks through each step with screenshots and database queries.

Frequently asked questions

What should I do if I see a red warning in my browser?

Take a screenshot of the warning and save it to your local computer, not the compromised site.

How do I check if my admin account was deleted?

Try logging in with your original username.

Why is a clean malware scan not enough?

Free malware scanners only find what they already recognise, so a backdoor can survive and reinfect the site.

What should I do after confirming the site is hacked?

Change all passwords after cleanup and request a Google review to remove the Safe Browsing warning.

Sources

  1. WordPress Site Hacked? Do This First 7-Step Emergency Fix (jetpack.com)
  2. Check if WordPress Site Is Hacked (wpsecurityninja.com)
  3. WordPress – Wikipedia (en.m.wikipedia.org)
  4. What to do if your WordPress site is hacked WordPress.com Support (wordpress.com)

Related on this site

This article was drafted with AI assistance and checked before publication.

Free calculator: Website hack downtime cost calculator

The full guide: WordPress Hack Recovery Checklist

Free sample: WordPress Hack Recovery Checklist
Get the free sample now, and new guides by e-mail.