Your WordPress site is probably hacked if you see things you did not publish: redirects to strange sites, spam pages showing up in Google under your domain, admin accounts you do not recognize, or a warning from Google or your host. One odd glitch is not proof. Several of these together usually is.
I have worked on WordPress sites for years and given talks on WordPress security at WordCamp events, and the pattern is almost always the same. The owner notices something small, deletes what looks wrong, and the infection comes back a week later because the way in was never closed. Here is how I check, in the order I check it.
Do not start deleting things. That is the most common mistake I see, and it destroys the evidence of how they got in.
Most hacked sites I see were not targeted. They were running a plugin with a known hole, and an automated scan found it. Keep plugins and themes updated, delete the ones you do not use, give every admin a unique password and two-factor login, and keep off-site backups you have actually tested restoring. A firewall in front of the site, such as Cloudflare, also cuts down a lot of the automated traffic.
If you would rather hand this off, I clean up and harden WordPress sites as part of my WordPress speed, security and technical SEO work. I also wrote up what I covered in my WordCamp talk on WordPress security best practices.
Only if you know the backup is from before the infection and you also close the hole that let them in. Otherwise the site gets reinfected the same way, often within days.
It can find and remove a lot, but it runs inside the same WordPress install that was compromised. I treat scanner results as a starting list, not proof the site is clean.
A lot of malware hides from logged-in admins and only targets visitors who come from search engines or use phones. Always test logged out.
Lucas Alvarado — Senior marketing technology and web operations consultant. HubSpot, Salesforce, Pardot, and high-traffic WordPress for B2B revenue teams. Based in Miami, working with companies across the US.