Actions
Feature #2168
closedRules files from Suricata sources (like decoder-events.rules) are packaged as config files and may not be updated on package update.
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.
Actions