Skip to content

Commit

Permalink
dns-reversed-udp-1: test that flow is reversed
Browse files Browse the repository at this point in the history
Test that because this is a DNS response, that the flow is reversed.
  • Loading branch information
jasonish committed Sep 25, 2024
1 parent f27b795 commit 28842ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/dns-reversed-udp-1/suricata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ outputs:
- dns:
enabled: true
version: 2
- flow:
9 changes: 9 additions & 0 deletions tests/dns-reversed-udp-1/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,12 @@ checks:
dns.type: answer
src_ip: "10.16.1.11"
dest_ip: "10.16.1.1"

# This pcap has one packet, 10.16.1.1 -> 10.16.1.11, but Suricata
# should reverse that as it detect this as a DNS response.
- filter:
count: 1
match:
event_type: flow
src_ip: "10.16.1.11"
dest_ip: "10.16.1.1"

0 comments on commit 28842ea

Please sign in to comment.