Security is the 1st priority for a stable running online machine and should not be neglected at any time. Some may forget that even though viruses do not “exist” on linux, some types of malware can wreak havoc on your system.
Linux Malware Detect (or LMD) is a nifty little tool which uses the ClamAV engine. In the following tutorial, I will show you how to install and use it.
wget http://www.rfxn.com/downloads/maldetect-current.tar.gz tar -xzf maldetect-current.tar.gz cd maldetect-*/
To install it, there are 2 variants for both CentOS and Ubuntu/Debian.
bash ./install.shsh ./install.sh
Before usage, an update is advised:
maldet --update-ver maldet --update
After the update is completed, a scan is required:
maldet -a /desired/path example: maldet -a /
An example of the output:
If you wish to see the scan report:
maldet --report 180912-0016.31251
Don’t forget to check out the official documentation: https://www.rfxn.com/projects/linux-malware-detect/
That’s pretty much it. Enjoy your secure and stable linux machine!