Detections: adding custom Suricata rule works, but causes rule mismatch status #13166
-
Version2.4.70 Installation MethodSecurity Onion ISO image Descriptionconfiguration Installation TypeDistributed Locationon-prem with Internet access Hardware SpecsExceeds minimum requirements CPUManager: 8 cores, Forward: 28 cores, Search: 16 RAMManager: 32 Gb, Forward: 128 Gb, Search: 128 Gb Storage for /Manager: 85 Gb, Forward: 300 Gb, Search: 315 Gb Storage for /nsmManager: 170 Gb, Forward: 15 TB, Search: 24 TB Network Traffic Collectiontap Network Traffic SpeedsLess than 1Gbps StatusYes, all services on all nodes are running OK Salt StatusNo, there are no failures LogsNo, there are no additional clues DetailHi all, I'm having trouble trying to understand what is causing the "Rule Mismatch" status for Suricata in the new Detections module. In short, the sync always succeeds, unless I add a custom Suricata rule using the new UI. Adding a new Suricata rule through the Detections UI causes the "Rule Mismatch" error. When adding a rule through the UI, these are the steps I take:
An example custom rule (in case it's some obvious syntax error or something): "Alert when a connection is made to a service that uses an internal CA."
The rule is successfully added to Detections: Furthermore, the rule is deployed and enabled on all sensor nodes: The SID was also successfully added to the idstools enabled pillar: Looking at the Integrity Check Report logs, I find my SID listed under "deployedButNotEnabled": {"fields":{"deployedButNotEnabled":["30001002"],"detectionEngine":"suricata","enabledButNotDeployed":[],"intCheckId":"34ff33b9-88e4-4abc-b7b4-6629400af8e5"},"level":"info","timestamp":"2024-06-07T19:18:06.567001022Z","message":"integrity check report"} This doesn't make sense to me, because the rule appears in all.rules on the master and sensors. If anyone has guidance on what might be the culprit, that would be much appreciated. Guidelines
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
This afternoon we internally confirmed this as a bug. We are working on a fix. The custom rule is deployed just fine, it is the integrity check that is not working as expected. |
Beta Was this translation helpful? Give feedback.
-
I thought that I was losing my mind. Thanks for the update |
Beta Was this translation helpful? Give feedback.
-
@zfcarsonb @oneCrazyAdmin 2.4.80 was released yesterday and has a number of fixes for Detections. I would suggest upgrading and seeing if that fixes the issue. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
This afternoon we internally confirmed this as a bug. We are working on a fix.
The custom rule is deployed just fine, it is the integrity check that is not working as expected.