I have a client that in the past I happened to stumbled upon a cgi script that appeared to be malicious. I only caught it because there were multiple processes running it and it was loading down the server. I gave the client the benefit of the doubt and told him that the problem script had been removed and not to upload it again. It has been almost a year and I have not noticed any problems. Until he emailed me with some ftp problems. Upon investigating his problem I came across several log ftp files of test.php and test2.php scripts being uploaded. Those file are not anywhere on his account. As a matter of fact, he has a handful of addon domains and there are no files at all in any of the public_html folders. He doesn't even have any file in any of the ftp folders. Call me paranoid, but I am not sure what is going on, but I have a feeling it can't be good. I went back and checked his billing information, which he has never missed a payment, and found that his billing address was California, his IP on record during registering is from Austrailia and that the IP recorded in cPanel from last login is from India. What I would like to do is be able to monitor his account for uploading of any php, cgi or pl files and make a copy of them to another folder for reviewing its contents later. Maybe a cronjob that scans his folders and copies such files to another location. The problem is that I have no idea of when the scripts will be uploaded and then removed from his account. Any suggestions would be great.
Rick
