Task breakdowns

WordPress malware keeps coming back after cleanup

WordPress malware keeps coming back because a hidden backdoor survives. Cleanup takes 2–4 days and starts from ₴12,000; search recovery takes weeks.

The problem

A typical picture: a WooCommerce store on WordPress, the hosting support has already "cleaned" the files, and three to five days later the homepage shows casino link blocks again. WordPress malware keeps coming back because nobody has touched the real entry point — the injected loader sits outside the files that were deleted.

Speed collapses at the same time: a page that used to open in 2–3 seconds now takes up to 16 seconds, because third-party scripts and redirects are baked into every template. Google marks the site as hacked, and you cannot run paid advertising to a site in that state. A week of downtime for an average store doing 30–50 orders a day costs tens of thousands of hryvnia in lost turnover.

What makes it hard

There is usually no clean backup — the injected scripts got into every copy months ago — so the treatment happens on a live site that must keep taking orders. Patching individual files does not work: the backdoor duplicates itself in mu-plugins, in wp-config.php, in .htaccess, in PHP files dropped into wp-content/uploads, in the wp_options table and in cron jobs, so signature-based scanning always misses something. Diagnostics therefore starts with a core comparison — wp-cli core verify-checksums and wp plugin verify-checksums show every file that differs from the official distribution — plus an external scan with Sucuri SiteCheck and the Security Issues report in Google Search Console, which tells you what exactly Google saw. The second common entry point is a nulled copy of a premium theme or Elementor Pro: it cannot be updated, and the code embedded in it restores access after any cleanup, so the pirated build has to be replaced with a licensed original.

External limits matter too. Speed depends on the hosting plan — on LiteSpeed-based hosting a paid cache plugin adds nothing over LiteSpeed Cache. Spam URLs created by the injection get indexed instead of real category pages, and they do not vanish instantly: the Removals tool in Search Console only hides a URL for about six months, and real de-indexing happens after recrawling, over several weeks. Theme and plugin licences are paid by the site owner, and swapping a pirated build for the original almost always needs small layout fixes afterwards — ordinary website development work on top of the security job, plus checking that orders from the site reach the CRM without manual entry so nothing is lost while the storefront is being repaired.

How we solve it

