Categories: Administrative tools

Features & Configuring of Linux Malware Detect

Table of Contents

Linux Malware Detect

Linux Malware Detect (LMD) 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.

Features of Linux Malware Detect:

1) Install Linux Malware Detect.
2) Scan specified directories.
3) Scan the document root of all accounts in the server.
4) View previous scan reports.
5) Manage directories to be ignored from scans.
6) Manage file extensions to be exempted from scans.
7) Enable email alert for malware detections.
8) Enable automatic quarantine/cleaning of malware detections.
9) Manually quarantine malware detections based on scan reports.
10) Enable automatic monitoring of user directories or specific folders.

Configuring of Linux Malware Detect:

The configuration of LMD is handled through/usr/local/maldetect/conf.maldet and all options are well commented to make configuration a rather easy task. In case you get stuck, you can also refer to/usr/local/src/maldetect-1.4.2/README for further instructions.

1) email_alert :

If you would like to receive email alerts, then it should be set to

2) email_subj :

Set your email subject.

3) email_addr :

This is a comma spaced list of e-mail addresses that should receive alerts.

4) quar_hits :

The default quarantine action for malware hits, it should be set

5) quar_clean :

This tells LMD that it should try to clean malware that it has cleaner rules for, at the moment base64_decode and gzinflate file injection strings can be cleaned. Files that are cleaned are automatically restored to original path, owner and permission.

6) quar_susp :

The default suspend action for users wih hits, set it as per your requirements.

7) quar_susp_minuid :

This is the minimum user id that will be evaluated for suspension, the default should be fine on most systems.Minimum userid that can be suspended.

8) Usage & Manual Scans

The first thing most users are looking to do when they get LMD installed is to scan a certain path or series of paths.

The configuration file for Maldet is located under /usr/local/maldetect/conf.maldet . Other important files are:

# exec file: /usr/local/maldetect/maldet
# exec link: /usr/local/sbin/maldet
# exec link: /usr/local/sbin/lmd
# cron.daily: /etc/cron.daily/maldet

Vishwajit Kale
Vishwajit Kale blazed onto the digital marketing scene back in 2015 and is the digital marketing strategist of Hostripples, a company that aims to provide affordable web hosting solutions. Vishwajit is experienced in digital and content marketing along with SEO. He's fond of writing technology blogs, traveling and reading.

Recent Posts

The Ultimate Guide to DIY Website Builders for Entrepreneurs

Ah, the joys of building a website! Picture this: You're sitting there in your pajamas, coffee in hand, ready to…

1 week ago

Don’t Ignore These 11 Signs You Need a Hosting Upgrade

Are you feeling like your website is running in slow motion? It can be frustrating when your online presence doesn't…

2 weeks ago

PrestaShop vs OpenCart: Which Is Right for Your Business?

Are you ready to take your online store to the next level? Whether you're running a PrestaShop or OpenCart platform,…

4 weeks ago

Sitemaps: A Guide to Enhancing Online Visibility

Picture this: your website is like a fabulous party happening in the darkest corner of the internet, but nobody's showing…

1 month ago

Step-by-Step Guide to Implementing a CDN for WordPress

Picture this: Your WordPress site is like that one friend who's always fashionably late to everything. You know, the one…

2 months ago