<?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; Best Practices</title>
	<atom:link href="http://www.chakraborty.ch/category/best-practices/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>Laptops and Border Controls</title>
		<link>http://www.chakraborty.ch/spyware/laptops-and-border-controls/</link>
		<comments>http://www.chakraborty.ch/spyware/laptops-and-border-controls/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 17:20:32 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Crypto]]></category>
		<category><![CDATA[Espionage]]></category>
		<category><![CDATA[Risk Management]]></category>
		<category><![CDATA[Spyware]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/?p=344</guid>
		<description><![CDATA[This post outlines why and how travelers with laptops, especially business travelers, are put at risk by border police searches of their computers.

I also attempt to present some techniques as to how this risk can be avoided, or at least mitigated.]]></description>
			<content:encoded><![CDATA[<p><strong><a name="summary"></a>Summary</strong></p>
<p>This post outlines why and how travelers with laptops, especially business travelers, are put at risk by border police searches of their computers.</p>
<p>I also attempt to present some techniques as to how this risk can be avoided, or at least mitigated.</p>
<p><strong><a name="thusfar"></a>Thus Far</strong></p>
<p>The United States<a href="http://www.tsa.gov/" target="_blank"> Transportation Security Agency</a>, and the United Kingdom&#8217;s <a href="http://en.wikipedia.org/wiki/Regulation_of_Investigatory_Powers_Act_2000" target="_blank">Regulation of Investigatory Powers Act</a> (RIPA) have one thing in common &#8212; they expose travelers carrying sensitive information to risk.  A few relevant links on the subject:</p>
<p><a href="http://www.wired.com/threatlevel/tag/moxie-marlinspike/" target="_blank">Security researcher Moxie Marlinspike profiled and detained</a>, equipment confiscated (later returned)</p>
<p>Wikileaks volunteer and developer <a href="http://www.nytimes.com/2010/08/02/world/02wiki.html?_r=1" target="_blank">David Appelbaum detained</a>, equipment confiscated (some of it returned)</p>
<p><span style="font-size: 13.2px;"><a href="http://www.aclu.org/free-speech/aclu-v-dhs" target="_blank">ACLU mounts lawsuit against baseless border laptop searches</a> (a warrant is required since 2009)</span></p>
<p><span style="font-size: 13.2px;">UK man <a href="http://www.theregister.co.uk/2009/11/24/ripa_jfl/" target="_blank">jailed under RIPA</a> for refusing to hand over encryption keys to laptop</span></p>
<p><span style="font-size: 13.2px;">The USA and UK are by far not the only countries where user laptop or portable device data is put in danger.  In other nations, individuals may encounter draconian police laws (e.g. in totalitarian states) or corruption, and some other developed, stable, democratic countries occasionally make legal provision for confiscation of devices or investigation of data.  For example, in 2006, <a href="http://www.bloomberg.com/apps/news?pid=newsarchive&amp;sid=aFCIb31ikx60&amp;refer=latin_america-redirectoldpage" target="_blank">Brazilian federal police raided the offices of Credit Suisse</a>, as well as the homes of several senior bankers.  What kind of access this gave them to business-critical data is open to speculation.</span></p>
<p><strong><a name="hypothetical-situation"></a>A Hypothetical Situation At the Border</strong></p>
<p>The scenario that most concerns us is as thus:</p>
<p>A user (let&#8217;s say a busy manager) boards a flight.  He is on a way to a business meeting, to negotiate a merger.  On the flight, he relaxes and opens his laptop to get a bit of work done, editing his presentation for the first meeting, then becoming a bit distracted and looking over pictures of his little daughter playing in a kiddie pool.  The manager is annoyed at his chatty neighbor trying to crane his neck to get a look at his monitor, but his <a href="http://solutions.3m.com/wps/portal/3M/en_US/SDP/Privacy_Filters/" target="_blank">privacy screen</a> blocks prying eyes.  30 minutes before landing, he closes his laptop lid and opens a paperback.</p>
<p>Upon entering customs, an official looks at his passport and picks up the phone.  He mumbles something about &#8220;additional screening&#8221;.  Two uniformed officers appear and very politely ask the confused executive to please follow them.  He is escorted to a windowless room, whose walls are lined with posters extolling the mission and professionalism of the bordeabr patrol, and warning against importation of illegal substances.  The manager is asked about his identity, and prompted to empty his pockets and open his bag on a table; while an inspector rifles efficiently through his carry-on, a second official looks on.  The manager&#8217;s questions and protestations are met with bland reassurances about &#8220;standard protocol&#8221;.</p>
<p>The first inspector finds the laptop, and walks out the door with it.  As the manager moves to stop him, the second inspector scowls and blocks his way.  Within a minute, two more officials enter, and begin talking about a suspicion of child pornography, and what serious consequences it harbors.  They mention that a fellow passenger reported having seen &#8220;suspicious&#8221; images on the laptop, and &#8220;encourage&#8221; the manager to cooperate, bringing up vague hints of terrible punishments, no-fly lists, and harassment.  He is presented with a form and a pen, and asked to write down his laptop screen lock password.   The manager looks at his watch &#8212; he has not slept much and needs a shave; his limousine charter has probably left by now.  His requests to make a phone call are politely but firmly denied.</p>
<p>Periodically, someone re-enters the room to ask about another password to an application (email, etc.)  An investigator inquires as to the password of his <a href="http://www.pgpi.org/products/pgpdisk/" target="_blank">PGP-encrypted virtual disk</a>.  The man&#8217;s protests are met with stern reminders that he must cooperate.  The executive has heard that it might be a good idea to have a lawyer in this country, but as a foreigner, he does not know how to go about it, and must be present at his meeting tomorrow.  In any case, he could not contact an attorney.  He does not think of asking to leave.  After four hours of this, punctuated by short interviews asking him to clarify, his laptop and phone are returned to him and he is allowed to leave.</p>
<p>What now?</p>
<p>Do we know that the data was removed upon failure to show any child pornography, incitement to money laundering, or terrorist literature (insofar as any of the above are not protected by free speech anyway)?  When the above user is the CEO of a multibillion dollar corporation, or his fully authorized deputy, are we sure that no information was passed on to a national champion or other competing firm?</p>
<p><strong><a name="disclaimer"></a>Ideological Disclaimer</strong></p>
<p>However, the United States and UK<span style="font-size: 12.96px;"> are the two largest, most economically significant liberal democracies to give their police and border protection enough leeway in terms of data interception and confiscation to constitute a real danger to anyone carrying sensitive data (or just those who feel that what&#8217;s on their laptop is nobody&#8217;s business; whether those contents are legal or not is beyond the scope of this article.)</span></p>
<p><span style="font-size: 12.96px;">Full disclosure:  I am vehemently against search and seizure laws that do not require a warrant.  I oppose border inspections of personal digital data unless they are extremely tightly controlled, as I believe laptops are very personal items.  It is my opinion that law enforcement (particularly border control) authorities should be held to a very high standard, so they can be trusted to maintain the high professional standards they claim to adhere to, to safeguard data and privacy, and to consistently respect rules of evidence.  Nonetheless, I suspect that border patrol and law enforcement agencies in much of the world have at least at some point acted as agents of industrial espionage.  I have strong ideological convictions in this regard, and do not hide these.</span></p>
<p>My objections are not so much addressed at places like China or Saudi Arabia, which openly engage in totalitarian, intrusive aspects of data analysis and censorship (and possibly theft), or Venezuela or Indonesia, where corruption and arbitrary measures can be expected.  You know what expects you when you visit an authoritarian or corrupt country.</p>
<p><span style="font-size: 12.96px;">These are my personal opinions.  I will be happy to provide my reasoning elsewhere.  This post, however, is no more than a discussion of technical and procedural controls that allow individuals and companies to reduce their exposure from mobile device seizure and data analysis.  For the purposes of those who claim that &#8220;those who have nothing to hide won&#8217;t mind security measures&#8221;, I say that</span></p>
<ol>
<li><span style="font-size: 13.2px;">no security is engendered by this.  It is nonsense &#8220;risk management&#8221; or investigatory technique</span></li>
<li><span style="font-size: 13.2px;">it sets a very dangerous precedent in any society making even a small pretense as to individual liberty and freedom from arbitrary search and seizure, and questions the idea of the fundamental human right to travel</span></li>
<li><span style="font-size: 13.2px;">it puts a burden on host countries, insofar as illusory, ineffective, intrusive security mechanisms discourage travelers from visiting and bringing money and business, and </span></li>
<li><span style="font-size: 13.2px;">from now on, you will leave the door to your toilet open every time you go to take a dump</span></li>
</ol>
<p><span style="font-size: 12.96px;">For the purposes of this article, we do not care what kind of data you have.  We will assume that you want to protect it, and that users are sort-of-but-not-highly technically versed.  Furthermore, I cannot address mobile phones, embedded tablet PCs (iPads e.g.) or PDAs, because I am unfamiliar with security mechanisms supported by various operating systems (IOS, Android, BlackBerry OS), so we&#8217;ll focus on generic mechanisms for laptop operating systems, with a few concrete examples.</span></p>
<p><strong><a name="hardware-exploits"></a>Hardware Exploits, Rootkits, and Keyloggers</strong></p>
<p>First of all, the as soon as someone has unsupervised physical access to your device, it is possible to implant keylogging hardware.  Although the supposed <a href="http://www.snopes.com/computer/internet/dellbug.asp" target="_blank">Dell laptop keystroke logger was a hoax</a>, small <a href="http://www.keelog.com/hardware_keyboard_logger2.html" target="_blank">hardware keyloggers</a> are a fairly mature technology.  Interrupt detection won&#8217;t work, as the keylogger isn&#8217;t being installed stealthily (remember, the device is out of your possession / sight, and no attempt at stealth is being made.  If it&#8217;s rebooted, it&#8217;s rebooted.)  We assume the device is being carried, rather than checked in luggage, a stupid thing to do in any case &#8212; as such, the whole problem with border patrol or police temporary confiscation of laptops is that it is done in the open.</p>
<p>Even without manipulation of hardware, the hypervisor rootkit model presented by <a href="http://invisiblethings.org/" target="_blank">Joanna Rutkowska</a> (&#8220;<a href="http://en.wikipedia.org/wiki/Blue_Pill_(malware)" target="_blank">Blue Pill</a>&#8221; &#8212; more <a href="http://www.chakraborty.ch/spyware/quick-blue-pill-redux/" target="_blank">here</a>) would allow persistent access to even an otherwise &#8220;secure&#8221; laptop operating system, with full bypass of its security capabilities (e.g. by intercepting monitor signals or keystrokes).  I am unfamiliar with any functioning examples of such an exploit, but that does not make the concept any less valid or dangerous, or mean that it does not exist.</p>
<p>If there is any suspicion of the above, there&#8217;s not much point to reading the rest of this article.  The instant that something leaves your possession and sight, it can be assumed compromised.  The only mitigating factors are</p>
<ul>
<li><span style="font-size: 13.2px;">hardware keyloggers cost money.  You may not be worthwhile (does not necessarily apply to, say, a senior executive)</span></li>
<li><span style="font-size: 13.2px;">installation takes at least a bit of time.  I do not know whether a rootkit could be slipped onto a drive without imaging the entire system</span></li>
<li><span style="font-size: 13.2px;">there is a tiny risk of detection if done inexpertly &#8212; if you are ultra-paranoid and have opened up your device, noting down component serial numbers, you may be able to detect new hardware</span></li>
<li><span style="font-size: 13.2px;">certain types of hardware require user interaction to get around drive-level encryption; cracking these is not feasible in a short period of time.  Then again, someone may just demand a user&#8217;s boot password under threat of prosecution or harassment, and walk off with it.</span></li>
<li><span style="font-size: 13.2px;"> </span><span style="font-size: 13.2px;">hardware keyloggers that are hard to detect must be prepared.  An investigator would have trouble having clandestine-ready hardware for any given laptop model ready.</span></li>
</ul>
<p>A software keylogger or spyware program / trojan can equally be installed, but a number of methods exist for detecting these with a reasonable degree of reliability, including virus scanners, and cryptographic checksums that can be compared with a central server, e.g. some equivalent of <a href="http://www.tripwire.com/" target="_blank">Tripwire</a> or another <a href="http://en.wikipedia.org/wiki/Host-based_intrusion_detection_system" target="_blank">host-based intrusion detection system</a> (HIDS).</p>
<p>Most importantly, though, the moment something like a keylogger or other hardware exploit is on your laptop, <em>it does not matter what other security measures you take.  Someone will always have access to your laptop from now on.</em></p>
<p>If the above applies, there is not much point to reading the rest of this article &#8212; it is the equivalent of telling a friend a Gmail password, then changing it &#8212; while he is watching.  The only ways to deal with this are</p>
<ul>
<li><span style="font-size: 13.2px;">buy a new laptop</span></li>
<li><span style="font-size: 13.2px;">assume that all communications are bugged, all files can be intercepted / opened, and only work with data that does not matter</span></li>
</ul>
<p><strong><a name="data-dumps"></a>Data Dumps and Stuff</strong></p>
<p>Be hind the scenes of the fictitious episode above, a forensic investigator took a full image of the user&#8217;s laptop.  There was no effort made to hide what was going on, nobody told him about his rights concerning search and seizure, habeas corpus and illegal detention, customs regulation, court and government rulings regarding data investigation, etc.  He was simply coerced into providing access to his information.  All attempts to encrypt, or hide, data on his laptop, and all mechanisms to foil intruders, came to naught.  The government in question, regardless of the (il)legality of its customs agents&#8217; actions, now has a full dump of the user&#8217;s laptop, which may or may not include saved passwords for his webmail account, confidential company materials, a (weakly) password-protected Excel list of passwords, personal photographs, contacts, etc.</p>
<p>I&#8217;ll leave it to the imagination of the reader why this might be a bad thing.</p>
<p>If you maintain constant visual contact with a confiscated laptop, and can determine, with 100% assurance, that nobody has managed to slip something dodgy on to it, great.</p>
<p>However, the best way to secure yourself against compromise is to assume that any data on a laptop is forfeit and to avoid having any information on the laptop to start out with.  Remember &#8212; even if nobody installs anything, it&#8217;s pretty easy and quick to just dump a full storage device and play around with its contents later.</p>
<p><strong><a name="user-education"></a>User Education</strong></p>
<p>No amount of confidential information is worth the life, safety, or freedom of the person holding it (aside from exceptional situations &#8212; we&#8217;ll assume there&#8217;s not much wartime spying going on here.)</p>
<p>It is the responsibility of an employer to teach any business traveler two things:</p>
<ol>
<li><span style="font-size: 13.2px;">Cooperate with authorities &#8212; regardless of what the situation is, nobody on the road for work should have to be a hero</span></li>
<li><span style="font-size: 13.2px;">Understand basic data protection techniques, including taking due care with creation of information so nothing described in this article actually becomes an issue</span></li>
</ol>
<p>The point of all this is to avoid having to not cooperate or having to worry about data while on the road.</p>
<p><strong><a name="first-steps"></a>First Baby Steps</strong></p>
<p>A few simple things might provide some degree of protection, but not a whole lot.</p>
<p>Set up a dummy account.  Keep it logged in.  Ensure that your login window does not show a list of users, but rather a username/password field, e.g. not this</p>
<p style="text-align: center;"><img class="aligncenter" title="Not this" src="http://images.macworld.com/images/legacy/2006/08/images/content/login1.png" alt="" width="254" height="291" /></p>
<p style="text-align: left;">but rather this:</p>
<p style="text-align: left;"><img class="aligncenter" title="This" src="http://i.imgur.com/61SeO.png" alt="" width="333" height="301" /></p>
<p style="text-align: left;">When prompted to log in, do so with the dummy account.</p>
<p style="text-align: left;">Note that this will only fool idiots.</p>
<p><strong><a name="one-way-encryption"></a>One-Way Encryption</strong></p>
<p>A user cannot give up a key that he does not have.  <a href="http://www.schneier.com/blog/archives/2009/07/laptop_security.html" target="_blank">Bruce Schneier wrote about this idea</a> &#8212; allow a user to encrypt his laptop / files with a random key at some point before he is at risk of having his laptop accessed at the border.  Give someone else the password.  After passing the border, call this person to retrieve the password.</p>
<p>The downside to this is that, under something like RIPA, a user may face legal consequences for having encrypted material in his possession for which he cannot / will not provide the password.  The law puts the onus on the holder of the data.</p>
<p>Furthermore, this may expose the person carrying the information to harassment and difficulty entering the country.</p>
<p><strong><a name="external-media"></a>External Media</strong></p>
<p>A 64-GB thumbdrive, or a DVD containing personal/confidential data, could be hidden somewhere in a user&#8217;s luggage, or mailed out of band (e.g. FedEx).  However, that carries with it risk of interception.  If it is found on a user&#8217;s person or baggage, the user can also be coerced into giving up an access code.  If it is mailed separately, it may be very difficult to crack (e.g. PGPDisk) but there is still <span style="font-size: 13.2px;">the risk that the wrong persons get their hands on it.</span></p>
<p><strong><a name="pre-trip-backups"></a>Pre-Trip Backups</strong></p>
<p>All data on a user&#8217;s laptop should be backed up before he leaves.  This can take the form of incremental backups, or a full disk imaging.  This is useful in case a full restore from scratch to a new laptop is necessary.</p>
<p>All users should be storing their important work data on a network drive anyway, <a href="http://www.chakraborty.ch/blog/laptops-and-border-controls#secure-remote">see a little further down</a> as to why.</p>
<p><strong><a name="laptop-builds"></a>Remote / Travel Laptop Builds</strong></p>
<p>A properly paranoid company will make a travel build available for its international travelers.  This is a stripped down OS configuration, containing as few hints as possible as to the nature of the company and its business.</p>
<p>It makes sense to do this anyway to avoid loss of confidentiality from lost/stolen laptops.  Make sure that someone on the road only has what they absolutely need on their laptop.  It&#8217;s understandable that someone wants to work on a presentation or document on the plane, but in this case, it is important to educate users about the need to only carry the data that is absolutely necessary for the current trip.</p>
<p>Unfortunately, that covers locally archived emails, and breaks down on trips involving multiple clients.  Furthermore, if the files a user is working on, say, during a flight on in a departure lounge, are actually highly confidential (e.g. the example of the merger negotiation)</p>
<p>Boy, the consultants will scream about this one.</p>
<p><strong><a name="virtualization"></a>Virtualization</strong></p>
<p>Use virtual machines, such as <a href="http://www.virtualbox.org/" target="_blank">VirtualBox</a>, or <a href="http://www.vmware.com/" target="_blank">VMWare</a>.  At the very least, this allows reasonably quick restore of compromised working environments, and can be used to restrict access to a host OS by dodgy websites.  No particular benefit to travelers, except to add another layer of obfuscation &#8212; it is conceivable that an encrypted VM could be used for something like the &#8220;One-Way Encryption&#8221; environment above, completely masking what files / applications / sites are used.</p>
<p><strong><a name="secure-remote"></a>Secure Remote Desktop</strong></p>
<p>Most mobile users have access to remote working tools via VPN.</p>
<p>I once completed an architecture project that provided a <a href="http://www.citrix.com/lang/English/home.asp" target="_blank">Citrix</a> environment over an IPSEC VPN to users.  A limited desktop, located on a hardened server in a DMZ, was presented to users.  Someone connecting remotely had access to their data, could work remotely, and download folders and individual files.</p>
<p>These could be the files that were backed up / copied to the network drive earlier.</p>
<p><span style="font-size: 13.2px;">Webmail interfaces (SSL-protected, via IPSEC) allow users to get around having to keep mail archives on laptops &#8212; unfortunately, most companies do not understand the concept of sufficiently large server mail quotas.  Disk is cheap.  Buy some. </span></p>
<p><strong><a name="data-segmentation"></a>Data Segmentation</strong></p>
<p><span style="font-size: 13.2px;">For added peace of mind, users traveling to a country whose border patrol or police are known as a source of risk should be limited, via profile, to a subset of data on the remote desktop server.  Allow users to copy their files by project &#8212; and specify, either via user interaction, or via centralized management, which elements they have access to.</span></p>
<p><span style="font-size: 13.2px;">Most consulting firms already have &#8220;Chinese Walls&#8221; in place in order to prevent conflicts of interest, i.e. sanitizing one client&#8217;s data before using it with another so as to avoid exposing trade secrets.  The user mentality is thus already in place. </span></p>
<p><strong><a name="logging"></a>Access Logging and Monitoring</strong></p>
<p>Companies should ensure strict logging of all access events, as well as all user activity.  Companies should maintain access profiles and correlate user activity with what is expected &#8212; a sudden attempt to dump entire file trees via remote access may be cause for alarm.</p>
<p>This ensures that, in case of a break-in by a foreign law enforcement agency using stolen credentials, it&#8217;s clear what was compromised.  This is good practice in any case; in the <a href="http://www.chakraborty.ch/blog/laptops-and-border-controls#thusfar">Brazilian example earlier</a>, police had presumably unfettered access to a major corporation&#8217;s international network &#8212; many major global companies have some sort of poor segmentation between country networks.  Imagine the amount of scrambling and incident response work required to find out exactly what information they were able to obtain?  A single user is no different, if you don&#8217;t know that he has been forced to divulge access, or if your external VPN connectivity uses weak authentication and credentials are extracted from a copied laptop drive.</p>
<p><strong><a name="two-factor-auth"></a>Two-Factor Authentication</strong></p>
<p>Require users to use two-factor auth (e.g. <a href="http://www.rsa.com/node.aspx?id=1156" target="_blank">RSA SecurID</a> cards, chip cards, etc.) &#8212; this reduces risk from exposure of saved passwords or persistent authentication cookies dumped from a laptop.</p>
<p><strong><a name="duress-passwords"></a>Duress Passwords</strong></p>
<p>In the extreme case that a user is forced to log into a corporate network via remote access, he should be given a a &#8220;<a href="http://en.wikipedia.org/wiki/Duress_code" target="_blank">panic account</a>&#8220;.</p>
<p>This could take the form of &#8220;salomon.john&#8221; as opposed to &#8220;john.salomon&#8221;.  Keep passwords the same to keep things simple &#8211; complexity causes people to become nervous and give things away.  This account could even have access to the same dataset as the &#8220;real&#8221; account, while setting off all kinds of alerts and informing administrators that shenanigans are in progress.</p>
<p>User training is a strong prerequisite to make this work.</p>
<p><strong><a name="remote-wipe"></a>Remote Data Wipe</strong></p>
<p>Many laptops have a SIM card slot.  In the case of the Apple iPad 3G, one of the <a href="http://www.chakraborty.ch/architecture-design/ipad-security-my-overview/" target="_blank">few reasonable security measures</a> is the central remote wipe capability.  Use it.  Whether as part of a duress code mechanism, or in case of unexpected activity, it may be wise to err on the side of caution and just nuke anything via remote management.</p>
<p><strong><a name="vpn-termination"></a>Third-Party VPN Termination</strong></p>
<p>This is an extreme solution to what is, at best, a paranoid situation, but it might be interesting for companies to set up VPN connections to trusted intermediaries located offsite.</p>
<p>This is a bit of a separate issue, but a user connecting to an IPSEC concentrator with an IP registered to a given Swiss bank may raise the curiosity of law enforcement agencies who like to know, out of principle, what a Swiss bank executive is doing in their country &#8212; thus giving cause for additional searches the next time the user passes through a choke point like an airport.  Connections to an innocuous IP, however, may avoid such attention.</p>
<p>If the intermediary is trusted, a separate IPSEC connection can then be established from his servers to the corporate DMZ.</p>
<p><strong><a name="conclusions"></a>Conclusions</strong></p>
<p>Controls of user laptops need not follow rational justifications &#8212; even developed countries have shown that their police and border investigations can be arbitrary.  While it is unlikely that a given traveler&#8217;s laptop may be investigated in depth, if it happens to you, the probability of it becomes academic.</p>
<p>No company should ever expose its mobile users to danger through their mobile data.  However, there are sensible ways to limit the potential fallout from unauthorized exposure by foreign law enforcement agencies to data that is simply none of their business.  It just takes a bit of investment and willingness to change mobile working habits.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/spyware/laptops-and-border-controls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Securitrons and the Thunk Test</title>
		<link>http://www.chakraborty.ch/best-practices/securitrons-and-the-thunk-test/</link>
		<comments>http://www.chakraborty.ch/best-practices/securitrons-and-the-thunk-test/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 09:54:31 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Security Policy]]></category>
		<category><![CDATA[Standards]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/?p=163</guid>
		<description><![CDATA[Management issues in security, alibi security, and paperwork all impact the effectiveness of information security.]]></description>
			<content:encoded><![CDATA[<p>An increasing amount of security work these days is very academic and theoretical, rather than hands-on.  The development of risk management (a.k.a. &#8220;covering your ass&#8221;) as a serious factor driving security awareness over the past ten years has led to a massive amount of paper-generation and abstraction, going hand-in-hand with ever-more-complex attempts to needlessly quantify security realities.</p>
<p>Partially this stems from the desire to apply financial metrics to risk and security, partially from the need of managers lacking a strong technical background or the ability to acquire this to have easy-to-understand, purely numerical descriptions and graphs of where their money is going.</p>
<p>One of my colleagues recently came up with the concept of an abstract measure of security investment (time, effort, grief, etc.) &#8212; the <strong>securitron</strong>.  As in (hold hands zombie-like out front and repeat in a robot manager voice), &#8220;we&#8217;re going to need more securitrons!  Throw two hundred additional securitrons at this project!&#8221;</p>
<p>For some reason, this came up again during a meeting to discuss increased efficiency of risk management paperwork.  The upshot of this meeting, as with pretty much any business meeting consisting of over three people (and not taking place by the coffee machines, where most productive work gets done), was (a) use your own damn judgment, that&#8217; s what you&#8217;re paid for, these are only suggestions, (b) if you still have questions, ask your colleagues, that&#8217;s why we sit together, and (c) when will this damn meeting end?</p>
<p>However, an interesting point did arise &#8212; the idea that security, risk management, and compliance work tends to end up with reams of paper that may or may not ever be read.  This was the case with all medical regulatory and compliance work I&#8217;ve ever done, as well as with pretty much every experience I&#8217;ve had in financial services since 2000.</p>
<p>The conclusion?  My personal view is that documentation and paperwork does not make much sense unless it&#8217;s in an easily accessible format (e.g. a well-organized database schema accessible by very flexible views to whomever wants to use and evaluate the data.)</p>
<p>Another very important point that my colleague raised, though, was the concept of the &#8220;thunk test&#8221; &#8212; i.e. if a security policy is dropped on a desk and makes a &#8220;thunk&#8221;, it&#8217;s too big to be of any use.  Nothing that heavy can possibly have the elegance and simplicity to be easily enough understood for practical everyday application.  At the risk of advocating the development of tired business doublespeak, I could see a use for a plainly worded non-mealy-mouthed type of goals and rules statement (&#8220;don&#8217;t leave passwords lying around.  Never talk to strangers.  Don&#8217;t pet strange dogs&#8221;) for security organizations that actually fits on a single piece of A4 paper (or at least in a document that makes no more than a soft whisper as it&#8217;s dropped.)</p>
<p>Now, we are working on finding a good name for a measure of the quantitative relationship between securitrons and reams of paper.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/best-practices/securitrons-and-the-thunk-test/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Autistic Security Event Monitoring</title>
		<link>http://www.chakraborty.ch/best-practices/autistic-security-event-monitoring/</link>
		<comments>http://www.chakraborty.ch/best-practices/autistic-security-event-monitoring/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 17:26:27 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Management]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/blog/?p=102</guid>
		<description><![CDATA[Wired Magazine recently published a set of articles titled 12 Shocking Ideas That Could Change the World. Among them was a suggestion by a Danish gentleman named Thorkil Sonne, of Specialisterne, to hire autists.  His reasoning is that people with autism or asperger's are good at routine tasks.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wired.com" target="_blank">Wired Magazin</a>e recently published a set of articles titled <a href="http://www.wired.com/techbiz/people/magazine/17-10/ff_smartlist" target="_blank">12 Shocking Ideas That Could Change the World.</a> Among them was a suggestion by a Danish gentleman named Thorkil Sonne, of <a href="http://www.specialisterne.dk/" target="_blank">Specialisterne</a>, to <a href="http://www.wired.com/techbiz/people/magazine/17-10/ff_smartlist" target="_blank">hire autists</a>.  His reasoning is that people with autism or asperger&#8217;s are good at routine tasks;</p>
<p style="padding-left: 30px;"><em>&#8220;As a general view, they have excellent memory and strong attention to detail. They are persistent and good at following structures and routines&#8221;</em></p>
<p>So, I got to thinking; one of the discussions I had with colleagues following a recent meeting with a provider of managed security services (see previous post) dealt with the idea that building and maintaining a decent SOC and log/event management procedure is a near-impossible task, due to the difficulty of creating a sustainable operations process; one of my co-workers made the point that most people would tend to get bored with the repetitive nature of looking through logfiles, or even dealing with things like security advisories and updates.</p>
<p>I countered with the assertion that your basic event management and intelligence correlation should, to a large degree, be automated anyway (whether non-dedicated companies can do this as well as, or better than, dedicated outsourcers is a separate discussion that&#8217;s probably best investigated on a case-by-case basis.)  However, the routine nature of any IT operations-type job aside, he did have a point that (a) even when you do automate everything, you&#8217;ll still want a degree of human second-guessing, and (b) that gets mighty dull.</p>
<p>It seems like a logical conclusion that if Thorkil Sonne is right, and autists (is that a word?) can really be excellent at work that requires focus, consistent attention to detail despite the drudgery involved, and clear rules, why not use these guys for exactly the tasks described above?  Someone who is excellent at pattern detection, and is willing to follow the same process day after day after day would seem to be ideal for an SOC monitoring / log &amp; event analysis position.</p>
<p>I don&#8217;t want to come across as somehow insensitive, since I know next to nothing about autism, but purely going by the value proposition put forward by Specialisterne, it seems like a rational conclusion to hire the best people for any given job &#8212; whether or not the fact that they are qualified at what they do stems from extraordinary dedication, experience, or a mental condition should be completely irrelevant.  And in the process, maybe do some good for someone who might be difficult to employ otherwise.</p>
<p style="padding-left: 30px;">
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/best-practices/autistic-security-event-monitoring/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Modularizing Security Functionalities</title>
		<link>http://www.chakraborty.ch/development/modularizing-security-functionalities/</link>
		<comments>http://www.chakraborty.ch/development/modularizing-security-functionalities/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 12:27:23 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Architecture & Design]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Standards]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/blog/?p=77</guid>
		<description><![CDATA[I am a huge fan of the concept of abstracting functions -- i.e. clearly defining what it is you are trying to accomplish with your various bits of software &#038; hardware, defining clear categories for their functionalities, separating them, either physically or logically, and ensuring that everything communicates via clearly defined, standards-compliant interfaces and APIs.]]></description>
			<content:encoded><![CDATA[<p>Okay, I made up &#8220;modularizing&#8221;, but I think it nicely fits the idea of this article.</p>
<p>I am a huge fan of the concept of abstracting functions &#8212; i.e. clearly defining what it is you are trying to accomplish with your various bits of software &amp; hardware, defining clear categories for their functionalities, separating them, either physically or logically, and ensuring that everything communicates via clearly defined, standards-compliant interfaces and APIs.</p>
<p>During several early projects of mine, I noticed that the temptation was strong for managers to create all-in-one tools in order to sell the widest package of application functionality conceivable.  This is bad design, if only because different uses and scenarios can have different requirements; addressing these may have unintended network effects on other components of a product, thereby slowing down the whole analysis, development and QA process.</p>
<p>One of my clients has taken the path of a pluggable, modular configuration tool for some of their systems; this is a good model insofar as it allows clear access to different components from a single interface, but the components themselves are not interdependent.</p>
<p>For the purposes of this article, I&#8217;d consider using very basic distinguishing criteria like &#8220;network / communications device&#8221;, &#8220;end-user application&#8221;, &#8220;remote support tool&#8221;, whatnot &#8212; and in the scope of this article, &#8220;security device&#8221; and &#8220;other.&#8221;  I realize that these are fairly theoretical, academic distinctions, but it&#8217;s my firm belief that the idea applies in real life. Such a matrix can be multidimensional &#8212; criteria could include, on the one hand, what the application is used for, and on the other, how it is deployed or managed, OS type, manufacturer, etc.</p>
<p>For example, one of my projects involved the development of a small network security appliance for a specialized scenario (protecting proprietary devices subject to strong regulatory requirements.)  There was constant pressure from sales &amp; marketing to avoid having multiple physical boxes; the field service types also wanted to prevent having to maintain additional distinct hardware.  This was a good example of when it was right to not listen to our customer and push them to accept the idea of having another little small piece of hardware; integrating the security into pre-existing products would have required a huge amount of adaptation, porting, maintenance, testing and other effort, over multiple architectures, teams, countries, whatnot.</p>
<p>&#8220;Security&#8221; is a compelling argument for the separation of protective functions from what&#8217;s being guarded; there may not be a clear, identifiable exploit that you are addressing, but, using the example of network defense, knowing that your authentication, detection, encryption and filtering tools are autonomous from each other reduces the possibility of single points of failure.  I&#8217;m not arguing for an eggshell model of security (crunchy on the outside, squishy on the inside), but it makes things much easier to be able to address an application server&#8217;s security requirements without the need to assume that whatever security you implement on an application level is all you will have.</p>
<p>An even more significant reason to keep things separate (physically, via dedicated, standards-compliant hardware, or virtually, via VMs) is cost reduction &#8212; support and development are simplified.  Despite the appearance of increased complexity from more components, if you are able to quickly and easily swap out a defective element, or create added functionality whose impact on an unrelated system is controlled through a standardized network interface or code API, you no longer have to worry about breaking things that should be out of scope for whatever it is you&#8217;re doing at the moment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/development/modularizing-security-functionalities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 3&#8242;s Horrible Unsigned Certificate Handling</title>
		<link>http://www.chakraborty.ch/best-practices/firefox-3s-horrible-unsigned-certificate-handling/</link>
		<comments>http://www.chakraborty.ch/best-practices/firefox-3s-horrible-unsigned-certificate-handling/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 00:35:05 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Authentication]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Crypto]]></category>
		<category><![CDATA[Social Engineering]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/blog/?p=65</guid>
		<description><![CDATA[Firefox's way of handling unsigned certificates sucks.]]></description>
			<content:encoded><![CDATA[<p>Following an interesting discussion on the ZOG security mailing list (which is so elite and secret that, should you be interested in joining a bunch of security guys bashing on Windows and planning beer &amp; pizza excursions, well, <a href="http://www.zog.net/cgi-bin/mailman/listinfo/zog-security" target="_blank">enjoy</a> &#8211; NO HEADHUNTERS) I thought I&#8217;d share my blather on why, frankly, Firefox 3&#8242;s self-signed certificate handling sucks.</p>
<p>Don&#8217;t get me wrong, aside from the bloat I love FF.  It&#8217;s like Apache &#8212; it&#8217;s a resource hog, but it does what you want nicely, and it&#8217;s kind of like a pair of old underpants that you can&#8217;t quite bear to throw away.  But this one particular bit of chicanery just stinks.</p>
<p>In case you forgot, when faced with a certificate signed by a CA whose root certificate is not in FF&#8217;s certificate store, you receive an obnoxious set of messages (here on a Mac:)</p>
<p><img class="aligncenter size-medium wp-image-88" title="ssl" src="http://www.chakraborty.ch/wp-content/uploads/2009/03/ssl-300x168.png" alt="ssl" width="300" height="168" /></p>
<p style="text-align: center;"><em>Oh noes, a cop.  It must be bad!</em></p>
<p style="text-align: center;"><em><img class="aligncenter size-medium wp-image-89" title="ssl-1" src="http://www.chakraborty.ch/wp-content/uploads/2009/03/ssl-1-300x287.png" alt="ssl-1" width="300" height="287" /></em></p>
<p style="text-align: center;"><em>&#8220;Legitimate&#8230;other public sites will not ask you to do this.&#8221;  Screw you.</em></p>
<p style="text-align: center;"><em><img class="aligncenter size-medium wp-image-90" title="ssl-2" src="http://www.chakraborty.ch/wp-content/uploads/2009/03/ssl-2-300x273.png" alt="ssl-2" width="300" height="273" /></em></p>
<p style="text-align: center;"><em>&#8220;This site attempts to identify itself with invalid information.&#8221; </em></p>
<p>I am doing no such thing.  Rather, I am attempting to encrypt your data transmission.  My site has no reason to identify itself to a client.  Yes, this goes away after the first time, but boy, what a way to scare off potential visitors?</p>
<p>Like Opera, and in contrast to Google Chrome, Firefox does not use any OS built-in certificate stores, such as Windows&#8217; MSCAPI.DLL or MacOS X&#8217;s keychain access.  I assume this is for ease of cross-platform maintenance) but it does make it less likely that anyone will use certificates installed universally as part of a Mac package or Windows MSI installer or equivalent.</p>
<p>Thankfully, <a href="http://www.startssl.com/" target="_blank">StartCom Certification Authority</a> is now included by default; <a href="http://cacert.org" target="_blank">CACert</a>, in addition to providing fairly short-lived certs (full disclosure:  I am a CACert assurer of some sort, or at least I was before I completely forgot about it) appears to have failed an audit at one point; <a href="http://blog.balrog.de/" target="_blank">Axel Eble</a> points out that Ian Grigg, of Financial Cryptography, is currently <a href="http://iang.org/papers/open_audit_lisa.html" target="_blank">conducting an open audit</a> of CACert.</p>
<p>As far as free certificate issuers&#8217; root certificate inclusion in Microsoft products goes, the company&#8217;s <a href="http://technet.microsoft.com/en-us/library/cc751157.aspx" target="_blank">CA certification policy</a> is pretty hairy &#8212; looking at the technical and audit requirements, an open candidate for inclusion in the Windows / Internet Explorer certificate store will have to muster significant financial resources.  Even if this were the case, there&#8217;s the interesting catch-all near the end of the requirements, disqualifying</p>
<p style="padding-left: 30px;"><em>&#8220;CAs who fail to meet the burden of proof for the broad business value of their offering to Microsoft customers.&#8221;</em></p>
<p>Without any criteria on what this constitutes.  At least IE&#8217;s self-signed certificate warning is a bit less cumbersome.</p>
<p>Commercial certificates cost a fair amount of money, starting at USD $150 for a 1-year basic SSL cert from Thawte, essentially for no incremental cost once they&#8217;ve passed their audits.  It&#8217;s a money machine, although I can&#8217;t fault them for it; I&#8217;d try to make money off a broken model too, if I could.</p>
<p>Why is this an issue?  Because the more the use of encryption permeates the Internet, the better.  Call it a distrust of authority, a desire to see increasing amounts of personal data secured out of general principle, a fundamental interest in an overall increase in entropy (let&#8217;s not get into the reasons why hiding, obfuscating and protecting your data is necessary &#8212; I will simply revert to the old and invincible argument about &#8220;you close your door when you use the toilet, don&#8217;t you?  What do you have to hide?&#8221;)  I want to see everyone and their dog use cryptography, if only for the purpose of letting Joe Schmoe acclimatize himself to the fact that it is not only possible and perfectly legitimate, but actually a very good idea, to encrypt things.</p>
<p>A big scary looking warning creates fear and distrust in the minds of nontechnical users when they visit a site with a self-signed certificate whose purpose is really only to keep the transmission of data-that&#8217;s-nobody-else&#8217;s-business secure (in addition to being a very small pain in the ass to those of us who have to click through the annoyance every time we want to log into our private web services from a different browser.)  Is that the point?  What about this?</p>
<p><img class="aligncenter size-medium wp-image-91" title="pgp" src="http://www.chakraborty.ch/wp-content/uploads/2009/03/pgp-300x165.png" alt="pgp" width="300" height="165" /></p>
<p>Nice one, PGP.  Might want to talk to your customer services provider (that is, or at least was at time of writing, their actual site.)</p>
<p>Ian Grigg makes a <a href="http://www.financialcryptography.com/mt/archives/000659.html" target="_blank">good point</a> &#8212; &#8220;I despise and loathe the idea that to use crypto you have to know me.&#8221;  As such, I agree with the idea that it&#8217;s pretty dumb to combine the handling of credentials used for encryption and identification of sites.  From what I can tell, the latter is Mozilla&#8217;s main concern with the hoops a nontechnical user has to go through to make sure a site is &#8220;legit.&#8221;</p>
<p>I understand the idea of wanting to make it clear that a certificate not signed by a &#8220;reputable&#8221; CA may be masking a phishing or otherwise fraudulent site.  However, one way around this would be to have two classes of warnings &#8212; one a simple check whether the FQDN of the website is identical to that of the host the certificate is created for, with a big friendly easy-to-understand information message stating something along the lines of &#8220;this certificate is for host xyz.com, please make sure the address in your browser bar is the same&#8221; with a simple list of cautions below it.</p>
<p>Bonus points for separating the authentication and encryption portions of an SSL connection &#8212; tell the user &#8220;the site claims to be xyz.com but may not be, but your transmission is encrypted, do not enter sensitive data, such as credit card or personal information, unless you&#8217;re sure whom you&#8217;re talking to&#8221; and basta.</p>
<p>The second use case, for certificates authenticating a site and encrypting a connection, should check far more strictly that the issuer is legitimate.  In this case, the end-user has a genuine need to know that the certificate issuance process is tightly controlled via a trusted party &#8212; the CA root cert included in the browser store.  Fair enough.</p>
<p>Yes, the average &#8220;user&#8221; may not have much clue, but excessive mollycoddling at the expense of usability is bound to be counterproductive &#8212; it scares people away from increased use of crypto, and annoys the rest of us with way more obstacles than are necessary.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/best-practices/firefox-3s-horrible-unsigned-certificate-handling/feed/</wfw:commentRss>
		<slash:comments>3</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>De-Perimeterization Done Right, Part II</title>
		<link>http://www.chakraborty.ch/development/de-perimeterization-done-right-part-ii/</link>
		<comments>http://www.chakraborty.ch/development/de-perimeterization-done-right-part-ii/#comments</comments>
		<pubDate>Thu, 14 Dec 2006 22:38:58 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Architecture & Design]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Network Security]]></category>
		<category><![CDATA[Privacy]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/blog/?p=28</guid>
		<description><![CDATA[The core of any mobile working solution will always be a laptop, most likely running Windows XP (as of present I am not aware of any companies with concrete plans for large-scale Vista deployments.) The first step is to define some overall requirements for our solution: 1) Transparency and usability of security mechanisms whenever possible <a href='http://www.chakraborty.ch/development/de-perimeterization-done-right-part-ii/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>The core of any mobile working solution will always be a laptop, most likely running Windows XP (as of present I am not aware of any companies with concrete plans for large-scale Vista deployments.)  The first step is to define some overall requirements for our solution:</p>
<p>1)    Transparency and usability of security mechanisms whenever possible<br /> 2)    Prevention of unauthorized access<br /> 3)    Anonymity<br /> 4)    Easy replacement of lost or compromised assets or data<br /> 5)    Plausible deniability by users of data on their systems<br /> 6)    Traceability<br /> 7)    Ease of management and support of users and assets<br /> 8)    Expandability and portability of the solution</p>
<p>Any mobile environment should be usable by all users, regardless of their security profile, so we will be relying on as much automation and build standardization as possible.</p>
<p>We start by breaking down the productivity requirements into two classes:  sensitive (having to do with company-internal infomation) and general (contact to others via Internet.)</p>
<p>The basic functions that we want are thus:</p>
<ul>
<li>Basic office productivity tools (documents, spreadsheets, presentations, similar tools)</li>
<li>Mail (secure when needed)</li>
<li>Other communiation and collaboration with internal users and external persons (such as chat and VoIP &#8212; secure when needed)</li>
<li>Browsing (secure Intranet sites)</li>
<li>Browsing (other)</li>
<li>Secure document &amp; data storage (local and remote)</li>
</ul>
<p>So essentially, we can group all these requirements into two rough clusters:  &#8220;stuff that needs to be very secure&#8221; and &#8220;stuff that doesn&#8217;t need to be that secure&#8221; (beyond the usual protection from everyday badness.)</p>
<p>The solution we came up with for all these requirements was a multi-tiered model, using a couple of commonly available tools.  Yet another short ingredients list:</p>
<ul>
<li>Layered access control (boot sector protection, full disk crypto, a strong authentication model) for the laptop itself</li>
<li>An &#8220;inviolate&#8221; stronghold (such as VMWare ACE) running on the laptop &#8212; this is the only environment from which the more secure internal functions, such as corporate groupware and file sharing can be run</li>
<li>Integrity policy (mixture of Microsoft AD GPOs and Check Point integrity client)</li>
<li>A relayed VPN connection &#8212; via an offshore VPN gateway &#8212; so casual sniffers have trouble tracking the destination of your VPN link</li>
<li>Live remote AD logon &#8212; Check Point, and possibly other vendors do a really nice thing called &#8220;SDL&#8221;, or Secure Domain Logon, where your Windows AD credentials are taken from the MSGINA into a &#8220;holding pattern&#8221; until a VPN connection is established (via a &#8220;shim GINA&#8221; that comes right after the MSGINA), at which point you are given a full live AD logon, as opposed to authenticating to the locally cached auth credentials</li>
<li>PGP-based optional mail and file crypto, allowing for greater flexibility with removable devices (corporate ADKs, or additional decryption keys, deal with all those pesky recovery issues)</li>
<li>Terminal-server based applications and filestorage for sensitive material; Citrix or Microsoft Terminal Server both do the trick here.  The point is to add another layer of security between the laptop and the crown jewels, and to remove the need for remote workers to store unnecessary but sensitive materials locally.</li>
</ul>
<p>That&#8217;s it for today, class.  At some point I&#8217;ll go into what to do about remove laptop recovery, allowing users to have data auto-destruct without incriminating them or garnering accusations of impeding investigations, and other cool topics.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/development/de-perimeterization-done-right-part-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>De-Perimeterization, Done Right (Part I)</title>
		<link>http://www.chakraborty.ch/development/de-perimeterization-done-right-part-i/</link>
		<comments>http://www.chakraborty.ch/development/de-perimeterization-done-right-part-i/#comments</comments>
		<pubDate>Mon, 27 Nov 2006 19:10:40 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Architecture & Design]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Network Security]]></category>
		<category><![CDATA[Privacy]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/blog/?p=27</guid>
		<description><![CDATA[In March 2005, Brazilian federal police raided the offices of a Credit Suisse subsidiary in Sao Paolo. In addition to arresting the local management (and from what I understand, keeping them incommunicado for something like 48 hours), the Brazilians probably also had unfettered access to at least parts of CS&#8217; worldwide corporate network. Similar harassment <a href='http://www.chakraborty.ch/development/de-perimeterization-done-right-part-i/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>In March 2005, Brazilian federal police <a href="http://www.nzz.ch/2006/03/23/eng/article6571853.html" target="_blank">raided the offices of a Credit Suisse subsidiary</a> in Sao Paolo.  In addition to arresting the local management (and from what I understand, keeping them incommunicado for something like 48 hours), the Brazilians probably also had unfettered access to at least parts of CS&#8217; worldwide corporate network.  Similar harassment of international companies, both legitimate and arbitrary, has occurred in Russia and other countries.</p>
<p>Not all governments welcome the presence of high net worth private banking client advisors, or representatives of competitors to national champions in their jurisdiction, and such individuals should worry about industrial espionage.  Furthermore, countries such as the United States have enacted restrictive immigration policies during the past few years, which allow pretty much unfettered access to laptops of business travellers.  Several colleagues of mine entering the US for security conferences have been harassed upon identifying themselves as security consultants or experts.</p>
<p>Additionally, the maintenance of a fixed office may simply not be economical in certain regions, especially when individual sales reps, consultants or other professionals cover large geographical areas.  The laptop should thus function as a completely secure, untraceable, self-contained office environment, giving the user access to all functionality he would have at a fixed, secure office but without endangering company data, user safety or corporate infrastructure.</p>
<p>One of my on-again off-again projects is the design of a secure mobile platform.  Beyond the usual full-disk crypto + VPN solutions used by most companies with executives on the road, I believe that a true mobile architecture involves several more parts that are often ignored.</p>
<p>The <a href="http://www.opengroup.org/jericho/" target="_blank">Jericho Forum</a> proposes &#8216;de-perimeterization&#8217; as the removal of fixed barriers to the core network; they do not, however, offer a great deal of substance or concrete suggestions.  To this end they are occasionally <a href="http://www.networkworld.com/columnists/2005/081505faceoffno.html" target="_blank">criticized</a>, although in this particular case I can&#8217;t agree with the author.  IPSEC may have its weaknesses, but solution elements such as <a href="http://www.checkpoint.com/" target="_blank">Check Point&#8217;s</a> Secure Domain Logon (which uses a &#8220;shim GINA&#8221; to establish a VPN connection to a corporate internal network before Windows authentication credentials are actually passed through from the XP GINA) both make PKI and smart-card authentication feasible and allow full integration of most types of mobile clients.</p>
<p>As the above hints at, the goal of a mobile solution must be to extend the corporate perimeter without sacrificing any security or usability, something which I believe is entirely doable and which, in fact, we&#8217;ve gotten nicely working on a number of occasions.  However, as important as the integrity and security of a given laptop, are the maintenance of anonymity and discretion, and the manageability of a given workstation.  Neither the laptop nor a user&#8217;s regular everyday actions should give any clues as to the provenance of a laptop, and in no way should compromise of a laptop construe a threat to the integrity of data on the laptop or corporate infrastructure.</p>
<p>In Part II, I&#8217;ll discuss individual elements of such a solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/development/de-perimeterization-done-right-part-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SOMAP &#8212; Open Source Risk Management</title>
		<link>http://www.chakraborty.ch/risk-assessment/somap-open-source-risk-management/</link>
		<comments>http://www.chakraborty.ch/risk-assessment/somap-open-source-risk-management/#comments</comments>
		<pubDate>Sat, 25 Nov 2006 14:45:32 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Risk Assessment]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/blog/?p=26</guid>
		<description><![CDATA[I recently stumbled onto the Security Officers Management &#038; Analysis Project and thought I&#8217;d share. It&#8217;s an attempt to create a community-supported risk analysis processes and best practices repository, and a pretty cool idea at that. The handbook is currently in version 1.0, downloadable from the site, although some of the other resources (risk analysis <a href='http://www.chakraborty.ch/risk-assessment/somap-open-source-risk-management/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>I recently stumbled onto the <a target="_blank" href="http://www.somap.org">Security Officers Management &#038; Analysis Project</a> and thought I&#8217;d share.  It&#8217;s an attempt to create a community-supported risk analysis processes and best practices repository, and a pretty cool idea at that.</p>
<p>The handbook is currently in version 1.0, downloadable from the site, although some of the other resources (risk analysis guide, repository) are in development.  The SOBF (Security Officer&#8217;s Best Friend) &#8212; a risk reporting and analysis tool is also in beta, but looks to be nearly usable.  I am going to have a closer look at this to see how it can work together with more technology-specific risk analysis tools like Symantec&#8217;s, or with methods such as CERT&#8217;s <a target="_blank" href="http://www.cert.org/octave/methodintro.html">OCTAVE</a>.  As it stands, it might be an interesting start for companies who&#8217;re out to build their own custom tools and methodologies anyway.</p>
<p>I hope this doesn&#8217;t go the way that the <a target="_blank" href="http://pki.openca.org/projects/openca/">OpenCA/OpenPKI</a> project did a while ago (published a handbook that was a great start, but stagnated for a long time, although there seems to have been some work going on recently.)  Check it out.</p>
<p><em>Edit:</em>  Adrian Wiesmann from SOMAP just wrote me a nice note to tell me that they&#8217;re working on the second version of SOBF, and are looking for a project manager in Switzerland as of present (25.11.2006.)  &#8220;<em>To make it less possible that the project stops again right after starting, we are actively looking for a project manager which would coordinate the contributors, manage timelines and subprojects.</em>&#8221;  So if you&#8217;re interested, drop them a line via their website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/risk-assessment/somap-open-source-risk-management/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:38 -->
