Skip to content

Commit

Permalink
detect-proto: add a test for DNS detected as DCERPC by PM
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-bakhtin committed May 19, 2024
1 parent 1e61ec9 commit d292309
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
Binary file added tests/dns/dns-dcerpc-reversed/input.pcap
Binary file not shown.
41 changes: 41 additions & 0 deletions tests/dns/dns-dcerpc-reversed/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
requires:
min-version: 6.0.0

args:
- --set stream.midstream=true

checks:

- filter:
comment: request
count: 1
match:
event_type: dns
dns.type: query
src_ip: "172.28.255.122"
src_port: 54824
dest_ip: "192.168.1.12"
dest_port: 53

- filter:
comment: response
count: 1
match:
event_type: dns
dns.type: answer
dns.answers[0].rrtype: A
src_ip: "172.28.255.122"
src_port: 54824
dest_ip: "192.168.1.12"
dest_port: 53

- filter:
count: 1
match:
event_type: flow
app_proto: dns
src_ip: "172.28.255.122"
src_port: 54824
dest_ip: "192.168.1.12"
dest_port: 53

0 comments on commit d292309

Please sign in to comment.