<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Infosanity&#039;s Blog &#187; Dionaea</title>
	<atom:link href="http://blog.infosanity.co.uk/category/honeypot/dionaea/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.infosanity.co.uk</link>
	<description>Offensive and Defensive IT Security</description>
	<lastBuildDate>Fri, 03 Feb 2012 10:21:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.infosanity.co.uk' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/f0350d3bea8a050ccac1e7c2b067d03b?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Infosanity&#039;s Blog &#187; Dionaea</title>
		<link>http://blog.infosanity.co.uk</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.infosanity.co.uk/osd.xml" title="Infosanity&#039;s Blog" />
	<atom:link rel='hub' href='http://blog.infosanity.co.uk/?pushpress=hub'/>
		<item>
		<title>Dionaea with p0f</title>
		<link>http://blog.infosanity.co.uk/2010/12/04/dionaea-with-p0f/</link>
		<comments>http://blog.infosanity.co.uk/2010/12/04/dionaea-with-p0f/#comments</comments>
		<pubDate>Sat, 04 Dec 2010 17:08:54 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Dionaea]]></category>
		<category><![CDATA[Honeypot]]></category>

		<guid isPermaLink="false">http://blog.infosanity.co.uk/?p=899</guid>
		<description><![CDATA[Working my way through the compilation instructions from Dionaea whilst building up my latest sensor I was reminded of some optional functionality that I'd always intended to implement, but never found the time. First on my list was p0f (that's a zero).<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=899&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Working my way through the compilation instructions from Dionaea whilst building up my <a title="Dionaea in the key of U(buntu)" href="http://blog.infosanity.co.uk/2010/12/04/dionaea-in-the-key-of-ubuntu/">latest sensor</a> I was reminded of some optional functionality that I&#8217;d always intended to implement, but never found the time. First on my list was p0f (that&#8217;s a zero).</p>
<p>From p0f&#8217;s <a title="p0f - coredump.cx" href="http://lcamtuf.coredump.cx/p0f.shtml">homepage</a>:</p>
<blockquote><p>P0f v2 is a versatile passive OS fingerprinting tool. P0f can identify the operating system on:</p>
<p>- machines that connect to your box (SYN mode),<br />
- machines you connect to (SYN+ACK mode),<br />
- machine you <strong>cannot</strong> connect to (RST+ mode),<br />
- machines whose communications you can observe.</p>
<p>P0f can also do many other tricks, and can detect or measure the following:</p>
<p>- firewall presence, NAT use (useful for policy enforcement),<br />
- existence of a load balancer setup,<br />
- the distance to the remote system and its uptime,<br />
- other guy&#8217;s network hookup (DSL, OC3, avian carriers) and his ISP.</p></blockquote>
<p>Setting p0f up on the sensor should have been straightforward;</p>
<ul>
<li>Install with: <em>apt-get install p0f</em></li>
<li>Run p0f as suggested in dionaea.conf: <em>sudo p0f -i any -u root -Q /tmp/p0f.sock -q -l</em></li>
<li>And edit dionaea.conf&#8217;s ihandler section to enable p0f</li>
</ul>
<p>This mostly worked, watching the p0f output it was correctly (I&#8217;m assuming) providing stats about connecting systems. The problem was that p0f info wasn&#8217;t getting saved into Dionaea&#8217;s logsqlite database, dionaea-error.log was reporting the below error with each connection:</p>
<blockquote><p>[04122010 13:48:44] connection connection.c:827-warning: Could not connect un:///tmp/p0f.sock:0 (Permission denied)</p></blockquote>
<p>Which seemed odd, /tmp/p0f.sock was showing as globally readable. Re-reading the Dionaea compilation instructions I noticed a comment about p0f struggling with IPv6 so has problems it Dionaea is listening on ::, which mine was. Problem solved, I edited dionaea.conf so that Listen mode was set to &#8220;manual&#8221;, and provided the interface/IP details of my network connection. Only this didn&#8217;t solve my problem&#8230;</p>
<p>Head thoroughly hurting I swallowed my ego and asked for assistance on the <a href="http://sourceforge.net/mailarchive/forum.php?thread_name=007701cb93c6$87bd02f0$973708d0$%40infosanity.co.uk&amp;forum_name=nepenthes-devel">mailing list</a>, and promptly (thanks again Ryan) got a <a href="http://sourceforge.net/mailarchive/message.php?msg_id=26699222">reply</a> that provided a functional workaround.</p>
<p>So, why go to the effort? Main purpose behind running honeypot systems (for me) is to get a better idea understanding of what threats are actively targeting systems in the wild. At first glance the information provided by p0f can quickly help evaluate the attacking system; what OS? what connection type? is it local?</p>
<p>With the limited (few hours) of data I&#8217;ve already collected heres a sample of the info you can gather:</p>
<p><strong>last 5 connections:</strong></p>
<table>
<tbody>
<tr>
<td>p0f</td>
<td>connection</td>
<td>p0f_genre</td>
<td>p0f_link</td>
<td>p0f_detail</td>
<td>p0f_uptime</td>
<td>p0f_tos</td>
<td>p0f_dist</td>
<td>p0f_nat</td>
<td>p0f_fw</td>
</tr>
<tr>
<td>328</td>
<td>822</td>
<td>Windows</td>
<td>IPv6/IPIP</td>
<td>2000 SP4, XP SP1+</td>
<td>-1</td>
<td></td>
<td>17</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>327</td>
<td>821</td>
<td>Windows</td>
<td>IPv6/IPIP</td>
<td>2000 SP4, XP SP1+</td>
<td>-1</td>
<td></td>
<td>17</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>326</td>
<td>820</td>
<td>Windows</td>
<td></td>
<td>2000 SP4, XP SP1+</td>
<td>-1</td>
<td></td>
<td>14</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>325</td>
<td>819</td>
<td>Windows</td>
<td></td>
<td>2000 SP4, XP SP1+</td>
<td>-1</td>
<td></td>
<td>14</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>324</td>
<td>818</td>
<td>Linux</td>
<td>pppoe (DSL)</td>
<td>2.4-2.6</td>
<td>5</td>
<td></td>
<td>13</td>
<td>0</td>
<td>0</td>
</tr>
</tbody>
</table>
<p>SQL Query:</p>
<blockquote><p>select *<br />
from p0fs<br />
order by<br />
connection desc<br />
limit 5;</p></blockquote>
<p><strong>Breakdown by OS</strong></p>
<table>
<tbody>
<tr>
<th>count</th>
<th>OS</th>
</tr>
<tr>
<td>324</td>
<td>Windows</td>
</tr>
<tr>
<td>24</td>
<td></td>
</tr>
<tr>
<td>17</td>
<td>Linux</td>
</tr>
</tbody>
</table>
<p>SQL Query:</p>
<blockquote><p>select count(p0f_genre) as count, p0f_genre as OS<br />
from p0fs<br />
group by p0f_genre<br />
order by count(p0f_genre) desc;</p></blockquote>
<p>Umm, so most systems spreading malware are (likely) infected Windows systems. No great surprise there&#8230;</p>
<p><strong>Connectivity Types</strong></p>
<table>
<tbody>
<tr>
<th>Count</th>
<th>Connectivity</th>
</tr>
<tr>
<td>153</td>
<td>IPv6/IPIP</td>
</tr>
<tr>
<td>149</td>
<td>ethernet/modem</td>
</tr>
<tr>
<td>40</td>
<td>pppoe (DSL)</td>
</tr>
<tr>
<td>21</td>
<td></td>
</tr>
<tr>
<td>12</td>
<td>(Google/AOL)</td>
</tr>
<tr>
<td>5</td>
<td>GPRS, T1, FreeS/WAN</td>
</tr>
<tr>
<td>3</td>
<td>PIX, SMC, sometimes wireless</td>
</tr>
<tr>
<td>2</td>
<td>sometimes DSL (2)</td>
</tr>
<tr>
<td>2</td>
<td>sometimes DSL (4)</td>
</tr>
</tbody>
</table>
<p>SQL Query:</p>
<blockquote><p>select count(p0f_link), p0f_link<br />
from p0fs<br />
group by p0f_link<br />
order by count(p0f_link) desc;</p></blockquote>
<p><strong>Summary</strong></p>
<p>Unfortunately the the information provided by p0f isn&#8217;t an exact science, and as devices and systems are constantly changing it&#8217;s only going to be as accurate as it&#8217;s latest signatures/fingerprints. But setup is fairly quick, and the information and insight provided fairly interesting. So why not give it a go?</p>
<p>&#8211;Andrew Waite</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/899/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/899/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/899/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/899/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/899/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/899/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/899/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/899/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/899/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/899/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/899/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/899/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/899/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/899/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=899&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2010/12/04/dionaea-with-p0f/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/78c9d658d90cad982bfc9af08a2ff8dd?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">Infosanity</media:title>
		</media:content>
	</item>
		<item>
		<title>Introducing InfoSanity&#8217;s Dionaea Muscipula&#8230;</title>
		<link>http://blog.infosanity.co.uk/2010/12/04/introducing-infosanitys-dionaea-muscipula/</link>
		<comments>http://blog.infosanity.co.uk/2010/12/04/introducing-infosanitys-dionaea-muscipula/#comments</comments>
		<pubDate>Sat, 04 Dec 2010 13:18:16 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Dionaea]]></category>

		<guid isPermaLink="false">http://blog.infosanity.co.uk/?p=892</guid>
		<description><![CDATA[InfoSanity's new Dionaea Muscipula....<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=892&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Venus_Flytrap"><img class="aligncenter size-full wp-image-893" title="Dionaea Muscipula" src="http://infosanity.files.wordpress.com/2010/12/2010-12-04-13-09-30.jpg?w=600&#038;h=450" alt="" width="600" height="450" /></a>&#8211;Andrew Waite</p>
<p>(p.s. sorry, couldn&#8217;t resist&#8230;)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/892/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/892/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/892/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/892/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/892/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/892/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/892/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/892/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/892/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/892/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/892/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/892/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/892/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/892/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=892&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2010/12/04/introducing-infosanitys-dionaea-muscipula/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/78c9d658d90cad982bfc9af08a2ff8dd?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">Infosanity</media:title>
		</media:content>

		<media:content url="http://infosanity.files.wordpress.com/2010/12/2010-12-04-13-09-30.jpg" medium="image">
			<media:title type="html">Dionaea Muscipula</media:title>
		</media:content>
	</item>
		<item>
		<title>Dionaea in the key of U(buntu)</title>
		<link>http://blog.infosanity.co.uk/2010/12/04/dionaea-in-the-key-of-ubuntu/</link>
		<comments>http://blog.infosanity.co.uk/2010/12/04/dionaea-in-the-key-of-ubuntu/#comments</comments>
		<pubDate>Sat, 04 Dec 2010 10:59:21 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Dionaea]]></category>
		<category><![CDATA[Honeypot]]></category>
		<category><![CDATA[Lab]]></category>

		<guid isPermaLink="false">http://blog.infosanity.co.uk/?p=886</guid>
		<description><![CDATA[arkus keeps adding great features and functionality to Dionaea, when I read the post introducing a new web interface carniwwwhore I couldn't help thinking I'd got lucky timing, start of a weeks vacation and no real plan for what to do with it. I've struggled previously with some of my Dionaea setups, largely because my system was running Debian, whilst Dionaea was built under Ubuntu; doesn't cause too many problems, just a bit of google-fu, headscratching and stupidity that could have been avoided. From this background I looked through the carniwwwhore pre-reqs with dread, plenty of version requirements that weren't upto date with my Debian setup; so it's time to bite the bullet and build a fresh system with Ubuntu.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=886&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Markus keeps adding great features and functionality to <a title="Dionaea - Carnivore.it" href="http://dionaea.carnivore.it">Dionaea</a>, when I read the post introducing a new web interface <a title="Carniwwwhore" href="http://carnivore.it/2010/11/27/carniwwwhore">carniwwwhore</a> I couldn&#8217;t help thinking I&#8217;d got lucky timing, start of a week&#8217;s vacation and no real plan for what to do with it. I&#8217;ve struggled previously with some of my Dionaea setups, largely because my system was running Debian, whilst Dionaea was built under Ubuntu; doesn&#8217;t cause too many problems, just a bit of google-fu, headscratching and stupidity that could have been avoided.</p>
<p>From this background I looked through the carniwwwhore pre-reqs with dread, plenty of version requirements that weren&#8217;t upto date with my Debian setup; so it&#8217;s time to bite the bullet and build a fresh system with Ubuntu. Unlike some of my previous setups, installation/compilation worked flawless, working on the same distro as the lead dev definitely makes life easier. If you&#8217;re looking for a fresh Dionaea installation, go with Ubuntu, you won&#8217;t regret it.</p>
<p>&#8211;Andrew Waite</p>
<p>(oh, and carniwwwhore? Vacation got the better of me so it&#8217;s added to the to-do list; watch this space&#8230;)</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/886/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=886&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2010/12/04/dionaea-in-the-key-of-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/78c9d658d90cad982bfc9af08a2ff8dd?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">Infosanity</media:title>
		</media:content>
	</item>
		<item>
		<title>Updating Dionaea</title>
		<link>http://blog.infosanity.co.uk/2010/10/16/updating-dionaea/</link>
		<comments>http://blog.infosanity.co.uk/2010/10/16/updating-dionaea/#comments</comments>
		<pubDate>Sat, 16 Oct 2010 14:09:55 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Dionaea]]></category>
		<category><![CDATA[Honeypot]]></category>

		<guid isPermaLink="false">http://blog.infosanity.co.uk/?p=853</guid>
		<description><![CDATA[I seem to keep making the same daft mistakes whilst updating Dionaea, so I'm hoping documenting the issues and corrections will work as a memory aid in the future.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=853&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure this is basic for most of you, but I seem to keep making the same <em>daft </em>mistakes whilst updating <a title="Dionaea" href="http://dionaea.carnivore.it">Dionaea</a>, so I&#8217;m hoping documenting the issues and corrections will work as a memory aid in the future.</p>
<p>Firstly, I can never remember Git&#8217;s equivalent to &#8216;svn update&#8217;, which is:</p>
<blockquote><p>git pull</p></blockquote>
<p>Next up is recompiling Dionaea from your updated source directory, this is no different to an initial install as per Markus&#8217; <a title="Dionaea - installation &amp; compilation" href="http://dionaea.carnivore.it/#compiling">excellent instructions</a>.</p>
<p>I keep forgetting to update my configuration file to include any directives needed for the new shiny new functionality you&#8217;re upgrading to get access to. I find <a title="diff - man page" href="http://unixhelp.ed.ac.uk/CGI/man-cgi?diff">diff</a> useful for identifying any new additions, for example</p>
<blockquote><p>/opt/dionaea/etc/dionaea# diff dionaea.conf dionaea.conf.dist</p></blockquote>
<p>Assuming there&#8217;s no major changes you should only see differences specific to your installation, for example your email address to receive analysis reports, or your VirusTotal api key. If there are any other differences you&#8217;ll need to add the new content.</p>
<p>From the experience I&#8217;ve had in the past week, if you encounter any unexpected problems after updating Dionaea, make sure your pre-requisites are also upto date. After updating Dionaea last week to gain access to the <a title="Carnivore.it - Virustotal api" href="http://carnivore.it/2010/10/07/virustotal_api">new integration with VirusTotal&#8217;s api</a> my Dionaea sensor started to die randomly. Markus was a great help with troubleshooting (thanks again) and my problems were eventually corrected after it was noted that my<a title="Libemu.carnivore.it" href="http://libemu.carnivore.it/"> libemu</a> installation was outdated; after a quick <em>&#8216;git pull&#8217;</em> and &#8216;<em>make&#8217;</em> (again following Markus&#8217; <a title="Install libemu" href="http://dionaea.carnivore.it/#install_libemu">instructions</a>).</p>
<p>As I said, this is probably basic for most of you out there, but as I keep making similar mistakes I plan to refer back to this list of daft issues before bugging anyone for support in future. You never know, it might allow someone else to retain an air of competence before proving otherwise <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&#8211; Andrew</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/853/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/853/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/853/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/853/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/853/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/853/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/853/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/853/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/853/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/853/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/853/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/853/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/853/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/853/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=853&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2010/10/16/updating-dionaea/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/78c9d658d90cad982bfc9af08a2ff8dd?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">Infosanity</media:title>
		</media:content>
	</item>
		<item>
		<title>gnuplotsql.py</title>
		<link>http://blog.infosanity.co.uk/2010/10/01/gnuplotsql-py/</link>
		<comments>http://blog.infosanity.co.uk/2010/10/01/gnuplotsql-py/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 16:46:06 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Dionaea]]></category>
		<category><![CDATA[Honeypot]]></category>
		<category><![CDATA[Tool-Kit]]></category>

		<guid isPermaLink="false">http://blog.infosanity.co.uk/?p=835</guid>
		<description><![CDATA[Honeypot data visualisation from Dionaea with gnuplotsql.py.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=835&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Development of new features for Dionaea has been fairly impressive of late, and I&#8217;ve been lax in keeping up to date. When Markus asked if I&#8217;d tested the graph utility that he created and wrote about <a title="Carnivore.it - gnuplotsql post" href="http://carnivore.it/2010/09/19/gnuplotsql">here</a>, it served as a kick to stop putting off some of the jobs I&#8217;ve got on the growing to-do list.</p>
<p>I won&#8217;t go into too much detail about running the script as Markus has already done a better job than I could. However I will point out that if you run your Dionaea installation on Debian stable, then your out of luck; the standard packages for sqlite are too old to take the script. Best advice is to copy your logsql.sqlite database to a Ubuntu machine and work from there (oh, and in case you didn&#8217;t guess from the script name, make sure you&#8217;ve actually installed <a title="Ubuntu package: gnuplot" href="http://packages.ubuntu.com/karmic/gnuplot">gnuplot</a>&#8230;).</p>
<p>A powerful machine is recommended, the only Ubuntu system I had to hand whilst testing was my AA1 netbook, which took 85 minutes to crunch through the script and my database.</p>
<p>I have immediately found the graphs produced useful as they&#8217;ve highlighted a couple of obvious spikes (see below) in activity that I would have (and did) miss if solely relying on log files and databases. This really shows the power and importance of visualising security and log information.</p>
<div id="attachment_837" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.infosanity.co.uk/stats/dionaea/index.html"><img class="size-full wp-image-837" title="dionaea-overview" src="http://infosanity.files.wordpress.com/2010/10/dionaea-overview.png?w=600&#038;h=600" alt="dionaea-overview" width="600" height="600" /></a><p class="wp-caption-text">dionaea-overview - from gnuplotsql.py</p></div>
<p>If you&#8217;re interested the output for the InfoSanity&#8217;s installation is now online <a title="Dionaea gnuplot.sql stats page" href="http://www.infosanity.co.uk/stats/dionaea/index.php">here</a>. I&#8217;m looking to expand the statistics from the InfoSanity honeypot environment that are publicly available, this makes a nice start. As always, big thanks to Markus and <a title="Carnivore.it" href="http://carnivore.it/">carnivore.it</a> team for the effort.</p>
<p>&#8211; Andrew Waite</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/835/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/835/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/835/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/835/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/835/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/835/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/835/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/835/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/835/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/835/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/835/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/835/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/835/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/835/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=835&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2010/10/01/gnuplotsql-py/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/78c9d658d90cad982bfc9af08a2ff8dd?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">Infosanity</media:title>
		</media:content>

		<media:content url="http://infosanity.files.wordpress.com/2010/10/dionaea-overview.png" medium="image">
			<media:title type="html">dionaea-overview</media:title>
		</media:content>
	</item>
		<item>
		<title>Mercury &#8211; Live Honeypot DVD</title>
		<link>http://blog.infosanity.co.uk/2010/09/22/mercury-live-honeypot-dvd/</link>
		<comments>http://blog.infosanity.co.uk/2010/09/22/mercury-live-honeypot-dvd/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 14:26:20 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Dionaea]]></category>
		<category><![CDATA[honeyd]]></category>
		<category><![CDATA[Honeypot]]></category>
		<category><![CDATA[InfoSec]]></category>
		<category><![CDATA[Kippo]]></category>
		<category><![CDATA[Lab]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[Nepenthes]]></category>
		<category><![CDATA[Reverse Engineering]]></category>
		<category><![CDATA[Tool-Kit]]></category>

		<guid isPermaLink="false">http://blog.infosanity.co.uk/?p=827</guid>
		<description><![CDATA[Mercury Live DVD was initially (I believe) announced in a post  to the Nepenthes Mailing list. It is a remastered Ubuntu distribution with pre-installed honeypot applications and malware analysis tools created by John Moore. <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=827&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Mercury Live DVD was initially (I believe) announced in a <a title="Mercury DVD - Nepenthes mailing list archive" href="http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTimFMdgYeO3Miu0R6BnLFobmOCmDmiaXkNeMTQmE%40mail.gmail.com&amp;forum_name=nepenthes-devel">post</a> to the Nepenthes Mailing list. It is a remastered Ubuntu distribution with pre-installed honeypot applications and malware analysis tools created by John Moore. From the ReadMe:</p>
<blockquote><p>This live DVD is a remastered version of Ubuntu 10.0 Beta LTS x86_32. It was designed due to my being disappointed with another reverse engineering malware live CD that was released recently. I have decided to call my creation MERCURY, which is an acronym for Malware Enumeration, Capture, and Reverse Engineering.</p>
<p>The Mercury live DVD contains tools used for digital forensics, data recovery, network monitoring, and spoofing. It should primarily be used as a honeypot or network monitoring platform as well as a laboratory and teaching aid. There are three honeypots installed &#8211; honeyd, nepenthes, and dionaea. Four, if you include netcat.</p></blockquote>
<p>The majority of the additional applications reside in /opt:</p>
<ul>
<li><a href="http://dionaea.carnivore.it/">Dionaea</a> (0.1.0) &#8211; Dionaea is a malware collection honeypot focusing primarily on SMB emulation, covered on InfoSanity numerous times <a title="InfoSanity Category - Dionaea Honeypot" href="http://blog.infosanity.co.uk/category/honeypot/dionaea/">before</a>.</li>
<li><a title="THC-FFP" href="http://freeworld.thc.org/thc-ffp/">FFP</a> &#8211; Fuzzy Fingerprinting is a util to aid SSH MitM attacks.</li>
<li><a title="JSunpack" href="http://jsunpack.jeek.org/dec/go">jsunpack-n</a> &#8211; Is a Javascript unpacker, perfect for analysis captured or potentially malicious URLs in more depth.</li>
<li><a title="Kippo" href="http://code.google.com/p/kippo/">Kippo</a> (svn rev.169) &#8211; Kippo is an low-medium interaction SSH honeypot, Also covered</li>
<li><a href="http://www.signedness.org/tools/mitm-ssh.tgz">mitm-ssh</a> &#8211; Unsurprisingly, a utility for aiding man in the middle attacks against SSH connections.</li>
<li><a title="Origami - PDF analysis framework" href="http://esec-lab.sogeti.com/dotclear/index.php?pages/Origami">Origami</a> &amp; <a title="pdf-tools - PDF analysis tools" href="http://blog.didierstevens.com/programs/pdf-tools/">pdftools</a> &#8211; Two frameworks for analysing malicious PDF files.</li>
<li><a title="Volatility Framework - Memory Analysis" href="https://www.volatilesystems.com/default/volatility">Volatility</a> &#8211; an excellent memory analysis toolkit</li>
<li><a title="ZeroWine" href="http://zerowine.sourceforge.net/">Zerowine-vm</a> &#8211; A malware behavior analysis platform. I&#8217;ve covered ZeroWine <a title="InfoSanity - ZeroWine" href="http://blog.infosanity.co.uk/2009/07/14/zerowine/">here before</a>, and whilst I find it useful for initial analysis I found it a <strong>pain</strong> to setup and get running. The fact this works out of the box on Mercury is enough reason alone to keep the .iso handy.</li>
</ul>
<p>Other tools are installed on the system as started, access from standard locations (/etc, /usr/bin, etc.). I won&#8217;t try to list them all, but some highlights include:</p>
<ul>
<li><a title="Nepenthes" href="https://nepenthes.carnivore.it">Nepenthes</a> &#8211; Dionaea&#8217;s predecessor</li>
<li><a title="Honeyd - Honeypot Daemon" href="http://www.honeyd.org/">Honeyd</a> &#8211; Honeypot system, perfect for emulating multiple different systems from one platform. Covered in more depth <a title="InfoSanity Search - honeyd" href="http://blog.infosanity.co.uk/?s=honeyd">here</a>.</li>
<li><a title="John the Ripper" href="http://www.openwall.com/john/">John</a> &#8211; John the Ripper, password cracker</li>
<li><a title="ircd-hybrid" href="http://www.ircd-hybrid.org/">ircd-hybrid</a> &#8211; irc server daemon, useful for analysis irc-based malware&#8217;s interaction with command and control systems.</li>
<li><a title="Snort IDS" href="http://www.snort.org/">Snort</a> &#8211; de-facto intrusion detection system.</li>
<li><a title="Wireshark" href="http://www.wireshark.org/">Wireshark</a> &#8211; Packet capture and network analysis tools.</li>
</ul>
<p>I could go on, but I&#8217;m sure you get the idea.</p>
<p>Setting up a honeypot, and analysing the results, has never been easier. And I&#8217;m sure the toolkit&#8217;s functionality will also be useful in other scenarios; incident response, general network administration or as a safe learning platform. So what are you waiting for?</p>
<p>&#8211;Andrew Waite</p>
<p>N.B. there have been several mirror&#8217;s and downloads established, the most reliable download source I&#8217;ve used is Markus&#8217; mirror at <a title="Carnivore.it mirror - Mercury DVD" href="ftp://ftp.carnivore.it:/projects/dionaea/mercury-dvd">carnivore.it</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/827/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/827/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/827/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/827/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/827/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/827/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/827/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/827/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/827/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/827/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/827/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/827/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/827/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/827/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=827&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2010/09/22/mercury-live-honeypot-dvd/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/78c9d658d90cad982bfc9af08a2ff8dd?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">Infosanity</media:title>
		</media:content>
	</item>
		<item>
		<title>mimic-nepstats_v1-1.py</title>
		<link>http://blog.infosanity.co.uk/2010/06/21/mimic-nepstats-v1-1-py/</link>
		<comments>http://blog.infosanity.co.uk/2010/06/21/mimic-nepstats-v1-1-py/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 18:08:14 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Dionaea]]></category>
		<category><![CDATA[Honeypot]]></category>
		<category><![CDATA[Lab]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Tool-Kit]]></category>

		<guid isPermaLink="false">http://blog.infosanity.co.uk/?p=734</guid>
		<description><![CDATA[Around a month ago Miguel Jacq got in contact to let me know about a couple of errors he encountered when running InfoSanity's mimic-nepstats.py with a small data set. Basically if your log file did not include any submissions, or was for a period shorter than 24hours the script would crash out, not the biggest problem as most will be working with larger data sets but annoying non the less.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=734&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been a bit lax in writing this post; around a month ago <a title="www.mig5.net" href="http://www.mig5.net/content/about">Miguel Jacq</a> got in contact to let me know about a couple of errors he encountered when running InfoSanity&#8217;s <a title="[InfoSanity] - Mimic-nepstats" href="http://blog.infosanity.co.uk/2009/11/10/mimic-nepstats-py/">mimic-nepstats.py</a> with a small data set. Basically if your log file did not include any submissions, or was for a period shorter than 24hours the script would crash out, not the biggest problem as most will be working with larger data sets but annoying non the less.</p>
<p>Not only did Miguel let me know about the issues, he was also gracious enough to provide a fix, the updated script can be found <a title="[InfoSanity] - mimic-nepstats.py script" href="http://www.infosanity.co.uk/resources/scripts/dionaea/mimic-nepstats.py">here</a>. An example of the script in action is below:</p>
<blockquote><p>cat /opt/dionaea/var/log/dionaea.log| python mimic-nepstats_v1-1.py</p>
<p>Statistics engine written by Andrew Waite &#8211; www.infosanity.co.uk</p>
<p>Number of submissions: 84<br />
Number of unique samples: 39<br />
Number of unique source IPs: 65</p>
<p>First sample seen: 2010-06-08 08:25:39.569003<br />
Last sample seen: 2010-06-21 15:24:37.105594<br />
System Uptime: 13 days, 6:58:57.536591<br />
Average daily submissions: 6</p>
<p>Most recent submissions:<br />
2010-06-21 15:24:37.105594, 113.37.56.28, emulate://, 56b8047f0f50238b62fa386ef109174e<br />
2010-06-21 15:18:08.347568, 195.205.5.71, tftp://195.205.5.71/ssms.exe, fd28c5e1c38caa35bf5e1987e6167f4c<br />
2010-06-21 15:17:08.391267, 195.117.74.62, tftp://195.117.74.62/ssms.exe, bb39f29fad85db12d9cf7195da0e1bfe<br />
2010-06-21 06:29:03.565988, 195.160.222.101, tftp://195.160.222.101/ssms.exe, fd28c5e1c38caa35bf5e1987e6167f4c<br />
2010-06-20 23:34:15.967299, 195.242.145.40, http://208.53.183.164/trying.exe, 094e2eae3644691711771699f4947536</p></blockquote>
<p>&#8211; Andrew Waite</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/734/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/734/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/734/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/734/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/734/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/734/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/734/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/734/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/734/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/734/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/734/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/734/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/734/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/734/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=734&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2010/06/21/mimic-nepstats-v1-1-py/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/78c9d658d90cad982bfc9af08a2ff8dd?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">Infosanity</media:title>
		</media:content>
	</item>
		<item>
		<title>Building Dionaea</title>
		<link>http://blog.infosanity.co.uk/2010/01/26/building-dionaea/</link>
		<comments>http://blog.infosanity.co.uk/2010/01/26/building-dionaea/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 19:26:55 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Dionaea]]></category>
		<category><![CDATA[Honeypot]]></category>

		<guid isPermaLink="false">http://infosanity.wordpress.com/?p=456</guid>
		<description><![CDATA[As part of a new and improved environment I've just finished building up a new Dionaea system. Despite the ease at which I found the install of my original system I received a lot a feedback that others had a fair amount of difficulty during system build. So this time around I decided to pay closer attention to by progress to try and assist others going through the same process.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=456&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As part of a new and improved environment I&#8217;ve just finished building up a new Dionaea system. Despite the ease at which I found the install of my <a title="InfoSanity: Starting with Dionaea" href="http://infosanity.wordpress.com/2009/11/09/starting-with-dionaea/">original system</a> I received a lot a feedback that others had a fair amount of difficulty during system build. So this time around I decided to pay closer attention to by progress to try and assist others going through the same process.</p>
<p>Unfortunately I&#8217;m not sure I&#8217;m going to be able to offer as many pearls of wisdom as I originally hoped as my install went relatively smoothly. Only real problem I hit was that after following Markus&#8217; (good documentation) my build didn&#8217;t correctly link to libemu. Bottom line, keep an eye on the output of <em>./configure</em> when building Dionaea. In my case the parameters passed to the configure script didn&#8217;t match my system so needed to be modified accordingly.</p>
<p>On the off chance that it&#8217;s of use to others (or I forget my past failures and need a memory aid) my modified ./configure command is below:</p>
<pre>./configure \
 --with-lcfg-include=/opt/dionaea/include/ \
 --with-lcfg-lib=/opt/dionaea/lib/ \
 --with-python=/opt/dionaea/bin/python3.1 \
 --with-cython-dir=/usr/bin \
 --with-udns-include=/opt/dionaea/include/ \
 --with-udns-lib=/opt/dionaea/lib/ \
 --with-emu-include=/opt/dionaea/include \
 --with-emu-lib=/opt/dionaea/lib/ \
 --with-gc-include=/usr/include/gc \
 --with-ev-include=/opt/dionaea/include \
 --with-ev-lib=/opt/dionaea/lib \
 --with-nl-include=/opt/dionaea/include \
 --with-nl-lib=/opt/dionaea/lib/ \
 --with-curl-config=/opt/dionaea/bin/ \
 --with-pcap-include=/opt/dionaea/include \
 --with-pcap-lib=/opt/dionaea/lib/ \
 --with-glib=/opt/dionaea
</pre>
<p>&#8211; Andrew Waite</p>
<p>&lt;update 20100606&gt; New Dionaea build encountered a problem with libemu, ./configure above has been edited to reflected additional changes I required to compile with libemu support. &lt;/update&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/456/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=456&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2010/01/26/building-dionaea/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/78c9d658d90cad982bfc9af08a2ff8dd?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">Infosanity</media:title>
		</media:content>
	</item>
		<item>
		<title>Analysis: Honeypot Datasets</title>
		<link>http://blog.infosanity.co.uk/2009/12/10/analysis-honeypot-datasets/</link>
		<comments>http://blog.infosanity.co.uk/2009/12/10/analysis-honeypot-datasets/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 20:12:20 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Dionaea]]></category>
		<category><![CDATA[Honeypot]]></category>
		<category><![CDATA[Malware]]></category>

		<guid isPermaLink="false">http://infosanity.wordpress.com/?p=393</guid>
		<description><![CDATA[Earlier this week Markus released two anonymised data sets from live Dionaea installations. The full write-up and data sets can be found on the newly migrated carnivore.it news feed here. Perhaps unsurprisingly I couldn't help but run the data through my statistics scripts to get a quick idea of  what was seen by the sensors. <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=393&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Earlier this week Markus released two anonymised data sets from live Dionaea installations. The full write-up and data sets can be found on the newly migrated carnivore.it news feed <a title="Post_it_yourself: anonymised data" href="http://carnivore.it/2009/12/08/post_it_yourself">here</a>. Perhaps unsurprisingly I couldn&#8217;t help but run the data through my <a title="InfoSanity: mimic-nepstats.py" href="http://infosanity.wordpress.com/2009/11/10/mimic-nepstats-py/">statistics scripts</a> to get a quick idea of  what was seen by the sensors.</p>
<p>This caused some immediate problems, before the data was released Markus had contacted me to point out/complain that the performance from my script is ideal. Performance wasn&#8217;t an issue I had encountered, but the database from the sensor I run is ~1MB, the smaller of the released data sets is ~300MB, with the larger being 4.1GB. I immediately tried to rectify the problem and am proud to report,&#8230;</p>
<p>I failed miserably. I had tried to move some of the counting and loops from the python code and migrate to more complex SQL queries, working on the theory that working with large datasets should be more efficient within databases as they are designed for working with sets of data. Theory was proved false, actually increasing run-time by about 20%, so I won&#8217;t be releasing the changes. Good job I&#8217;ve never claimed to be a developer. All this being said, the script still crunches through the raw data in 30seconds and 3minutes respectively.</p>
<p>Without further ado, the Berlin data-set:</p>
<blockquote><p>Statistics engine written by Andrew Waite &#8211; www.infosanity.co.uk</p>
<p>Number of submissions: 2726<br />
Number of unique samples: 133<br />
Number of unique source IPs: 639</p>
<p>First sample seen: 2009-11-05 12:02:48.104760<br />
Last sample seen: 2009-12-07 11:13:55.930130<br />
SystemrRunning: 31 days, 23:11:07.825370<br />
Average daily submissions: 87.935483871</p>
<p>Most recent submissions:<br />
2009-12-07 11:13:55.930130, 10.48.60.253, http://zonetech.info/61.exe, ae8705a7b4bf8c13e5d8214d374e6c34<br />
2009-12-07 11:12:59.389940, 10.13.103.23, ftp://1:1@10.101.229.251:61751/ssms.exe, 14a09a48ad23fe0ea5a180bee8cb750a<br />
2009-12-07 11:10:27.296370, 10.13.103.23, tftp://10.13.103.23/ssms.exe, df51e3310ef609e908a6b487a28ac068<br />
2009-12-07 10:55:24.607140, 10.183.36.128, tftp://10.183.36.128/ssms.exe, df51e3310ef609e908a6b487a28ac068<br />
2009-12-07 10:43:48.872170, 10.183.36.128, ftp://1:1@10.20.216.112:53971/ssms.exe, 14a09a48ad23fe0ea5a180bee8cb750a</p></blockquote>
<p>And Paris:</p>
<blockquote><p>Statistics engine written by Andrew Waite &#8211; www.infosanity.co.uk</p>
<p>Number of submissions: 749518<br />
Number of unique samples: 2064<br />
Number of unique source IPs: 30808</p>
<p>First sample seen: 2009-11-30 03:10:24.591650<br />
Last sample seen: 2009-12-07 08:46:23.657530<br />
SystemrRunning: 7 days, 5:35:59.065880<br />
Average daily submissions: 107074.0</p>
<p>Most recent submissions:<br />
2009-12-07 08:46:23.657530, 10.46.210.146, http://10.9.0.30:3682/udqk, d45895e3980c96b077cb4ed8dc163db8<br />
2009-12-07 08:46:20.985190, 10.98.174.44, http://10.200.78.235:2708/lzhffhai, 94e689d7d6bc7c769d09a59066727497<br />
2009-12-07 08:46:21.000540, 10.204.219.219, http://10.38.56.49:6968/tyhxqm, 908f7f11efb709acac525c03839dc9e5<br />
2009-12-07 08:46:18.398500, 10.174.62.175, http://10.108.210.203:3058/pghux, ed12bcac6439a640056b4795d22608da<br />
2009-12-07 08:46:15.753080, 10.39.96.46, http://10.132.244.66:3255/dhti, 94e689d7d6bc7c769d09a59066727497</p></blockquote>
<p>Still need to dig further into the data, they&#8217;ll be another post in the making if I uncover anything interesting&#8230;</p>
<p>&#8211; Andrew Waite</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/393/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=393&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2009/12/10/analysis-honeypot-datasets/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/78c9d658d90cad982bfc9af08a2ff8dd?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">Infosanity</media:title>
		</media:content>
	</item>
		<item>
		<title>New dionaea statistics script</title>
		<link>http://blog.infosanity.co.uk/2009/12/01/new-dionaea-statistics-script/</link>
		<comments>http://blog.infosanity.co.uk/2009/12/01/new-dionaea-statistics-script/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 18:22:48 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Dionaea]]></category>
		<category><![CDATA[Honeypot]]></category>
		<category><![CDATA[InfoSec]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://infosanity.wordpress.com/?p=384</guid>
		<description><![CDATA[Following on from my work with gathering statistics from the Honeypot systems that I run I have released a limited alpha of a new script/tool that I am working on. The tool provides access to common result sets from the sqlite database, without the requirement for remembering the database architecture  and entering lengthy SQL statements by hand.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=384&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Following on from my work with gathering statistics from the Honeypot systems that I run I have released a limited alpha of a new script/tool that I am working on. The tool provides access to common result sets from the sqlite database, without the requirement for remembering the database architecture  and entering lengthy SQL statements by hand.</p>
<p>Disclaimer first: the tool doesn&#8217;t do anything outrageously new, and most of the SQL queries have been borrowed from <a title="Carnivore.it Logging post" href="http://carnivore.it/2009/11/06/dionaea_sql_logging">Markus&#8217; post</a> on SQL logging with Dionaea when the feature was first introduced. However I have found the script makes my analysis of the honeypot logs simpler and quicker, and I&#8217;ve a positive reaction from a limited few that have had a copy of the script before this post. Hopefully it will be of use others.</p>
<p>Usage is relatively simple, shown below:</p>
<blockquote><p>Dionaea database query collection<br />
Author: Andrew Waite &#8211; www.InfoSanity.co.uk</p>
<p>Inspiration from carnivore.it article:</p>
<p>http://carnivore.it/2009/11/06/dionaea_sql_logging</p>
<p>Usage:<br />
/path/to/python dionaea-sqlquery.py &#8211;query #<br />
Where # is:<br />
1:      Port Attack Frequency<br />
2:      Attacks over a day<br />
3:      Popular Malware Downloads<br />
4:      Busy Attackers<br />
5:      Popular Download Locations<br />
6:      Connections in last 24 hours</p></blockquote>
<p>The script can be found <a title="dionaea-sqlquery.py Version 0.2" href="http://www.infosanity.co.uk/resources/scripts/dionaea/dionaea-sqlquery-0_2.py">here</a>. There is still a good level of work to be undertaken to tidy up the output, potentially allowing for output in different formats, and I also want to add additional and more complex queries as time progresses. If you have any success,  failure, comments or suggests please let me know.</p>
<p>&#8211; Andrew Waite</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/384/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=384&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2009/12/01/new-dionaea-statistics-script/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/78c9d658d90cad982bfc9af08a2ff8dd?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">Infosanity</media:title>
		</media:content>
	</item>
	</channel>
</rss>
