ix
ix

informatix

PL version Book a discovery call
Home / Blog / WordPress Malware Removal — Procedure & Costs [2026]
• Updated: • 14 min read •

WordPress Malware Removal — Procedure & Costs [2026]

An infected WordPress site: redirects, SEO spam, backdoors, payment skimmers in WooCommerce. Step-by-step procedure: isolation, password rotation, scanning, file and database cleanup, hardening and getting back into Google. Cost: from 400 PLN net, a store with a skimmer 900–2,500 PLN net.

WordPress Malware Removal — Procedure & Costs [2026]
DevOps & maintenance

An infected WordPress site shows symptoms you cannot ignore: redirects to foreign sites, pop-up ads, spam subpages in Google, the "This site may harm your computer" warning, or account suspension by the hosting provider. Behind most of these infections sit the same mechanisms: malware in files, backdoors hidden in the uploads directory and injected code in the database. At such moments a fast, orderly response matters: isolation, password rotation, scanning, cleaning files and database, hardening the site and notifying Google. WordPress malware removal usually costs from 400 PLN net (simple infections) to 1,500–2,500 PLN net (extended, multi-stage compromises) — and the most expensive part is often not the repair itself, but the time the site is blocked or excluded from search results. This guide covers the full procedure — from identifying the infection type to post-repair monitoring.

Key takeaway: Symptoms: redirects, SEO spam, pop-up ads, strange admin accounts, slowdown, Google warnings, hosting suspensions. Procedure: isolate and back up → rotate all passwords (hosting, WP, database, FTP) → scan (Wordfence, Sucuri, WPScan, hosting scan) → clean files (wp-config.php, functions.php, .htaccess, uploads) and database (wp_options, wp_posts, wp_users) → remove backdoors → harden (2FA, permissions, updates) → Google Search Console review → post-repair monitoring. Cost: from 400 PLN net, extended cases 1,500–2,500 PLN net, a WooCommerce store with a skimmer 900–2,500 PLN net.

How do you know the site is infected?

  • Redirects — the site opens foreign content (often only for Google visitors or on mobile — so-called cloaking).
  • SEO spam — subpages you did not create appear in Google's index (pharmaceuticals, casinos, links, content in foreign languages).
  • Pop-up ads and strange scripts on the site, including pages that never had them.
  • New administrator accounts and changes you did not make — new plugins, a changed theme, foreign posts.
  • Slowdown and server overload — malware often sends spam, mines cryptocurrency or attacks other servers from your hosting.
  • Outgoing spam — hosting emails about sending limits or your domain landing on email blacklists.
  • Strange store behaviour — new fields in the checkout form, extra scripts in the cart or payment step (payment card skimmers).
  • Warnings — Google's "This site may harm your computer", a red Safe Browsing screen, blacklists, hosting emails about account suspension.

One symptom is already a signal — infections rarely "sit quietly"; they usually spread to more files and databases. If you suspect an infection but see no symptoms, run through the checklist of scanners and symptoms.

Types of malware infections in WordPress

Effective cleanup starts with identifying the infection type — otherwise you clean symptoms, not the mechanism. Malware in WordPress takes a handful of typical forms:

  • Redirect malware — code in .htaccess, wp_options or theme files redirects visitors to foreign sites. Often active only for Google traffic or mobile devices, which is why "it works on my machine" is a trap.
  • SEO spam (pharma hack, doorway pages) — a backdoor generates thousands of subpages with pharmaceuticals, casinos or links; Google indexes them as part of your domain.
  • Backdoors and web shells — hidden PHP files (often in uploads/ disguised as images) that let the attacker return after cleanup. Without removing them, the infection is back within days.
  • Payment skimmers (Magecart) — JavaScript injected into the cart or checkout of a WooCommerce store, stealing payment card data. The most dangerous type for stores: it means a personal data breach and GDPR obligations.
  • Cryptominers — scripts mining cryptocurrency on visitors' devices or the server; the symptom is a drastic slowdown and high CPU usage.
  • Mailer spam — a script sending thousands of emails from your server; it ends with your domain on blacklists and the hosting suspending your account.
  • Infected plugins and themes — malicious code appended to a legitimate plugin, or a whole plugin from a pirated source (so-called nulled) with a built-in backdoor.

