Lately, some of the TLS data was misdetected as DCERPC/TCP because of
the pattern |05 00|. Add more checks in DCERPC probe function to ensure
that it is in fact DCERPC/TCP.
match parser::parse_dcerpc_header(input) {
Ok((_, hdr)) => {
let is_request = hdr.hdrtype == 0x00;
- let is_dcerpc = hdr.rpc_vers == 0x05 && hdr.rpc_vers_minor == 0x00;
+ let is_dcerpc = hdr.rpc_vers == 0x05 &&
+ hdr.rpc_vers_minor == 0x00 &&
+ hdr.packed_drep[0] & 0xee == 0 &&
+ hdr.packed_drep[1] <= 3;
return (is_dcerpc, is_request);
},
Err(_) => (false, false),