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 Aug 13, 2024
1 parent e4f9762 commit 177fea6
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: 8.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 177fea6

Please sign in to comment.