--- /dev/null
+Tests the dcerpc.iface keyword
alert tcp any any -> any any (msg:"DCE Iface test";flow:established,to_server;dce_iface:afa8bd80-7d8a-11c9-bef4-08002b102989;sid:1;)
+alert tcp any any -> any any (msg:"DCE Iface test";flow:established,to_server;dcerpc.iface:afa8bd80-7d8a-11c9-bef4-08002b102989,=1; sid:2;)
+alert tcp any any -> any any (msg:"DCE Iface test";flow:established,to_server;dcerpc.iface:afa8bd80-7d8a-11c9-bef4-08002b102989,=0; sid:3;)
+alert tcp any any -> any any (msg:"DCE Iface test";flow:established,to_server;dcerpc.iface:afa8bd80-7d8a-11c9-bef4-08002b102989,>1,any_frag; sid:4;)
+alert tcp any any -> any any (msg:"DCE Iface test";flow:established,to_server;dcerpc.iface:afa8bd80-7d8a-11c9-bef4-08002b102989,=1,any_frag; sid:5;)
count: 1
match:
event_type: alert
+ alert.signature_id: 1
+ pcap_cnt: 10
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 2
+ pcap_cnt: 10
+ - filter:
+ count: 0
+ match:
+ event_type: alert
+ alert.signature_id: 3
+ - filter:
+ count: 0
+ match:
+ event_type: alert
+ alert.signature_id: 4
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 5
+ pcap_cnt: 10
+ - filter:
+ min-version: 6.0.0
+ count: 1
+ match:
+ dcerpc.response: RESPONSE
+ dcerpc.res.stub_data_size: 68
+ dcerpc.res.frag_cnt: 1
+ dcerpc.rpc_version: '5.0'
+ pcap_cnt: 10
+ dcerpc.request: REQUEST
+ dcerpc.req.stub_data_size: 24
+ dcerpc.req.frag_cnt: 1
+ dcerpc.call_id: 27
+ event_type: dcerpc
--- /dev/null
+Tests the dce_stub_data keyword
+
+Pcap from dcerpc-dce-iface-02
--- /dev/null
+alert tcp any any -> any any (msg:"DCE stub data";flow:established,to_server; dcerpc.stub_data; content:"|09 00 00 00 00 01 00 00|"; sid:1;)
+alert tcp any any -> any any (msg:"DCE stub data";flow:established,to_server; dcerpc.stub_data; content:"|09 00|"; sid:2;)
+alert tcp any any -> any any (msg:"DCE stub data";flow:established,to_server; dcerpc.stub_data; content:"|01 09 00|"; sid:3;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+
+args:
+- -k none
+
+checks:
+- filter:
+ min-version: 6.0.0
+ count: 2
+ match:
+ event_type: dcerpc
+- filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ pcap_cnt: 10
+- filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 2
+ pcap_cnt: 10
+- filter:
+ count: 0
+ match:
+ event_type: alert
+ alert.signature_id: 3
+- filter:
+ count: 1
+ match:
+ event_type: flow
+- filter:
+ count: 1
+ match:
+ event_type: stats