Install maldet malware scan on server

You can install maldet malware scan on Linux server by following the below steps,
Go to,
/usr/local/src/

Download the tarfile using the command below,

wget http://www.rfxn.com/downloads/maldetect-current.tar.gz

Now extract the file ,

tar -xvf maldetect-current.tar.gz

Change the directory where extracted files located,

cd maldetect-1.4.2

Install the maldet using the script,

./install.sh

Maldet will be successfully installed after the installation process completes.

Now you can scan your server manually using maldet scan commands. For that use the command below,

maldet -a /

You can change the location of scan by changing the fields after maldet -a

For example to scan the location /home/Yourdomainnname.com you can use the command as,

maldet -a  /home/yourdomainname.com

If you wanted to run a malware scan on /home, you can do so with:

maldet -a /home/?

The above command will scan all files and directories within the /home directory.

Below is a sample output of above command:

root@server [~]# maldet -a /home/?
Linux Malware Detect v1.4.2
maldet(5196): {scan} signatures loaded: 10727 (8823 MD5 / 1904 HEX)
maldet(5196): {scan} building file list for /home/*, this might take 
awhile...
maldet(5196): {scan} file list completed, found 14974 files...
maldet(5196): {scan} found ClamAV clamscan binary, using as scanner 
engine...
maldet(5196): {scan} scan of /home/* (18264 files) in progress...

maldet(5196): {scan} scan completed on /home/*: files 18264, malware 
hits 0, cleaned hits 0
maldet(5196): {scan} scan report saved, to view run: 
maldet --report 031515-1147.5196
root@server [~]#

Also you can set maldet to run scan daily on your server and get the reports on mail. For more information about how to set maldet daily scan click here .