zoukankan      html  css  js  c++  java
  • [Suricata]无法禁用某些规则的解决办法

    背景:

       生产环境中部署了suricata,日常规则更新使用suricata-update,如果想禁用某些规则,可以在配置文件/etc/suricata/disable.conf中添加,比如:

    2018959     #禁用规则号 2018959
    group:dshield.rules    #禁用组 dshield.rules 
    re:heartbledd   #禁用与heartblead相关的规则

    但是有些带有flowbits的规则无法直接禁用,比如规则号 2018959,该规则的具体内容如下

    alert http $EXTERNAL_NET any -> $HOME_NET any (msg:"ET POLICY PE EXE or DLL Windows file download HTTP"; flow:established,to_client; flowbits:isnotset,ET.http.binary; flowbits:isnotset,ET.INFO.WindowsUpdate; file_data; content:"MZ"; within:2; byte_jump:4,58,relative,little; content:"PE|00 00|"; distance:-64; within:4; flowbits:set,ET.http.binary; reference:url,doc.emergingthreats.net/bin/view/Main/2000419; classtype:policy-violation; sid:2018959; rev:3; metadata:created_at 2014_08_19, updated_at 2017_02_01;)

    查询官方解决方法,要么就是该规则前面加 #号注释,但是使用suricata-update的时候会自动覆盖回来,结果不好,

    另外一种解决办法:压缩规则,官方介绍在

    编辑配置文件 /etc/suricata/threshold.config 加入如下内容

    suppress gen_id 1, sig_id 2018959
  • 相关阅读:
    Gradle学习之基础篇
    springmvc上传文件方法及注意事项
    SpringCloud学习之feign
    SpringCloud学习之eureka集群配置
    SpringMvc+Spring+MyBatis 基于注解整合
    SpringBoot学习之SpringBoot执行器
    SpringBoot跨域问题解决方案
    SpringCloud学习之快速搭建分布式配置
    MySQL-Innodb存储结构
    PG-流复制
  • 原文地址:https://www.cnblogs.com/Kevin-1967/p/9995528.html
Copyright © 2011-2022 走看看