Hello Guest, if you read this, it means you are not registered. Click here to register a few simple steps, you will enjoy all the features of our Forum. Please note that nicknames are prohibited lewd or meaningless (no numbers or letters at random) and introduce yourself in the section for you to meet our community.
How to install Malware Detect virus scanner on Linux - Blogs - GOZEN Host Forums
View RSS Feed

GOZEN Host blogs

How to install Malware Detect virus scanner on Linux

Rate this Entry
by , 01-10-2013 at 06:52 PM (8864 Views)
The way malware and virus think goes on, you definitely need any line of defense on protecting your linux installation either it’s a local computer nor a linux server.

Here we are going to give you the steps on how to install maldet on your linux server (it’s the same on a linux pc) and we will include a few command lines that you can manually scan your server for ….what else ? malware and viruses.

InfoFirst let’s move to a folder that we usually save the src code so we can clean the .tar file afterwards.
Code:
cd /usr/local/src/
Now let’s download the latest version of maldet

Code:
wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
Our next step is to extract the file using the following command

Code:
tar -xzf maldetect-current.tar.gz
Let’s switch to the extracted folder so we can run the installation command

Code:
cd maldetect-*
Proceed with the installation:

Code:
sh ./install.sh or sudo sh ./install.sh
Linux Malware Detect v1.3.4
(C) 1999-2010, R-fx Networks
(C) 2010, Ryan MacDonald
inotifywait (C) 2007, Rohan McGovern
This program may be freely redistributed under the terms of the GNU GPLinstallation completed to /usr/local/maldetect
config file: /usr/local/maldetect/conf.maldet
exec file: /usr/local/maldetect/maldet
exec link: /usr/local/sbin/maldet
cron.daily: /etc/cron.daily/maldetmaldet(32517): {sigup} performing signature update check…
maldet(32517): {sigup} local signature set is version 2010051510029
maldet(32517): {sigup} latest signature set already installed
If you need to update the maldet manually then you can use the following commands.

Code:
maldet –update-ver or maldet –d
Info Manually Scan files.

Code:
maldet -a /home/username/
It will scan all the files and provide you the output.

To scan the same path but the content that has been created/modified in the last 5 days:

Code:
maldet –r /home 5
You might want to experiment a bit with the rest of maldet command line and i am sure you will have a healthy system…for quite long

Code:
usage maldet [-h|--help] [-l|--log] [-e|--report] [-p|--purge] [-c|--checkout]
[-b|--background] [-m|--monitor] [-k|--kill-monitor] [-a|--scan-all] [-r|--scan-recent]
[-q|--quarantine] [-s|--restore] [-n|--clean] [-u|--update] [-d|--update-ver]
If maldet puts in quarantine a file that you might think it’s false or that you simply want to restore (i.e: you manually cleaned it), you can use the following:

Code:
maldet –restore config.php.2384
maldet –restore /usr/local/maldetect/quarantine/config.php.2384

Submit "How to install Malware Detect virus scanner on Linux" to Digg Submit "How to install Malware Detect virus scanner on Linux" to del.icio.us Submit "How to install Malware Detect virus scanner on Linux" to StumbleUpon Submit "How to install Malware Detect virus scanner on Linux" to Twitter