Running multiple rulesets #2988
-
I've found the discussion on how to enable the TALOS ruleset with SO rules disabled (#1727). I would like to also run the ETOPEN ruleset, but the idstools config section doesn't appear to be a YAML list, so I see no way to specify both TALOS and ETOPEN.. Is there a way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I've figured out a solution, although it's not optimal. To add the Snort community rules, just add a list entry under urls for the community rules in the minion's sls file. For example, to use both ETOPEN and Snort-community rulesets, it would look like:
The drawback is that there is no md5 pre-check to know whether the comunity ruleset has changed since the last download. It just downloads the full ruleset whenever rules are updated, wasting bandwidth for rulesets that are not updated frequently. A similar modification can be used to download the registered or subscription TALOS rulesets; you just need to enter the full URL there, including the oinkcode parameter. It has the same drawback of not checking the md5 too, but the idstools-rulecat script also fails, as it just appends a '.md5' extension to the end of the URL string, meaning it's added at the end of the oinkcode parameter instead of the pathname. If you are using TALOS, don't forget to disable the shared-object rules. netsecninja's method works well:
In fact, I would recommend the install script disable those rules automatically if TALOS is selected during installation. I've opened issue jasonish/py-idstools#81 against rulecat to fix the md5 check. It would be nice if rulecat checked the md5 for regular URLs it's passed as well, but py-idstools seems to be in search of an active maintainer. There isn't much activity of late, and some of the issues and PRs are quite old. I don't think it's worth modifying the Security Onion install script and jinja template to account for multiple rulesets via the installer UI. This is an advanced feature that can require people to edit textfiles to implement. |
Beta Was this translation helpful? Give feedback.
I've figured out a solution, although it's not optimal.
To add the Snort community rules, just add a list entry under urls for the community rules in the minion's sls file. For example, to use both ETOPEN and Snort-community rulesets, it would look like:
The drawback is that there is no md5 pre-check to know whether the comunity ruleset has changed since the last download. It just downloads the full ruleset whenever rules are updated, wasting bandwidth for rulesets that are not updated frequently.
A similar modification can be used to download the re…