Something renames files to filename.ext.suspected

malwarerename

I've experienced a very strange behavior on a Debian server. This server runs a lot of website, most of them CMS, mainly WordPress.

And sometimes something renames my files from wp-db.php to wp-db.php.suspected for example.

And these files seem to be clean, they are standard WP files. We have ClamAV, chkrootkit, rkhunter and maldet installed. I thought first ClamAV causes it, but after making a scan by hand it didn't find anything, plus the files get renamed on the fly, and ClamAV is not a resident AV so…

Has anyone seen such thing before or has an idea what can causes it?

Some searching with Google I found that I'm not the first one who has such an issue. It happens to a lot of different system and CMS, which makes me think it is the system.

Thank you for your help in advance.

Best Answer

Install WordFence in WordPress and see if it finds any not-original WordPress files. As per this thread, it sounds like your server has been compromised:

https://wordpress.org/support/topic/link-templatephpsuspected/page/2

Also see here:

https://stackoverflow.com/questions/32835796/php-file-automatically-renamed-to-php-suspected

You should check your logs (increase log levels if needed) and find out who is triggering these things. With Fail2Ban you can then automatically ban the hackers based on their behaviour.

Related Topic