<?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>habdas.org &#187; Digital Security</title>
	<atom:link href="http://www.habdas.org/category/digital-security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.habdas.org</link>
	<description>A tech blog by Josh Habdas</description>
	<lastBuildDate>Sat, 04 Feb 2012 21:23:42 +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>Managing passwords on Android</title>
		<link>http://www.habdas.org/2010/10/10/managing-passwords-on-android/</link>
		<comments>http://www.habdas.org/2010/10/10/managing-passwords-on-android/#comments</comments>
		<pubDate>Sun, 10 Oct 2010 17:48:19 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Data Management]]></category>
		<category><![CDATA[Digital Security]]></category>
		<category><![CDATA[Mobile Computing]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[data privacy]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[password management]]></category>

		<guid isPermaLink="false">http://www.habdas.org/?p=1386</guid>
		<description><![CDATA[After installing Android on my HD2 I quickly became challenged with the task of recalling passwords for frequently used applications like Last.fm, Mint, Facebook, Twitter, Gmail, Foursquare, et cetera. While recalling passwords for all of these apps might be painful &#8230; <a href="http://www.habdas.org/2010/10/10/managing-passwords-on-android/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After <a href="http://www.habdas.org/2010/08/21/running-android-on-htc-hd2-leo/">installing Android on my HD2</a> I quickly became challenged with the task of recalling passwords for frequently used applications like Last.fm, Mint, Facebook, Twitter, Gmail, Foursquare, et cetera. While recalling passwords for all of these apps might be painful for some, it&#8217;s a cinch for those managing their passwords using one of the many available ports of the open-source <a href="http://keepass.info/">KeePass Password Safe</a>. For Android, the KeePass port I&#8217;m using is <a href="http://www.keepassdroid.com/">KeePassDroid</a>.</p>
<p><span id="more-1386"></span></p>
<blockquote class="pull"><p>KeePassDroid makes recalling passwords as easy as copy/paste and also includes a password generator for creating strong passwords.</p></blockquote>
<p>KeePass ports like KeePassDroid store passwords in an encrypted file that can be easily shared between devices. That&#8217;s where <a href="https://www.dropbox.com/">Dropbox</a> comes in. When used together with DropBox, password files can be automatically synced between platforms and across devices.</p>
<p>To use KeePass and Dropbox together to manage passwords that easily sync between devices:</p>
<ol>
<li>Install DropBox on your PC/Mac and Android device</li>
<li>Put a KeePass port on each of the same devices</li>
<li>Move the KeePass KDB database files to the Dropbox cloud</li>
</ol>
<p>That&#8217;s it! Those concerned about storing their passwords in a cloud can rest easy knowing the KeePass databases are stored encrypted using some of the strongest ciphers in existence today. So unless you&#8217;re protecting the kind of info that might one day end up on <a href="http://wikileaks.org/">WikiLeaks</a>, you&#8217;ve got little to worry about in storing your KeePass data online.<br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-0082825360919078";
/* habdas.org banner ad */
google_ad_slot = "2440223718";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.habdas.org/2010/10/10/managing-passwords-on-android/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Anatomy of a Google 302 Redirect Hijack</title>
		<link>http://www.habdas.org/2009/10/18/google-302-redirect-hijack/</link>
		<comments>http://www.habdas.org/2009/10/18/google-302-redirect-hijack/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 00:48:07 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Digital Security]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[proxies]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[social engineering]]></category>
		<category><![CDATA[user agent]]></category>

		<guid isPermaLink="false">http://www.habdas.org/?p=921</guid>
		<description><![CDATA[Recently while Googling &#8220;Olla de Carne&#8221; (Costa Rican beef stew) my browser was hijacked after taking a search results link. Rather than receiving a list of ingredients, the link redirected the browser to a bogus antivirus site that mimicked Windows and faked &#8230; <a href="http://www.habdas.org/2009/10/18/google-302-redirect-hijack/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently while Googling &#8220;Olla de Carne&#8221; (Costa Rican beef stew) my browser was <a href="http://en.wikipedia.org/wiki/Page_hijacking">hijacked</a> after taking a search results link. Rather than receiving a list of ingredients, the link redirected the browser to a bogus antivirus site that mimicked Windows and faked an integrated Explorer virus scan (see screenshot below or <a class="youtube" href="http://www.youtube.com/v/gnZSOMdp9oI">watch the video</a>).<br />
<span id="more-921"></span></p>
<div id="attachment_1017" class="wp-caption alignright" style="width: 310px"><a class="youtube" href="http://www.youtube.com/v/gnZSOMdp9oI"><img class="size-medium wp-image-1017 colorbox-921" title="Fake Scan" src="http://www.habdas.org/wp-content/uploads/2009/10/totalscam-fauxdialog-300x248.png" alt="Fake virus scan running in Google Chrome" width="300" height="248" /></a><p class="wp-caption-text">Fake virus scan running in Google Chrome</p></div>
<p>After a few seconds on the page the following occurred:</p>
<ul>
<li>Result page successfully hijacked and a faux Windows Explorer interface loaded.</li>
<li>A fake virus scan ran in the look-alike Explorer window, conveniently uncovering trojans and other malware.</li>
<li>Alerts, dialogs and phony windows displayed in an attempt to execute a little <a href="http://en.wikipedia.org/wiki/Social_engineering_(security)">social engineering</a>.</li>
</ul>
<p>After attempting to interact with the document the following occurred:</p>
<ul>
<li>A potentially threatening program file download initiated if you clicked on anything in the page.</li>
<li>Additional warning dialog and pop-up window displayed on attempting to unload the page (e.g. hit the back button).</li>
<li>Intermittently, the Google Chrome 3.0 back-button and tab [x] icon stopped functioning as expected.</li>
</ul>
<p>The last point was of particular interest at first, as it is not like modern browsers to allow websites to modify browser functionality. But after some additional research, it was clear the hijack was more complex than a page titled with search engine optimization in mind. This article will study the hijacking in some technical detail, discuss the black hat SEO techniques used to get the rogue application listed on Google and how the app was able modify the expected functionality of browser controls in Chrome 3.0.</p>
<h2>The bait and switch</h2>
<p>How does activating a seemingly innocuous (and tasty) link from Google land someone on a potentially dangerous page? 302. <a href="http://en.wikipedia.org/wiki/HTTP_302">HTTP 302</a> that is.</p>
<p>After locating the offending link on Google, I used a client-side proxy to trap the HTTP headers for a play-by-play review:</p>
<pre>GET http://woodstockfolkmusic.com/bftwe/tiijy/carne.php HTTP/1.1
HTTP/1.1 302 Found
GET http://goodstats1.net/in.cgi?2 HTTP/1.1
HTTP/1.1 302 Found
GET http://sunstats1.net/in.cgi?default HTTP/1.1
HTTP/1.1 302 Found
GET http://sunstats1.net/redirect3/ HTTP/1.1
HTTP/1.1 302 Found
GET http://bookletantcars.cn/?pid=283s01&amp;sid=2a15a0 HTTP/1.1
HTTP/1.1 302 Found
GET http://wwwantispyware10.com/scan1/?pid=283s1&amp;engine=%3D3W59jDuNTIuMTUxLjE1MyZ0aW1lPTEyNTE2NYcMOAkN HTTP/1.1
HTTP/1.1 200 OK</pre>
<p>Stepping through the sequence we can see the initial GET request followed by a 302 redirect response. Several redirects later and the browser successfully arrives at destination malware, beef stew long forgotten.</p>
<h2>Black hat inside</h2>
<p>The next thing I tried was to analyze the <a href="http://www.habdas.org/wp-content/uploads/2009/10/carne.php">source of the PHP file</a> cataloged by Google, which was not difficult for two reasons:</p>
<ol>
<li>Directory listing was enabled on the web server, and</li>
<li>Navigating directly to the PHP file caused the page to load without redirect.</li>
</ol>
<p>The PHP file was stowed away on <a href="http://woodstockfolkmusic.com/">woodstockfolkmusic.com</a> (which appears to be a legitimate folk music site based out of Illinois) along with some 300 similar PHP files, covering a range of topics from Alba to Wisconsin. The files found contained mostly deprecated HTML markup (remember the &lt;marquee&gt; tag anyone?) and no PHP script or META tags. The files were <a href="http://en.wikipedia.org/wiki/Keyword_stuffing">stuffed with hundreds of keywords</a>, a form of <a href="http://en.wikipedia.org/wiki/Spamdexing">spamdexing</a> I thought was no longer practiced. Nevertheless the result still appeared on Google, possibly with a little help from <a href="http://en.wikipedia.org/wiki/Cloaking">cloaking</a>.</p>
<h2>Engage the cloaking device</h2>
<p>Curious as to why the PHP files (with no PHP script or META tags, mind you) would redirect links coming from Google, but not when loaded directly, I again pulled up a client-side proxy for closer investigation. Below are the results of several slightly modified HTTP requests for the file initially requested by Google. Each request contains a modified Referer <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html">request-header field</a>.</p>
<p><strong>First request</strong><br />
Hacked the Referer field to point to the Google domain.</p>
<pre>GET http://woodstockfolkmusic.com/bftwe/tiijy/carne.php HTTP/1.1
Host: www.google.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.27 Safari/532.0 Paros/3.2.13
Referer: http://www.google.com/
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3</pre>
<p><strong>First response</strong><br />
Hijack successful; browser redirected to bogus antivirus page.</p>
<pre>HTTP/1.1 200 OK
Date: Sun, 18 Oct 2009 22:33:31 GMT
Server: Apache
X-Powered-By: PHP/5.2.8
Connection: close
Content-Type: text/html</pre>
<p><strong>Second request</strong><br />
Hacked the Referer field to a domain other than Google.</p>
<pre>GET http://woodstockfolkmusic.com/bftwe/tiijy/carne.php HTTP/1.1
Host: woodstockfolkmusic.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.27 Safari/532.0 Paros/3.2.13
Referer: http://www.habdas.org/
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3</pre>
<p><strong>Second response</strong><br />
No hijack; browser sent directly to indexed page.</p>
<pre>HTTP/1.1 200 OK
Date: Sun, 18 Oct 2009 22:31:36 GMT
Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.6
X-Powered-By: PHP/5.2.6
Content-Type: text/html</pre>
<p><strong>Additional testing</strong><br />
Additional testing revealed page redirection would occur only when the Referer field was included in the HTTP request header, and only when the field value contained certain phrases. Two phrases found to trigger the hijack include &#8220;google&#8221; and &#8220;yahoo&#8221; (case insensitive) while other likely phrases such as &#8220;bing&#8221;, &#8220;msn&#8221;, &#8220;aol&#8221; and &#8220;ask&#8221; did not.</p>
<p><strong>Note:</strong> I am I not currently aware if Yahoo is susceptible this particular brand of page hijacking. If you&#8217;ve seen it on Yahoo or know of any examples, please comment and let us know.</p>
<p>Testing for the presence of phrases &#8220;Googlebot&#8221;, &#8220;googlebot&#8221; or &#8220;google&#8221; and &#8220;bot&#8221; (separated) all resulted in the 302 redirects, which leaves some of the following possibilities:</p>
<ul>
<li>The 302 redirect (likely of the .htaccess kind found in the <a href="http://blog.javacoolsoftware.com/2008/12/anti-virus-2009-search-engine-redirect-hacks/">Antivirus 2009 approach</a>) was turned on after the page was indexed.</li>
<li>The web crawler that originally accessed the page did not pass the phrases &#8220;google&#8221; or &#8220;yahoo&#8221; in the Referer [<em>sic</em>] field in the HTTP request header.</li>
</ul>
<p>Monitoring over a several day period landed the browser on some of the following domains, each with their own similar virus scan or some derivation:</p>
<ul>
<li>wwwantispyware10.com</li>
<li>topantimalwarescan7.com</li>
<li>top-antispyware-scan8.com</li>
<li>computer-protection11.com</li>
<li>webprosecurity.com</li>
<li>guardpconline.com</li>
</ul>
<h2>The Chrome 3.0 Browser Button Issue</h2>
<p>The Chrome button issues are happening on and off. Some of the changes in behavior I have witnessed using Chrome v3.0.195.27 (Win):</p>
<ul>
<li>Browser unable to navigate backwards in history;</li>
<li>Navigation backwards in history only after several tries; and</li>
<li>Tab hangs and cannot be closed, and Windows clocks, until the pop-up notification window is closed.</li>
</ul>
<p><script type="text/javascript"><!--
google_ad_client = "ca-pub-0082825360919078";
/* habdas.org banner ad */
google_ad_slot = "2440223718";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.habdas.org/2009/10/18/google-302-redirect-hijack/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Password Protection with PassKeeper</title>
		<link>http://www.habdas.org/2008/12/30/password-protection-with-passkeeper/</link>
		<comments>http://www.habdas.org/2008/12/30/password-protection-with-passkeeper/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 05:01:06 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Data Management]]></category>
		<category><![CDATA[Digital Security]]></category>
		<category><![CDATA[data privacy]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[password management]]></category>

		<guid isPermaLink="false">http://www.habdas.org/?p=194</guid>
		<description><![CDATA[After recently losing a USB flash drive with all my passwords on it, I was grateful for the precaution I took by storing my password data encrypted using Brad Greenlee’s PassKeeper password manager. PassKeeper is a Windows utility that allows &#8230; <a href="http://www.habdas.org/2008/12/30/password-protection-with-passkeeper/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After recently losing a USB flash drive with all my passwords on it, I was grateful for the precaution I took by storing my password data encrypted using Brad Greenlee’s PassKeeper password manager.</p>
<blockquote class="pull"><p><a title="PassKeeper" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.passkeeper.com');" href="http://www.passkeeper.com/">PassKeeper</a> is a Windows utility that allows you to keep a list of accounts with usernames, passwords, and notes. This list is stored encrypted.</p></blockquote>
<p>The utility is freeware and has been available for public download since the mid-90’s. Data are encrypted using the 56-bit <a title="DES cipher" onclick="javascript:pageTracker._trackPageview('/outbound/article/en.wikipedia.org');" href="http://en.wikipedia.org/wiki/Data_Encryption_Standard">DES</a> cipher and stored in an DAT file in the application’s root directory. The size of the application (189 kilobytes) and the data file (~400 bytes/entry) are lightweight and can easily be carried around on any USB flash drive.</p>
<p><span id="more-194"></span></p>
<div id="attachment_272" class="wp-caption alignleft" style="width: 337px"><img class="size-full wp-image-272 colorbox-194" title="PassKeeper" src="http://www.habdas.org/wp-content/uploads/2008/12/passkeeper.png" alt="Image of PassKeeper running under Windows Vista" width="327" height="236" /><p class="wp-caption-text">Image of PassKeeper running under Windows Vista</p></div>
<p>The application’s user interface (pictured left) is straight-forward and easy to use, and the system-oriented UI design has become more visually appealing as Windows has evolved.</p>
<p>One thing that hasn&#8217;t evolved, however, is the utility’s application icon (not pictured). The application icon has looked outdated since about Windows 98. But fixing the blemish is easy enough. Just create a Windows Shortcut and use a different icon. The imageres.dll located in %windir%\system32\ in Windows Vista contains a decent-looking padlock icon that can be used if desired.</p>
<p>With a little practice, the entire utility can be navigated using only the keyboard, and passwords can be quickly copied from PassKeeper and pasted into online forms and desktop applications without the use of a mouse. Coincidentally, the copy/paste behavior may help enhance security by masking password keystrokes from key loggers.</p>
<p>Over time, one noticeable drawback of using PassKeeper is that it does not provide a built-in password generator. Another is that passwords copied to the clipboard are not automatically cleared after a set amount of time, requiring the user to do so by some other means—if at all. There is also a bug with account names using certain special characters, though in my ten years using the utility I only saw it once. According to program readme.txt on <a href="http://www.passkeeper.com">www.passkeeper.com</a> the utility is limited to 128 entries, but offers a simple workaround for the limitation.</p>
<p>Overall, PassKeeper is a straight-forward, easy-to-use utility for managing and securing personal passwords and account data. And though it&#8217;s starting to show its age, it continues run stably as Windows evolves. If you decide to use PassKeeper and carry around password data on a USB flash drive, the 56-bit encryption used should buy most users plenty of time to change any sensitive passwords should the device be lost.</p>
<h2>Other password managers worth checking out</h2>
<ul>
<li><a style="color: #551a8b;" onmousedown="return clk(this.href,'','','res','1','&amp;sig2=okBwLzSvdqW1m49pmkxraA')" href="http://keepass.info/">KeePass Password Safe</a> — A free open source password manager, which helps you to manage your passwords in a secure way.</li>
<li><a href="http://www.keepassx.org/">KeePassX</a> — Platform-independent port of KeePass Password Safe that works on Windows, Mac and Linux to name a few. Compatible with existing KeePass password databases.</li>
<li><a href="http://www.keepassdroid.com/">KeePassDroid</a> — A port of the KeePass Password Safe for the Android platform. Try it in conjunction with DropBox and KeePassX for a great cross-platform personal security solution.</li>
</ul>
<h2>Password managers to pass up</h2>
<p><a title="RoboForm" href="http://www.roboform.com/">RoboForm</a> — Though it has a version specifically for use with USB flash drives, RoboForm is reliant on a web browser to function; it is not suitable for managing desktop application passwords and may not function in all browsers.<br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-0082825360919078";
/* habdas.org banner ad */
google_ad_slot = "2440223718";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.habdas.org/2008/12/30/password-protection-with-passkeeper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: www.habdas.org @ 2012-02-05 00:18:27 -->
