It starts with a phone call
A client gets in touch because something is wrong with her website: a browser tab that refuses to close, and in the background the uneasy feeling that something is not right. A few minutes later it is clear — the site has been hacked.
What followed was a rescue operation lasting several hours and one of the most stubborn cases we have come across so far. And because there is a lot to learn from it that concerns every website owner, we are telling the story here — anonymised, of course.
One thing up front, so there is no misunderstanding: the problem was not WordPress. WordPress runs around four in ten websites worldwide — and that is exactly why it is the most frequent target of automated attacks. Not because it is worse than other systems, but simply because it is the most profitable target. A burglar works the street with the most houses. What matters is not which system you use, but whether it is looked after. And that is precisely where the problem lay in this case.
The malware you cannot see
The insidious thing about modern malware is that it hides. The owner herself hardly noticed anything. The reason: the malicious code was written to make itself invisible to logged-in administrators. Only ordinary visitors to the site were affected — in the background, without anyone noticing.
This kind of attack has one clear goal: money. Not through extortion, but by quietly redirecting the site's visitors or confronting them with fake warnings. The longer that goes unnoticed, the better for the attackers. Hence the camouflage.
To make matters worse: the malware kept restoring itself. You could delete the malicious file — seconds later it was back. The attackers had embedded themselves in several places in the system, each one capable of restoring the others. A fight against something that grew back faster than it could be removed.
Why cleaning up is not enough
At this point we made a decision that looks like more work at first glance, but is ultimately the only clean way forward: the website was not repaired, it was rebuilt from scratch.
The reason is simple. With an infection this deeply rooted, you can never say with certainty that you really caught everything. And that certainty is exactly what you owe a client. So: everything old removed without a trace, the system freshly installed, and the content restored from a verified backup — after we had examined that backup line by line for malware in an isolated environment.
By the end of the day the website was back online. Clean, up to date, secured. And the owner could carry on working as if nothing had happened.
The real lesson: it was nothing personal
This is the point that matters most to you as a reader.
Many people think: “My website is small and unimportant — who would want to attack it?” That very thought is the most dangerous one.
Because nobody was targeting this client personally. The attack ran fully automatically. Programs scan the internet around the clock for websites running outdated software — and strike wherever they find a gap. Whether the site belongs to a global corporation or a small trade business is of no concern to the attackers. They are not looking for specific victims. They are looking for open doors.
And in this case the open door was obvious: the website was still running a software version from 2023. Two years without updates. That is the invitation these programs are waiting for.
How to tell that something is wrong
Because the best protection is early detection, here are the most common warning signs — precisely because an infection often stays invisible:
- Visitors report strange redirects. You see nothing yourself, but someone tells you they suddenly ended up somewhere else when opening your site. Take that seriously — many pieces of malware hide specifically from you and only show themselves to outside visitors.
- Google warns people about your site. If a warning appears in the search results, or visitors are stopped by their browser, that is a clear signal.
- Your inbox is overflowing or your site is suddenly slow. Hijacked websites are often misused to send spam. Unusual slowness can be a clue.
- You can no longer log in normally, or you find unknown user accounts. If accounts you never created suddenly appear in the admin area, be careful.
- Your security plugin disappears or stops reporting. Some malware deliberately switches off exactly the tools that would detect it.
Important
The absence of these signs is no guarantee that everything is fine. The most dangerous infections are precisely the ones you do not notice.
What really protects you
The whole elaborate rescue operation could have been avoided. Not with expensive specialist software, but with something unspectacular: regular updates and continuous monitoring.
Software is not updated for fun. Every update closes gaps that would otherwise become an open door. A website that is continuously maintained is simply uninteresting to the automated scanners — they find no attack surface and move on. And that applies not just to WordPress but to every system: online shop, website builder, server. Neglected, everything becomes a risk; maintained, everything stays manageable.
That is exactly why we offer maintenance packages: so you never have to think about your website while we make sure in the background that it stays up to date and protected. It is the difference between a quiet working day and an unexpected emergency call-out.
The good news to finish with: a case like this is no reason to doubt WordPress. It is a reason to take maintenance seriously. Nobody can promise you absolute security on the internet — but the vast majority of attacks target outdated systems, and continuous maintenance protects you reliably against that. A well-maintained WordPress website is a secure WordPress website.
Frequently asked questions
Modern malware is often written to make itself invisible to logged-in administrators. Only ordinary visitors get to see the redirects or fake warnings. The longer an infection goes unnoticed, the more money the attackers make from it — hence the camouflage.
No. WordPress runs around four in ten websites worldwide, which is why it is the most frequent target of automated attacks — not because it is worse than other systems, but because it is simply the most profitable target. What matters is not the system but how it is looked after: a well-maintained WordPress website is a secure WordPress website.
For a superficial infection, a clean-up is enough. But if the malware has embedded itself in several places and restores itself, a complete rebuild is the only clean solution: install the system from scratch and restore the content from a backup that has been checked beforehand. That is the only way to say with certainty that nothing is left behind.
It is nothing personal. Attacks run fully automatically: programs scan the internet around the clock for websites running outdated software and strike wherever they find a gap. Whether the site belongs to a global corporation or a small trade business makes no difference to the attackers — they are not looking for victims, they are looking for open doors.
Security-relevant updates should be installed promptly, ideally within a few days. Often only hours pass between the disclosure of a security vulnerability and the first automated attacks. A website that has not seen an update in two years is practically an open door.
Regular updates of the system, extensions and theme, verified off-server backups, continuous monitoring for anything unusual — and a person who is responsible for following security advisories and reacts in an emergency before any damage is done. Find out more on our WordPress maintenance page.
Not sure whether your website is up to date?
Get in touch — we will take a look together. A first assessment costs you nothing but five minutes.
Ask with no obligation