<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>DiabloHorn</title>
	<atom:link href="http://diablohorn.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://diablohorn.wordpress.com</link>
	<description>Attempting to understand security</description>
	<lastBuildDate>Sun, 08 Nov 2009 15:06:43 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='diablohorn.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/bd7eedfbc78a8b33f00364fc2dabda20?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>DiabloHorn</title>
		<link>http://diablohorn.wordpress.com</link>
	</image>
			<item>
		<title>Stealing stuff from vmdk files</title>
		<link>http://diablohorn.wordpress.com/2009/11/08/stealing-stuff-from-vmdk-files/</link>
		<comments>http://diablohorn.wordpress.com/2009/11/08/stealing-stuff-from-vmdk-files/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 15:06:43 +0000</pubDate>
		<dc:creator>diablohorn</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[vddk]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://diablohorn.wordpress.com/?p=318</guid>
		<description><![CDATA[Well that&#8217;s been a while. I almost forgot my WordPress password. My last post wasn&#8217;t really informative so I thought let me just post one of the projects I&#8217;m currently working on. It&#8217;s far from finished and I doubt if I&#8217;ll release it ones it&#8217;s finished. So for the moment being I&#8217;ll only share my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=318&subd=diablohorn&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Well that&#8217;s been a while. I almost forgot my WordPress password. My last post wasn&#8217;t really informative so I thought let me just post one of the projects I&#8217;m currently working on. It&#8217;s far from finished and I doubt if I&#8217;ll release it ones it&#8217;s finished. So for the moment being I&#8217;ll only share my alpha POC which should be enough to build upon.</p>
<p>Have you ever had the need to get stuff of vmdk files without using any of the visual VMWARE products? Well I have!! Now luckily VMWARE also has detected that there are a lot of people with that need and they have released an excellent API the <a title="VDDK 1.1" href="http://www.vmware.com/support/developer/vddk/" target="_blank">Virtual Disk Development Kit 1.1</a>. Now that stuff is sexy, quote from it&#8217;s website:</p>
<blockquote><p>The Virtual Disk Development Kit (VDDK) is a collection of C libraries, code samples, utilities, and documentation to help you create or access VMware virtual disk storage. The kit includes:</p>
<ul>
<li>The Virtual Disk and Disk Mount libraries, a set of C function calls to manipulate virtual disk files.</li>
<li>C++ code samples that you can build with either Visual Studio or the GNU C compiler.</li>
<li>The Disk Mount utility to access files and file systems in offline virtual disks on Windows or Linux guest virtual machines.</li>
<li>Documentation about the VDDK libraries and the command-line utilities.</li>
<li>The Virtual Disk Manager utility to manipulate offline virtual disk on Windows or Linux (clone, create, relocate, rename, grow, shrink, or defragment).</li>
</ul>
</blockquote>
<p>I assume that after reading the above you&#8217;ll also agree that the possibilities are endless. Now let&#8217;s get cooking.</p>
<p><span id="more-318"></span></p>
<p>First of all here are a variety of reasons why I got interested into the subject of messing with vmdk files(or like Joey from Friends would say, they are threefold):</p>
<ul>
<li>People always assume malware wants to break out of a VM</li>
<li>Currently advise is being given to do financial stuff inside an VM, instead of properly fixing the issue</li>
<li>It&#8217;s fun to mess with new stuff</li>
</ul>
<p>So with the above reasons I started to mess around with the VDDK API. The API boils down to two things in my opinion:</p>
<ul>
<li>raw read/write of the VMDK file</li>
<li>mount the VMDK and perform read/write operations</li>
</ul>
<p>So let&#8217;s mix the reasons with the possibilities and see what kind of probable attacks you could expect from malware:</p>
<ul>
<li>Infect the MBR aka port the stoned bootkit to support VMDK infection(thanks to an anonymous thinker for this idea)</li>
<li>Have the malware insert itself into all VMDK files present on a system</li>
<li>Have the malware steal important file(registry files,sam file,private keys&#8230;etc)</li>
<li>Bypass full disk encryption on VMDK files using for example the <a title="evil maid" href="http://theinvisiblethings.blogspot.com/" target="_blank">Evil Maid</a></li>
<li>Disable all kind of protection software like AV/FW</li>
</ul>
<p>For the moment being I&#8217;m only releasing the alpha code to steal stuff from a VMDK file. There are several reasons why it&#8217;s alpha code, so if it doesn&#8217;t work in your own situation or if it breaks things it&#8217;s all your OWN responsibility. This code has only been tested on a virtual machine with 1 disk, no partitions, no snapshots, known configuration. At the moment the code only works if the virtual machine is powered off.</p>
<p>Oh and you DO need to have the VDDK installed for this to work. The mounting of the VMDK file is done through a driver which needs to be installed. This can all be solved and malware won&#8217;t have this problem cause they will just supply the driver them self. Also don&#8217;t forget to configure your programming environment properly to include the VDDK headers and libraries.</p>
<p><a title="src steal stuff from vmdk files" href="http://pastebin.com/f266b089" target="_blank">Alpha POC</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/diablohorn.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/diablohorn.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/diablohorn.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/diablohorn.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/diablohorn.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/diablohorn.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/diablohorn.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/diablohorn.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/diablohorn.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/diablohorn.wordpress.com/318/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=318&subd=diablohorn&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://diablohorn.wordpress.com/2009/11/08/stealing-stuff-from-vmdk-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">diablohorn</media:title>
		</media:content>
	</item>
		<item>
		<title>still alive</title>
		<link>http://diablohorn.wordpress.com/2009/10/10/still-alive/</link>
		<comments>http://diablohorn.wordpress.com/2009/10/10/still-alive/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 21:24:22 +0000</pubDate>
		<dc:creator>diablohorn</dc:creator>
				<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://diablohorn.wordpress.com/?p=315</guid>
		<description><![CDATA[just busy&#8230; or on a more detailed note:
- real life hogging my online time
Hope to post some interesting stuff soon  
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=315&subd=diablohorn&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>just busy&#8230; or on a more detailed note:</p>
<p>- real life hogging my online time</p>
<p>Hope to post some interesting stuff soon <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/diablohorn.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/diablohorn.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/diablohorn.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/diablohorn.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/diablohorn.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/diablohorn.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/diablohorn.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/diablohorn.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/diablohorn.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/diablohorn.wordpress.com/315/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=315&subd=diablohorn&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://diablohorn.wordpress.com/2009/10/10/still-alive/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">diablohorn</media:title>
		</media:content>
	</item>
		<item>
		<title>The Dirty SQL Tricks</title>
		<link>http://diablohorn.wordpress.com/2009/08/24/the-dirty-sql-tricks/</link>
		<comments>http://diablohorn.wordpress.com/2009/08/24/the-dirty-sql-tricks/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 08:54:36 +0000</pubDate>
		<dc:creator>diablohorn</dc:creator>
				<category><![CDATA[kd-team archive]]></category>
		<category><![CDATA[papers]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[trick]]></category>

		<guid isPermaLink="false">http://diablohorn.wordpress.com/?p=300</guid>
		<description><![CDATA[Another old paper  
DOWNLOAD
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=300&subd=diablohorn&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Another old paper <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a title="dirty sql tricks" href="http://diablohorn.tbhost.eu/distribute/The_Dirty_SQL_Tricks.zip" target="_blank">DOWNLOAD</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/diablohorn.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/diablohorn.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/diablohorn.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/diablohorn.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/diablohorn.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/diablohorn.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/diablohorn.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/diablohorn.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/diablohorn.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/diablohorn.wordpress.com/300/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=300&subd=diablohorn&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://diablohorn.wordpress.com/2009/08/24/the-dirty-sql-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">diablohorn</media:title>
		</media:content>
	</item>
		<item>
		<title>Web Request Maker</title>
		<link>http://diablohorn.wordpress.com/2009/08/24/web-request-maker/</link>
		<comments>http://diablohorn.wordpress.com/2009/08/24/web-request-maker/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 08:51:53 +0000</pubDate>
		<dc:creator>diablohorn</dc:creator>
				<category><![CDATA[kd-team archive]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[web request]]></category>

		<guid isPermaLink="false">http://diablohorn.wordpress.com/?p=298</guid>
		<description><![CDATA[Another old tool  
DOWNLOAD.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=298&subd=diablohorn&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Another old tool <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a title="wrmaker" href="http://diablohorn.tbhost.eu/distribute/WRmaker_KD-Team.rar" target="_blank">DOWNLOAD</a>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/diablohorn.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/diablohorn.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/diablohorn.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/diablohorn.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/diablohorn.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/diablohorn.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/diablohorn.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/diablohorn.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/diablohorn.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/diablohorn.wordpress.com/298/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=298&subd=diablohorn&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://diablohorn.wordpress.com/2009/08/24/web-request-maker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">diablohorn</media:title>
		</media:content>
	</item>
		<item>
		<title>Process Memory Dumper</title>
		<link>http://diablohorn.wordpress.com/2009/08/24/process-memory-dumper/</link>
		<comments>http://diablohorn.wordpress.com/2009/08/24/process-memory-dumper/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 08:50:49 +0000</pubDate>
		<dc:creator>diablohorn</dc:creator>
				<category><![CDATA[kd-team archive]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[dumper]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[process]]></category>

		<guid isPermaLink="false">http://diablohorn.wordpress.com/?p=303</guid>
		<description><![CDATA[Another old tool  
DOWNLOAD
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=303&subd=diablohorn&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Another old tool <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a title="mempdump" href="http://diablohorn.tbhost.eu/distribute/MemPDump.kd_team.rar" target="_blank">DOWNLOAD</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/diablohorn.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/diablohorn.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/diablohorn.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/diablohorn.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/diablohorn.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/diablohorn.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/diablohorn.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/diablohorn.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/diablohorn.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/diablohorn.wordpress.com/303/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=303&subd=diablohorn&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://diablohorn.wordpress.com/2009/08/24/process-memory-dumper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">diablohorn</media:title>
		</media:content>
	</item>
		<item>
		<title>Copy File Time</title>
		<link>http://diablohorn.wordpress.com/2009/08/24/copy-file-time/</link>
		<comments>http://diablohorn.wordpress.com/2009/08/24/copy-file-time/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 08:49:38 +0000</pubDate>
		<dc:creator>diablohorn</dc:creator>
				<category><![CDATA[kd-team archive]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[change time]]></category>
		<category><![CDATA[copy time]]></category>
		<category><![CDATA[file time]]></category>

		<guid isPermaLink="false">http://diablohorn.wordpress.com/?p=306</guid>
		<description><![CDATA[Another old tool.
DOWNLOAD
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=306&subd=diablohorn&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Another old tool.</p>
<p><a title="change time" href="http://diablohorn.tbhost.eu/distribute/ChangeTime.KD-Team.rar" target="_blank">DOWNLOAD</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/diablohorn.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/diablohorn.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/diablohorn.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/diablohorn.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/diablohorn.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/diablohorn.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/diablohorn.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/diablohorn.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/diablohorn.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/diablohorn.wordpress.com/306/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=306&subd=diablohorn&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://diablohorn.wordpress.com/2009/08/24/copy-file-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">diablohorn</media:title>
		</media:content>
	</item>
		<item>
		<title>Corruption &amp; Security</title>
		<link>http://diablohorn.wordpress.com/2009/08/23/corruption-security/</link>
		<comments>http://diablohorn.wordpress.com/2009/08/23/corruption-security/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 18:25:34 +0000</pubDate>
		<dc:creator>diablohorn</dc:creator>
				<category><![CDATA[(anti)Forensics]]></category>
		<category><![CDATA[midnight thoughts]]></category>
		<category><![CDATA[corruption]]></category>
		<category><![CDATA[security by obscurity]]></category>
		<category><![CDATA[truecrypt]]></category>

		<guid isPermaLink="false">http://diablohorn.wordpress.com/?p=308</guid>
		<description><![CDATA[This time it&#8217;s actually an afternoon thought. So let&#8217;s say you will be traveling from one country to another and you have stored your truecrypt container on a remote site. There is a chance someone might steel it and try to brute force it. Usually if you are paranoid enough a brute force on a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=308&subd=diablohorn&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This time it&#8217;s actually an afternoon thought. So let&#8217;s say you will be traveling from one country to another and you have stored your truecrypt container on a remote site. There is a chance someone might steel it and try to brute force it. Usually if you are paranoid enough a brute force on a truecrypt container is well&#8230;useless. Because you are THAT paranoid you actually also want to make sure that a brute force on your container really is futile. So how about corrupting the container in a controlled way? Check out the file format specifications: <a title="TrueCrypt file format specifications" href="http://www.truecrypt.org/docs/?s=volume-format-specification" target="_blank">http://www.truecrypt.org/docs/?s=volume-format-specification</a>.</p>
<p>A good option would be to change the 4bytes of the encrypted TRUE string to some random bytes. Make sure u have a backup of the original bytes(preferably memorized). This should prevent the successful decryption of the container even if someone has the correct password.</p>
<p>It&#8217;s security by obscurity but hey&#8230;you can never have enough layers of security. Another interesting idea is to modify the truecrypt source/binary on your hard disk to use the string FOUR instead of TRUE for the whole decryption verification. So unless they also steel your modified version of the truecrypt binary they will not be able to open it.</p>
<p>Just to make sure&#8230;the above ideas are only an ADDITIONAL security layer and it CAN be broken if detected by an adversary. I just thought it would be fun to have an additional layer of security on my truecrypt containers.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/diablohorn.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/diablohorn.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/diablohorn.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/diablohorn.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/diablohorn.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/diablohorn.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/diablohorn.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/diablohorn.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/diablohorn.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/diablohorn.wordpress.com/308/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=308&subd=diablohorn&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://diablohorn.wordpress.com/2009/08/23/corruption-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">diablohorn</media:title>
		</media:content>
	</item>
		<item>
		<title>Workable Deniability</title>
		<link>http://diablohorn.wordpress.com/2009/08/12/workable-deniability/</link>
		<comments>http://diablohorn.wordpress.com/2009/08/12/workable-deniability/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 22:16:48 +0000</pubDate>
		<dc:creator>diablohorn</dc:creator>
				<category><![CDATA[(anti)Forensics]]></category>
		<category><![CDATA[midnight thoughts]]></category>
		<category><![CDATA[hidden os]]></category>
		<category><![CDATA[os]]></category>
		<category><![CDATA[plausible deniablility]]></category>
		<category><![CDATA[truecrypt]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://diablohorn.wordpress.com/?p=287</guid>
		<description><![CDATA[So you have just finished installing the hidden operating system offered by TrueCrypt. You are however stuck with the following problem&#8230;you need frequent access to the hidden operating system&#8230;which means that you won&#8217;t be using the decoy system that much. According to the guidelines offered by TrueCrypt this means that your plausible deniability is a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=287&subd=diablohorn&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So you have just finished installing the hidden operating system offered by <a title="TrueCrypt" href="http://www.truecrypt.org" target="_blank">TrueCrypt</a>. You are however stuck with the following problem&#8230;you need frequent access to the hidden operating system&#8230;which means that you won&#8217;t be using the decoy system that much. According to the <a title="hidden os" href="http://www.truecrypt.org/docs/?s=hidden-operating-system" target="_blank">guidelines</a> offered by TrueCrypt this means that your <a title="plausible deniability" href="http://en.wikipedia.org/wiki/Plausible_deniability" target="_blank">plausible deniability</a> is a little bit less plausible. How about fixing this? What if you could &#8220;work&#8221; at the same time in both operating systems?</p>
<p>So there I was thinking I could write a blog posting with screenshots and a extended howto. Unfortunatly I am not able to perform the idea on my computer and I got no spare computer left. So I&#8217;m just going to put it out there and maybe someone feels like implementing it and letting me know how well it works.</p>
<p>The whole thing is rather simple, it actually fits in a sentence:</p>
<blockquote><p>Run your decoy OS inside your hidden OS with the help of virtualization techniques.</p></blockquote>
<p>Like stated before the claim is simple. It&#8217;s a shame I got no spare computer around atm to test it out. In theorie it should work fine. Only thing that worries me is the possible evidence that a virtualization application might leave on the booted decoy system, I&#8217;m thinking there is none&#8230;but I haven&#8217;t been able to test this.</p>
<p>So just to be clear this is NOT an idea to go against the TrueCrypt Security Precautions, it&#8217;s just another method to be able to spend more time in a hidden operating system without having to worry that it could be compromised because of forensics on your decoy os. This way all the timestamps and the temp files will be kept up to date in your decoy os while you are working in your hidden os.</p>
<p>To take it one step further&#8230;you could even write a few scripts to startup your email, mark them as read at varieng intervals and surf around on the web. If they ask you why you have script to automate things inside your decoy os, you can just answer with a simple answer: I&#8217;m lazy.</p>
<p>If I get a spare computer anytime soon I&#8217;ll be sure to let you know how this method works out.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/diablohorn.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/diablohorn.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/diablohorn.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/diablohorn.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/diablohorn.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/diablohorn.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/diablohorn.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/diablohorn.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/diablohorn.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/diablohorn.wordpress.com/287/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=287&subd=diablohorn&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://diablohorn.wordpress.com/2009/08/12/workable-deniability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">diablohorn</media:title>
		</media:content>
	</item>
		<item>
		<title>Abuse legitimate code for backdoor purposes</title>
		<link>http://diablohorn.wordpress.com/2009/07/20/abuse-legitimate-code-backdoor-purpose/</link>
		<comments>http://diablohorn.wordpress.com/2009/07/20/abuse-legitimate-code-backdoor-purpose/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 21:04:25 +0000</pubDate>
		<dc:creator>diablohorn</dc:creator>
				<category><![CDATA[midnight thoughts]]></category>
		<category><![CDATA[backdoor]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mitm]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://diablohorn.wordpress.com/?p=283</guid>
		<description><![CDATA[So once in a while you hear about some backdoor which was slipped into some source code. Mostly in C applications&#8230;so I was thinking how would this be done in Java? Most of the times the backdoors you hear about are very nasty and difficult to track down &#8220;bugs&#8221; in the source code like buffer [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=283&subd=diablohorn&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So once in a while you hear about some backdoor which was slipped into some source code. Mostly in C applications&#8230;so I was thinking how would this be done in Java? Most of the times the backdoors you hear about are very nasty and difficult to track down &#8220;bugs&#8221; in the source code like buffer overflows, race conditions and the likes. Since Java doesn&#8217;t really have buffer overflows(I&#8217;m ignoring faulty VM implementations for the moment) I was wondering what an other *hopefully* good way would be to introduce bugs you can exploit?</p>
<p><span id="more-283"></span>So after waking up in the middle of the night(no kidding, it was 3.30 am) I remembered something from back in the day when I coded in Java. Most of the time when working with SSL and Java I got all frustrated because the companies we worked with where not capable of delivering a test environment which had a valid certificate&#8230;so it sucked. A invalid certificate meant, Java would reject the SSL connection and you&#8217;d be wondering why the application didn&#8217;t work. If I&#8217;m correct .NET has something like this to. Like all lazy programmers I used the following code to bypass that(courtesy of google, thanks to the original author though):</p>
<pre class="brush: java;">

private TrustManager[] acceptAllCerts(){
 TrustManager[] trustAllCerts = new TrustManager[]{
 new X509TrustManager() {

 public java.security.cert.X509Certificate[] getAcceptedIssuers() {

 return null;
 }

 public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) {
 }

 public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) {
 }
 }
 };
 return trustAllCerts;
 }
</pre>
<p>Then just create your SSL socket, which uses the above function to accept all certificates.</p>
<pre class="brush: java;">

SSLContext sc = SSLContext.getInstance(&quot;SSL&quot;);
 sc.init(null, acceptAllCerts(), new java.security.SecureRandom());

 SSLSocketFactory factory = (SSLSocketFactory) sc.getSocketFactory();
 sslSocket = (SSLSocket) factory.createSocket(iAddr,this.port);
</pre>
<p>So you are probably wondering why I&#8217;m classifying this as a possible backdoor? Well just imagine&#8230;some big application which relies upon SSL to be sure it has a secure connection. If you normally man in the middle it, with a self signed certificate it will complain, with the above code in place it will not complain about your mitm attack. So you can sniff all the sensitive information you want. Personally I think it&#8217;s best used in combination with a little bit of social engineering, for example add some comments to the code stating one of the following things:</p>
<blockquote>
<ul>
<li>will be fixed by @author: DO NOT TOUCH</li>
<li>only used until the acceptance phase has been completed</li>
<li>hate working overtime? Don&#8217;t touch this code</li>
<li>will be fixed in the next release</li>
</ul>
</blockquote>
<p>It actually works&#8230;I&#8217;ve seen code floating around with similar comments and nobody seems to care. Of course this will not always work and a programmer which actually does his job will notice this. Still if you get it to work ones it&#8217;s a real nice way to get data, without breaching the computer which runs the application and thus leaving less traces around.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/diablohorn.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/diablohorn.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/diablohorn.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/diablohorn.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/diablohorn.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/diablohorn.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/diablohorn.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/diablohorn.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/diablohorn.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/diablohorn.wordpress.com/283/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=283&subd=diablohorn&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://diablohorn.wordpress.com/2009/07/20/abuse-legitimate-code-backdoor-purpose/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">diablohorn</media:title>
		</media:content>
	</item>
		<item>
		<title>Google sub domain indexer</title>
		<link>http://diablohorn.wordpress.com/2009/07/20/google-sub-domain-indexer/</link>
		<comments>http://diablohorn.wordpress.com/2009/07/20/google-sub-domain-indexer/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 20:36:40 +0000</pubDate>
		<dc:creator>diablohorn</dc:creator>
				<category><![CDATA[kd-team archive]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[subdomain]]></category>

		<guid isPermaLink="false">http://diablohorn.wordpress.com/?p=279</guid>
		<description><![CDATA[Actually I called it GDNS but well&#8230;that would be to cryptic as a blog item title. This is also from the KD-Team archives. Enjoy. All it does is *TRY* and find all sub domains for a given domain with the use of google.
http://pastebin.com/f720c4036
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=279&subd=diablohorn&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Actually I called it GDNS but well&#8230;that would be to cryptic as a blog item title. This is also from the KD-Team archives. Enjoy. All it does is *TRY* and find all sub domains for a given domain with the use of google.</p>
<p><a title="GDNS" href="http://pastebin.com/f720c4036" target="_blank">http://pastebin.com/f720c4036</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/diablohorn.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/diablohorn.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/diablohorn.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/diablohorn.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/diablohorn.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/diablohorn.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/diablohorn.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/diablohorn.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/diablohorn.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/diablohorn.wordpress.com/279/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=diablohorn.wordpress.com&blog=5319799&post=279&subd=diablohorn&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://diablohorn.wordpress.com/2009/07/20/google-sub-domain-indexer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">diablohorn</media:title>
		</media:content>
	</item>
	</channel>
</rss>