<?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>Chakraborty Software &#187; Identity Theft</title>
	<atom:link href="http://www.chakraborty.ch/category/identity-theft/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chakraborty.ch</link>
	<description>Information Security Consulting Services</description>
	<lastBuildDate>Tue, 18 Oct 2011 09:12:47 +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>Example Password Cracking Speeds</title>
		<link>http://www.chakraborty.ch/pen-testing/example-password-cracking-speeds/</link>
		<comments>http://www.chakraborty.ch/pen-testing/example-password-cracking-speeds/#comments</comments>
		<pubDate>Fri, 14 Jan 2011 08:34:14 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Authentication]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Crypto]]></category>
		<category><![CDATA[Identity Theft]]></category>
		<category><![CDATA[Pen Testing]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/?p=443</guid>
		<description><![CDATA[A colleague recently shared a link from Lockdown (an unfortunately no-longer updated home computer security site) describing comparative times required to crack various passwords, using different types of platforms / processing speed. Unfortunately there&#8217;s no information about hash algorithms, or salt mechanisms. Original link here.]]></description>
			<content:encoded><![CDATA[<p>A colleague recently shared a link from <a href="http://www.lockdown.co.uk/" target="_blank">Lockdown</a> (an unfortunately no-longer updated home computer security site) describing comparative times required to crack various passwords, using different types of platforms / processing speed.</p>
<p>Unfortunately there&#8217;s no information about hash algorithms, or salt mechanisms.</p>
<th></th>
<td colspan="0"><span style="font-size: 13px;"><a href="http://www.lockdown.co.uk/?pg=combi#classE" target="_blank">Original link here.</a></span></td>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/pen-testing/example-password-cracking-speeds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firesheep and Credentials Sniffing &#8212; First Impressions</title>
		<link>http://www.chakraborty.ch/exploits/firesheep-and-credentials-sniffing</link>
		<comments>http://www.chakraborty.ch/exploits/firesheep-and-credentials-sniffing#comments</comments>
		<pubDate>Tue, 26 Oct 2010 18:00:35 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Crypto]]></category>
		<category><![CDATA[Exploits]]></category>
		<category><![CDATA[Identity Theft]]></category>
		<category><![CDATA[Network Security]]></category>
		<category><![CDATA[Privacy]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/?p=298</guid>
		<description><![CDATA[Firesheep makes it tragically easy to steal your logins to many web pages, in certain types of network environments.  Follow some basic security precautions and you will be much better protected than most people.]]></description>
			<content:encoded><![CDATA[<p>Short summary for the impatient:  Firesheep makes it tragically easy to steal your logins to many web pages, in certain types of network environments.  Follow some basic security precautions and you will be much better protected than most people.</p>
<p>The recently released <a href="http://codebutler.com/firesheep" target="_blank">Firesheep</a> <a href="http://www.mozilla.com/en-US/firefox/firefox.html?from=getfirefox" target="_blank">Firefox</a> plugin demonstrates how simple it is to sniff logins and sessions on open, shared networks.  I spent a little bit of time playing with it; it is dirt-easy to install (OSX requires a <a href="http://github.com/codebutler/firesheep/issues/issue/9/" target="_blank">workaround</a> when running it in combination with FileVault &#8212; the fix is to move the extension directory somewhere outside of FileVault, such as the Firefox application directory in /Applications and to create a soft link back to the extensions directory.)  Although French ISPs are generally very good about providing their customers with home routers/firewalls with wireless encryption enabled by default, and it is thus pretty difficult in Paris to find open networks in comparison with other countries (except for the open access Free/O-Zone/SFR/etc. commercial ones), there are always a few.  Jumping on one of these, I had someone else&#8217;s Facebook account within 3 seconds (no, I didn&#8217;t use it, not that interested in other people&#8217;s private lives.)</p>
<p>In short, the plugin allows even a non-technical user to open a sidebar in a browser, click on &#8220;start sniffing&#8221;, and within fractions of a second, obtain both session cookies and username/password combinations for a wide range of popular web sites (Facebook, Twitter, and Gmail, among others, are configured by default, while the plugin allows easy adding of more pages.)  Sniffed accounts show up as icons on the sidebar &#8212; by clicking on one, you&#8217;re immediately logged into that user&#8217;s web account.</p>
<p>Taking this a step further, the (not as user-friendly, for now) <a href="http://jonty.co.uk/idiocy" target="_blank">Idiocy</a> Python script (thanks to <a href="https://www.88.net/" target="_blank">Thomas</a> for pointing it out) automatically posts a link to <a href="http://jonty.co.uk/idiocy-what" target="_blank">this page</a> &#8220;explaining what has happened&#8221; to a compromised Twitter account.</p>
<p>This is not entirely a problem of unencrypted wireless networks.  Any sufficiently determined user can attack a wireless network secured with WEP or certain types of WPA.  Even WPA2 may be vulnerable to brute force password cracking (<a href="http://technet.microsoft.com/en-us/library/cc756109(WS.10).aspx" target="_blank">standard password/passphrase best practice applies</a>), although due to its key management methods, a compromised WEP environment allows a sniffer to access traffic from all users since the same key is shared.</p>
<p>Furthermore, malicious administrators with access to any sort of network choke point have access to this traffic anyway.  Most users are protected from such abuse by circumstance or pure statistics;</p>
<ul>
<li>many (especially European) countries have extremely strict limitations on what an employer can legally do in terms of intercepting traffic</li>
<li>a network administrator likely has much better things to do than sniff traffic</li>
<li>any choke point handling a large enough amount of data to be significant as a threat faces the above problem, but even more so</li>
</ul>
<p>Security through obscurity is not a problem, but as has been pointed out elsewhere, if you&#8217;re in a group of people running from the bear, you don&#8217;t have to be fastest, just don&#8217;t be slowest.  Generally, any sort of network encryption (yes, even WEP) is a good start, and users of mobile data services and fixed-line networks are generally not at realistic risk.  WEP keys can be <a href="http://www.cyberciti.biz/tips/howto-crack-wirless-wep-104.html" target="_blank">compromised in a few minutes</a> under optimal conditions; using reinjection and deauthentication, enough packets can be captured reasonably quickly for this to work.  I maintain, though, that an attacker faced with an unencrypted network and even a weakly encrypted one will first go for the former &#8212; but a WEP network is only as secure as the most malicious person using it (whether they got on legitimately or not.)  Mr. Lakofski has a very valid point about shared WEP networks (e.g. hotels) insofar as their user base is a lot wider than a private one (which you should set to WPA2 anyway.)</p>
<p>Lastly, there are other, more amusing ways of collecting user data, beyond trojans, keyloggers, and <a href="http://xkcd.com/792/" target="_blank">this sort of thing</a>.  A really amusing bit of evil villainery would have been for Eric Butler to have actually included a password stealing trojan in Firesheep itself &#8212; thus obtaining massive numbers of unsuspecting would-be crackers&#8217; credentials as they connect to Facebook to boast about their &#8220;exploits&#8221;.  Yes, that would be illegal and bad, but still pretty funny.</p>
<p>Most popular websites allow SSL; Facebook, Google search, Gmail and Twitter all allow https:// connections (although in Facebook&#8217;s case, clicking on a Facebook link within the site redirects to a non-SSL page.)  Other services (LinkedIn, Amazon, Plaxo, and most social news sites e.g.) redirect https:// URLs to plain-text, at least for pages that do not involve entry of payment details or password changes.   Still others mix SSL- and non-SSL elements in their pages, which is about as good as having no SSL at all.  Most modern browsers, and some older ones, <a href="http://i.imgur.com/wMN57.png" target="_blank">display a warning</a> when this is the case.</p>
<p>Widespread SSL use is a good thing.  While it is computationally more expensive than cleartext, even SSL using self-signed certificates is an improvement &#8212; this is why I <a href="http://www.chakraborty.ch/best-practices/firefox-3s-horrible-unsigned-certificate-handling/" target="_blank">object strenuously</a> to the way some browsers handle self-signed certificates; obnoxious warning messages discourage casual users from using crypto for the sake of crypto (rather than authenticating a web site.)  SSL is not necessarily a fix, due to the fact that a cookie not marked as &#8216;secure&#8217; is still transmitted in clear text.  Once a user is authenticated, the certificate may be intercepted using passive man in the middle.  There is not much you can do about this, except to bug website owners / web app coders to fix the problem.</p>
<p><a href="http://www.thoughtcrime.org/software/sslstrip/" target="_blank">SSLStrip</a> can also force a transmission to drop into cleartext.   One fix for this is <a href="http://en.wikipedia.org/wiki/Strict_Transport_Security" target="_blank">Strict Transport Security</a>, currently supported in several browsers.  <a href="http://userscripts.org/scripts/show/8861" target="_blank">FFixer</a> also lets you force SSL (Facebook chat may not work.)  Another workaround is <a href="https://www.eff.org/https-everywhere" target="_blank">HTTPS-Everywhere</a> (currently Firefox 3 only).</p>
<p>Gunnar Atli Sigurdsson of the <a href="http://www.hi.is/" target="_blank">University of Iceland</a> has recently released <a href="http://notendur.hi.is/~gas15/FireShepherd/" target="_blank">FireShepherd</a>, which floods nearby open wireless networks with packets designed to disable nearby Firesheep instances at ca. 0.5 second intervals.</p>
<p>Computerworld has an <a href="http://www.computerworld.com/s/article/9193201/How_to_protect_against_Firesheep_attacks?taxonomyId=17&amp;pageNumber=2" target="_blank">article</a> about protecting against Firesheep that&#8217;s worth a look.</p>
<p><em>Update:</em> the <a href="http://www.zscaler.com/blacksheep.html" target="_blank">Blacksheep Firefox plugin</a> seeds bogus session information to see if Firesheep is being used, then warns if it detects an attempt to hijack that session.  It&#8217;s not a defense, but could be a fun toy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/exploits/firesheep-and-credentials-sniffing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Your Gmail Account Has Been Hacked&#8230;</title>
		<link>http://www.chakraborty.ch/exploits/your-gmail-account-has-been-hacked/</link>
		<comments>http://www.chakraborty.ch/exploits/your-gmail-account-has-been-hacked/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 22:50:21 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Exploits]]></category>
		<category><![CDATA[Identity Theft]]></category>
		<category><![CDATA[Incident Response]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/?p=225</guid>
		<description><![CDATA[What to do when your webmail account has been hacked.]]></description>
			<content:encoded><![CDATA[<p>&#8230;cracked, compromised, stolen, whatever.</p>
<div id="attachment_226" class="wp-caption aligncenter" style="width: 854px"><a href="http://www.chakraborty.ch/wp-content/uploads/2010/10/hacked.png"><img class="size-full wp-image-226 " title="hacked" src="http://www.chakraborty.ch/wp-content/uploads/2010/10/hacked.png" alt="Message from a friend" width="844" height="183" /></a><p class="wp-caption-text">Die in a fire, you Nigerian shit.</p></div>
<p>The first symptom, as far as you can tell, is probably a bunch of your friends asking you casually, what the kind of crap is that you&#8217;ve been sending them.  It&#8217;s only when you ask them to show you the messages they&#8217;re referring to that you realize that some Nigerian, Russian, Chinese, (or, for that matter, American, French, Japanese, what-have-you) son of a bitch controls your account and is blasting out garbage to all your friends.</p>
<p>Even more nefariously, a lot of these are plausible-sounding messages, like one I received recently from an email contact purporting to be stranded in Madrid after his wallet, passport, keys, phone, and plane ticket were stolen, begging his friends to call him on a local number for instructions on how to wire some emergency cash.  Frequently, the only thing that gives such messages away at a cursory glance is the piss-poor spelling and grammar used by the scam artists responsible.</p>
<p>This post is sort-of directed at the non-technical people, who maybe don&#8217;t check their personal mails all that often.  Yes, it&#8217;s confusing, and yes, it&#8217;s not fair, and yes it&#8217;s hard work.  So are taxes.  If you&#8217;re not lucky, not only do all your friends now think you&#8217;re an idiot, but all your email has been deleted.</p>
<p>First, see if the mail is still around.  Check the trash and &#8216;all mail&#8217; links.  Maybe you&#8217;re lucky.  Google does not restore deleted mail from backups.</p>
<p>To make sure nobody is able to hack your account again (i.e. with backdoors) go to</p>
<p>https://www.google.com/accounts/ManageAccount?service=mail&#038;hl=en</p>
<p>Under &#8220;personal addresses&#8221; go to &#8220;email addresses&#8221; (top right).  Make  absolutely sure that any addresses for which password recovery is  enabled are only ones you trust.  Otherwise an attacker could just say  &#8220;hey, I want a password reset sent to my address&#8221;.  Smart attackers  leave their own addresses there.</p>
<p>To understand how this could have happened, here are some more common ways in which someone can &#8220;hack&#8221; your gmail account:</p>
<ul>
<li>trojan on your PC</li>
<li>sniffed password (you do use SSL by default, right?  It&#8217;s a gmail option to always force SSL)</li>
<li>sniffer on a shared system (Internet cafe)</li>
<li>untrusted app</li>
<li>xss / cookie stealing</li>
</ul>
<p><strong>Trojans</strong></p>
<p>That is short for &#8220;trojan horses&#8221;.  These are often <a href="http://en.wikipedia.org/wiki/Trojan_horse_%28computing%29" target="_blank">self-replicating viruses</a> either downloaded from malicious web sites that were hacked (in some cases you won&#8217;t even know, you may be using an older browser like Internet Explorer 6) or via an unpatched Adobe Acrobat, or Flash.  May also come from someone attacking your PC by network, say in an Internet cafe.  You may not see these;  you open up a website like you usually do, but it&#8217;s been compromised, and boom, that&#8217;s it.  Invisible, annoying.  Or, your laptop/workstation may be attacked remotely, using a security hole in the operating system.</p>
<p>How to deal with them?  Regularly update your browser to the latest version and install operating system security patches.  Make sure you have an up to date virus scanner.  Do regular scans.  Turn on your PC&#8217;s firewall (google for Windows firewall or Mac firewall.  Both systems have a semi-decent one built in that will at least give you rudimentary protection.)  Avoid using open wireless networks and visiting sites you don&#8217;t know whenever possible.</p>
<p><strong>Sniffed password</strong></p>
<p>You do have a strong password, right?  Strong passwords have</p>
<ul>
<li>8 characters or more</li>
<li>a mix of upper/lowercase letters</li>
<li>numbers thrown in</li>
<li>non-alphanumeric characters (e.g. !, ?)</li>
</ul>
<p>Use mnemonics to more easily remember passwords (Ih8h@ck3rs!) or pass phrases (actual sentences) if a website / application supports them.</p>
<p>Your password can still be stolen by being &#8220;sniffed&#8221; &#8212; this means that you are logging into Gmail without the connection being encrypted.  Have you bought stuff online and seen the little lock at the bottom of the page?  That means your browser is using encryption to make sure anyone listening in cannot &#8220;sniff&#8221; your password.  SSL, or &#8220;secure socket layer&#8221; is that little lock on the web browser.  To enable it by default in gmail, go to<a href="https://mail.google.com/mail/?shva=1#settings" target="_blank"> settings-&gt;general-&gt;browser connection</a>.  Set it to &#8216;always use ssl&#8217;</p>
<p>Next, <a href="https://appengine.google.com/start" target="_blank">check your applications</a> and make sure there&#8217;s only stuff there that you yourself enabled.  Delete anything you didn&#8217;t.</p>
<p>Lastly, on your gmail main page, go to <a href="https://mail.google.com/mail/?shva=1#settings/labs" target="_blank">google labs</a> (the green erlenmeyer flask icon at the top right next to the &#8220;settings&#8221; link) and make sure that only labs apps you yourself enabled are active.  Deactivate all others.</p>
<p><strong>Sniffing on a shared system / Internet cafe</strong></p>
<p>Password sniffing is quite difficult when, say, you&#8217;re connecting from home.  It is _very_ easy when you are at an Internet cafe.  Wireless connections can be encrypted, via WEP or, better, WPA or WPA2, both supported by almost all wireless cards in laptops.  If a wireless connection requires a password, it&#8217;s usually at least somewhat safe.  WEP is not so much safe, but it&#8217;s better than nothing.  If you are at an Internet cafe using a common PC, you risk that someone will have installed a piece of software that can &#8220;read&#8221; whatever password info you type (known as a &#8220;<a href="http://en.wikipedia.org/wiki/Keylogger" target="_blank">keylogger</a>&#8220;).  There are ways to ensure that this doesn&#8217;t happen (e.g. the system is reinstalled from scratch after each reboot &#8212; not so complex) but that is tough.  Your best defense is to buy a small netbook or something and take it with you.</p>
<p>When using an Internet cafe, <em>never</em> click anything that offers to remember password.  When you log out, <em>always</em> clear any stored information, e.g. cache, passwords and cookies.   <a href="http://www.aboutcookies.org/Default.aspx?page=2" target="_blank">Here is a link that explains how</a> on various browsers.</p>
<p>Furthermore, most modern browsers have a feature called &#8220;private browsing&#8221; or some variation thereof.   This means that nothing is stored while you&#8217;re online.  Use it.</p>
<p><strong>Untrusted applications</strong></p>
<p>See above with google apps.  Also, when you download software or docs, obviously never run/open anything you do not explicitly trust.  Have a good virus scanner, run it regularly.</p>
<p><strong>Cross-site scripting (XSS) / cookie stealing</strong></p>
<p>Cookies are bits of information that websites use to remember things about you &#8212; for example, when you log into amazon and return later, a cookie is what is placed on your PC to let you auto login again.</p>
<p>These can be &#8220;stolen&#8221; and used to impersonate you, i.e. when you use an Internet cafe system.  To help protect against this, whenever you are done browsing, manually log out of everything, and go to your browser&#8217;s &#8220;clear history&#8221; link (e.g. on Firefox, under tools-&gt; clear recent history).</p>
<p>They can also be stolen while you are online, although that is a bit more complex.  XSS is &#8220;cross site scripting&#8221;, which basically means that if you have a browser open and visit a trusted site in one window and a malicious site in another window (again, the &#8220;malicious&#8221; site may just have been hacked and not be aware of it) the guy who has taken over the &#8220;bad&#8221; site can intercept and steal your session with the &#8220;good&#8221; site.  This is probably where most google account hacks come from.</p>
<p>To guard against that, when you log into gmail or another service, make sure it&#8217;s the only browser window you have open; don&#8217;t multitask with several tabs unless it is to visit sites you know are legitimate.</p>
<p>This can all happen even if you take all due precautions, but it is rare.</p>
<p>Also, regarding passwords, make sure you have a STRONG one.  I.e. at least 8 characters, alphanumeric, mixed case, some special symbols thrown in (!?*whatever) and nothing that could be tied to you (name, birthday, etc.)  Use a mnemonic (i.e ilikechinese -&gt; 1l1k3ch!n353!)</p>
<p>A precaution:  back up your email account.  Here are <a href="http://www.google.com/search?q=gmail+backup&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a" target="_blank">3 million search results</a> for &#8220;gmail backup&#8221;.</p>
<p>From my latest victim friend:</p>
<p style="text-align: center;"><em>Thanks for helping me John &#8211; it&#8217;s been a fucking nightmare as a freelance writer &#8211; I&#8217;ve lost so much material!</em></p>
<p>The same thing can happen with Hotmail, Yahoo!, LinkedIn, Facebook, Plaxo, anywhere you store large amounts of contact info.  Standard precautions apply.  And as always, nothing is foolproof.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/exploits/your-gmail-account-has-been-hacked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why Biometric Authentication is (Frequently) a Bad Idea</title>
		<link>http://www.chakraborty.ch/best-practices/why-biometric-authentication-is-frequently-a-bad-idea/</link>
		<comments>http://www.chakraborty.ch/best-practices/why-biometric-authentication-is-frequently-a-bad-idea/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 06:50:12 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Architecture & Design]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Identity Theft]]></category>
		<category><![CDATA[PKI]]></category>
		<category><![CDATA[Privacy]]></category>
		<category><![CDATA[Social Engineering]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/blog/?p=57</guid>
		<description><![CDATA[Authentication Basics 101 First, some three-point lists to re-hash the elements of authentication, mainly for my own memory-jogging purposes. An individual who wants to gain access to data or facilities goes through a three-stage process: Identification (”Hi I’m Bob!  Let me in!”) Authentication (”OK, I verify that you are indeed Bob.”) Authorization (”Bob, I verify <a href='http://www.chakraborty.ch/best-practices/why-biometric-authentication-is-frequently-a-bad-idea/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="post-entry">
<h3>Authentication Basics 101</h3>
<p>First, some three-point lists to re-hash the elements of authentication, mainly for my own memory-jogging purposes.</p>
<p>An individual who wants to gain access to data or facilities goes through a three-stage process:</p>
<ul>
<li>Identification (”Hi I’m Bob!  Let me in!”)</li>
<li>Authentication (”OK, I verify that you are indeed Bob.”)</li>
<li>Authorization (”Bob, I verify that you are among those permitted to enter.”)</li>
</ul>
<p>Authentication can be done using any combination of the following three ingredients:</p>
<ul>
<li>something you know (e.g. password, PIN code)</li>
<li>something you have (e.g. key, smart card)</li>
<li>something you are (e.g. fingerprint)</li>
</ul>
<p>It’s been a given for a while that two-factor authentication is a good way of massively raising security of information or premises at a comparatively low cost, by reducing the impact from losing or disclosing any part of the authentication process.  If I drop my access badge on the train, big deal, because I also need a secret passcode to enter the office.</p>
<h3>Some Problems (PKI / Certificate Example)</h3>
<p>As a quick side-track, during every single PKI-related project involving token-based authentication (usually smart cards) that I’ve ever worked on, two major issues inevitably arose:</p>
<p>First, how do we adapt peoples’ credentials to changing circumstances.  For example, the subject marries and changes their name.  Signing keys used in authentication certificates can be expired or revoked, even though this requires maintenance of a functioning certificate revocation list, something a lot of enterprises don’t seem to be capable of, and which can be technically daunting in any case once you start dealing with multiple thousands of revoked certificates.  However, data signed and encrypted before the expiration or revocation date must be accessible or verifiable in perpetuity, no matter if Jane Smith is now called Jane Smith-Jones.</p>
<p>Continuing the certificate example, this is solved by using something like friendly names on certificates (where the user’s name is not part of the certificate’s LDAP distinguished name (DN), or unique numerical identifiers that are mapped to an actual name in a database accessible by other applications that use the certificate.  There are many ways to skin a cat, or a user who changes their name.  However, this falls squarely into the “bad planning” department that seems to be an attribute of many PKI deployments; architects often don’t make allowance for future requirements, such as extended key attributes (thanks for the tip, Arjo), thus raising the need for additional certificate rollouts and system redesigns.</p>
<p>Second, what happens when the user loses his chip card?  No problem, get him a new one.  Even better, prevent him from losing it in the first place, by combining his authentication token with something he is definitely not going to forget, like the bathroom access pass or his lunch card (but whatever you do, please PLEASE don’t put the company logo or address on his access badge.)</p>
<p>What to do, though, when he’s on a service visit to a missile silo at the North Pole, or with a client in Colombia, and can’t access his laptop?  What about one-man branch offices in Timbuktu?  This is where we start facing increasingly complicated problems with issuing emergency credentials via cell phones (a great medium for secondary authentication — they’re tied to a person, they’re at least somewhat secure against casual attackers via GSM encryption and PIN code access, and they’re one of the least likely items to be forgotten at home.)</p>
<p>Moving beyond the scope of digital certificates, biometric authentication offers a tempting solution for both of the above problems..  Passports can be forgotten, passwords extorted, and unless you’re using a system that doesn’t check for heat or blood flow (useful in the case of the Malaysian Mercedes owner several years ago whose fingers were severed by robbers to gain access to his fingerprint-protected car) or which <a href="http://www.theregister.co.uk/2002/05/16/gummi_bears_defeat_fingerprint_sensors/" target="_blank">can be fooled by fake biometric credentials</a>, biometric authentication immediately and reasonably reliably identifies and authenticates a user in one go.  Unless he loses his hands or voice or has his eyes gouged out, but that eventuality doesn’t look so nice in the authentication product marketing brochure, so we’ll conveniently ignore it.</p>
<h3>Passwords are Annoying</h3>
<p>Passwords have their own problems; I agree that people should use pass phrases instead of passwords whenever possible [<a href="http://www.codinghorror.com/blog/archives/000342.html" target="_blank">1</a>],[<a href="http://www.codinghorror.com/blog/archives/000342.html" target="_blank">2</a>].  Furthermore, I believe that excessively strict password complexity and rotation rules lead people to do stupid things like (<a href="http://www.schneier.com/blog/archives/2005/06/write_down_your.html" target="_blank">with all due respect to Bruce Schneier</a>) writing down passwords in obvious places.  Very few individuals have the time, knowledge or intelligence to write down passwords in a way that keeps them safe (plus, the “YOUR PASSWORD WILL EXPIRE IN 5 DAYS” warnings on Windows workstations tend to catch people when they’re most stressed and hurried to log in and get to their meeting.  Furthermore, password vaults tend to be impractical if, like me, you access similar resources from different workstations, laptops, interfaces, etc.</p>
<p>Biometric authentication gets around all this; in the case of a lot of low-end applications, such as unlocking laptops, it is a thoroughly convenient mechanism that allows administrators to get around the expense and complexity of dealing with things like BIOS/startup authentication, or the aforementioned user failings in dealing with password security rules.</p>
<h3>So Where’s the Problem?</h3>
<p>There are a number of classic arguments against biometric technology — principal among them being that, in case of identity theft, it is not possible for a user to change his credentials, ever.  My major objection to most uses of biometric authentication, however, is the excessive trust placed in it, combined with the absence of non-repudiation.  While most technologies involved are technologically sound and deployed in a well-meaning manner, these related failings bear the probability of inevitable <a href="http://en.wikipedia.org/wiki/Unintended_consequence">negative, unintended side effects</a>.</p>
<p>By virtue of its perception as an advanced, “futuristic” technology, there is a tendency to ascribe some degree of infallibility to biometric authentication.  Errors are viewed as improbable; since there are no longer external factors (knowledge or objects) involved in authentication transactions, the person logging in with a thumbprint must perforce be the owner of the thumb who was registered as such.</p>
<p>As an analogy, DNA matching by police suffers from a similar weakness; first, we cannot discount <a href="http://www.schneier.com/blog/archives/2008/09/dna_matching_an.html" target="_blank">concerns about false positives</a>.  Even if there is a one-in-a-billion chance that a DNA sample from a crime scene matches an innocent person as well as the perpetrator, statistically this may be acceptable, but wouldn’t it suck if you were that innocent person?  Is this tolerable?  Furthermore, as the <a href="http://en.wikipedia.org/wiki/John_Schneeberger" target="_blank">John Schneeberger</a> case demonstrates, even if the technology were flawless, completely circumventing the context within which DNA matching functions, by means of such shenanigans as introducing fake DNA, the entire usefulness of an otherwise good system is thrown out the window.  This is similar to the famous <a href="http://en.wikipedia.org/wiki/Analog_hole" target="_blank">analog hole</a> argument about why media digital rights management is a fundamentally broken concept; even if the hardware and software works just fine, a method completely out of its scope will render its deployment irrelevant.</p>
<p>In the case of biometric authentication, there are a number of conceivable (and, in my case, for lack of greater expertise, purely theoretical) situations where its employment breaks down; <a href="http://xkcd.com/538/" target="_blank">this xkcd cartoon</a> demonstrates one such eventuality in a fairly insightful manner.  Given that many people will be subconsciously awed and intimidated by the cool sci-fi retinal scanners at airports, or palm readers in front of offices, this translates into a disregard for the possibility that something will go wrong with the system — dangerous because, even if the security<strong> </strong>of the system itself were flawless (which no system is) it can probably be circumvented, somehow.  This brings us to the second, and greater danger, that of the lack of non-repudiation in biometric authentication.</p>
<p>By means of overview, digital identifiers are used in two related but different ways to determine the authenticity of data — <em>signing</em> tells the recipient of data, “the information you received is the same that was sent, and it is I who sent it.”  This comes in the form of MD5 checksums, PGP signatures, etc., or in archaic terms, the royal seal on an envelope — in x.509 terminology, signing keys with an authentication bit set in their certificate containers are normally used for certificate authentication (as the key is used to sign a set of credentials transmitted to an application and to guarantee their inviolability.)</p>
<p><em>Non-repudiation</em> means that a recipient of information can be assured that the originator cannot deny that he provided certain information; the recipient can prove that something not only originated with a given person, but that person is not able to reneg on the information.  Signatures on credit card slips or notarized contracts are the most common real-world examples of this.  There is a subtle difference between the two — signing assures the recipient that information and sender data are correct, non-repudiation guarantees the recipient that the sender will abide by the terms of the information received.</p>
<p>Authentication by biometrics introduces the idea of non-repudiation into a transaction where it usually has no business.  A user is first identified, then authenticated.  Both of these components of the authentication transaction three-step process take place using the same single medium — part of the user’s body.  This is bad.  As the user is identified as who he is, the authentication process suddenly and automatically includes an audit trail — which cannot, by definition, be contested.</p>
<p>When John Smith, average employee, sits down to log into his company workstation, he enters his username and password.  Even though his username may be “smithj”, which is tied his employer’s Active Directory to his username and photo, the disconnect between the person and the authentication framework means that he is not treated as an individual, but rather as an anonymous construct that possesses, hopefully legitimately, John Smith’s authentication credentials.  Can I prove that someone did not steal John Smith’s username and password?  Not really.  Maybe he wrote it down — perhaps that’s a firing offense in itself, but there is at least the reasonable doubt that it was he who logged in.</p>
<p>Not so with biometric ID.  The moment he swipes his palm across the door entry plate, or looks into the airport retina scanner, even if there is <em>some</em> doubt that it is, indeed, John Smith requesting authorization, that doubt enters the realm of the statistically irrelevant.  Fine for criminal prosecution, but decidedly suboptimal if you are John Smith who spent his Sunday in bed with a book rather than breaking into his workplace with a fiendishly clever copy of his thumbprint, or by jury-rigging the actual scanner with a battery and a bunch of wires.  The fact that it was a physical part of John Smith that was used (in the mind of the authentication system) to open the door or unlock the workstation means that the audit trail automatically associates him with his action.</p>
<p>This extends to a person’s movements between countries, his use of a cell phone, his travel in a car, his purchasing habits — all of which can be plausibly denied and <em>repudiated</em> if physical or virtual items, such as passports and PIN codes, are used to authenticate the user.  Identity theft at this point may be unlikely, but fatal for the victim.</p>
<h3>How to Fix This</h3>
<p>Biometric authentication is not fundamentally bad.  It has its place, if properly planned and implemented, and if the consequences of its use are known.</p>
<p>For example, authentication can be insular and local.  That is, the process does not register a user’s physical characteristics anywhere centrally, but rather uses a locally cached checksum of, say, a thumbprint to unlock a laptop or smart card — similar to what many Windows-based thumbprint login mechanisms already use.  A kerberos exchange is made with a domain controller, as with a username/password or smart card login, but the actual physical characteristic is not associated in its “raw” form with any central user profile.</p>
<p>Second, biometric authentication must absolutely under no circumstances be tied to audit trails; the tracking of a user’s actions and movements is information desired by law enforcement, human resources, marketing wonks, scammers and any other number of other parties, but there is no reason to tie a user himself, through his physical qualities, to his actions.  I want to be able to deny that I used my credit card in Indonesia last Tuesday; the moment this ability falls due to the authority of a retinal verification for a card transaction that was somehow falsified, I have a huge problem.</p>
<p>Next, such authentication must not cause anyone to come to harm.  As with the Mercedes example above — people are (usually) more important than objects or data.  If you evaluate your <strong style="color: black; background-color: #99ff99;">security</strong> needs and believe it’s a good idea to force someone to go through a burly Secret Service guy to get to the nuclear launch codes, that makes sense.  However, endangering someone’s safety for a car or laptop when it’d get stolen anyway, no matter what they do, would be callous and pointless.</p>
<p>Lastly, authentication credentials must not be tied to any other stored instance of a person’s biometric information.  This sounds paranoid, but physical characteristics, since as we see above these are refutable only with difficulty, and credentials can’t be changed.  The instant someone is able to abuse biometric credentials, a user’s entire financial credibility, his workplace history, and any number of other valuable combinations of reputation and resources may suffer.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/best-practices/why-biometric-authentication-is-frequently-a-bad-idea/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Online Game Anti-Cheating Honeypots &amp; Other Abuse</title>
		<link>http://www.chakraborty.ch/identity-theft/online-game-anti-cheating-honeypots-other-abuse/</link>
		<comments>http://www.chakraborty.ch/identity-theft/online-game-anti-cheating-honeypots-other-abuse/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 14:17:56 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Identity Theft]]></category>
		<category><![CDATA[Social Engineering]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/blog/?p=38</guid>
		<description><![CDATA[One of my addictions during the last year has been the fairly simple online space tactics game AstroEmpires. Entirely browser-based, and hacked together by a bunch of Portuguese guys in what seems like a few drunken afternoons, it&#8217;s a brilliant business model &#8212; basic access is free, and a monthly ~3 euro fee unlocks additional <a href='http://www.chakraborty.ch/identity-theft/online-game-anti-cheating-honeypots-other-abuse/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>One of my addictions during the last year has been the fairly simple online space tactics game <a href="http://www.astroempires.com" target="_blank">AstroEmpires</a>.</p>
<p>Entirely browser-based, and hacked together by a bunch of Portuguese guys in what seems like a few drunken afternoons, it&#8217;s a brilliant business model &#8212; basic access is free, and a monthly ~3 euro fee unlocks additional buildings, more bases, etc.</p>
<p>The setup is straight HTML; bases and ships maneuver in a coordinate grid (e.g. B23:45:72:13 is server beta, galaxy 23, region 45 on a 10&#215;10 grid, system 72 on a 100&#215;100 grid, planet/moon 3 in the first position from the star.)  Everything consists of straight hyperlinks; for example, I could paste B23:45 into the in-game message board, and it would show up as a link to that region.  Combat, movement and pretty much all other aspects of the game are paleolithically basic (for example, combat is based on a constantly shifting set of formulas involving various ship values, the timing of a player&#8217;s clicks on the &#8220;attack&#8221; link and, probably, sunspots and the like.)</p>
<p>Due to time constraints (you pretty much need to be an unemployed hyperactive, highly bored insomniac to have any hope of competing as I found out when my latest attempt at building a fleet was bushwhacked as I peacefully slept), I&#8217;ve since deleted my account and moved on, so the following screenshot is a stock image from their tutorial.  An example from Alpha galaxy, region A00:44:</p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.astroempires.com/images/screenshots/3.jpg" alt="" width="609" height="518" /></p>
<p>Each of these systems is clickable.  Systems and the entire galaxy are similar.</p>
<p>However, despite its simplicity, it lends itself to all kinds of &#8220;politics&#8221; (13-year-olds posturing on the game forums) and abuse of technology, including the creation of off-server base coordinate databases, greasemonkey formatting and information management scripts, auto-scouting and -playing programs that emulate browsers, etc.</p>
<p>While my in-game guild, unlike some others, never used &#8220;robot players&#8221;, our auto-scouter, which wrapped around Internet Explorer libraries and involved a fairly sophisticated target selection and database upload mechanism, let users specify any combination of locations to check for enemy bases and fleet strengths; a web-based database search could generate graphs, travel times, even lists of enemy player/guild capabilities in Excel format.</p>
<p>We ceased using this when a number of our players started being banned for using scout bots, restricting ourselves to a greasemonkey script that uploaded any information a player manually clicked on.  Numerous theories were kicked around, including number of hits from a given client within a 24-hour period, failure to take into consideration a string component in the target URL for a certain planet, etc. &#8212; turns out the admins had resorted to the basic-but-annyoing trick of creating &#8220;fake&#8221; planets, invisible in maps like the above, but still present in the HTML source as links.  Any scout bot unaware of this would not be able to differentiate (for example, a workaround would involve checking for the presence of one of a number of stock images for planets before following a link); the ID of the player &#8220;clicking&#8221; on this coordinate would be flagged for review.</p>
<p>Needless to say, the potential for abuse is pretty big, with players sending each other these links via in-game messages masked with <a href="http://www.tinyurl.com" target="_blank">tinyURL </a>in order to get someone to click and be flagged as a &#8220;cheater.&#8221;  This took the place of other, equally annoying tools, such as messages containing <a href="http://en.wikipedia.org/wiki/Web_bug" target="_blank">web bugs</a> (all messages are also html formatted) in order to track players&#8217; online times or source IPs.</p>
<p>The best exploit of all came in the form of a fully functional illicit auto-scouting and information formatting script widely used by AE players &#8212; most of the, I won&#8217;t say &#8220;cheaters&#8221;, but let&#8217;s call them &#8220;those willing to obtain advantage through technical means&#8221;, in the playerbase are fairly technically illiterate, prepared to install pretty much anything that will provide an advantage.</p>
<p>That advantage goes both ways:</p>
<p style="text-align: center;"><a href="http://www.chakraborty.ch/blog/wp-content/uploads/2008/11/ae.png"><img class="size-full wp-image-44 aligncenter" title="ae" src="http://www.chakraborty.ch/wp-content/uploads/2008/11/ae.png" alt="" width="650" height="75" /></a></p>
<p style="text-align: left;">On some level, you&#8217;ve gotta admit the elegant simplicity of it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/identity-theft/online-game-anti-cheating-honeypots-other-abuse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Data Protection Goes South</title>
		<link>http://www.chakraborty.ch/privacy/chilean-data-protection/</link>
		<comments>http://www.chakraborty.ch/privacy/chilean-data-protection/#comments</comments>
		<pubDate>Sat, 11 Nov 2006 01:06:57 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Identity Theft]]></category>
		<category><![CDATA[Privacy]]></category>
		<category><![CDATA[Privacy & Security Law]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/blog/?p=18</guid>
		<description><![CDATA[Before arriving in Chile, where I&#8217;m spending a year with my girlfriend, I did a bit of research on the information security and compliance landscape in South America. I came up with a single short law in Chile governing the security and integrity of information&#8211;&#8221;Ley 19628&#8243;, dating back to 1999. Ut-oh. On 28 August 1999, <a href='http://www.chakraborty.ch/privacy/chilean-data-protection/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><img alt="cedula-small.JPG" id="image17" src="http://www.chakraborty.ch/wp-content/uploads/2006/11/cedula-small.thumbnail.JPG" /> Before arriving in Chile, where I&#8217;m spending a year with my girlfriend, I did a bit of research on the information security and compliance landscape in South America.  I came up with a single short law in Chile governing the security and integrity of information&#8211;&#8221;Ley 19628&#8243;, dating back to 1999.   Ut-oh.</p>
<blockquote><p><em>On 28 August 1999, Chile adopted privacy protective legislation. Law 19628 provides a set of detailed guidelines, principles and rules relating to the gathering, use, processing, storage and export of personal data. To be legal, all the above acts require the person’s written consent. The law does not create a data protection authority. Its application is monitored by ordinary courts. Personal data registrars are bound to respect professional secrecy rules. Data subjects are entitled to access and correct the data relating to them and to claim compensation where loss or damage is suffered as a result of the use or disclosure of such data. Infringement of the legislation entails administrative, civil and penal liability. Special provisions apply on financial, commercial, banking and medical data. </em></p></blockquote>
<p>Gotta love the absence of a data protection officer.  The law also does not specify penalties like the UK Data Protection Act or Swiss law.  To be fair, I think the Argentines also only have something basic on the books.</p>
<p>Why is this fun?  Well, like everyone here, we are in possession of a &#8220;cedula de etrangeros&#8221;, or a &#8220;papers pliss&#8221; kind of mandatory national ID card.  The &#8220;RUT&#8221;, which I can only assume was originally some sort of pension information, serves as a universal identifying number.  All government agencies are tied into the database containing these &#8212; companies also have these, as well as some contracts.  It&#8217;s used it for taxes, pensions, passoprts, etc. etc. etc.</p>
<p>(Yes, that is a Cedula above; the smudged bit is my RUT, and I&#8217;m not going to put you through the agony of my ugly mug more than once on this page.)  So, what&#8217;s the deal?</p>
<p>The RUT isn&#8217;t just used by the government, but by your bank, insurance and other organizations as an ID.  Sounds good, except that it&#8217;s also your supermarket loyalty ID, your video club membership number, and your identifier for anything you can possibly imagine&#8211;it&#8217;s given openly over the phone, the Internet (often via unencrypted authentication elements even in SSL-protected pages), to the pizza delivery guy, you get the idea.  As it turns out, everyone who asks for your RUT (i.e. everone) has full access to the RUT database (or whatever it&#8217;s called).</p>
<p>Bills of participating enterprises are payable online via two websites, one of which, when I logged in (using my RUT as user ID, with a 6-digit numeric password, no more are possible, and it only works under IE, let me check out my entire phone history for the month.  What&#8217;s interesting is that at first I typed in the wrong phone number &#8212; and got someone else&#8217;s entire call history, along with their name, address and, you guessed it, RUT.</p>
<p>At risk of sounding like I&#8217;m scoffing &#8212; I&#8217;m not, just incredulous &#8212; this is in an environment where I&#8217;m asked to put two pen dashes across the face of a signed check &#8220;for security&#8221; because, as we all know, once you&#8217;ve written over a check, it can&#8217;t be forged.  When confronted with the incongruity of this, at least two people I spoke with responded with some variation on &#8220;but this is South America / Chile.&#8221;  It could never happen here.</p>
<p>In absence of enough time to put together a properly thought-through post, I&#8217;ll leave it to you, dear reader, to come up with your own conclusions as to the potential for identity theft once someone cottons onto the fact that English (and extremely poor Dutch and German) aren&#8217;t the only language in which a lot of gullible, not-terribly-technical people do business online.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/privacy/chilean-data-protection/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: basic

Served from: www.chakraborty.ch @ 2012-02-06 03:33:05 -->
