Installing Linux Malware Detect
Posted by on 23 October 2012 01:58 AM
This guide will walk you through installing LMD (Linux Malware Detect) on your VPS/Dedicated server
You will need to be logged in as root to the server over SSH.
Let's create a temporary directory and navigate into it, followed by downloading the latest release of maldet:
Extract the archive containing LMD and navigate into the directory it creates:
tar xf maldetect-current.tar.gz && cd maldetect-1.4.1
Warning: Version may vary, you can check the current directory listing with the command `ls`
Once you're inside execute the install script:
This will automatically install a cronjob inside /etc/cron.daily/maldet as well, it will make LMD execute daily and scan local cPanel accounts for possible malware.
Usage is fairly simple, to scan user's home directory or any other directory you would simply execute:
maldet -a /home/user
Any path is alright.
Please note that LMD runs great with ClamAV, if you'd like to install ClamAV on a cPanel based server, review this article.
Setting up e-mail alerts
LMD has an option to alert you each time it detects malware, please review these configuration variables inside /usr/local/maldetect/conf.maldet
Other configuration variables that you should look into:
You can read the readme file online, which describes the application, here: http://www.rfxn.com/appdocs/README.maldetect