运行SC_ERR_NO_MD5_SUPPORT的Suricata错误

时间:2018-11-22 10:35:59

标签: rules snort suricata

我正在使用Suricata 4.0.4, 我要使用以下规则检查文件的md5:

alert http any any -> any any (msg:"FILE MD5 Check against Malware Patrol blacklist"; filemd5: /root/2018.md5.txt; sid:10203040; rev:1;)

但是运行suricata之后,它说:

<Error> - [ERRCODE: SC_ERR_NO_MD5_SUPPORT(209)] - no MD5 calculation support built in, needed for filemd5 keyword

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

对我来说,在CentOS 7.5上完成了以下步骤:

  1. 安装软件包(对于CentOS是'yum install ...'):

    • nss-util
    • nss-util-devel
    • nss-devel
    • nspr-devel
    • nspr
  2. 重新配置并重新安装带有这些库的Suricata:

    • ./configure --with-libnss-libraries=/usr/lib --with-libnss-includes=/usr/include/nss/ --with-libnspr-libraries=/usr/lib --with-libnspr-includes=/usr/include/nspr
    • make clean
    • make
    • sudo make install-full
  3. 启动Suricata:/usr/local/bin/suricata -c /usr/local/etc/suricata/suricata.yaml -i eth0

还请注意不要忘记规则中的关键字“ 文件存储; ”-如果没有,则可能不会捕获警报!

示例:alert http any any -> any any (msg:"FILE MD5 Check against Malware Patrol blacklist"; filemd5: /root/2018.md5.txt; filestore; sid:10203040; rev:1;)