<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Incident Response on Kevin Law</title>
		<link>https://www.kevinlaw.info/tags/incident-response/</link>
		<description>Recent content in Incident Response on Kevin Law</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<lastBuildDate>Thu, 28 Mar 2013 18:42:00 -0700</lastBuildDate>
		
			<atom:link href="https://www.kevinlaw.info/tags/incident-response/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>To Catch a Hacker: Honeypot Edition</title>
				<link>https://www.kevinlaw.info/blog/2013-03-28-to-catch-hacker-honeypot-edition/</link>
				<pubDate>Thu, 28 Mar 2013 18:42:00 -0700</pubDate>
				<guid>https://www.kevinlaw.info/blog/2013-03-28-to-catch-hacker-honeypot-edition/</guid>
				<description>Converted from Blogger. Please excuse any layout errors!&#xA;&lt;div class=&#34;separator&#34; style=&#34;clear: both; text-align: center;&#34;&gt;&#xA;    &lt;a href=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/wget.png&#34; imageanchor=&#34;1&#34; style=&#34;margin-left: 1em; margin-right: 1em;&#34;&gt;&#xA;        &lt;br /&gt;&#xA;    &lt;/a&gt;&#xA;&lt;/div&gt;&#xA;&lt;div style=&#34;text-align: center;&#34;&gt;&#xA;    &lt;blockquote class=&#34;tr_bq&#34;&gt;&lt;span style=&#34;font-family: Arial,Helvetica,sans-serif;&#34;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&#39;ve been running a Kippo Honeypot for about a month now on my CentOS VPS. For the those of you who do not know what this is, check out: &lt;/span&gt;&#xA;    &lt;/blockquote&gt;&#xA;&lt;/div&gt;&#xA;&lt;div style=&#34;text-align: center;&#34;&gt;&amp;nbsp;&lt;a href=&#34;http://en.wikipedia.org/wiki/Honeypot_%28computing%29&#34; target=&#34;_blank&#34;&gt;Honeypot wiki&lt;/a&gt;&#xA;&lt;/div&gt;&#xA;&lt;div style=&#34;text-align: center;&#34;&gt;&lt;a href=&#34;http://code.google.com/p/kippo/&#34; target=&#34;_blank&#34;&gt;Kippo&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&#xA;&lt;div style=&#34;text-align: center;&#34;&gt;&lt;a href=&#34;http://dev.mattgfeller.com/kippo-graph.php&#34; target=&#34;_blank&#34;&gt;Active honeypot statistics&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&#xA;&lt;div style=&#34;text-align: center;&#34;&gt;&#xA;    &lt;blockquote class=&#34;tr_bq&#34;&gt;&lt;span style=&#34;font-family: Arial,Helvetica,sans-serif;&#34;&gt;I thought it would be a good experiment to see how many times it would get logged into. I received many blind logins for a while now (Log in and out like an automated bot). I was checking my logs out and noticed a very long entry file. Upon further investigation, what I found was quite surprising.&lt;/span&gt;&#xA;    &lt;/blockquote&gt;&#xA;&lt;/div&gt;&#xA;&lt;div class=&#34;separator&#34; style=&#34;clear: both; text-align: center;&#34;&gt;&lt;/div&gt;&#xA;&lt;br /&gt;&#xA;&lt;table align=&#34;center&#34; cellpadding=&#34;0&#34; cellspacing=&#34;0&#34; class=&#34;tr-caption-container&#34; style=&#34;margin-left: auto; margin-right: auto; text-align: center;&#34;&gt;&#xA;    &lt;tbody&gt;&#xA;        &lt;tr&gt;&#xA;            &lt;td style=&#34;text-align: center;&#34;&gt;&#xA;                &lt;a href=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/initial.png&#34; imageanchor=&#34;1&#34; style=&#34;margin-left: auto; margin-right: auto;&#34;&gt;&lt;img border=&#34;0&#34; height=&#34;84&#34; src=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/initial.png&#34; width=&#34;640&#34; /&gt;&#xA;                &lt;/a&gt;&#xA;            &lt;/td&gt;&#xA;        &lt;/tr&gt;&#xA;        &lt;tr&gt;&#xA;            &lt;td class=&#34;tr-caption&#34; style=&#34;text-align: center;&#34;&gt;I changed IP&#39;s and URL&#39;s to mask attacker&#39;s identity&lt;/td&gt;&#xA;        &lt;/tr&gt;&#xA;    &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;br /&gt;&#xA;&lt;div class=&#34;separator&#34; style=&#34;clear: both; text-align: center;&#34;&gt;&lt;/div&gt;&#xA;&lt;br /&gt;&#xA;&lt;table align=&#34;center&#34; cellpadding=&#34;0&#34; cellspacing=&#34;0&#34; class=&#34;tr-caption-container&#34; style=&#34;margin-left: auto; margin-right: auto; text-align: center;&#34;&gt;&#xA;    &lt;tbody&gt;&#xA;        &lt;tr&gt;&#xA;            &lt;td style=&#34;text-align: center;&#34;&gt;&#xA;                &lt;a href=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/wget.png&#34; imageanchor=&#34;1&#34; style=&#34;margin-left: auto; margin-right: auto;&#34;&gt;&lt;img border=&#34;0&#34; height=&#34;100&#34; src=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/wget.png&#34; width=&#34;640&#34; /&gt;&#xA;                &lt;/a&gt;&#xA;            &lt;/td&gt;&#xA;        &lt;/tr&gt;&#xA;        &lt;tr&gt;&#xA;            &lt;td class=&#34;tr-caption&#34; style=&#34;text-align: center;&#34;&gt;Trying to install perl and run his scripts ;)&lt;/td&gt;&#xA;        &lt;/tr&gt;&#xA;    &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;br /&gt;&#xA;&lt;table align=&#34;center&#34; cellpadding=&#34;0&#34; cellspacing=&#34;0&#34; class=&#34;tr-caption-container&#34; style=&#34;margin-left: auto; margin-right: auto; text-align: center;&#34;&gt;&#xA;    &lt;tbody&gt;&#xA;        &lt;tr&gt;&#xA;            &lt;td style=&#34;text-align: center;&#34;&gt;&#xA;                &lt;a href=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/adduser.png&#34; imageanchor=&#34;1&#34; style=&#34;margin-left: auto; margin-right: auto;&#34;&gt;&lt;img border=&#34;0&#34; height=&#34;142&#34; src=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/adduser.png&#34; width=&#34;640&#34; /&gt;&#xA;                &lt;/a&gt;&#xA;            &lt;/td&gt;&#xA;        &lt;/tr&gt;&#xA;        &lt;tr&gt;&#xA;            &lt;td class=&#34;tr-caption&#34; style=&#34;text-align: center;&#34;&gt;Adding users , before finding out that you cannot add users in kippo&lt;/td&gt;&#xA;        &lt;/tr&gt;&#xA;    &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;table align=&#34;center&#34; cellpadding=&#34;0&#34; cellspacing=&#34;0&#34; class=&#34;tr-caption-container&#34; style=&#34;margin-left: auto; margin-right: auto; text-align: center;&#34;&gt;&#xA;    &lt;tbody&gt;&#xA;        &lt;tr&gt;&#xA;            &lt;td style=&#34;text-align: center;&#34;&gt;&lt;img border=&#34;0&#34; height=&#34;148&#34; src=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/contents.png&#34; style=&#34;margin-left: auto; margin-right: auto;&#34; width=&#34;400&#34; /&gt;&#xA;            &lt;/td&gt;&#xA;        &lt;/tr&gt;&#xA;        &lt;tr&gt;&#xA;            &lt;td class=&#34;tr-caption&#34; style=&#34;text-align: center;&#34;&gt;Contents of the piata_sshbrute.tar.gz&lt;/td&gt;&#xA;            &lt;td class=&#34;tr-caption&#34; style=&#34;text-align: center;&#34;&gt;&#xA;                &lt;br /&gt;&#xA;            &lt;/td&gt;&#xA;            &lt;td class=&#34;tr-caption&#34; style=&#34;text-align: center;&#34;&gt;&#xA;                &lt;br /&gt;&#xA;            &lt;/td&gt;&#xA;        &lt;/tr&gt;&#xA;    &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;div class=&#34;separator&#34; style=&#34;clear: both; text-align: center;&#34;&gt;The attacker downloaded a mass ssh bruteforcer called piata to my honeypot along with a very large password list used to dictionary attack logins. This is probably how the attacker got into my honeypot in the first place.&lt;/div&gt;&#xA;&lt;div class=&#34;separator&#34; style=&#34;clear: both; text-align: center;&#34;&gt;&#xA;    &lt;br /&gt;&#xA;&lt;/div&gt;&#xA;&lt;div class=&#34;separator&#34; style=&#34;clear: both; text-align: center;&#34;&gt;&amp;nbsp; I went ahead and visited the url that he was downloading the scripts from. The base url seems to be a compromised website with a hidden directory he made. The files are logs of compromised systems, along with various php shells, irc bots, and netcat scripts. As you can see from the logs, the attacker has not compromised&amp;nbsp; many systems.&lt;/div&gt;&#xA;&lt;table cellpadding=&#34;0&#34; cellspacing=&#34;0&#34; class=&#34;tr-caption-container&#34; style=&#34;margin-left: auto; margin-right: auto; text-align: center;&#34;&gt;&#xA;    &lt;tbody&gt;&#xA;        &lt;tr&gt;&#xA;            &lt;td style=&#34;text-align: center;&#34;&gt;&#xA;                &lt;a href=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/listing.png&#34; imageanchor=&#34;1&#34; style=&#34;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&#34;&gt;&lt;img border=&#34;0&#34; height=&#34;640&#34; src=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/listing.png&#34; width=&#34;171&#34; /&gt;&#xA;                &lt;/a&gt;&#xA;            &lt;/td&gt;&#xA;        &lt;/tr&gt;&#xA;        &lt;tr&gt;&#xA;            &lt;td class=&#34;tr-caption&#34; style=&#34;text-align: center;&#34;&gt;Contents of his webserver&lt;/td&gt;&#xA;        &lt;/tr&gt;&#xA;    &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;div class=&#34;separator&#34; style=&#34;clear: both; text-align: center;&#34;&gt;&#xA;    &lt;br /&gt;&#xA;&lt;/div&gt;&#xA;&lt;div class=&#34;separator&#34; style=&#34;clear: both; text-align: center;&#34;&gt;A few examples of the many different scripts found in the directory:&lt;/div&gt;&#xA;&lt;br /&gt;&#xA;&lt;div class=&#34;separator&#34; style=&#34;clear: both; text-align: center;&#34;&gt;&#xA;    &lt;a href=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/ircbot1.png&#34; imageanchor=&#34;1&#34; style=&#34;margin-left: 1em; margin-right: 1em;&#34;&gt;&lt;img border=&#34;0&#34; height=&#34;192&#34; src=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/ircbot1.png&#34; width=&#34;320&#34; /&gt;&#xA;    &lt;/a&gt;&#xA;&lt;/div&gt;&#xA;&lt;br /&gt;&#xA;&lt;div class=&#34;separator&#34; style=&#34;clear: both; text-align: center;&#34;&gt;&lt;/div&gt;&#xA;&lt;div class=&#34;separator&#34; style=&#34;clear: both; text-align: center;&#34;&gt;&#xA;    &lt;a href=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/ircbot2.png&#34; imageanchor=&#34;1&#34; style=&#34;margin-left: 1em; margin-right: 1em;&#34;&gt;&lt;img border=&#34;0&#34; height=&#34;320&#34; src=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/ircbot2.png&#34; width=&#34;266&#34; /&gt;&#xA;    &lt;/a&gt;&#xA;&lt;/div&gt;&#xA;&lt;a href=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/nc_bot.png&#34; imageanchor=&#34;1&#34; style=&#34;margin-left: 1em; margin-right: 1em;&#34;&gt;&lt;img border=&#34;0&#34; height=&#34;205&#34; src=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/nc_bot.png&#34; width=&#34;400&#34; /&gt;&#xA;&lt;/a&gt;&#xA;&lt;br /&gt;&#xA;&lt;br /&gt;&#xA;&lt;div class=&#34;separator&#34; style=&#34;clear: both; text-align: center;&#34;&gt;&#xA;    &lt;a href=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/shell_bot.png&#34; imageanchor=&#34;1&#34; style=&#34;margin-left: 1em; margin-right: 1em;&#34;&gt;&lt;img border=&#34;0&#34; height=&#34;232&#34; src=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/shell_bot.png&#34; width=&#34;400&#34; /&gt;&#xA;    &lt;/a&gt;&#xA;&lt;/div&gt;&#xA;&lt;br /&gt;&#xA;&lt;div style=&#34;text-align: center;&#34;&gt;Each script is very generic and seems like it was just downloaded from a warez website and modified to the attacker&#39;s needs. Some php shells are renamed to .jpeg extensions to be able to be uploaded through an upload form and then executed. But nothing was encrypted or obfuscated!&lt;/div&gt;&#xA;&lt;br /&gt;I got crafty and found the irc server the attacker was using to command all of the bots. I joined the channel and found a handful of bots awaiting command:&#xA;&lt;br /&gt;&#xA;&lt;br /&gt;&#xA;&lt;table align=&#34;center&#34; cellpadding=&#34;0&#34; cellspacing=&#34;0&#34; class=&#34;tr-caption-container&#34; style=&#34;margin-left: auto; margin-right: auto; text-align: center;&#34;&gt;&#xA;    &lt;tbody&gt;&#xA;        &lt;tr&gt;&#xA;            &lt;td style=&#34;text-align: center;&#34;&gt;&#xA;                &lt;a href=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/irc.png&#34; imageanchor=&#34;1&#34; style=&#34;margin-left: auto; margin-right: auto;&#34;&gt;&lt;img border=&#34;0&#34; height=&#34;434&#34; src=&#34;https://www.kevinlaw.info/images/post_catchhackerhoneypot/irc.png&#34; width=&#34;640&#34; /&gt;&#xA;                &lt;/a&gt;&#xA;            &lt;/td&gt;&#xA;        &lt;/tr&gt;&#xA;        &lt;tr&gt;&#xA;            &lt;td class=&#34;tr-caption&#34; style=&#34;text-align: center;&#34;&gt;Tanking a Command and Control IRC server (oops did I leave the server address up?)&lt;/td&gt;&#xA;        &lt;/tr&gt;&#xA;    &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;div style=&#34;text-align: center;&#34;&gt;It was awesome that an actual person connected to my honeypot and tried to compromise my system. The techniques the attacker used were very generic, like adding a user with a system name and saving files to a hidden temp folder. The attacker also used many scripts that could be found on the internet with simple Google searches. The problem is that despite the fact that he used easily accessible scripts, they still work! &lt;/div&gt;</description>
			</item>
	</channel>
</rss>
