I ran the malware scan on the server and while it did find some stuff and remove it, the server still was not stable, so I assume some malware was not detected.
I tried “fix file permissions” but that had no effect on the sites that were giving me 500 errors. It was very sporadic and I suspect it has something to do with php execution being corrupted, but I’m really not sure.
The VPS Snapshots are done daily with only the past 2 saved, so the backup was corrupted as well. I do have updraftplus backups for my clients. Those are not as current, but at least I have those.
I was able to access the dashboard and ssh into the server. I could download backups through the dashboard and those work about half the time, with the other half having issues with the mysql settings. I was able to manually backup the mysql databases and also manually fix those settings.
I did a fresh install of cyberpanel on a new server, and due to dependency changes, I was getting a lot of errors trying to run the update script. I was able to rollback some of the ubuntu package updates and then everything works on the new server. I then restored each website backup and fixed the database settings manually. I’m about 75% done recovering the websites.
Most of the websites run wordpress, so I’m installing wordfence hoping that will detect any malware, but I’m also going to have to go through and change passwords for everything, as I have to assume that everything has been compromised for now.
Once I’m done with recovery and changing passwords, I’ll start reading the threads on what the hacked servers generally consist of to make sure I don’t have to do further mitigation.