Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detect-proto: add a test for DNS detected as DCERPC by PM #2151

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Loading