# Install Maldet #Try to fix epel.. if ! rpm -V epel-release; then curl http://mirror.beyondhosting.net/provisioning/bhscripts/fixepel.sh | bash fi #Update maldet or install if [ -f "/usr/local/maldetect/VERSION" ]; then #Just update it maldet -u else # Install it wget -4 -N http://www.rfxn.com/downloads/maldetect-current.tar.gz -O /tmp/maldetect.tar.gz tar -zxvf /tmp/maldetect.tar.gz --directory /root/ cd /root/maldetect-*/ ./install.sh cd /root/ #Configure auto quarantine in maldet sed -i 's/email_alert="0"/email_alert="1"/g' /usr/local/maldetect/conf.maldet sed -i 's/email_addr="you@domain.com"/email_addr="root"/g' /usr/local/maldetect/conf.maldet sed -i 's/quarantine_hits="0"/quarantine_hits="1"/g' /usr/local/maldetect/conf.maldet sed -i 's/quarantine_clean="0"/quarantine_clean="1"/g' /usr/local/maldetect/conf.maldet yum install -y clamav #maldet cleanup rm -rf /root/maldetect-*/ rm -f /tmp/maldetect.tar.gz fi