Related:
https://serverfault.com/questions/748417/something-renames-files-to-filename-ext-suspected
https://stackoverflow.com/questions/32835796/php-file-automatically-renamed-to-php-suspected
I have a customer with a webhosting server that's running linux who is suffering from this problem. It is not a Wordpress site, although he does run Wordpress sites on that same server.
We're both aware of the problem and that some of those files do indeed have malware content - however, there are also some false positives, and they are affecting the site's functioning (by rendering include files unreadable), so he's asking me to track down which part of the installed software is doing this and to put a stop to it.
Trouble is, I'm not 100% sure what is causing the rename and why. I suspect clamav/amavis because it's in their purview, but nothing in cron
really springs out to me as a possible cause for what appear to be weekly scans...
touch /var/www/foo; mv /var/www/foo /var/www/bar
). Did you check the proper log file, i.e./var/log/audit/audit.log
(I forgot to mention that in my answer)? – Gilles 'SO- stop being evil' Mar 14 '17 at 21:55