The order of work that breaks the "cleaned it — it is back" loop:

  1. 1. Diagnostics and a full as-is copy: run wp core verify-checksums and wp plugin verify-checksums to list every modified file, scan the typical backdoor nests (mu-plugins, wp-config.php, .htaccess, uploads/*.php), check wp_options, cron jobs and admin accounts, cross-check with Sucuri SiteCheck and Search Console Security Issues, confirm whether the theme and plugins are licensed, and benchmark speed before the work (PageSpeed, time to first byte).
  2. 2. Full reinstall of the WordPress core, WooCommerce and every plugin from official sources instead of deleting code selectively; nulled builds are swapped for genuine licences.
  3. 3. Database cleanup: malicious rows in wp_options, injections in content, rogue administrator accounts, new passwords and fresh secret keys (salts), updated database credentials.
  4. 4. Closing the entry points: DISALLOW_FILE_EDIT and DISALLOW_FILE_MODS in wp-config.php to kill the admin code editor, a 2FA plugin (WP 2FA or Two Factor) for every administrator, a login attempt limit (Limit Login Attempts Reloaded, 5 tries then a lockout), XML-RPC disabled and wp-login.php restricted by IP or a password at server level, a server-side scanner such as Imunify360, and if needed Cloudflare Free with firewall rules and a request rate limit on /wp-login.php and /xmlrpc.php.
  5. 5. Speed as part of the cure: removing third-party scripts, caching matched to the server type (LiteSpeed Cache + QUIC.cloud), WebP image conversion, excluding cart and checkout from cache, database optimisation — the same PageSpeed discipline as on a clinic site built for fast page loads.
  6. 6. SEO recovery: Removals requests to hide spam URLs, a review request in Security Issues, sitemap and robots checks, tracking pages returning to search results through analytics — the same routine as a corporate site handled with a full SEO migration, the same link and content work that gets a site off the second page of Google, and the same care as a site move to a new domain after the old address is burned.
  7. 7. Restoring the commercial loop while the cleanup runs: checking that checkout, delivery and payment integrations survived the infection and that orders still reach the CRM without manual entry — a hacked site often drops webhooks silently.
  8. 8. Thirty days of monitoring: if the infection returns, we clean it again at no charge; the owner gets a report and a video guide. If another incident is unacceptable, the alternative is a rebuild on custom code (Next.js + PostgreSQL) with no plugins or themes left to exploit, budgeted separately.

What drives the price and timeline

Cleaning an infected WooCommerce store, closing the vulnerabilities and speeding it back up costs roughly ₴12,000–35,000 on the Ukrainian market and takes 2–4 working days: up to a day for diagnostics, 1–2 days for the cleanup, one parallel day for hardening and optimisation. Returning spam URLs out of the index and real pages back into search takes several more weeks of SEO work. The main price driver is how deep the infection goes — how many files, database rows and cron jobs carry the loader, and whether paid licences have to be bought and the layout refitted after the swap.

A full rebuild on custom code is a separate project: 20–30 working days and from ₴120,000, with migrated products, orders and customers and 301 redirects from the old URLs. Monthly costs after the cure are minimal: Cloudflare Free, LiteSpeed Cache and QUIC.cloud are free; a premium scanner like Wordfence Premium (about $149 a year at the NBU rate) is optional. A clean, fast site is also the precondition for restarting SEO and paid advertising.

Frequently asked questions

How much does it cost to remove malware from a WordPress site?

On the Ukrainian market roughly ₴12,000–35,000 for a full code reinstall, database cleanup, hardening and speed optimisation. The price depends on how deep the infection goes and whether genuine licences have to be bought to replace a nulled theme and plugins.

How do I know my WordPress site is infected?

Signs: unknown redirects, casino or pharma blocks in the footer, new admin accounts, pages in Google with titles you never wrote. Check with wp core verify-checksums (it lists files that differ from the official core), Sucuri SiteCheck and the Security Issues report in Google Search Console.

Why does WordPress malware come back after the host cleans it?

Hosting support deletes the malicious files it finds, but the backdoor stays in the database, in cron jobs, in mu-plugins or inside the theme itself. Restoring from a backup brings the infected code back too, because the copies were made after the hack.

How do I protect WordPress from getting infected again?

Two-factor authentication (WP 2FA or Two Factor) for every administrator, a login limit of 5 attempts, DISALLOW_FILE_EDIT in wp-config.php, XML-RPC off, licensed themes and plugins kept updated, plus a server scanner such as Imunify360 and Cloudflare rate limits on /wp-login.php.

How long does it take to clean a hacked WooCommerce store?

Usually 2–4 working days: up to one day for diagnostics and a full copy, 1–2 days for cleanup and reinstall, one day for hardening and speed. We work on a full copy and apply changes in short windows, so the storefront and checkout stay online.

This breakdown is anonymised: no client names and no deal-specific prices. More breakdowns — Task breakdowns

Cases in this area

RACIO

Corporate website of occupational safety and fire safety company racio.ua on Sanity CMS with forms, calculators and SEO migration.

Next.jsSanity CMSResendGA4 / GTM
Details →

H&B CLINIC

Multilingual dental clinic website with a CMS admin, high PageSpeed and a full SEO migration.

Next.js 15React 19TypeScriptPostgreSQL
Details →

Discuss your task

Describe your task in a conversation — by voice, text or files. You get a proposal with scope, price and timeline. Or just message us on Telegram or by email.

Discuss your project@soloveynikinfo@lambertain.site

Get in touch

GOT AN
IDEA?

Tell us about your task — we reply fast and propose a solution.

Start a project@soloveynikinfo@lambertain.sitegithub.com/Lambertain