]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
dns: adds test for sshfp 1663/head
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 18 Jan 2024 12:39:47 +0000 (13:39 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 22 Feb 2024 09:02:47 +0000 (10:02 +0100)
tests/dns/dns-sshfp/README.md [new file with mode: 0644]
tests/dns/dns-sshfp/dns-sshfp.pcap [new file with mode: 0644]
tests/dns/dns-sshfp/test.yaml [new file with mode: 0644]

diff --git a/tests/dns/dns-sshfp/README.md b/tests/dns/dns-sshfp/README.md
new file mode 100644 (file)
index 0000000..08f0fb5
--- /dev/null
@@ -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 (file)
index 0000000..79d916f
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 (file)
index 0000000..084500c
--- /dev/null
@@ -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"