Said It Here

Why does website malware keep coming back after I delete it?

Deleting infected files isn't enough because persistent malware hides its source in the database or configuration scripts, automatically recreating the threat on the next request. This leaves site owners stuck in an endless loop of manual cleanups where infections reappear within hours.

Overview
People affected10 accounts across 1 forum
Workarounds found14 items attempted
Community agreement85 total upvotes
Editorial ConsensusSynthesized across r/Wordpress
Verification standards →

Core Friction Pattern

Analysis of 10 peer accounts across online developer and community forums reveals that “Why does website malware keep coming back after I delete it?” repeatedly surfaces due to edge-case mismatches between standard defaults and real-world environments. Standard troubleshooting frequently falls short, compelling practitioners to develop custom workarounds.

Top Peer-Reported Fix
Replacing core files and plugins with clean ones

+13 alternative community-tested workarounds cataloged below.

Editorial Commitment: Every workaround and quote here is curated from verified public discussions without affiliate commissions or paid placements. Always review system configurations before applying community-tested solutions.

What the numbers show

Counted from the threads quoted below. How we count

  • People have been saying this in most months since September 2026.

What people tried

Every workaround mentioned in the threads below. We haven’t tested any of them — and nobody here is claiming they worked.

14 items+ Contribute

Found another way around this?

Share your steps and trade-offs so fellow engineers don't have to reinvent the wheel. No account required.

  1. 1
    Replacing core files and plugins with clean ones
    Did this help you?
  2. 2
    Changing user passwords, application passwords, app keys, and auth tokens
    Did this help you?
  3. 3
    Scanning via SSH from outside the site rather than using an in-plugin scanner
    Did this help you?
  4. 4
    Checking source code using curl as Googlebot
    Did this help you?
  5. 5
    Manually scanning files and databases for hidden backdoors and rogue administrator accounts
    Did this help you?
  6. 6
    Relying on host malware scanners
    Did this help you?
  7. 7
    Check the wp-content folder for recently modified PHP files
    Did this help you?
  8. 8
    Run a scan with the web host or a security plugin
    Did this help you?
  9. 9
    manually searching through and clearing out malicious code files
    Did this help you?
  10. 10
    Replacing core files with a fresh copy
    Did this help you?
  11. 11
    Going through plugins and themes to update or remove unused items
    Did this help you?
  12. 12
    Resetting admin passwords and security keys
    Did this help you?
  13. 13
    Checking uploads folders for stray script files
    Did this help you?
  14. 14
    Installing web application firewalls and security tools like Wordfence or Cloudflare
    Did this help you?
Tried another approach not listed above?+ Share your workaround ↑

In their words

Unedited, grouped by where they were said, most upvoted first within each place, each linked to the thread it came from.

r/Wordpress10 people · September 2026 – November 2026

“we ran into a weird issue, where multiple links (buttons) on our site would lead to a gambling site (while masking themselves as our website. The URL was correct).”source ↗

“After a couple of hours I managed to clear out all malicious code and found a VERY interesting file.”source ↗

dfreeezzz · r/Wordpress · 43 upvotes

“A manual file cleanup was not enough: it came back within 24 hours because the malware’s source of truth was in the database and in wp-config.php.”source ↗

“i had the same fight on a client box, deleted the mu-plugin and it was back on the next request because object-cache.php was dropping it back from the db.”source ↗

ClassifiedReport · r/Wordpress · 35 upvotes

“I've had this happen before and the entry point was almost never the core files themselves — it was usually an outdated plugin or theme letting something in, then rewriting the core files.”source ↗

Euono · r/Wordpress · 4 upvotes

“My Wordpress core files keep getting hacked with malware. I’m unsure of how they are getting in with all security protections enabled.”source ↗

Suspicious-Size-2344 · r/Wordpress · 3 upvotes

“Thanks for the heads up. I noticed UK Casinos linked on a client’s Shopify site but it was through a link to an old domain they no longer used. I’ll need to check if that old domain was a Wordpress site. I guess I’ll be working this weekend to make sure their Shopify site is not compromised.”source ↗

ITpeep · r/Wordpress · 2 upvotes

“Me ha ocurrido en una web, pero solo se activaba desde mac. Muchas gracias por compartirlo en cuanto tenga un rato sigo estas instrucciones.”source ↗

Emergency-Answer5549 · r/Wordpress · 1 upvotes

“What a cluster fuck.”source ↗

1991K75S · r/Wordpress · 1 upvotes

“That looks like a credit card skimming script, likely injected through a compromised plugin or theme file.”source ↗

TiresomeMailing9 · r/Wordpress · 1 upvotes

“I remember reading about a specific malware that embedded itself in the database and once the site was cleaned it would somehow reinstall itself.”source ↗

bjazmoore · r/Wordpress · 1 upvotes

“facing this thing/malware on several wordpress sites?”source ↗

AISEOExp · r/Wordpress

“I have an antivirus on the server”source ↗

Suspicious-Size-2344 · r/Wordpress

Where this came up

People with this problem also raised