]> git.ipfire.org Git - thirdparty/suricata.git/commit
dns: parse and alert on invalid opcodes
authorJason Ish <jason.ish@oisf.net>
Wed, 21 Dec 2022 01:17:38 +0000 (19:17 -0600)
committerVictor Julien <vjulien@oisf.net>
Thu, 8 Jun 2023 08:07:52 +0000 (10:07 +0200)
commitdbaf63df5a8f32b946888658bcc91bab0695a9ab
treee828597c4f8934fd49b43ec1ad1bea3d638aaa1c
parent66b36f4de167ee9892ec83de35b9d63227199f99
dns: parse and alert on invalid opcodes

Accept DNS messages with an invalid opcode that are otherwise
valid. Such DNS message will create a parser event.

This is a change of behavior, previously an invalid opcode would cause
the DNS message to not be detected or parsed as DNS.

Issue: #5444
(cherry picked from commit c98c49d4bad413dbbe4e21a48ebf37260ee5cc8e)
rules/dns-events.rules
rust/src/dns/dns.rs
rust/src/dns/log.rs