-
-
Notifications
You must be signed in to change notification settings - Fork 96
Change suricata.dns
schema to match current DNS structure
#1919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks! I'll take it from here and push a commit that fixes the crash on export and adds an additional integration test for verification. |
Thanks! |
The schema is dependent on how you configure the DNS output in the (Once we have the sum/union types, we can support this.) |
The schema as proposed should cover the maximum of what output is configurable in Suricata (I read the new DNS Rust logging code). That is, detailed I do assume though that no one is using DNSv1 logging any more. That has not been the default since Suricata 5.0 (2019). |
The data contains a record inside a list, which is not well supported and was not covered by any integration tests yet. This ensures we can at least import and export it.
suricata.dns
schema to match current DNS structure
I've pushed an integration test. The crash mentioned in #1916 I cannot reproduce on this branch, and #1888 fixes all issues with alias types categorically by making them transparent for developers. So I think once CI is happy here we can go ahead and merge. |
The new fields in the suricata.dns type mean that other integration test baselines had to be updated as well.
3b14662
to
f266f32
Compare
📔 Description
This PR updates the
suricata.dns
schema to match the currently used EVE-JSON structure output by recent Suricata versions.📝 Checklist
🎯 Review Instructions
Can be tested by importing EVE-JSON with some more elaborate DNS events, and checking whether they are reproduced correctly in the exported JSON.