<?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>philosecurity &#187; jonathan</title>
	<atom:link href="http://philosecurity.org/author/jonathan/feed" rel="self" type="application/rss+xml" />
	<link>http://philosecurity.org</link>
	<description></description>
	<lastBuildDate>Tue, 23 Feb 2010 22:42:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Fingerprinting Systems with Firewall Logs</title>
		<link>http://philosecurity.org/2009/08/07/fingerprinting-systems-with-firewall-logs</link>
		<comments>http://philosecurity.org/2009/08/07/fingerprinting-systems-with-firewall-logs#comments</comments>
		<pubDate>Fri, 07 Aug 2009 03:36:53 +0000</pubDate>
		<dc:creator>jonathan</dc:creator>
				<category><![CDATA[Forensics]]></category>

		<guid isPermaLink="false">http://philosecurity.org/?p=2166</guid>
		<description><![CDATA[By Jonathan Ham How can you investigate a computer that isn&#8217;t there any more? &#8220;No Hard Drive? No Problem!&#8221; SANS Network Forensics (Sec558) A lot has been written about methods for &#8220;fingerprinting&#8221; systems with active scanning methods (eg. nmap). These of course require that the system be actively reachable, and that you don&#8217;t mind totally [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:x-small;">By <a href="http://jhamcorp.com">Jonathan Ham</a></span><br />
<em>How can you investigate a computer that isn&#8217;t there any more?</em></p>
<table align="right" border="0">
<tbody>
<tr>
<td><a href="http://philosecurity.org/wp-content/uploads/2009/08/tcpip_flag.png"><img class="alignright wp-image-1902" src="http://philosecurity.org/wp-content/uploads/2009/08/tcpip_flag.png" alt="SANS Sec558 - Network Forensics Flag" width="250" height="158" /></a></td>
</tr>
<tr>
<td align="center">
<h3>&#8220;No Hard Drive? No Problem!&#8221; </h3>
<p><em><a href="http://www.sans.org/training/description.php?mid=1227" >SANS Network Forensics (Sec558)</a></em></td>
</tr>
</tbody>
</table>
<p>A lot has been written about methods for &#8220;fingerprinting&#8221; systems with active scanning methods (eg. <a href="http://nmap.org">nmap</a>).  These of course require that the system be actively reachable, and that you don&#8217;t mind totally giving away your position with a very noisy scan (sort of like shooting a shotgun directly at a suspect to see if you can get him to look at you, in hopes that you&#8217;ll catch a glimpse of his face).</p>
<p>A lot has also been written about more covert ways of achieving the same goal, based on packets surreptitiously captured from the host of interest (a la <a href="http://lcamtuf.coredump.cx/p0f.shtml">p0f</a>). This is certainly very cool, and can be inordinately useful&#8230;if you happen to have packet captures from the host of interest, or can begin to get them. (Either you <em>were</em> capturing its packets to begin with, or it&#8217;s <em>still around</em> to get packets from.)</p>
<p>But what if the system is long gone, never to return? Or what if you&#8217;re lucky enough to see it again, but for technological/logistical/legal reasons you can&#8217;t grab its packets? As we see in <a href="http://www.sans.org/ns2009/description.php?tid=3452">Sec558</a>, all hope is not lost&#8230;</p>
<p>While most firewalls report only sparse information about the packets that they see (and perhaps reject), many of them at least include such information as the Time To Live (TTL) field. What a lot of forensic analysts don&#8217;t realize is that different operating systems choose different initial values for the TTL field. For example, current versions of Linux start with 64, and Windows with 128. So if you see a packet logged by a firewall with a TTL of 61, it&#8217;s a pretty good guess that it came from a Linux system 3 hops from the firewall. Of course it could be a Windows system 67 hops away, but which is more likely?</p>
<p>TTLs can be, and sometimes are, crafted. But when dealing with the 99% of packets whose headers aren&#8217;t crafted, this works like a charm. You can also correlate TTLs with other aspects of the network traffic logged by a firewall, such as source and destination port numbers, IP ID sequences, and such.</p>
<p>Here are three lines from an iptables firewall log. Can you guess what OS the client is running?  How about the manufacturer?</p>
<p><Table width="450"></p>
<tr>
<td>
<span style="font-size:x-small;">Mar 24 12:13:13 192.168.1.10 kernel: [  915.256256] FIREWALL:BLOCKEDIN=eth3 OUT= MAC=ff:ff:ff:ff:ff:ff:00:21:70:4d:4f:ae:08:00 SRC=192.168.1.170 DST=192.168.1.255 LEN=96 TOS=0&#215;00 PREC=0&#215;00 TTL=128 ID=61495 PROTO=UDP SPT=137 DPT=137 LEN=76<br />
Mar 24 12:13:14 192.168.1.10 kernel: [  916.006952] FIREWALL:BLOCKEDIN=eth3 OUT= MAC=ff:ff:ff:ff:ff:ff:00:21:70:4d:4f:ae:08:00 SRC=192.168.1.170 DST=192.168.1.255 LEN=96 TOS=0&#215;00 PREC=0&#215;00 TTL=128 ID=61496 PROTO=UDP SPT=137 DPT=137 LEN=76<br />
Mar 24 12:13:14 192.168.1.10 kernel: [  916.764653] FIREWALL:BLOCKEDIN=eth3 OUT= MAC=ff:ff:ff:ff:ff:ff:00:21:70:4d:4f:ae:08:00 SRC=192.168.1.170 DST=192.168.1.255 LEN=96 TOS=0&#215;00 PREC=0&#215;00 TTL=128 ID=61497 PROTO=UDP SPT=137 DPT=137 LEN=76</span></td>
</tr>
</table>
<hr />
<u>Solutions:</u></p>
<p>With a TTL of 128, this is probably a Windows system 0 hops away (meaning it has not traversed a router, so it is on the local segment). This is further supported by the UDP port 137 (NETBIOS) traffic, which is very common for Windows systems. The sequential IP IDs tend to corroborate this as well.</p>
<p>Based on the first three bytes of the MAC address (&#8220;00:21:70&#8243;), it&#8217;s probably a <a href="http://standards.ieee.org/cgi-bin/ouisearch?00-21-70">Dell</a>. <img src='http://philosecurity.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<hr />
<BR>If you want to learn more about collecting and analyzing network evidence, check out <a href="http://www.sans.org/ns2009/description.php?tid=3452">Sec558: Network Forensics</a>. <em><strong>&#8220;No hard drive? No problem!&#8221;</strong></em></p>
<p><span style="font-size:x-small;"><em>Jonathan Ham is an <a href="http://jhamcorp.com">independent security consultant</a> and a SANS Certified Instructor, who <a href="http://www.sans.org/training/description.php?mid=1227">teaches forensics</a> and other tracks. When he goes to sleep at night, he counts packets as they leap through firewalls. </em></span><br />
&nbsp;</p>
<table style="float: right">
<tr>
<td align=right><em>Philosecurity contributor Jonathan Ham</em></td>
</tr>
<tr>
<td><a href="http://philosecurity.org/wp-content/uploads/pgp-archives/fingerprinting-systems-with-firewall-logs-2009-08-06.asc">PGP-signed text: 2009-08-06 (current)</a></td>
</tr>
</table>
</td>
</tr>
</table>



Did you like this article? Share it!


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fphilosecurity.org%2F2009%2F08%2F07%2Ffingerprinting-systems-with-firewall-logs&amp;title=Fingerprinting%20Systems%20with%20Firewall%20Logs%20&amp;bodytext=By%20Jonathan%20Ham%0D%0AHow%20can%20you%20investigate%20a%20computer%20that%20isn%27t%20there%20any%20more%3F%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%22No%20Hard%20Drive%3F%20No%20Problem%21%22%20%0D%0ASANS%20Network%20Forensics%20%28Sec558%29%0D%0A%0D%0A%0D%0A%0D%0AA%20lot%20has%20been%20written%20about%20methods%20for%20%22fingerprinting%22%20systems%20with%20active%20scanni" title="Digg"><img src="http://philosecurity.org/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fphilosecurity.org%2F2009%2F08%2F07%2Ffingerprinting-systems-with-firewall-logs&amp;title=Fingerprinting%20Systems%20with%20Firewall%20Logs%20" title="StumbleUpon"><img src="http://philosecurity.org/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fphilosecurity.org%2F2009%2F08%2F07%2Ffingerprinting-systems-with-firewall-logs&amp;title=Fingerprinting%20Systems%20with%20Firewall%20Logs%20" title="Reddit"><img src="http://philosecurity.org/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Fingerprinting%20Systems%20with%20Firewall%20Logs%20&amp;url=http%3A%2F%2Fphilosecurity.org%2F2009%2F08%2F07%2Ffingerprinting-systems-with-firewall-logs" title="Slashdot"><img src="http://philosecurity.org/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fphilosecurity.org%2F2009%2F08%2F07%2Ffingerprinting-systems-with-firewall-logs" title="Technorati"><img src="http://philosecurity.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="" title="TwitThis"><img src="http://philosecurity.org/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fphilosecurity.org%2F2009%2F08%2F07%2Ffingerprinting-systems-with-firewall-logs&amp;title=Fingerprinting%20Systems%20with%20Firewall%20Logs%20&amp;notes=By%20Jonathan%20Ham%0D%0AHow%20can%20you%20investigate%20a%20computer%20that%20isn%27t%20there%20any%20more%3F%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%22No%20Hard%20Drive%3F%20No%20Problem%21%22%20%0D%0ASANS%20Network%20Forensics%20%28Sec558%29%0D%0A%0D%0A%0D%0A%0D%0AA%20lot%20has%20been%20written%20about%20methods%20for%20%22fingerprinting%22%20systems%20with%20active%20scanni" title="del.icio.us"><img src="http://philosecurity.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fphilosecurity.org%2F2009%2F08%2F07%2Ffingerprinting-systems-with-firewall-logs&amp;t=Fingerprinting%20Systems%20with%20Firewall%20Logs%20" title="Facebook"><img src="http://philosecurity.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fphilosecurity.org%2F2009%2F08%2F07%2Ffingerprinting-systems-with-firewall-logs&amp;title=Fingerprinting%20Systems%20with%20Firewall%20Logs%20&amp;annotation=By%20Jonathan%20Ham%0D%0AHow%20can%20you%20investigate%20a%20computer%20that%20isn%27t%20there%20any%20more%3F%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%22No%20Hard%20Drive%3F%20No%20Problem%21%22%20%0D%0ASANS%20Network%20Forensics%20%28Sec558%29%0D%0A%0D%0A%0D%0A%0D%0AA%20lot%20has%20been%20written%20about%20methods%20for%20%22fingerprinting%22%20systems%20with%20active%20scanni" title="Google Bookmarks"><img src="http://philosecurity.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fphilosecurity.org%2F2009%2F08%2F07%2Ffingerprinting-systems-with-firewall-logs&amp;t=Fingerprinting%20Systems%20with%20Firewall%20Logs%20" title="HackerNews"><img src="http://philosecurity.org/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fphilosecurity.org%2F2009%2F08%2F07%2Ffingerprinting-systems-with-firewall-logs&amp;title=Fingerprinting%20Systems%20with%20Firewall%20Logs%20&amp;source=philosecurity+&amp;summary=By%20Jonathan%20Ham%0D%0AHow%20can%20you%20investigate%20a%20computer%20that%20isn%27t%20there%20any%20more%3F%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%22No%20Hard%20Drive%3F%20No%20Problem%21%22%20%0D%0ASANS%20Network%20Forensics%20%28Sec558%29%0D%0A%0D%0A%0D%0A%0D%0AA%20lot%20has%20been%20written%20about%20methods%20for%20%22fingerprinting%22%20systems%20with%20active%20scanni" title="LinkedIn"><img src="http://philosecurity.org/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Fingerprinting%20Systems%20with%20Firewall%20Logs%20%20-%20http%3A%2F%2Fphilosecurity.org%2F2009%2F08%2F07%2Ffingerprinting-systems-with-firewall-logs" title="Twitter"><img src="http://philosecurity.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://philosecurity.org/2009/08/07/fingerprinting-systems-with-firewall-logs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

