The Malware That Kept Coming Back
November 3, 2026
A routine security scan on one of the sites we look after turned up infected files. That part was ordinary. We cleaned them, confirmed the site was clean, and moved on.
A few days later, the same infected files were back.
Why cleaning the files didn’t work
When malware comes back after a cleanup, it almost always means the files were a symptom, not the source. Something else on the site was putting them back.
In this case, the source was hiding in the database. A perfectly legitimate plugin was installed on the site, and the attacker had tucked malicious code into the database records that plugin used. Every time the site ran, the code quietly rewrote the infected files. Cleaning the files was like mopping the floor under a leaking pipe.
The security plugin on the site never saw it, because it only scanned files. Most WordPress security plugins work that way. A file scanner can tell you the files are clean while the thing reinfecting them sits untouched in the database.
How we found it
We ran a second scanner (Sucuri) that checks the database as well as the files. It found the hidden code right away. We removed it from the database, cleaned the files one more time, and they stayed clean.
Then we did the follow-up work every cleanup needs: changed every password and security key on the site, checked the list of admin users, updated everything, and kept a closer watch on it for the following weeks.
What site owners should take from this
- A clean scan isn’t proof of a clean site. Know what your security tool actually checks. If it only looks at files, it can miss what’s hiding in the database.
- If malware comes back, find the source. Repeated cleanups of the same files mean something is reinfecting them. Keep looking until you find it.
- A legitimate plugin can still be a hiding place. Attackers don’t need a shady plugin. They use whatever is already there.
- Clean up the access, not just the code. After any infection, change every password and security key and review who has admin access. Otherwise the attacker may simply walk back in.
If your site has been cleaned more than once for the same problem, or you’re not sure what your security plugin actually covers, get in touch with Kinetic Thoughts.