Just to let everyone know around here my experience when my VPS was hacked. I had a directory that had permissions 777 in httpdocs and somehow the hackers got stuff into that directory and execute it. I'm not sure how but it might be some apache-php bug.
Those scripts then found all the directories on the server that were 777 (e.g. /tmp) and made copies of themselves there. All these were owned by user apache. The scripts also created a cron job for the user apache.
I found out when I noticed two days ago that my VPS was using unusual amount of resources and privvmpages was going into black territory and the website was failing. I was lucky that the damage done by the hackers was minor and they only managed to delete stuff from the 777 directory.
However in this process over several support tickets, I managed to get JagPC to install the Virtuozzo firewall for me, which they did promptly and my VPS died (your plesk is misconfigured ...). So after a few hours of struggling they managed to get my VPS back.
It turns out that I had not found all the scripts and deleted them so over another set of support tickets, I Was told that the virtuozzo firewall is buggy and I should use APF. This was late last night so I responded saying that they should remove the vituozzo firewall install APF and restore the missing files form backup ($15 charge for that).
Anyway I get up this morning to check on the status, my VPS is down again (plesk is misconfigured ..) since midnight last noght when they disabled the firewall.
So if you get JagPC to install a firewall insist that it is APF and not the Virtuozzo firewall because the process of installing and uninstalling the Virtuozzo firewall will break your VPS. It has been 1 and a half hours since my support ticket has been assigned to fix the virtuozzo firewall mess.
Also follow the procedure in the securing and optimizing your server thread. I found a lot of unwanted activity on my server thanks to the BFD. Also do this on your VPS:
find / -user apache
because all the malicious scripts were owned by the apache user.
Also add the apache user to your cron.deny
You might also want to check your qmail queue.


LinkBack URL
About LinkBacks







Reply With Quote

Bookmarks