]> 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>
Tue, 24 Jan 2023 09:44:49 +0000 (10:44 +0100)
commitc98c49d4bad413dbbe4e21a48ebf37260ee5cc8e
tree3b2e17bc05feb4ae01c48b9f23fc02ef0f718992
parent49e9f51a039986ff5724d9d7cd8e435dfa61bde0
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
etc/schema.json
rules/dns-events.rules
rust/src/dns/dns.rs
rust/src/dns/log.rs