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 Jul 21, 2024
1 parent 7fd86e8 commit fc0fedc
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
Binary file added tests/dns/dns-dcerpc-reversed/input.pcap
Binary file not shown.
39 changes: 39 additions & 0 deletions tests/dns/dns-dcerpc-reversed/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
requires:
min-version: 6.0.0

args:
- --set stream.midstream=true

checks:

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

- filter:
count: 1
match:
event_type: dns
dns.type: response
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 fc0fedc

Please sign in to comment.