<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;p&gt;About&lt;br /&gt;
&lt;del&gt;-&lt;/del&gt;&amp;#8212;&lt;/p&gt;
&lt;p&gt;This is a set of experimental patches and a Bro policy script that will enable&lt;br /&gt;
an analyst to inspect &lt;span class=&quot;caps&quot;&gt;HTTP&lt;/span&gt; file transfers in realtime and build MD5 sums, then&lt;br /&gt;
subsequently compare those MD5 sums (again in realtime) with Team Cymru&amp;#8217;s &lt;br /&gt;
Malware Hash Registry (&lt;span class=&quot;caps&quot;&gt;MHR&lt;/span&gt;) through their &lt;span class=&quot;caps&quot;&gt;DNS&lt;/span&gt; interface.&lt;/p&gt;
&lt;p&gt;If an executable file is identified as being included in the &lt;span class=&quot;caps&quot;&gt;MHR&lt;/span&gt;, the &lt;br /&gt;
HTTP_Malware notice is raised.&lt;/p&gt;
&lt;p&gt;A very sincere thanks goes to Team Cymru for making this data publicly &lt;br /&gt;
available and for creating such easy interfaces to access the data.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.team-cymru.org/Services/MHR/&quot;&gt;Malware Hash Registry&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;INSTALLATION&lt;/span&gt;&lt;br /&gt;
&lt;del&gt;-&lt;/del&gt;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;-&lt;/p&gt;
&lt;p&gt;You could skip the beginning of the instructions and just apply the patches if you&amp;#8217;re working from an existing code base.  The only requirement is that you must be using version 1.4+ of Bro.&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;wget ftp://bro-ids.org/bro-1.4-release.tar.gz
tar xzvf bro-1.4-release.tar.gz
cd bro-1.4/
git clone git://github.com/sethhall/bro_scripts.git
patch -p0 &amp;lt; bro_scripts/md5_hash_malware/md5-incremental.patch
patch -p0 &amp;lt; bro_scripts/md5_hash_malware/http-identified-files.patch
# Make sure that the configure script tells you that libmagic is available
./configure --prefix=/usr/local/bro1.4
make
sudo make install
sudo cp bro_scripts/md5_hash_malware/http-cymru-malware-hash.bro /usr/local/bro1.4/share/bro/&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;As an example of how to run Bro once everything is installed (sniffing interface em0)&amp;#8230;&lt;/p&gt;
/usr/local/bro1.4/bin/bro -i em0 http-cymru-malware-hash</body>
  <created-at type="datetime">2010-02-10T03:00:52-08:00</created-at>
  <id type="integer">98791</id>
  <permalink>the-malware-hash-registry-and-bro-ids</permalink>
  <repository-id type="integer">30647</repository-id>
  <title>The Malware Hash Registry and Bro-IDS</title>
  <updated-at type="datetime">2009-01-12T12:34:28-08:00</updated-at>
  <user-id type="integer">15810</user-id>
</wiki>
