<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi Gabriele,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Last year I did a deep-dive into the Zeek DCE-RPC protocol analyzer.&nbsp; I found the same un-used binpac file
<i>endpoint-atsvc.pac,</i> and I had similar thoughts about developing analyzers for specific RPC data stubs.&nbsp; Unfortunately, so many RPC data stubs are encrypted by default now.&nbsp; Also, I realized I was able to make useful decisions from just knowing the RPC
 interface and method and then mapping that function to a threat model.&nbsp; Please see the github repository at the URL below.&nbsp; Also, I am giving a talk on it at ZeekWeek next month.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><a href="https://github.com/mitre-attack/bzar">https://github.com/mitre-attack/bzar</a><o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Mark<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><b>From:</b> zeek-dev-bounces@zeek.org &lt;zeek-dev-bounces@zeek.org&gt;
<b>On Behalf Of </b>Gabriele Pippi<br>
<b>Sent:</b> Thursday, September 19, 2019 12:10 PM<br>
<b>To:</b> zeek-dev@zeek.org<br>
<b>Subject:</b> [EXT] [Zeek-Dev] Zeek DCE-RPC Analyzer Update<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">Zeek-Dev Group,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">hi i'm Gabriele from purple team of Certego. We are trying to rely on zeek to increase the detection of our platform in the
<i>moving through the internal network sc</i>enario ( <i>credential access</i>, <i>
discovery</i> and specially <i>lateral movement</i> ATT&amp;CK Matrix phases).<br>
<br>
In the case of dcerpc for the moment we are correlating the information generated by
<i>bro_dce_rpc </i>parser with data coming from endpoint agents.<br>
<br>
In order to reduce the number of false positives and to gather more detailed information for a possible analysis, we thought it would be really interesting &quot;to get extensive parsing in place for DCE-RPC messages by parsing the IDL files [...]&quot; or to implement
 a &quot;byte string containing the stub data itself&quot; in case it is not encrypted. In our case we would like to give priority to all those operations that allow to directly carry out an entire attack or a code execution, restricting the scope to those with stub
 data in cleartext (for example in the case of dcerpc over smb named_pipe or in the case of dcom, at least for the operations observed until now ). I found the following BINPAC
<i>zeek/src/analyzer/protocol/dce-rpc/endpoint-atsvc.pac</i>, and I ended up to this discussion
<a href="https://bro-dev.bro-ids.narkive.com/jq0Ofe6L/bro-dce-rpc-analyzer-questions" target="_blank">
https://bro-dev.bro-ids.narkive.com/jq0Ofe6L/bro-dce-rpc-analyzer-questions</a> .
<br>
<br>
<b>Have there been any updates regarding this topic? Do you have any advice on how to proceed?</b><br>
<br>
Once we have assessed the feasibility, we could be willing to contribute to achieve this goal. In this work we would also like to insert a series of endpoints and operations that currently are not mapped by zeek, among those observed for example there are several
 in DCOM. Once the tests are completed, if you are interested, we could also provide you with an exhaustive list or integrate it directly with a possible merge.<br>
<br>
At the moment we do not know of the existence of technologies that allow to do alerting on some types of
<i>Windows APIs</i>, we therefore believe that being able to do it at the network level through DCERPC is an important added value to zeek.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Gabriele.<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>