How To Install Linux Malware Detect on CentOS 7


This how to will help you with your install and configuration of Linux Malware Detect (LMD) on your CentOS 7 server. For those of you who didn’t know, Linux Malware Detect is a malware scanner for Linux released under the GNU GPLv2 license, that is designed around the threats faced in shared hosted environments. It uses threat data from network edge intrusion detection systems to extract malware that is actively being used in attacks and generates signatures for detection.

In addition, threat data is also derived from user submissions with the LMD checkout feature and from malware community resources. The signatures that LMD uses are MD5 file hashes and HEX pattern matches, they are also easily exported to any number of detection tools such as ClamAV.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Linux Malware Detect on CentOS 7 server.

Install Linux Malware Detect on CentOS 7

Step 1. First of all make sure that all packages are up to date.

Step 2. Install Linux Malware Detect.

Download the latest stable version of Linux Malware Detec:

And run the installation script:

You should get the following output:

Step 3. Configuring Linux Malware Detect.

The configuration of LMD is handled through /usr/local/maldetect/conf.maldet and where we can define the working of LMD and what action to take:

And change the following settings:

Step 4. Start scanning manually.

To scan a directory you can use

To update Maldet use the below command:

You can find the details on all options by executing:

Congratulation’s! You have successfully installed Linux Malware Detect (LMD) . Thanks for using this tutorial for installing Linux Malware Detect in CentOS 7 system. For additional help or useful information, we recommend you to check the official Memcached web site.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!