In this tutorial we will show you how to install Linux Malware Detect on Ubuntu 16.04. We will also install and configure its prerequisites. Though Linux is a less targeted Working system, it’s still Significant To track for malware. One of the very best tools out there for doing this is Linux Malware Detect, which utilizes a variety of metrics to identify and remove malware. When utilized along with ClamAV, the well known Antivirus solution for Linux (along with Mac and Windows), Linux Malware Detect provides a very good defense against malicious applications.
I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.
Install Linux Malware Detect on Ubuntu 16.04
Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:
apt-get update -y apt-get upgrade -y
Step 2. Installing Linux Malware Detect.
First, download the latest version of LMD using the following command:
curl -O http://www.rfxn.com/downloads/maldetect-current.tar.gz
Unpack the tarball using tar command:
tar -zxvf maldetect-current.tar.gz cd maldetect-1.6.2/
An installation script is available for you to install LMD. Run it using this command:
Step 3. Configure Linux Malware Detect.
We’ll need to make a few basic modifications to the default configuration file:
Here are the settings as they should look:
# Enable Email Alerting email_alert="1" # Email Address in which you want to receive scan reports email_addr="email@example.com" # Use with ClamAV scan_clamscan="1" # Enable scanning for root-owned files. Set 1 to disable. scan_ignore_root="0" # Move threats to quarantine quarantine_hits="1" # Clean string based malware injections quarantine_clean="1" # Suspend user if malware found. quarantine_suspend_user="1" # Minimum userid value that be suspended quarantine_suspend_user_minuid="500"
Next, we’ll be installing ClamAV, so that Linux Malware Detect can use it as its antivirus engine:
apt-get install clamav -y freshclam
You can do a lot with Linux Malware Detect. Here’s a sample of some commands you may find useful:
maldet -a /path maldet -q SCANID maldet –s SCANID
Update Linux Malware Detect:
maldet -d maldet -u
Congratulation’s! You have successfully install and configured Linux Malware Detect on your Ubuntu 16.04 server. Thanks for using this tutorial installing Linux Malware Detect with ClamAV on Ubuntu 16.04 LTS (Xenial Xerus) system.