Malware removal step by step

  1. Isolation — if possible, put the site into maintenance mode or restrict access; pause campaigns driving traffic to infected pages.
  2. Forensic and working backups — a copy of the infected version (for analysis) and a copy of the "last healthy" state, if you have one. Without a backup there is no safe rollback — that is why WordPress website care treats backups as a precondition for any repair.
  3. Change all passwords — hosting/panel, WordPress (all accounts), database, FTP/SFTP, API keys. Every professional starts here — old passwords are an open door.
  4. Scan — a security plugin (e.g. Wordfence, Sucuri), a hosting-side malware scan (many hosts offer detection) plus WPScan and VirusTotal to verify individual files.
  5. Clean files — WordPress core (overwrite with a clean version), theme and plugins (compare with originals), the uploads directory (web shells hidden in "images"), .htaccess, index.php, wp-config.php and functions.php.
  6. Clean the database — wp_options (injected scripts, redirects and fake siteurl/home entries), wp_posts (spam content), wp_users and wp_usermeta (unknown accounts and escalated privileges), backdoor leftovers.
  7. Remove backdoors — hidden accounts and files that let attackers return; without this, the infection comes back within a week. This is the step where amateur cleanup most often fails.
  8. Harden — update everything (WordPress updates), 2FA for administrators, login attempt limits, correct file permissions, disable file editing in the panel.
  9. Notify Google — Search Console > Security Issues: after the repair, request a review; remove spam URLs with the Removals tool.
  10. Monitor — for several weeks watch logs, scans and the index; a returning infection means something was missed.

Warning: Do not delete the forensic copy of the infected version before the analysis is complete. If customer data leaked (a store, forms), the infection copy may be needed to assess the impact and your GDPR notification duties.

Where to look for malicious code — files and database

Malware in WordPress favours the same places. A file checklist

