Install Malware Detection on Ubuntu and VestaCP #maldet #ubuntu #vestacp

Jul 28, 2015

We’ve all had a website or a server compromised before. If not, we’ve probably not been in the game too long. While VestaCP doesn’t have malware detection built in, it’s easy to add to your server and setup daily scanning. SSH into your machine and a few simple commands will get you up and running:

cd /opt
wget -c
tar -xzvf maldetect-current.tar.gz
cd maldetect-1.4.2

You will see maldet has downloaded the latest definitions and been added to cron.daily:

Linux Malware Detect v1.4.2
(C) 2002-2013, R-fx Networks <>
(C) 2013, 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(6256): {sigup} performing signature update check…
maldet(6256): {sigup} local signature set is version 201205035915
maldet(6256): {sigup} new signature set (2015071920693) available
maldet(6256): {sigup} downloaded
maldet(6256): {sigup} downloaded
maldet(6256): {sigup} downloaded
maldet(6256): {sigup} downloaded
maldet(6256): {sigup} downloaded
maldet(6256): {sigup} signature set update completed
maldet(6256): {sigup} 10792 signatures (8880 MD5 / 1912 HEX)

Then run:

nano /usr/local/maldetect/conf.maldet

Change the following lines to setup notifications:


If you don’t have clamav installed, change this line. It will scan slower than the clamav engine:


Save and close:


Now manually run a scan (and test to make sure it’s working):

maldet –scan-all /home

As long as it scans you should be good to go!

Subscribe by RSS: Blog only, Social only, or all posts.

Follow using ActivityPub: