]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
dcerpc: add logging test
authorShivani Bhardwaj <shivanib134@gmail.com>
Fri, 5 Jun 2020 13:14:52 +0000 (18:44 +0530)
committerShivani Bhardwaj <shivanib134@gmail.com>
Wed, 5 Aug 2020 06:51:57 +0000 (12:21 +0530)
tests/dcerpc/dce-logging/input.pcap [new file with mode: 0644]
tests/dcerpc/dce-logging/test.yaml [new file with mode: 0644]

diff --git a/tests/dcerpc/dce-logging/input.pcap b/tests/dcerpc/dce-logging/input.pcap
new file mode 100644 (file)
index 0000000..d6d7cb5
Binary files /dev/null and b/tests/dcerpc/dce-logging/input.pcap differ
diff --git a/tests/dcerpc/dce-logging/test.yaml b/tests/dcerpc/dce-logging/test.yaml
new file mode 100644 (file)
index 0000000..a9fac6a
--- /dev/null
@@ -0,0 +1,46 @@
+requires:
+  min-version: 6.0.0
+
+args:
+- -k none
+
+checks:
+- filter:
+    count: 1
+    match:
+      dcerpc.call_id: 27
+      dcerpc.interfaces[0].ack_result: 2
+      dcerpc.interfaces[0].uuid: afa8bd80-7d8a-11c9-bef4-08002b102989
+      dcerpc.interfaces[0].version: '1.0'
+      dcerpc.interfaces[1].ack_result: 0
+      dcerpc.interfaces[1].uuid: afa8bd80-7d8a-11c9-bef4-08002b102989
+      dcerpc.interfaces[1].version: '1.0'
+      dcerpc.request: BIND
+      dcerpc.response: BINDACK
+      dcerpc.rpc_version: '5.0'
+      dest_ip: 192.168.3.43
+      dest_port: 49302
+      event_type: dcerpc
+      pcap_cnt: 7
+      proto: TCP
+      src_ip: 10.0.2.15
+      src_port: 51286
+- filter:
+    count: 1
+    match:
+      dcerpc.call_id: 27
+      dcerpc.req.frag_cnt: 1
+      dcerpc.req.opnum: 4
+      dcerpc.req.stub_data_size: 24
+      dcerpc.request: REQUEST
+      dcerpc.res.frag_cnt: 1
+      dcerpc.res.stub_data_size: 68
+      dcerpc.response: RESPONSE
+      dcerpc.rpc_version: '5.0'
+      dest_ip: 192.168.3.43
+      dest_port: 49302
+      event_type: dcerpc
+      pcap_cnt: 10
+      proto: TCP
+      src_ip: 10.0.2.15
+      src_port: 51286