How to install and configure Linux Malware Detect?

How to install and configure Linux Malware Detect?

For the threats faced in shared hosted environments a malware scanner named Linux Malware Detect (LMD) is designed for linux under license GNU GPLv2

Installation

Installation of LMD is very simple and straightforward. First you have to ensure to change the version below to the one you have actually downloaded

To install LMD, download the package and run the enclosed install.sh script

Download maldetect package using wget

root@server[~]# wget http://www.rfxn.com/downloads/maldetect-current.tar.gz

Extract the package and install it

root@server[~]# tar xfz maldetect-current.tar.gz
root@server[~]# cd maldetect-*
root@server[~]# ./install.sh


Linux Malware Detect v1.4.1
(C) 2002-2011, R-fx Networks
(C) 2011, Ryan MacDonald
inotifywait (C) 2007, Rohan McGovern
This program may be freely redistributed under the terms of the GNU GPL

installation completed to /usr/local/maldetect
config file: /usr/local/maldetect/conf.maldet
exec file: /usr/local/maldetect/maldet
exec link: /usr/local/sbin/maldet
exec link: /usr/local/sbin/lmd
cron.daily: /etc/cron.daily/maldet

maldet(5206): {sigup} performing signature update check...
maldet(5206): {sigup} local signature set is version 201205035915
maldet(5206): {sigup} latest signature set already installed
Now LMD installed.

Configuration
After installation you need to open up the configuration file located at /usr/local/maldetect/conf.maldet

To configure Maldet edit the following file:
# vi /usr/local/maldetect/conf.maldet
The default file looks as follows:
# [ EMAIL ALERTS ]
##
# The default email alert toggle
# [0 = disabled, 1 = enabled]
email_alert=1

# The subject line for email alerts
email_subj="maldet alert from $(hostname)"

# The destination addresses for email alerts
# [ values are comma (,) spaced ]
email_addr="[email protected]"

# Ignore e-mail alerts for reports in which all hits have been cleaned.
# This is ideal on very busy servers where cleaned hits can drown out
# other more actionable reports.
email_ignore_clean=0

##
# [ QUARANTINE OPTIONS ]
##
# The default quarantine action for malware hits
# [0 = alert only, 1 = move to quarantine & alert]
quar_hits=1

# Try to clean string based malware injections
# [NOTE: quar_hits=1 required]
# [0 = disabled, 1 = clean]
quar_clean=1

# The default suspend action for users wih hits
# Cpanel suspend or set shell /bin/false on non-Cpanel
# [NOTE: quar_hits=1 required]
# [0 = disabled, 1 = suspend account]
quar_susp=0
# minimum userid that can be suspended
quar_susp_minuid=500
Author
bhawanisingh
Views
1,897
First release
Last update
Rating
0.00 star(s) 0 ratings
Top