When the problem wasn't WordPress: a migration that started with a security incident

There's a huge difference between updating a website and finding out how an infection got in. This year I had to deal with a problem affecting several sites hosted on the same reseller service. The initial request seemed technical and specific. It ended up being an investigation and a migration of sites, accounts and email.
When several websites fail at the same time
The first signs meant every installation had to be checked: unknown files, suspicious behaviour and traces of malicious code. But something didn't add up. If several websites in the same environment were compromised, I had to look beyond the plugins and passwords of each WordPress install.
I analysed files and found malicious scripts —including *shells*— that pointed to a serious compromise. My diagnosis pointed to the hosting environment, not just the code of one website. I shared my findings with support and asked for a concrete technical response. The communication and support we received were part of the problem: when you manage services for others, you need clear information to know what to check and how to protect the data.
An important clarification: the provider mentioning an alleged wide-scale cPanel incident isn't enough to say that this was the public, verified cause of this case. What I can share is what I found, what I reported and how I resolved my part of the work.
Recovering isn't just clicking “restore backup”
Restoring a copy without checking what happened can also bring back compromised files or leave the same door open. You have to analyse files, permissions, access, users and the state of the application. Then comes the appropriate rebuild or clean-up, and checking that the essential features keep working.
In this case we decided to change providers. I migrated Online Drum Tracks and eugedoy.com to Hostinger. The work included the sites and their email services, plus caching and configuration adjustments for the new server. I checked forms, enquiry delivery and how everything worked afterwards. In my experience with other Hostinger hosting plans and a VPS, I'd had good support and stability; that influenced the recommendation, but no hosting is an absolute guarantee against incidents.
The hidden cost of not preventing
When a website is compromised, you don't just pay for a repair. Time is lost on diagnosis, enquiries and email can be interrupted, and the domain's reputation can suffer. The worse the site is documented and the older the backups are, the harder recovery becomes.
This isn't about scaring people into buying maintenance. It's about understanding that hosting, verifiable backups, updates, monitoring and responsible support are part of the service, not extras.
What about artificial intelligence?
AI is also expanding what malicious actors can do; public cybersecurity analyses already show it. But it isn't right to blame AI for a specific attack without evidence. The practical conclusion is simpler: attacks evolve, and the basics are still essential.
A website can look healthy and not be. If you haven't checked your hosting, backups or security in a long time, it's better to catch a problem early than to discover it when the site stops working.
Background sources: https://developer.wordpress.org/advanced-administration/security/hardening/ · https://cloud.google.com/blog/topics/threat-intelligence/ai-vulnerability-exploitation-initial-access