1.maldet+clamAV
cd /usr/local/src
wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
tar -xzf maldetect-current.tar.gz
cd maldetect-*
./install.sh
#更新规则库
maldet -u
🧩 一、Maldet + YARA —— 轻量可替代 ClamAV 的规则引擎
推荐程度:⭐⭐⭐⭐⭐(最佳替代)
dnf install yara -y
如果 dnf 没有包,可以从 EPEL 源获取:
dnf install epel-release -y dnf install yara -y
/usr/local/maldetect/sigs/custom.yara
yara_scan=1 yara_rule_path="/usr/local/maldetect/sigs/custom.yara"
🧰 二、Maldet + LMD 自带签名(纯内置模式)
推荐程度:⭐⭐⭐⭐
vi /usr/local/maldetect/conf.maldet
设置:
autoupdate_signatures=1 autoupdate_version=1
echo "0 4 * * * /usr/local/sbin/maldet -a /var/www/html > /dev/null 2>&1" >> /etc/crontab
🧱 三、Maldet + rkhunter(Rootkit Hunter)
推荐程度:⭐⭐⭐
dnf install rkhunter -y
rkhunter --update rkhunter --check
🧱 四、Maldet + chkrootkit
推荐程度:⭐⭐⭐
dnf install chkrootkit -y chkrootkit
🧩 五、Maldet + Lynis(系统安全审计)
推荐程度:⭐⭐⭐
dnf install lynis -y
lynis audit system
2.LMA+rkhunter方案