<?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; Honeypot</title>
	<atom:link href="http://blog.infosanity.co.uk/category/honeypot/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.infosanity.co.uk</link>
	<description>Offensive and Defensive IT Security</description>
	<lastBuildDate>Wed, 04 Aug 2010 12:12:09 +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://s2.wp.com/i/buttonw-com.png</url>
		<title>Infosanity&#039;s Blog &#187; Honeypot</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>Disaster Protocol 13 Interview</title>
		<link>http://blog.infosanity.co.uk/2010/08/04/disaster-protocol-13-interview/</link>
		<comments>http://blog.infosanity.co.uk/2010/08/04/disaster-protocol-13-interview/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 11:42:18 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Honeypot]]></category>
		<category><![CDATA[Presentation]]></category>

		<guid isPermaLink="false">http://blog.infosanity.co.uk/?p=814</guid>
		<description><![CDATA[This week I was interviewed for the Disaster Protocol Security Podcast. My theory is that no one else was superstitious and didn't want to risk being on number 13, so they got stuck with me..... <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=814&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This week I was interviewed for the <a title="Disaster Protocol Security Podcast" href="http://www.disasterprotocol.com/">Disaster Protocol Security Podcast</a>. My theory is that everyone else was superstitious and didn&#8217;t want to risk being on number 13, so they got stuck with me&#8230;..</p>
<p>Basically, the interview is just me talking about honeypots and some of the results and findings that have been discussed discussed both on this blog and via Twitter. Hopefully you&#8217;ll find it an interesting listen, and hopefully you&#8217;ll be able to understand me. Seems a <a title="@commonism tweet" href="http://twitter.com/commonism/statuses/20291321359">few</a> <a title="@dh3ws0n tweet" href="http://twitter.com/dh3ws0n/statuses/20295322840">people</a> have struggled so I&#8217;ll need to work on my &#8216;BBC English&#8217; next time around&#8230;.</p>
<p>Always interested in hearing others thoughts or comments on honeypots or infosec in general; so if you liked, disliked or disagreed with any of the content let me know.</p>
<p>The podcast episode can be downloaded <a title="Disaster Protocol Ep13" href="http://disasterprotocol.com/DP13-HoneyPot.mp3">here</a>.</p>
<p>&#8211;Andrew Waite</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/814/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/814/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/814/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/814/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/814/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/814/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/814/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/814/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/814/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/814/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/814/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/814/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/814/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/814/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=814&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2010/08/04/disaster-protocol-13-interview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://disasterprotocol.com/DP13-HoneyPot.mp3" length="101916151" type="audio/mpeg" />
<enclosure url="http://disasterprotocol.com/DP13-HoneyPot.mp3" length="101916151" type="audio/mpeg" />
	
		<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>Kippo SVN build</title>
		<link>http://blog.infosanity.co.uk/2010/07/25/kippo-svn-build/</link>
		<comments>http://blog.infosanity.co.uk/2010/07/25/kippo-svn-build/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 12:48:05 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Honeypot]]></category>
		<category><![CDATA[Kippo]]></category>
		<category><![CDATA[Tool-Kit]]></category>

		<guid isPermaLink="false">http://blog.infosanity.co.uk/?p=802</guid>
		<description><![CDATA[This morning I cause myself a problem. Annoyingly it was foreseeable and avoidable, this is my excuse (not great, but I'll stick to it). But as every problem is merely an opportunity in disguise whist I'm re-building systems I might as well document the process. The original InfoSanity guide for installing Kippo was based off of the latest stable version, but I rapidly migrated to the development SVN on learning of the MySQL logging capabilities, so this guide covers that.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=802&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This morning I cause myself a <a title="@infosanity: Kojoney and Kippo Clash" href="http://twitter.com/Infosanity/statuses/19485767220">problem</a>. Annoyingly it was foreseeable and avoidable, <a title="@infosanity - excuse" href="http://twitter.com/Infosanity/statuses/19488422589">this</a> is my excuse (not great, but I&#8217;ll stick to it). But as every problem is merely an opportunity in disguise whist I&#8217;m re-building systems I might as well document the process. The original InfoSanity <a title="[InfoSanity] - Starting with Kippo" href="http://blog.infosanity.co.uk/2010/07/06/starting-with-kippo/">guide for installing Kippo</a> was based off of the latest stable version, but I rapidly migrated to the development SVN on learning of the MySQL logging capabilities, so this guide covers that.</p>
<p><strong>Packages</strong></p>
<p>As I&#8217;m using a Debian system a lot of the system pre-requisites are packaged, this aren&#8217;t all needed immediately but we might as well grab them all at once.</p>
<blockquote><p>apt-get install subversion #for svn<br />
apt-get install python-twisted python-mysqldb # Python and required modules<br />
apt-get install mysql-server #</p></blockquote>
<p><strong>Basic Kippo setup</strong></p>
<p>Grab Kippo direct from svn, at time of writing I got version 160. (<a title="Kippo SVN install" href="http://code.google.com/p/kippo/source/checkout">latest instructions</a>):</p>
<blockquote><p>svn checkout http://kippo.googlecode.com/svn/trunk/ /opt/kippo-svn</p></blockquote>
<p>Now we can start the honeypot system:</p>
<blockquote><p>./start.sh</p></blockquote>
<p>That&#8217;s it, all that is required to get the system running. To confirm you can ssh locally with <em>ssh -p2222 root@127.0.0.1</em>, unless you&#8217;ve jumped ahead and edited the config, password will be 123456.</p>
<p><strong>MySQL</strong></p>
<p>Log into MySQL via commanline, assuming you&#8217;ve not modified the kippo.cfg database directives build the database:</p>
<blockquote><p>
create database kippo;<br />
grant all on kippo.* to &#8216;kippo&#8217;@'localhost&#8217; identified by &#8216;secret&#8217;;</p></blockquote>
<p>Next edit the kippo.cfg accordingly you database/user/password and uncomment the [database] configuration directives. REMEBER to uncomment <em>;[database] </em>line not just the parameters, that has now caught me out twice.</p>
<p>Finally, build the database structure with the script that can be found in <em>&lt;kippo&gt;/doc/sql/</em>:</p>
<blockquote><p>doc/sql/# mysql -ukippo -psecret kippo &lt; mysql.sql</p></blockquote>
<p>Restart your Kippo process and you should be good; re-test access to the shell and view the database tables to confirm that logs are being written to the database.</p>
<p>Happy Honeypotting</p>
<p>&#8211;Andrew Waite</p>
<ul></ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/802/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/802/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/802/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/802/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/802/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/802/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/802/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/802/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/802/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/802/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/802/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/802/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/802/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/802/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=802&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2010/07/25/kippo-svn-build/feed/</wfw:commentRss>
		<slash:comments>1</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>Example of post exploit utilities (SSH scanners)</title>
		<link>http://blog.infosanity.co.uk/2010/07/21/example-of-post-exploit-utilities/</link>
		<comments>http://blog.infosanity.co.uk/2010/07/21/example-of-post-exploit-utilities/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 18:03:08 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Honeypot]]></category>
		<category><![CDATA[InfoSec]]></category>
		<category><![CDATA[Kippo]]></category>
		<category><![CDATA[Malware]]></category>

		<guid isPermaLink="false">http://blog.infosanity.co.uk/?p=775</guid>
		<description><![CDATA[So far my Kippo honeypot installation has recieved a number of successful log ins from maliciuos users, some of which have been helpful enough to provide some tools for further analysis. A lot of the archives which have been downloaded show that the kits have been in use for a while, with some archive timestamps going back as far as 2004 (of course this could simply be an incorrect clock on the machine that created the archive). Picking on the most recent download (2010-07-18) I've taken a look at the archive containing gosh.tgz.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=775&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So far my Kippo honeypot installation has recieved a number of successful log ins from maliciuos users, some of which have been helpful enough to provide some tools for further analysis. A lot of the archives which have been downloaded show that the kits have been in use for a while, with some archive timestamps going back as far as 2004 (of course this could simply be an incorrect clock on the machine that created the archive). Picking on the most recent download (2010-07-18) I&#8217;ve taken a look at the archive containing gosh.tgz.</p>
<p>The archive was downloaded from linux&lt;dot&gt;hostse&lt;dot&gt;com&lt;slash&gt;gosh&lt;tgz&gt;, system is down at time of writing but take care if attempting to investigate yourself. Before downloading the user checked around the system with commands: <em>w</em>, <em>uname -a</em> and <em>cat /proc/cpuinfo</em>, and archive was downloaded and extracted in /dev/shm/.</p>
<p>Once extracted, the archive contains a number of files:</p>
<table>
<tbody>
<tr>
<td>1:</td>
<td>ISO-8859 English text, with CRLF line terminators</td>
</tr>
<tr>
<td>2:</td>
<td>ASCII text</td>
</tr>
<tr>
<td>3:</td>
<td>ASCII C++ program text, with CRLF line terminators</td>
</tr>
<tr>
<td>4:</td>
<td>ASCII text</td>
</tr>
<tr>
<td>5:</td>
<td>ASCII text</td>
</tr>
<tr>
<td>a:</td>
<td>ISO-8859 text, with CRLF line terminators</td>
</tr>
<tr>
<td>common:</td>
<td>ASCII C++ program text</td>
</tr>
<tr>
<td>gen-pass.sh:</td>
<td>Bourne-Again shell script text executable</td>
</tr>
<tr>
<td>go.sh:</td>
<td>ASCII text</td>
</tr>
<tr>
<td>mfu.txt:</td>
<td>ASCII text</td>
</tr>
<tr>
<td>pass_file:</td>
<td>ASCII text</td>
</tr>
<tr>
<td>pscan2:</td>
<td>ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped</td>
</tr>
<tr>
<td>scam:</td>
<td>Bourne-Again shell script text executable</td>
</tr>
<tr>
<td>secure:</td>
<td>Bourne-Again shell script text executable</td>
</tr>
<tr>
<td>ss:</td>
<td>ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.0.0,stripped</td>
</tr>
<tr>
<td>ssh-scan:</td>
<td>ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.0.0, stripped</td>
</tr>
<tr>
<td>vuln.txt:</td>
<td>empty</td>
</tr>
</tbody>
</table>
<ul>
<li><strong>Interesting files:</strong></li>
<li>Files 1 to 5, common and pass_file are password lists, totalling 235,523 potential passwords.</li>
<li>mfu.txt is a list of IP addresses, mostly in the 38.99.0.0/16 address space.</li>
<li>pscan2 is a fairly common and generic port scanner.</li>
<li>scam is a shell script that appears to be the core brains of the toolkit. It essentially looks through scanning a different ranges of IP addresses while periodically emailing the contents of vuln.txt back to it&#8217;s master (mafia89tm@yahoo.co.uk).</li>
<li>ss: appears to be another scanner used for looking for potential targets.</li>
<li>ssh-scan: appears to be a Romanian tool from the message provided if run without arguments, according to Google Translate (<a title="ssh-scan:Google translation" href="http://translate.google.co.uk/#auto|en|cate%20pizde%20sa%20incerc...">possibly NSFW</a>), and as you would guess from the file name is a scanner for SSH services.</li>
<li>vuln.txt is blank in the archive, and will be the output of vulnerable systems located by the scanners.</li>
</ul>
<p>All told this appears to be a kit for performing further scans for unsecured SSH sessions, and it is likely that a similar kit hosted on a different compromised machine was responsible for identifying my installation in the first place. Kits like this also quickly show the problem with tracking down the malicious user behind an compromise or attempt, it is rare for attacks to be launched from systems that can easily be traced back to the malicious user.</p>
<p>A quick Google search confirms that this kit (and user) has been seen in the wild attacking other systems, <a title="ShellPerson: SSH bruteforce" href="http://www.shellperson.net/hacked-ssh-bruteforce/">this posting</a> on the Shell Person blog writes up the aftermath after a production system was compromised by the same kit.</p>
<p>&#8211;Andrew Waite</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/775/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=775&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2010/07/21/example-of-post-exploit-utilities/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>
	</item>
		<item>
		<title>Initial Kippo honeypot stats</title>
		<link>http://blog.infosanity.co.uk/2010/07/21/initial-kippo-honeypot-stats/</link>
		<comments>http://blog.infosanity.co.uk/2010/07/21/initial-kippo-honeypot-stats/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 16:42:18 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Honeypot]]></category>
		<category><![CDATA[InfoSec]]></category>
		<category><![CDATA[Kippo]]></category>

		<guid isPermaLink="false">http://blog.infosanity.co.uk/?p=765</guid>
		<description><![CDATA[I've been running Kippo for nearly two weeks now (decided to live dangerously and go with SVN version) and have seen some interesting results. Common passwords, common usernames and downloaded attack tools.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=765&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been running Kippo for nearly two weeks now (decided to live dangerously and go with SVN version) and have seen some interesting results.</p>
<p><strong>Top 10 most common passwords attempted</strong>:</p>
<ol>
<li>a (651)</li>
<li>123456 (495)</li>
<li>password (331)</li>
<li>12345 (302)</li>
<li>123 (224)</li>
<li>1234 (169)</li>
<li>1 (139)</li>
<li>12 (123)</li>
<li>root (105)</li>
<li>test (46)</li>
</ol>
<blockquote><p>Select count(password), password<br />
from auth<br />
where password &lt;&gt; &#8221;<br />
group by password<br />
order by count(password) desc<br />
limit 10;</p></blockquote>
<p><strong>Top 10 most common username attempted:</strong></p>
<ol>
<li>root (8510)</li>
<li>admin (144)</li>
<li>test (127)</li>
<li>oracle (96)</li>
<li>nagios (49)</li>
<li>mysql (47)</li>
<li>guest (43)</li>
<li>info (42)</li>
<li>user (41)</li>
<li>postgres (40)</li>
</ol>
<blockquote><p>select count(username), username<br />
from auth<br />
where username &lt;&gt;&#8221;<br />
group by username<br />
order by count(username)<br />
desc limit 10;</p></blockquote>
<p><strong>Success ratio:</strong></p>
<p>17065 attempts, 48 successful connections. (n.b. results skewed as account has purposefully poor choice of password)</p>
<blockquote><p>select count(success),success<br />
from auth<br />
group by success<br />
order by success;</p></blockquote>
<p><strong>Number of connections per unique IP:</strong></p>
<ol>
<li>202.99.89.69 (5212)</li>
<li>200.61.189.164 (1752)</li>
<li>78.37.83.203 (1043)</li>
<li>218.108.235.86 (848)</li>
<li>195.14.50.8 (628)</li>
<li>218.80.200.138 (271)</li>
<li>58.222.200.226 (238)</li>
<li>58.18.172.206 (158)</li>
<li>119.188.7.174 (128)</li>
<li>119.42.148.10 (113)</li>
</ol>
<blockquote><p>select count(ip), ip<br />
from sessions<br />
group by ip<br />
order by count(ip) desc;</p></blockquote>
<p>Number of attempts were relatively low IP address, in total 194 different source locations have attempted to access the server, with each typically only making 4 attemtps.</p>
<p><strong>Packages:</strong></p>
<p>Once exploited a number of attackers have proceeded to download various rootkits and utilities (thanks for these). Nothing too interesting yet, standard rootkit functionality, IRC clients and SSH scanners for further compromise. I still need to analyse some of these in more detail, so watch your RSS feeds for more to come.</p>
<p>One malicious user also attempted to create new user accounts on the server, if you have an account called &#8216;iony&#8217; with a password of &#8216;ionyszaa&#8217; then you may want to remove it&#8230;</p>
<p>If you&#8217;ve got a spare machine and public IP address, give Kippo a shot, <a title="[InfoSanity] - Starting with Kippo" href="http://blog.infosanity.co.uk/2010/07/06/starting-with-kippo/">setup is realitively easy</a>; I&#8217;ve seen some interesting malicious user sessions and it turns out that some of those &#8217;31337 haxxors&#8217; that everyone fears <em>really</em> can&#8217;t type.</p>
<p>&#8211;Andrew Waite</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/765/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/765/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/765/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/765/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/765/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/765/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/765/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/765/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/765/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/765/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/765/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/765/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/765/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/765/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=765&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2010/07/21/initial-kippo-honeypot-stats/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>
	</item>
		<item>
		<title>Starting with Kippo (SSH Honeypot)</title>
		<link>http://blog.infosanity.co.uk/2010/07/06/starting-with-kippo/</link>
		<comments>http://blog.infosanity.co.uk/2010/07/06/starting-with-kippo/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 20:48:15 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Honeypot]]></category>
		<category><![CDATA[InfoSec]]></category>
		<category><![CDATA[Kippo]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.infosanity.co.uk/?p=754</guid>
		<description><![CDATA[As I started life as a Linux server admin I&#8217;m only too aware that many attackers see remote access functionality as a way into a system, and as SSH is the de facto standard for Linux access it is a prime target for attack. The stats collected by DShield give an indication to the extent [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=754&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As I started life as a Linux server admin I&#8217;m only too aware that many attackers see remote access functionality as a way into a system, and as SSH is the de facto standard for Linux access it is a prime target for attack. The stats collected by DShield give an indication to the <a title="DShield SSH [tcp22]" href="http://www.dshield.org/port.html?port=22">extent of the problem</a>.</p>
<p>As a result I&#8217;ve had the <a title="Kippo Home Page" href="http://code.google.com/p/kippo/">Kippo</a> honeypot is something that I&#8217;ve had on my radar for a while. For a number of reasons I hadn&#8217;t found time to implement the system in a live environment, but a recent post on the <a title="Diatel: Kippo" href="http://diatel.wordpress.com/2010/06/24/kippo-ssh-honeypot/">Diatel blog </a>suggested that installation may be quick and pain free.</p>
<p>Kippo is described by it&#8217;s author (Desaster) as:</p>
<blockquote><p>Kippo is a medium interaction SSH honeypot designed to log brute force attacks and, most importantly, the entire shell interaction performed by the attacker.</p>
<p>Kippo is inspired, but not based on <a rel="nofollow" href="http://kojoney.sourceforge.net/">Kojoney</a>.</p></blockquote>
<p>Installation for me was painless, running a Debian system I downloaded the latest archive to disk, unpacked and installed the pyton-twisted package (I hadn&#8217;t read Mig5&#8242;s comment until after install so now need to go back and live on the bleeding edge&#8230;). I did hit a couple of problems when trying to start up the system, which is as simple as invoking <em>./start.sh</em></p>
<ol>
<li>First, I was logged in as root when I first tried to start the system (not clever I know, was testing&#8230;). Kippo encounters an <a title="Kippo Error: Running as root" href="http://code.google.com/p/kippo/issues/detail?id=4">error </a>when started by a root user. As Desaster rightly states, it&#8217;s not wise to run Kippo as a root user anyway and running as a regular user resolves the issue.</li>
<li>Second, when running as a normal user I got a &#8216;meaningful&#8217; error of <em>&#8220;Failed to load application: &#8216;NoneType&#8217; object has no attribute &#8216;get&#8217;.&#8221;</em> A quick piece of Google-fu lead me to <a title="Kippo error: no kippo.cfg" href="http://code.google.com/p/kippo/issues/detail?id=2">this</a> ticket, which explained Kippo was missing the file kippo.cfg, as explained copying kippo.cfg.dist to kippo.cfg correct the issue and produced a fully functional system.</li>
</ol>
<p>There are a couple of key files that can be edited to change the feel of the system that is provided to malicious users:</p>
<ul>
<li>kippo.cfg contains runtime information including log location, fake hostname etc.</li>
<li>kippo.tac contains an array &#8216;users&#8217;, which lists the username/password combination which the emulated SSH login will accept as &#8216;valid&#8217;.</li>
<li>The honeyfs/ directory goes so far as to allow you to create a &#8216;real&#8217; filesystem for the malicious user to interact with, potentially copying a live server&#8217;s filesystem to the directory to help camouflage the emulated system (after sensitive data is removed/sanitised obviously&#8230;.). I haven&#8217;t tried this myself yet but is definitely on my to-do list.</li>
</ul>
<p>From initial testing I&#8217;ve got high hopes for Kippo becoming a mainstay in my honeypot toolbox; the interaction session provided to a malicious user is reasonably convincing at first glance, and I particularly like the trick to keep users logged in after they think they&#8217;ve sent an &#8216;exit&#8217; command to close the session, it could get some interesting results.</p>
<p>For post compromise analysis Kippo also provides some an interesting utility, utils/playlog.py. This allows you to replay a malicious terminal session in real-time, typos and all, to truely provide a feel for the malicious users interaction with the session. To help whet your apetite whilst I wait for someone to target my kippo installation, Kippo has a few demo&#8217;s of the playlog capabilities from compromise attempts. <a title="Kippo playlog.py 1" href="http://kippo.rpg.fi/playlog/?l=20091122-075013-5055.log">Get</a> <a title="Kippo playlog demo 2" href="http://kippo.rpg.fi/playlog/?l=20091123-003854-3359.log">your</a> <a title="Kippo playlog demo 3" href="http://kippo.rpg.fi/playlog/?l=20091123-012814-626.log">demos</a> <a title="Kippo playlog.py Demo 4" href="http://kippo.rpg.fi/playlog/?l=20100316-233121-1847.log">here</a>.</p>
<p>&#8211;Andrew Waite</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/754/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=754&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2010/07/06/starting-with-kippo/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>
	</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>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>
	</item>
		<item>
		<title>Amun statistics</title>
		<link>http://blog.infosanity.co.uk/2010/05/31/amun-statistics/</link>
		<comments>http://blog.infosanity.co.uk/2010/05/31/amun-statistics/#comments</comments>
		<pubDate>Mon, 31 May 2010 14:06:39 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Honeypot]]></category>
		<category><![CDATA[InfoSec]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Tool-Kit]]></category>

		<guid isPermaLink="false">http://blog.infosanity.co.uk/?p=668</guid>
		<description><![CDATA[Amun has been running away quite happily in my lab since initial install. From a statistic perspective my wor has been made really easy as Miguel Cabrerizo has previously taken one of the InfoSanity statistic scripts written for Nepenthes and Dionaea and adapted it to parse Amun's submission.log files. If you're wanting to get an overview of submissions from another Amun sensor the script has been uploaded alongside the other InfoSanity resources and is available here.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=668&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Amun has been running away quite happily in my lab since <a title="[InfoSanity] Starting with Amun" href="http://blog.infosanity.co.uk/2010/05/15/starting-with-amun/">initial install</a>. From a statistic perspective my wor has been made really easy as <a title="Diatel - Amun Statistics" href="http://diatel.wordpress.com/2010/05/06/amun-statistics/">Miguel Cabrerizo</a> has previously taken one of the InfoSanity statistic scripts written for Nepenthes and Dionaea and adapted it to parse Amun&#8217;s submission.log files.</p>
<p>Results generated from the script in my environment are below, if you&#8217;re wanting to get an overview of submissions from another Amun sensor the script has been uploaded alongside the other InfoSanity resources and is available <a title="Script - Amun_statistics.py" href="http://www.infosanity.co.uk/resources/scripts/amun/amun_statistics.py">here</a>.</p>
<blockquote><p>~$ cat /opt/amun/logs/submissions.log* | ./amun_submission_stats.py</p>
<p>Statistics engine written by Andrew Waite (www.infosanity.co.uk) modified by Miguel Cabrerizo (diatel.wordpress.com)</p>
<p>Number of submissions      : 25<br />
Number of unique samples   : 25<br />
Number of unique source IPs: 18</p>
<p>Origin of the malware:<br />
Ukraine :     1<br />
None :     7<br />
Poland :     2<br />
Romania :     1<br />
United States :     8<br />
Russian Federation :     2<br />
Hungary :     1<br />
Norway :     1<br />
Bulgaria :     2</p>
<p>Vulnerabilities exploited:<br />
MS08067 :    13<br />
DCOM :    12</p>
<p>Most recent submissions:<br />
2010-05-31, 11:37:22, 208.53.183.164, 63.exe, acf5c09d547417fe53c163ec09199cab, MS08067<br />
2010-05-30, 19:23:09, 208.53.183.162, 63.exe, 89b578839f1c39f79d48e5f9e70b5e2f, MS08067<br />
2010-05-28, 10:27:03, 208.53.183.162, 63.exe, f7c4f677218070ab52d422b3c018a4ba, MS08067<br />
2010-05-27, 16:23:14, 195.34.117.180, ssms.exe, 1f8a826b2ae94daa78f6542ad4ef173b, DCOM<br />
2010-05-24, 19:46:35, 208.53.183.163, 63.exe, 53979f1820886f089a75689ed15ecf6e, MS08067</p></blockquote>
<p>A comment on a recent post asked for a comparison between different honeypots, while this is far from conclusive and only focuses on a single aspect of the technologies one of InfoSanity&#8217;s Nepenthes sensors &#8216;saw&#8217; more attacks in the last 24hrs than my Amun installation did in the almost three weeks shown above. As both are running within the same, small, IP allocation I think I&#8217;m safe in assuming that one IP isn&#8217;t actually receiving a disproportionate level of interest from the badguys and bots that are out there.</p>
<p>&#8211; Andrew Waite</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/668/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=668&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2010/05/31/amun-statistics/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>
	</item>
		<item>
		<title>Starting with Amun</title>
		<link>http://blog.infosanity.co.uk/2010/05/15/starting-with-amun/</link>
		<comments>http://blog.infosanity.co.uk/2010/05/15/starting-with-amun/#comments</comments>
		<pubDate>Sat, 15 May 2010 15:53:52 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Honeypot]]></category>
		<category><![CDATA[InfoSec]]></category>
		<category><![CDATA[Tool-Kit]]></category>

		<guid isPermaLink="false">http://blog.infosanity.co.uk/?p=655</guid>
		<description><![CDATA[No single technology can do or handle every situation; the same holds true with honeypot sensors which is why I'm always interested in finding new systems to add to my environment. I'd had Amun on my list of potentials for a while, but after reading a short blog post that suggested install and setup was relatively quick and painless, it got moved up the to-do list.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=655&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>No single technology can do or handle every situation; the same holds true with honeypot sensors which is why I&#8217;m always interested in finding new systems to add to my environment. I&#8217;d had <a title="SourceForge: Amun Honeypot" href="http://sourceforge.net/projects/amunhoney/">Amun</a> on my list of potentials for a while, but after reading a short <a title="Diatel: Amun installation" href="http://diatel.wordpress.com/2010/05/05/amun-honeypots-installation/">blog post</a> by Miguel Cabrerizo that suggested install and setup was relatively quick and painless, it got moved up the to-do list.</p>
<p>As suggested the install was quick and easy, with no real problems. Since being installed the system has done what it says on the tin, emulating vulnerabilities and logging interaction with attacking sources. The sensor has been active for around 5 days and has collected 14 unique malware samples to date. Whilst not immediately being indicative of any comparison, three of these samples have not also been ensnared by Nepenthes or Dionaea sensors running within the same IP space.</p>
<p>The Amun log directory shows some interesting information, with logging being split between several different files. From initial results there is some interesting information collected by the system. One aspect of the logging that I&#8217;m unsure if I like is that Amun rotates it&#8217;s log files on a daily basis, so far this is resulting in my log directory getting cluttered with rotated files. For the curious available log files are:</p>
<ul>
<li>amun_request_handler.log</li>
<li>amun_server.log</li>
<li>download.log</li>
<li>exploits.log</li>
<li>logging.log</li>
<li>shellcode_manager.log</li>
<li>shellemulator.log</li>
<li>submissions.log</li>
<li>successfull_downloads.log</li>
<li>unknown_downloads.log</li>
<li>vulnerabilities.log</li>
</ul>
<p>Going forward there are a number of installation and configurations options available from Amun that I intend to experiment with; high up this list is the ability to log to a MySQL database, I&#8217;m hoping that this will provide both a convenient and powerful way to search and analyse the information collected by the sensor. In the meantime Miguel has extended one of InfoSanity&#8217;s submission_stats to gather similar statistics from Amun sensors, Miguel&#8217;s work is available <a href="http://diatel.wordpress.com/2010/05/06/amun-statistics">here.</a></p>
<p>&#8211; Andrew Waite</p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:7px;width:1px;height:1px;">amun01:/opt/amun# ls -l malware/md5sum/<br />
total 2512<br />
-rw-r&#8211;r&#8211; 1 root root 155648 2010-05-13 10:53 0cc3c16497214997a9aca72e387c9d9b.bin<br />
-rw-r&#8211;r&#8211; 1 root root 444416 2010-05-12 15:43 146d61fca77d748f5a5ecff53afd30e4.bin<br />
-rw-r&#8211;r&#8211; 1 root root 158720 2010-05-11 07:43 14a09a48ad23fe0ea5a180bee8cb750a.bin<br />
-rw-r&#8211;r&#8211; 1 root root 159744 2010-05-11 00:29 1d419d615dbe5a238bbaa569b3829a23.bin<br />
-rw-r&#8211;r&#8211; 1 root root 153600 2010-05-15 13:41 53098aa3e420a1be0a5e6a992dc30f3b.bin<br />
-rw-r&#8211;r&#8211; 1 root root 176128 2010-05-10 23:35 5a951d625eb10b900eb7001892edfa77.bin<br />
-rw-r&#8211;r&#8211; 1 root root 159744 2010-05-13 19:16 6366b14ed66bf79d6ece8ed8cb116838.bin<br />
-rw-r&#8211;r&#8211; 1 root root 153600 2010-05-12 13:36 98eb0fdadf8a403c013a8b1882ec986d.bin<br />
-rw-r&#8211;r&#8211; 1 root root 172032 2010-05-13 06:22 9b1bec8e5fbc9696c60422a031147d07.bin<br />
-rw-r&#8211;r&#8211; 1 root root 159744 2010-05-13 19:16 a7b197e90b2c5d63b19dfb4797ef7710.bin<br />
-rw-r&#8211;r&#8211; 1 root root 147456 2010-05-14 07:04 b407982b9eea8c8af3ff4f52ee71c44a.bin<br />
-rw-r&#8211;r&#8211; 1 root root 147456 2010-05-11 07:09 b786ad96a1dfb330e05595e4657d8a61.bin<br />
-rw-r&#8211;r&#8211; 1 root root 160768 2010-05-12 14:46 bb39f29fad85db12d9cf7195da0e1bfe.bin<br />
-rw-r&#8211;r&#8211; 1 root root 152576 2010-05-11 00:00 fd28c5e1c38caa35bf5e1987e6167f4c.bin</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/655/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/655/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/655/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/655/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/655/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/655/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/655/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=655&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2010/05/15/starting-with-amun/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>Determining connection source from honeyd.log &#8211; cymruwhois version</title>
		<link>http://blog.infosanity.co.uk/2010/05/03/determining-connection-source-from-honeyd-log-cymruwhois-version/</link>
		<comments>http://blog.infosanity.co.uk/2010/05/03/determining-connection-source-from-honeyd-log-cymruwhois-version/#comments</comments>
		<pubDate>Mon, 03 May 2010 17:55:06 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Honeypot]]></category>
		<category><![CDATA[InfoSec]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Tool-Kit]]></category>

		<guid isPermaLink="false">http://blog.infosanity.co.uk/?p=621</guid>
		<description><![CDATA[InfoSanity’s honeyd-geoip.py script has been useful for analysing the initial findings from a HoneyD installation, but one of weaknesses identified in the geolocation database used by the script was that a large proportion of the source IP addresses connecting to the honeypot environment weren’t none within the database. Markus pointed me in the direction of the cymruwhois (discussed previously)python module as an alternative. I’ve re-written the initial script.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=621&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>InfoSanity&#8217;s <a title="[InfoSanity] - honeyd-geoip.py" href="http://blog.infosanity.co.uk/2010/04/17/determining-connection-source-from-honeyd-log/">honeyd-geoip.py</a> script has been useful for analysing the initial findings from a HoneyD installation, but one of weaknesses identified in the geolocation database used by the script was that a large proportion of the source IP addresses connecting to the honeypot environment weren&#8217;t none within the database. Markus pointed me in the direction of the cymruwhois (discussed <a title="[InfoSanity] Team Cymru Whois" href="http://blog.infosanity.co.uk/2010/05/03/team-cymru-whois/">previously</a>)python module as an alternative. I&#8217;ve re-written the initial script, below:</p>
<pre>#!/usr/bin/python
from cymruwhois import Client
import sys

logfile = open('/var/log/honeypot/honeyd.log', 'r')
source = []
for line in logfile:
    source.append(line.split(' ')[3])

src_country = []
src_count = []
c=Client()

results=c.lookupmany_dict(set(source))

for res in results:
    country = results[res].cc
    try:
        pos = src_country.index( country )
        src_count[pos] += 1
    except:
        src_country.append( country )
        src_count.append( 1 )

for i in range( 0, ( len( src_country ) - 1 ) ):
    sys.stdout.write( "%s:\t%i\n" %( src_country[i], src_count[i] ) )</pre>
<p>So far this has resulted in far fewer unknown source locations, 249 using geoip compared to 3 using cymruwhois. The downside unfortunately is performance, the cymruwhois communicates with a remote host to gather information compared with the geolocation database that is already stored locally on the machine. Both perform some local caching of results/data however so I would expect the performane difference to decrease as larger datasets are analysed.</p>
<p>Using the newer script, based on the same 24hr data set, the top ten host countries communicating with InfoSanity&#8217;s honeyd environment are:</p>
<pre>
RU:     397
US:     234
TW:     179
BR:     158
CN:     123
RO:     107
DE:     101
IT:     96
JP:     91
AR:     86
</pre>
<p>&#8211; Andrew Waite</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/621/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=621&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2010/05/03/determining-connection-source-from-honeyd-log-cymruwhois-version/feed/</wfw:commentRss>
		<slash:comments>1</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>Quick and Easy Nepenthes installation</title>
		<link>http://blog.infosanity.co.uk/2010/04/25/quick-and-easy-nepenthes-installation/</link>
		<comments>http://blog.infosanity.co.uk/2010/04/25/quick-and-easy-nepenthes-installation/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 11:08:32 +0000</pubDate>
		<dc:creator>Andrew Waite</dc:creator>
				<category><![CDATA[Honeypot]]></category>
		<category><![CDATA[Nepenthes]]></category>

		<guid isPermaLink="false">http://blog.infosanity.co.uk/?p=607</guid>
		<description><![CDATA[I've just completed a new Nepenthes installation, and found the process far simpler than my first attempt as I didn't compile from source. <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=607&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just completed a new <a title="Nepenthes" href="http://nepenthes.carnivore.it">Nepenthes</a> installation, and found the process far simpler than my first attempt as I didn&#8217;t compile from source.</p>
<p>Running on a Debian 5.0/Lenny server the install was both quick and easy, <em>&#8216;apt-get install nepenthes&#8217;</em> handles install and dependencies nicely. The only issue I encountered was the permissions of files and directories within /var/log/nepenthes/. The contents had owner and group settings as root:root, as the nepenthes process should (and does under the default init.d script) drop permissions after initialisation this meant that the process was unable write to some of it&#8217;s logfiles, reducing the amount and quality of collected information. Thankfully this is easily fixed with a simple <em>&#8216;chown -R nepenthes:nepenthes /var/log/nepenthes/*&#8217;</em>.</p>
<p>I&#8217;ve frequently seen complaints/queries on the <a title="nepenthes-dev mailing list" href="http://sourceforge.net/mail/?group_id=137598">Nepenthes development mailing list</a> that there are issues with Nepenthes&#8217; hexdump functionality. While it isn&#8217;t enabled by default, using this install method works perfectly after uncommenting the <em>&#8220;loghexdump.so&#8221; </em>line from /etc/nepenthes/nepenthes.conf, depositing collected dumps in <em>/var/lib/nepenthes/hexdumps/</em>.</p>
<p>Initial testing shows the system working nicely (not bad for 30 minutes work) and is beginning to collect new binaries and attack statistics. Next step is some integration with Honeyd to provide the start of a combined honeynet environment, more to come later.</p>
<p>&#8211; Andrew Waite</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/infosanity.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/infosanity.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/infosanity.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/infosanity.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/infosanity.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/infosanity.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/infosanity.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/infosanity.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/infosanity.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/infosanity.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/infosanity.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/infosanity.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/infosanity.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/infosanity.wordpress.com/607/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.infosanity.co.uk&amp;blog=8614004&amp;post=607&amp;subd=infosanity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.infosanity.co.uk/2010/04/25/quick-and-easy-nepenthes-installation/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>
	</channel>
</rss>