<div dir="ltr"><div><div>I am working on improving Bro&#39;s ability to detect Kerberos attacks (specifically certain instances of Skeleton Key attacks and encryption downgrades) which requires adjusting what information Bro passes up to the scripting layer.  Generic breakdown on some of the attacks and detection methods can be found here (<a href="https://www.blackhat.com/docs/eu-15/materials/eu-15-Beery-Watching-The-Watchdog-Protecting-Kerberos-Authentication-With-Network-Monitoring-wp.pdf">https://www.blackhat.com/docs/eu-15/materials/eu-15-Beery-Watching-The-Watchdog-Protecting-Kerberos-Authentication-With-Network-Monitoring-wp.pdf</a>).<br><br>Currently, Bro treats the ETYPE_INFO and ETYPE_INFO2 parts of the KRB Error packets the same and only extracts the password salts (if they exist).  Because all of the pre-auth data gets stored into the <span class="gmail-pl-s"><span class="gmail-pl-ii">KRB::Type_Value_Vector data structure, making all of the data in the ETYPE_INFO2 sections will likely require modifying the structure of how pre-auth data is stored and made accessible in scripts.</span></span><span class="gmail-pl-s"><span class="gmail-pl-ii"></span></span><span class="gmail-pl-s"><span class="gmail-pl-ii"></span></span><br><br></div>Is anyone currently using information from &quot;pa_data&quot;<span class="gmail-pl-s"><span class="gmail-pl-ii"> in any scripts (especially the salt information from ETYPE_INFO2 fields)?  I&#39;d like to understand how other people are using this data currently so that I can make sure I don&#39;t break use cases in the process.<br><br></span></span></div><div><span class="gmail-pl-s"><span class="gmail-pl-ii">Also, are there any recommendations for other parts of Bro&#39;s code to study as good examples of passing back highly variable data structures?<br><br></span></span></div><div><span class="gmail-pl-s"><span class="gmail-pl-ii">-John<br></span></span></div><div><span class="gmail-pl-s"><span class="gmail-pl-ii"><br></span></span></div><span class="gmail-pl-s"><span class="gmail-pl-ii"></span></span></div>