From: Philippe Antoine Date: Thu, 18 Jan 2024 12:39:47 +0000 (+0100) Subject: dns: adds test for sshfp X-Git-Tag: suricata-6.0.17~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1663%2Fhead;p=thirdparty%2Fsuricata-verify.git dns: adds test for sshfp --- diff --git a/tests/dns/dns-sshfp/README.md b/tests/dns/dns-sshfp/README.md new file mode 100644 index 000000000..08f0fb519 --- /dev/null +++ b/tests/dns/dns-sshfp/README.md @@ -0,0 +1,9 @@ +# Description + +Test dns schema completion and sshfp parsing +https://redmine.openinfosecfoundation.org/issues/5642 + +# PCAP + +The pcap comes from running `dig SSHFP anoncvs.netbsd.org` ++ manual modification to set `dns.flags.truncated` to true to test `tc` field diff --git a/tests/dns/dns-sshfp/dns-sshfp.pcap b/tests/dns/dns-sshfp/dns-sshfp.pcap new file mode 100644 index 000000000..79d916fbe Binary files /dev/null and b/tests/dns/dns-sshfp/dns-sshfp.pcap differ diff --git a/tests/dns/dns-sshfp/test.yaml b/tests/dns/dns-sshfp/test.yaml new file mode 100644 index 000000000..084500ca6 --- /dev/null +++ b/tests/dns/dns-sshfp/test.yaml @@ -0,0 +1,12 @@ +requires: + min-version: 8 + +checks: + - filter: + count: 1 + match: + event_type: dns + dns.answers[0].rrname: anoncvs.netbsd.org + dns.answers[0].rrtype: SSHFP + dns.answers[0].sshfp.algo: 1 + dns.answers[0].sshfp.fingerprint: "19:8c:34:a9:2f:c0:b2:ab:1d:a5:2b:68:8c:2f:19:1d:2d:96:0c:09"