<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>IntelMQ</title>
    <description>IntelMQ is a solution for CERTs for collecting and processing security feeds, pastebins, tweets and log files using a message queuing protocol. It&#39;s a community driven initiative called IHAP (Incident Handling Automation Project) which was conceptually designed by European CERTs during several InfoSec events. Its main goal is to give to incident responders an easy way to collect &amp; process threat intelligence thus improving the incident handling processes of CERTs.
</description>
    <link>http://intelmq.org/</link>
    <atom:link href="http://intelmq.org/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Wed, 27 Apr 2016 16:18:06 +0200</pubDate>
    <lastBuildDate>Wed, 27 Apr 2016 16:18:06 +0200</lastBuildDate>
    <generator>Jekyll v3.1.2</generator>
    
      <item>
        <title>ASN Lookup made easy</title>
        <description>&lt;p&gt;A lot of incident reports or events do only contain the IP-Address of the source
or destination of the event. But for your everyday use it might be important to
know the Autonomous System which contained this IP address. IntelMQ has an
expert Bot build in, which helps you to enrich your event with this data.&lt;/p&gt;

&lt;p&gt;In this post, I’d like to tell you how you can add this functionality to your IntelMQ&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Requirements:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Up-To-Date &lt;a href=&quot;https://github.com/certtools/intelmq&quot; title=&quot;IntelMQ on GitHub&quot;&gt;IntelMQ&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Up-To-Date IntelMQ-Manager.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;(https://github.com/hadiasghari/pyasn&quot; title=&quot;PyASN on GitHub&quot;&gt;PyASN 1.5.0b7&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;A provider for routing data
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://www.ripe.net/analyse/internet-measurements/routing-information-service-ris/ris-raw-data&quot;&gt;RIPE RIS-RAW-Data&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;http://data.3tu.nl/repository/uuid:d4d23b8e-2077-4592-8b47-cb476ad16e12&quot;&gt;3TU-Weekly&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Around 30 minutes of your time, probably less.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For this example we are going to use the data from RIPE.
The dump is updated every 8 hours, you can choose between different collectors
which will show different points of view on the network.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let’s start.&lt;/strong&gt;
I presume you have all requirements up and running.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Download your data to a directory of your liking. I like &lt;code class=&quot;highlighter-rouge&quot;&gt;/tmp/ &lt;/code&gt;.
&lt;code class=&quot;highlighter-rouge&quot;&gt;
$ curl http://data.ris.ripe.net/rrc12/latest-bview.gz -o /tmp/latest-bview.gz
&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;From my understanding of PyASN, it cannot use gz compressed files, and always
tries to unpack the files, when converting them into an IPASN-Data-File.
(See the GitHub Repository of PyASN to have a glance at an example for this
format.)
This means we need to repack the file into bz2 format. This will take a while.
&lt;code class=&quot;highlighter-rouge&quot;&gt;
$ gunzip -c &amp;lt; /tmp/latest-bview.gz | bzip2 -c &amp;gt; /tmp/latest-bview.bz2
&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Use the convert utility from PyASN to convert the data. This may take a while.
&lt;code class=&quot;highlighter-rouge&quot;&gt;
$ pyasn_util_convert.py --single /tmp/latest-bview.bz2 /tmp/ipasn.dat
&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;We are almost done. Use the manager to add the &lt;code class=&quot;highlighter-rouge&quot;&gt;ASN Lookup&lt;/code&gt; Expert.
As database use the file you created with the convert-tool in step 3
&lt;code class=&quot;highlighter-rouge&quot;&gt;
 &quot;database&quot;: &quot;/tmp/ipasn.dat&quot;
&lt;/code&gt;
  Add your newly created expert bot to your pipeline by creating links from and to
  the expert.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Don’t forget to save your configuration.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Start the &lt;code class=&quot;highlighter-rouge&quot;&gt;ASN Lookup&lt;/code&gt; Expert and restart its preceding bot.
That’s it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Hint:&lt;/em&gt; After eight hours this data will be deprecated, as routing information
changes very rapidly. Add steps 1 to 3 to a cron-job to repeat them regularly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Questions?&lt;/strong&gt; Join #intelmq on freenode and ask them. We are glad to help.&lt;/p&gt;
</description>
        <pubDate>Wed, 27 Apr 2016 13:00:00 +0200</pubDate>
        <link>http://intelmq.org/2016/04/27/asn-lookup-made-easy.html</link>
        <guid isPermaLink="true">http://intelmq.org/2016/04/27/asn-lookup-made-easy.html</guid>
        
        
      </item>
    
      <item>
        <title>Migrating to Python3 Only</title>
        <description>&lt;p&gt;Since of today, we will be dropping Python2.7 support and only use Python3.
The reasons are:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;keeping compatibility between Ptyhon2 as well as Python3 creates ugly code with lots of exceptions. This is being reduced now.&lt;/li&gt;
  &lt;li&gt;All libraries that we need are supported in Python3&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Please note that over the course of the next weeks, we will clean up any Python2 related documentation and code.&lt;/p&gt;

</description>
        <pubDate>Tue, 05 Apr 2016 15:55:49 +0200</pubDate>
        <link>http://intelmq.org/2016/04/05/migrating-to-python3-only.html</link>
        <guid isPermaLink="true">http://intelmq.org/2016/04/05/migrating-to-python3-only.html</guid>
        
        
      </item>
    
  </channel>
</rss>
