Installing Maldet on CentOS

Maldet is an excellent way to help keep your server secure including if you have a control panel installed such as WHM, cPanel, or DirectAdmin. Maldet is designed to scan your files in the /home/ directory (or any directory of your choosing) and comparing the contents with signatures of common malware that usually finds it’s way into the server via poorly written programs (i.e. WordPress). Although it cannot give you 100% protection, it will help in the long run and is an important tool to have. As always, we recommend a ful server lockdown and not to rely on one such program or procedure to help keep your server as secure as possible. Security is an ever evolving subject and thus, you must use every tool at your disposal, for those without the time to devote to security.

With the following commands, you can install maldet effortlessly and stop worrying about the security of your server! Maldet will be setup to auto update and scan the files, just copy and paste this command into the terminal via SSH:

cd /usr/local/src/
wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
tar -xzf maldetect-current.tar.gz

cd maldetect-*
sh ./install.sh
maldet –update-ver
maldet –update

Leave a Reply