File / directory What to look for
.htaccess Redirect/RewriteRule rules pointing to foreign domains, blocks for Googlebot
wp-config.php code appended before and after require_once ABSPATH
index.php, wp-load.php injected eval, base64_decode, gzinflate
wp-content/themes/*/functions.php unknown hooks, code loaded from external sources
wp-content/uploads/ .php files disguised as images (web shells)
wp-content/plugins/ plugins with modified file dates, code from "nulled" sources

In the database, check first

  • wp_options — siteurl and home keys (fake values mean redirects), autoload='yes' entries with long encoded payloads, fake cron entries (cron), unknown transients.
  • wp_posts — posts and pages you did not create (SEO spam), revision entries with foreign content.
  • wp_users / wp_usermeta — accounts you do not recognise and users with wp_capabilities set to administrator.

Example SQL queries for typical infection traces

-- suspicious scripts in options
SELECT option_name, LEFT(option_value, 120) FROM wp_options
WHERE option_value LIKE '%<script%'
   OR option_value LIKE '%base64_decode%'
   OR option_value LIKE '%eval(%';

-- unknown administrator accounts
SELECT u.ID, u.user_login, u.user_email, m.meta_value
FROM wp_users u
JOIN wp_usermeta m ON m.user_id = u.ID AND m.meta_key = 'wp_capabilities'
WHERE m.meta_value LIKE '%administrator%';

-- fake site URLs (global redirects)
SELECT option_name, option_value FROM wp_options
WHERE option_name IN ('siteurl', 'home');

On the server side, review access logs for unusual POST requests to PHP files in uploads/ — the most common re-entry vector through a web shell.

Infected WooCommerce store — what is different?

A store is an infection in a higher weight class: on top of redirects and SEO spam you have customer data and payments. Malware in WooCommerce most often targets:

  • Payment card skimmers — JavaScript impersonating a payment gateway script, capturing card data in the cart and checkout. A new JS file in the theme or an unexplained external script is a typical symptom.
  • Personal data — exports of orders, addresses and customer accounts; a breach triggers GDPR duties (breach assessment, notification within 72 hours, communication with customers).
  • Order and price manipulation — a backdoor changing prices, order statuses or adding fake coupons.

The procedure is the same as for a site, plus: after cleanup run a full purchase-path test (from cart to payment confirmation), review payment logs for unusual transactions, and force password changes and re-login for all customer accounts. For larger stores or infections touching payments, the scope of care and security is described in WordPress ecommerce.

Why is "an antivirus plugin alone" not enough?

Security plugins help with detection, but an infection must be removed from files and the database — and that is manual work: comparing files with originals, analysing database entries, hunting backdoors. Automatic "one-click cleaning" often removes symptoms while leaving the return mechanism. That is why malware removal is a project, not a plugin installation. A sensible diagnostic toolkit:

  • Wordfence — file and database scanner plus firewall; the free version detects most infections.
  • Sucuri SiteCheck — quick external verification of the site and blacklists.
  • WPScan — known vulnerability detection in plugins and themes.
  • Quttera — content and file scanning for malicious code.
  • VirusTotal — verification of individual suspicious files before removal.
  • Hosting malware scan — many hosts offer server-side detection, out of reach of plugins.

How much does WordPress malware removal cost?

Scope Cost (net)
Simple infection (a few files, no backdoors) from 400 PLN
Standard (file + database cleaning, hardening) 600–1,200 PLN
WooCommerce store with a skimmer or data leak 900–2,500 PLN
Extended infection (backdoors, many accounts, SEO spam) 1,500–2,500 PLN
Recovery after a Google blacklist + content rebuild quoted after analysis
Ongoing security care (prevention) from 300 PLN/month

The cost of an infection is not just the repair: redirects damage reputation, Google lowers rankings, customers lose trust, and paid campaigns send traffic to infected pages (and burn budget).

Google Search Console — removing the warning and getting back to the index

Google reacts to an infection faster than you would expect: it flags the site as unsafe, cuts spam subpages or lowers the visibility of the whole domain. The order of operations after the repair:

  1. Security Issues — open the Security Issues section in Google Search Console and review the list of detected threats and sample URLs.
  2. Complete cleanup before submitting — request a review only when all infected files, redirects and subpages are removed. Re-submitting after an incomplete repair prolongs the process.
  3. Removals — spam subpages that cannot be deleted from the server immediately can be reported via the Removals tool (6-month protection) while you clean the source in parallel.
  4. Sitemap and indexing — after the repair, resubmit the sitemap and verify key URLs with the URL Inspection tool.
  5. Visibility monitoring — watch the drop and recovery of rankings for several weeks; a sudden decline after the repair may mean the infection is back.
  • Additionally: if the hosting assigned a new IP or the domain landed on a blacklist, check the status in Google Safe Browsing and email blacklists — delisting is often a separate process.

How to prevent a repeat?

  • Updates — regular, with security fixes immediately (WordPress updates).
  • 2FA and strong passwords — for all administrative accounts; separate accounts for vendors.
  • Minimum plugins — from maintained sources; abandoned plugins are the most common hole. Never from pirated "nulled" sources.
  • Backups — with restore tests, stored off-server.
  • WAF and hardening — application firewall, restricted wp-login.php and XML-RPC, correct permissions.
  • Monitoring — detecting infections in hours, not weeks (WordPress administration).
  • Hosting with malware detection — hosting services differ in their protection scope.
  • Care — packages with scans and incident response (WordPress website care).

In practice, most "de-malwaring" jobs end with implementing ongoing care — because the cause of the infection (missing updates, weak passwords, abandoned plugins) returns without it.

Clean the site or rebuild it?

Cleaning is usually cheaper and sufficient — a fully cleaned and hardened site does not need replacing. A rebuild makes sense when:

  • the infection returned after a professional cleanup (something was missed, or the vector is deeper, e.g. in a theme bought from a secondary market),
  • the system and plugins are so outdated they cannot be safely updated,
  • the code is a stack of patches from several vendors and every change risks an outage,
  • the site has no backups or staging, so every repair is surgery on a live patient.

The decision follows an analysis of the code and infection scope, not "just in case" — replacing a working site always means losing earned rankings and content.

Frequently asked questions

How much does WordPress malware removal cost?

  • Simple infections: from 400 PLN net. Standard (file and database cleaning with hardening): 600–1,200 PLN net. Extended cases with backdoors and SEO spam: 1,500–2,500 PLN net. A WooCommerce store with a payment skimmer: 900–2,500 PLN net. Quotes always follow an initial analysis — the scope of infection varies widely.

Can I remove WordPress malware myself?

Simple cases (an infected plugin file, a redirect in .htaccess) are within reach of a technical person. Infections with backdoors, database spam and multiple accounts require experience — incomplete cleaning ends with malware returning. If unsure, commission the analysis.

How long is the site blocked after an infection?

Repair usually takes from a few hours to 2–3 days (depending on scale). Add the time for Google to review after the warning is removed — from a few days to a few weeks. That is why a fast response has real value.

What should I do when Google flags the site as "may harm your computer"?

After removing the infection and hardening the site: in Search Console > Security Issues, request a review. Make sure all infected URLs and redirects are removed — re-submitting after an incomplete repair prolongs the process.

Will the hosting remove malware for me?

Some hosts offer scans and assistance, but responsibility for the site's cleanliness lies with the owner. Hosting can suspend the account to protect the server — extra motivation for a fast response and prevention.

Do I need a new site after malware removal?

Usually not — if the infection was fully removed and the site hardened. A new site makes sense when the compromise was repeated or the system is so outdated it cannot be safely maintained. The decision follows an analysis, not "just in case".

Does a hacked WooCommerce store have to report a data breach?

If malware could have captured customer data or payment cards, most likely yes — GDPR requires a breach assessment and, in many cases, notification to the supervisory authority within 72 hours of becoming aware. The exact duties depend on what data was exposed and for how long; with payment skimmers, assume the worst case and act fast.

How do I find the source of the infection, not just the symptoms?

  • Three steps: analyse files with recently changed dates (wp-config.php, functions.php, .htaccess, uploads/), search the database for injected code (SQL queries above) and review access logs for unusual POST requests. Only finding the entry vector lets you close the infection for good.

Sources and tools


👉 Has your site been infected? Describe the symptoms via the contact form or at kontakt@informatix.com.pl — analysis, cleaning, hardening and post-repair monitoring. See also the WordPress malware removal service and WordPress development & care in my offer oraz WordPress site audit.

👉 Prefer prevention over repair? Check WordPress website care, WordPress administration and WordPress updates.

📖 See also: WordPress developer, WordPress website development and WordPress ecommerce.

📖 Zobacz również: technical care & SLA.

KS

Krzysztof Słonina

Full stack developer and owner of Inoventis Solutions (informatix). Since 2009 he has built Laravel/PHP web applications, e-commerce integrations and process automations — including OneCRMApp and FamilyTimelineApp, both running on Laravel, React and Inertia.js.

About the author
Free PDF

Web app requirements checklist

12 control questions to answer before talking to a vendor — faster estimates, fewer hidden costs.

Related posts

13.10.2026

WordPress Updates — A Safe Step-by-Step Process [2026]

A safe WordPress update is a sequence: backup, staging, core, plugins in batches with tests, theme, tests and monitoring. PHP should be 8.3+, and security fixes are installed immediately. What most often breaks after an update and how to set a strategy for a company and a store — in this guide.

Read more