<?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/"
	>

<channel>
	<title>The NoAH Blog &#187; attack</title>
	<atom:link href="http://blogs.fp6-noah.org/noah/tag/attack/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.fp6-noah.org/noah</link>
	<description>an ark of honeypot knowledge...</description>
	<lastBuildDate>Tue, 07 Jul 2009 14:35:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Story of an Attack</title>
		<link>http://blogs.fp6-noah.org/noah/story-of-an-attack/</link>
		<comments>http://blogs.fp6-noah.org/noah/story-of-an-attack/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 16:10:42 +0000</pubDate>
		<dc:creator>DFN-CERT</dc:creator>
				<category><![CDATA[noah]]></category>
		<category><![CDATA[analysis]]></category>
		<category><![CDATA[argos]]></category>
		<category><![CDATA[attack]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[win2k]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blogs.fp6-noah.org/noah/story-of-an-attack/</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p align="justify">Our windows 2000 server honeypot in the NoAH testbed was attacked on 2nd June 2008. This is the story of this attack. The rough picture is:</p>
<ul>
<li>The attacker connected from 80.60.158.116 to our win2k server honeypot.</li>
<li>Aim was to exploit a vulnerability in the WINS service at port 42.</li>
<li>Date was 2nd June 2008 18:45 GMT +0200.</li>
<li>The attack was not detected by the snort IDS.</li>
<li>Argos raised an alert of type &#8220;RET&#8221;.</li>
<li>The EBP contained the value 0&#215;90909090 which results obviously from a stack buffer overflow. Thus, a false positive can be excluded.</li>
</ul>
<h3 align="justify"><span id="more-29"></span>Analysis of the attack</h3>
<p align="justify">First step in my analysis was to find all known vulnerabilities/advisories affecting this service. The search results in the Microsoft advisory <a href="http://www.microsoft.com/technet/security/bulletin/ms04-045.mspx">MS04-045.</a> A <a href="http://www.immunitysec.com/downloads/instantanea.pdf">more detailed explanation</a> has been published by immunitysec.com. This seems to be the only severe vulnerability in this service. In  addition, multiple exploits exist targeting at this vulnerability.</p>
<p align="justify">The first look at the <a href="http://blogs.fp6-noah.org/noah/files/2008/06/wins_packets.gif" title="Packet dump of the attack">packet dump of the attack</a> using wireshark reveals that according to the MS advisory the WINS replication service was attacked. The first three 4-Byte words in the  tcpstream of the attack correspond to the &#8220;packet&#8221; as referenced by immunitysec: &#8220;size of packet&#8221; &#8220;XX XX FF XX&#8221;, and &#8220;real address pointer&#8221;. The vulnerability exists because the &#8220;real address pointer&#8221; can be manipulated by the attacker and user data is subsequently written to this location. In our Argos CSI data it points at  a memory location which is marked as tainted.  Thus, the behavior of the exploit is consistent with the  description of the vulnerability.</p>
<h3 align="justify">Attack verification</h3>
<p align="justify">To verify that the vulnerability attacked is the one found by immunitysec.com I tested the corresponding exploit in the metasploit suite against our honeypot and compared both results. The comparison with the traces of the real attack was surprising. First, the payload size of the attack was much smaller than the size of the metasploit attack. Moreover, the three bytes that are characteristic for the exploitation of the vulnerability are different. <a href="http://blogs.fp6-noah.org/noah/files/2008/06/wins_meta_tcpstream.gif" title="TCP stream data of the attack payload"> </a>They start at the <a href="http://blogs.fp6-noah.org/noah/files/2008/06/wins_exp_tcpstream.gif" title="TCP stream data of the attack payload">memory location</a> 0000002d:  packet lenght: 0&#215;208, &#8220;00 00 78 00&#8243;, &#8220;05 37 1e 90&#8243;. Thus, the critical Byte &#8220;FF&#8221; in the  second word is missing as seen in the <a href="http://blogs.fp6-noah.org/noah/files/2008/06/wins_meta_tcpstream1.gif" title="TCP stream data of the metasploit attack data">metasploit attack</a>. Moreover, the bytes at the address 0&#215;05371e90 do not seem to be tainted which is in contrast to the metasploit attack. Thus, I am confident that this  vulnerability is definitely not the one published by immunitysec. Further analysis of this attack will follow.</p>
<h3 align="justify">Screenshots</h3>
<h4>Packet dump of the attack</h4>
<p><a href="http://blogs.fp6-noah.org/noah/files/2008/06/wins_packets.gif" title="Packet dump of the attack"><img src="http://blogs.fp6-noah.org/noah/files/2008/06/wins_packets.gif" alt="Packet dump of the attack" /></a></p>
<h4></h4>
<h4>TCP stream data of the attack payload</h4>
<p><a href="http://blogs.fp6-noah.org/noah/files/2008/06/wins_exp_tcpstream.gif" title="TCP stream data of the attack payload"><img src="http://blogs.fp6-noah.org/noah/files/2008/06/wins_exp_tcpstream.gif" alt="TCP stream data of the attack payload" /></a></p>
<h4></h4>
<h4></h4>
<h4>TCP stream data of the metasploit attack data</h4>
<p><a href="http://blogs.fp6-noah.org/noah/files/2008/06/wins_meta_tcpstream1.gif" title="TCP stream data of the metasploit attack data"><img src="http://blogs.fp6-noah.org/noah/files/2008/06/wins_meta_tcpstream1.gif" alt="TCP stream data of the metasploit attack data" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.fp6-noah.org/noah/story-of-an-attack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

