Project

General

Profile

Actions

Feature #2168

closed

Rules files from Suricata sources (like decoder-events.rules) are packaged as config files and may not be updated on package update.

Added by Pavel Selivanov almost 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Effort:
Difficulty:
Label:

Description

In many environments Suricata packages are updated automatically, with tools like ansible, puppet, etc. This tools usually preserve old config files, invoking apt with options like Dpkg::Options::="--force-confold".

Suricata debian packages list built-in rules among conf files:

/etc/suricata/rules/files.rules
/etc/suricata/rules/modbus-events.rules
/etc/suricata/rules/app-layer-events.rules
/etc/suricata/rules/stream-events.rules
/etc/suricata/rules/smtp-events.rules
/etc/suricata/rules/dnp3-events.rules
/etc/suricata/rules/http-events.rules
/etc/suricata/rules/decoder-events.rules
/etc/suricata/rules/tls-events.rules
/etc/suricata/rules/dns-events.rules

This may result in using outdated built-in rules after package update. Happened to me.

Also, regular updating of files inside /etc may cause a lot of alerts from HIDS (ossec in my case).

I suggest to move rules files ouside /etc, for example /var/lib/suricata/rules:
  • they won't be anymore considered as config files and will always be updated together with package
  • HIDS will be happy that nothing changes in /etc

/etc/suricata/rules may become symlink to /var/lib/suricata/rules for better backward compatibility.


Related issues 1 (0 open1 closed)

Related to Suricata - Bug #3138: Don't install Suricata provided rules to /etc/suricata/rules as part of make install-rules.ClosedJason IshActions
Actions

Also available in: Atom PDF