<?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; Crypto</title>
	<atom:link href="http://www.chakraborty.ch/category/crypto/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>French Researchers &#8220;Hack&#8221; TOR</title>
		<link>http://www.chakraborty.ch/exploits/french-researchers-hack-tor/</link>
		<comments>http://www.chakraborty.ch/exploits/french-researchers-hack-tor/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 09:12:47 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Crypto]]></category>
		<category><![CDATA[Exploits]]></category>
		<category><![CDATA[Network Security]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/?p=471</guid>
		<description><![CDATA[French magazine 01net reports (article in French) that researchers from ESIEA, a French engineering school, have found and exploited some serious vulnerabilities in the TOR network. According to the article, they performed an inventory of the network, finding ca. 6,000 machines, many of whose IPs are accessible &#8220;publicly and directly with the system&#8217;s source code&#8221; (?), <a href='http://www.chakraborty.ch/exploits/french-researchers-hack-tor/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>French magazine <a href="http://pro.01net.com/" target="_blank">01net</a> <a href="http://pro.01net.com/editorial/544024/des-chercheurs-francais-cassent-le-reseau-danonymisation-tor/%20" target="_blank">reports</a> (article in French) that researchers from <a href="http://www.esiea.fr/c/en/Web.Esiea.Public.cuke?" target="_blank">ESIEA</a>, a French engineering school, have found and exploited some serious vulnerabilities in the <a href="http://www.torproject.org/" target="_blank">TOR network</a>.</p>
<p>According to the article, they performed an inventory of the network, finding ca. 6,000 machines, many of whose IPs are accessible &#8220;publicly and directly with the system&#8217;s source code&#8221; (?), as well as a large number of hidden nodes.</p>
<p>There&#8217;s a lack of detail, but supposedly the attack involves creating a virus (?) and using it to infect such vulnerable systems in a laboratory environment, and thus decrypting traffic passing through them &#8211; again via an unknown, unmentioned mechanism.  Finally, traffic is redirected towards infected nodes by essentially performing a denial of service on clean systems.</p>
<p><img class="alignleft" style="margin-right: 10px;" title="TOR project logo" src="http://upload.wikimedia.org/wikipedia/commons/8/8f/Tor_project_logo_hq.png" alt="source: wikipedia.org" width="299" height="190" /></p>
<p>I&#8217;m skeptical, as the piece contains just too much &#8220;oh, and then you hack component x and compromise component y and voilà, you&#8217;re in&#8221; to necessarily be plausible.  Furthermore, the ESIEA page has a large video presentation on French backwardness in &#8220;cyberwarfare&#8221; &#8211; any time a reputable institution uses such terms, it makes me wonder how much it&#8217;s angling for more funding from buzzword-prone politicians, with resulting pressure on researchers to provide supporting, news-grabbing headlines.</p>
<p>However, if it is real, details are to be presented at <a href="http://h2hc.org.br/" target="_blank">Hackers to Hackers</a> in São Paulo on October 29/30.  TOR is no more than an additional layer of obfuscation and should  not be relied upon for anonymity or security.  Like any darknet, it is a complement to application-layer encryption and authentication, no more.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/exploits/french-researchers-hack-tor/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Everything You Need to Know About Cryptography in One Hour</title>
		<link>http://www.chakraborty.ch/crypto/everything-you-need-to-know-about-cryptography-in-one-hour/</link>
		<comments>http://www.chakraborty.ch/crypto/everything-you-need-to-know-about-cryptography-in-one-hour/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 13:25:21 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Crypto]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/?p=459</guid>
		<description><![CDATA[Introduction ]]></description>
			<content:encoded><![CDATA[<p>A reasonable-looking presentation found online, directed at coders.</p>
<p>For a good in-depth history for even non-technical persons, I&#8217;d recommend Simon Singh&#8217;s excellent <a href="http://www.simonsingh.net/The_Code_Book.html" target="_blank">The Code Book</a>.</p>
<p><object classid="clsid:166b1bca-3f9c-11cf-8075-444553540000" width="650" height="500" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0"><param name="sound" value="true" /><param name="progress" value="true" /><param name="autostart" value="true" /><param name="swliveconnect" value="false" /><param name="swstretchstyle" value="none" /><param name="swstretchhalign" value="none" /><param name="swstretchvalign" value="none" /><param name="src" value="http://www.bsdcan.org/2010/schedule/attachments/135_crypto1hr.pdf" /><embed type="application/x-director" width="650" height="500" src="http://www.bsdcan.org/2010/schedule/attachments/135_crypto1hr.pdf" swstretchvalign="none" swstretchhalign="none" swstretchstyle="none" swliveconnect="false" autostart="true" progress="true" sound="true"></embed></object></p>
<p><a href="http://www.bsdcan.org/2010/schedule/attachments/135_crypto1hr.pdf" target="_blank">Original link</a> (pdf), <a href="http://fosslc.org/drupal/content/everything-you-need-know-about-cryptography-1-hour" target="_blank">full talk here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/crypto/everything-you-need-to-know-about-cryptography-in-one-hour/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>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>iPad Security &#8212; My Overview</title>
		<link>http://www.chakraborty.ch/architecture-design/ipad-security-my-overview/</link>
		<comments>http://www.chakraborty.ch/architecture-design/ipad-security-my-overview/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 20:06:04 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Architecture & Design]]></category>
		<category><![CDATA[Crypto]]></category>
		<category><![CDATA[Gadgets]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/?p=209</guid>
		<description><![CDATA[I had the chance to briefly look at an iPad today, with the idea of checking out, at least on a superficial level, its security functionality.
]]></description>
			<content:encoded><![CDATA[<p>I had the chance to briefly look at an iPad today, with the idea of checking out, at least on a superficial level, its security functionality.</p>
<p>My overall impression?  A really nice device, with a good touchscreen; although I&#8217;m tempted, I can&#8217;t imagine what my greasy fingers would do to it &#8211; and my iPod Touch 2G scratched pretty easily even with casual use, despite its nice case.   It seemed fast enough, with tons of screen space.  I&#8217;m not exactly sure what I&#8217;d do with it (I love typing and am a bit clumsy with things like finger/mouse gestures and with my iPod&#8217;s &#8211; admittedly miniscule &#8211; on-screen keyboard), although my friend Ant came up with the best use I can imagine &#8212; photographers showing off their portfolio to potential clients.  The same would go for company presentations/electronic note-taking and doodling, and casual news/magazine/book reading, I guess.</p>
<p>In terms of usability, it&#8217;s been reviewed to death.</p>
<p>But I was not able to find much of any use regarding data protection and encryption, particularly in an enterprise environment.  Privacy and confidentiality issues seem to be limited to personal use, and nobody appears to have done a comprehensive overview, not of its guts, but of security applications in the business world.</p>
<p>The September MISC Magazine (France) has <a href="http://ed-diamond.com/feuille_misc51/index.html" target="_blank">an interesting section on iPhone security</a>, with a lot of detailed technical analysis.  By comparison, <a href="http://www.wired.com/images_blogs/gadgetlab/2009/07/iphone_security_overview.pdf" target="_blank">Apple&#8217;s overview of iPad security in the enterprise</a> (pdf) is marketing fluff.  Most of the other articles I was able to find were either breathless &#8220;the iPad will bring XYZ to your company!&#8221; garbage, or fluff pieces of the &#8220;in order to secure the iPad in the enterprise, ensure you have proper enterprise security&#8221; variety that bored security consultants like me write when they have nothing better to say.</p>
<p>The device I looked at was a 64GB model with GSM (no SIM card), iOS 3.2.2.  This <a href="http://support.apple.com/kb/HT4292" target="_blank">appears to fix certain vulnerabilities</a> that allowed, among other things, remote privilege escalation, used in past versions of jailbreaks, but seems to still be vulnerable to a few issues.  This is an attempt to collect the useful bits I found; the information may be superseded at time of reading, so do your own research.</p>
<p>The risks I can identify are the following:</p>
<ul>
<li>danger of sensitive information compromise from a stolen (or less likely, network-accessed) iPad</li>
<li>danger to the company network from an iPad connected via wireless/VPN</li>
</ul>
<p>Security features include:</p>
<ul>
<li>Mandatory AES256 filesystem encryption.  Although I couldn&#8217;t find specifics on this, I assumed it was similar to OSX&#8217;s FileVault.  This is apparently not the case.  The encrypted image can <a href="http://www.iphoneblog.de/2009/07/24/zdiarski-zeigt-aufhebung-der-code-sperre-und-backup-verschlusselung/" target="_blank">easily be accessed via jailbreak</a>, e.g. RedSn0w, allowing access to files.  It looks like the disk crypto allows no protection against this.</li>
<li>Numeric PIN code, that can auto-lock the device after 2/5/etc. minutes (or never), and manual lock with the top button.  PIN protection can also be used to restrict apps (more on that in a moment.)  The PIN protection is laughable (4 numbers, no more, no less).  <a href="http://support.apple.com/kb/HT4175" target="_blank">4.1 looks like it fixes this</a>, but it is not out for iPad at the moment.</li>
<li>Auto-wipe after 10 failed PIN attempts.  This is disabled by default in 3.2.2</li>
<li>Application restrictions.  Not much of a security measure; it allows prevention of access to applications based on the iTunes App Store&#8217;s age rating.  You cannot choose which apps to restrict access to, nor is it possible to allow on-the-fly &#8220;unlocking&#8221; via PIN code of apps.</li>
<li>Password encryption of backups via iTunes.  This is purely local (on the PC the iPad is being backed up to); <a href="http://www.iphoneinsecurity.com/" target="_blank">Jonathan Zdiarski</a> showed this summer that <a href="http://www.iphoneblog.de/2009/07/24/zdiarski-zeigt-aufhebung-der-code-sperre-und-backup-verschlusselung/" target="_blank">backup encryption is vulnerable</a>.  That said, iTunes device backup is a purely secondary protection mechanism; I would suggest to try and convince employees to never back up sensitive files to their personal PCs anyway.</li>
<li>Cisco VPN, including L2TP</li>
<li>Remote wipe using MobileMe &#8212; if there is a GSM or wifi connection.  MobileMe costs $99 a year.  This is also possible via the Exchange management console (over Exchange ActiveSync) or via Outlook Web Access if configured.  Again, requires connectivity.  Steve Jobs confirmed that there exists a remote kill switch for iPads in case of rogue applications; this would concern me enormously from a compliance perspective &#8212; not for the possibility of data loss, but as it implies remote third party access.</li>
<li>Centralized management is possible in the form of XML configuration files deployed via Apple Push Notification Service, allowing setting of such options; the Apple iPhone configuration tool is used to <a href="http://blog.brightpointuk.co.uk/enterprise-deployment-iphone-xml-configuration-scripts" target="_blank">generate such configurations</a>.  Apple has some <a href="http://blog.brightpointuk.co.uk/enterprise-deployment-iphone-xml-configuration-scripts" target="_blank">resources</a> on enterprise management of iPads/iPhones.</li>
</ul>
<p>Computerworld <a href="http://blogs.computerworld.com/16318/secure_ipad" target="_blank">wisely suggests</a> using something like <a href="http://agilewebsolutions.com/onepassword/ipad" target="_blank">1Password</a>, for more granular access control for files.  Applications like <a href="http://www.iphoneheat.com/2009/07/how-to-password-protect-applications-on-iphone/" target="_blank">Lockdown</a> or Locktopus (both jailbreak required) provide password protection on a per-application basis; a quick google search didn&#8217;t turn up any Apple-sanctioned apps that do this.</p>
<p>Concerning danger to corporate networks from iPads, the only thing I can come up with is rogue jailbroken apps, and the very low probability that something bad is successfully smuggled into the Apple app store (as has happened in the past).  The danger from these would be minimal if the iPad is only sync&#8217;ed with a company PC via USB, rather than being allowed to access the company network via wireless or VPN.  If you are running an internal wireless network, that&#8217;s in front of a dedicated firewall anyway, right?</p>
<p>As always, a little user education goes a long way.  Particularly users who buy their own iPads are less likely to lose them, turning Apple&#8217;s obscene pricing policy into a bit of a positive thing.  If users can avoid connecting external USB devices, restrict themselves to only installing apps that they need, and practice a bit of discipline in terms of what they do with the device, they look like reasonable choices for low-security data.  I wouldn&#8217;t put anything secret on one, though.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/architecture-design/ipad-security-my-overview/feed/</wfw:commentRss>
		<slash:comments>2</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>Blatant Plug: m0n0wall + PCEngines WRAP / ALIX</title>
		<link>http://www.chakraborty.ch/firewalls/blatant-plug-m0n0wall-pcengines-wrap-alix/</link>
		<comments>http://www.chakraborty.ch/firewalls/blatant-plug-m0n0wall-pcengines-wrap-alix/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 11:02:15 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Crypto]]></category>
		<category><![CDATA[Firewalls]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/blog/?p=59</guid>
		<description><![CDATA[One of my recent projects had me shepherd the development and rollout of an embedded firewall for medical / clinical diagnostic devices in compliance with U.S. HHS / FDA rules on patient data privacy.  Without going into details, a number of new, long-awaited requirements have sprung up within the past few years requiring data protection <a href='http://www.chakraborty.ch/firewalls/blatant-plug-m0n0wall-pcengines-wrap-alix/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="post-entry">
<p>One of my recent projects had me shepherd the development and rollout of an embedded firewall for medical / clinical diagnostic devices in compliance with U.S. HHS / FDA rules on patient data privacy.  Without going into details, a number of new, long-awaited requirements have sprung up within the past few years requiring data protection technology and processes in environments handling sensitive patient information.</p>
<p>This creates a bit of a conundrum for medical device and software manufacturers, insofar as all medical products, not just drugs, must undergo a massive, periodic set of verification and validation tests in order to ensure that they actually do what they’re supposed to, and will not result in minor side effects like genital herpes, limb removal or spontaneous combustion.  Validation is expensive — bringing a drug to market can cost nearly <a href="http://www.ncbi.nlm.nih.gov/pubmed/12606142?dopt=Citation" target="_blank">$1 billion</a>;  any changes, upgrades or additions must go through punishing testing procedures.  The same applies to clinical devices — MRI scanners, blood testers, and the myriad of associated machinery — plugs, cables, batteries — anything that somehow processes or plays a role in the processing of patient data.  Fine.</p>
<p>For IT systems, this is a bit of an issue, especially in light of increased connectivity of hospital and other medical products.  When to re-validate?  Software upgrade?  New feature set?  Security patch?  Antivirus pattern udpate?  As we all know, bugs lurk everywhere, and even innocuous changes could bring about unwanted effects in poorly privilege-separated systems.  This becomes worse when consumer operating systems start being used to run task-specific machinery; common development platforms keep costs down and allow for faster and broader-ranging feature implementation, but despite the inevitable whining about security-through-obscurity-is-not-real-security, having an off-the-wall operating system cuts both ways, in that it may hide flaws less likely to be spotted by peer review, but also often requires targeted intrusion attempts in order to break.</p>
<p>So given that clinical validation and revalidation of upgraded software so as to ensure continued reliability can cost anywhere around $500,000 a pop in time, resources and grief, offloading network security is a good thing.  Despite the discrediting of eggshell models of network security (I still firmly believe that any system should be able to survive if exposed on an open network, even if this is not necessarily wise), if it’s simply not feasible to secure everything, you might as well protect it.  The difficulties in validating and maintaining such systems, though, make it desirable to keep things as simple as possible.</p>
<p>Enter <a href="http://www.m0n0.ch/wall" target="_blank">m0n0wall</a> and <a href="http://www.pcengines.ch/" target="_blank">WRAP / ALIX</a>.  This is the most killer hardware/security platform combo I’ve seen.  I have a few of these on the older WRAP board running for years now without a hitch.  They are incredibly robust, simple, without moving parts, and tolerant; my WRAP boards have been dropped, drenched, plugged into massively off-spec power supplies and otherwise abused.  There’s a mini-PCI slot for a wireless card, and newer ALIX boards have VGA-out, sound, USB and serial.</p>
<p>M0n0 has a friendly interface, a great support community and a tremendously motivated developer behind it.  Anyone familiar with basic firewall or crypto terminology will figure it out instantly; it’s fast, lightweight and has never crashed on me.  My only bitch is that changing an inbound NAT rule does not automatically adjust associated firewall rules, but that’s a pretty minor thing.   Best of all, it’s FreeBSD-based and conducive to hacking.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/firewalls/blatant-plug-m0n0wall-pcengines-wrap-alix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSL / SSH and MTU Problems</title>
		<link>http://www.chakraborty.ch/standards/ssl-ssh-and-mtu-problems/</link>
		<comments>http://www.chakraborty.ch/standards/ssl-ssh-and-mtu-problems/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 22:17:35 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Crypto]]></category>
		<category><![CDATA[Network Security]]></category>
		<category><![CDATA[Standards]]></category>

		<guid isPermaLink="false">http://www.chakraborty.ch/blog/?p=61</guid>
		<description><![CDATA[A colleague of mine recently encountered mysterious issues with SSL connections that dropped large numbers of packets, while cleartext pages loaded fine.  After a bit of digging, he found that decreasing his DSL router’s MTU size from 1410 to 1400 seemed to do the trick. I did some looking around, and found this page from <a href='http://www.chakraborty.ch/standards/ssl-ssh-and-mtu-problems/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="post-entry">
<p>A colleague of mine recently encountered mysterious issues with SSL connections that dropped large numbers of packets, while cleartext pages loaded fine.  After a bit of digging, he found that decreasing his DSL router’s MTU size from 1410 to 1400 seemed to do the trick.</p>
<p>I did some looking around, and found <a href="http://support.iprimus.com.au/index.php?option=com_content&amp;task=view&amp;id=352&amp;Itemid=214" target="_blank">this page</a> from Primus Telecom (Australia) that describes the problem well.</p>
<p style="padding-left: 30px;"><em>When you access a website or essentially do anything on the Internet, your computer places the information into packets, the size of which is determined by the MTU (Maximum Transmission Unit). On an Ethernet network the default MTU size is 1500 bytes, which is what most routers on the Internet will accept, the problem however occurs when we introduce protocol overheads. </em></p>
<p style="padding-left: 30px;"><em>Because there are a number of different protocols your data packets may be encapsulated into, the size of the MTU can increase at different places in the network. If the packet is already close to 1500 bytes when it leaves your ADSL router, it may become larger than 1500 by the time it gets to its destination, which means it will be fragmented, or split up. </em></p>
<p style="padding-left: 30px;"><em>Encryption protocols generally can’t handle packet fragmentation, though this is more by design, rather than as a fault, as fragmentation may introduce a point of insecurity, and allow the encryption to be broken or intercepted. </em></p>
<p>The overhead mentioned consists of datagram encapsulation, for example, and is added by routers along the way.</p>
<p>When using SSL / SSH, the sending machine will set the IP “do not fragment” (DF) header bit to “1″.  Ideally, traffic is sent via the largest size that does not fragment; <a href="http://www.rfc-editor.org/rfc/rfc1191.txt" target="_blank">RFC 1191</a> describes a technique to use the DF header to discover the PMTU (path MTU, this maximum size.)  Lowering it on first hop after your sending machine will do the trick, though.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.chakraborty.ch/standards/ssl-ssh-and-mtu-problems/feed/</wfw:commentRss>
		<slash:comments>2</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:26:35 -->
