Skip to content

Commit

Permalink
dns: adds test for sshfp
Browse files Browse the repository at this point in the history
  • Loading branch information
catenacyber committed Feb 13, 2024
1 parent 2ac1472 commit 83699b6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/dns/dns-sshfp/README.md
Original file line number Diff line number Diff line change
@@ -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
Binary file added tests/dns/dns-sshfp/dns-sshfp.pcap
Binary file not shown.
12 changes: 12 additions & 0 deletions tests/dns/dns-sshfp/test.yaml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 83699b6

Please sign in to comment.