<?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/"
	>

<channel>
	<title>Light Blue Touchpaper</title>
	<atom:link href="http://www.lightbluetouchpaper.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lightbluetouchpaper.org</link>
	<description>Security Research, Computer Laboratory, University of Cambridge</description>
	<pubDate>Tue, 09 Feb 2010 00:02:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New attacks on HMQV</title>
		<link>http://www.lightbluetouchpaper.org/2010/02/09/new-attacks-on-hmqv/</link>
		<comments>http://www.lightbluetouchpaper.org/2010/02/09/new-attacks-on-hmqv/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 00:02:40 +0000</pubDate>
		<dc:creator>Feng Hao</dc:creator>
		
		<category><![CDATA[Academic papers]]></category>

		<category><![CDATA[Cryptology]]></category>

		<category><![CDATA[Protocols]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=1703</guid>
		<description><![CDATA[Many people may still remember the debates a few years ago about the HMQV protocol. HMQV was modified from MQV with the primary aim for provable security. However, it was later discovered that the original HMQV was subject to various attacks. In the subsequent submission to P1363 standards, the HMQV protocol has been revised to address the reported weaknesses.
However, the revised [...]]]></description>
			<content:encoded><![CDATA[<p>Many people may still remember the debates a few years ago about the <a href="http://eprint.iacr.org/2005/176">HMQV</a> protocol. HMQV was modified from <a href="http://en.wikipedia.org/wiki/MQV">MQV</a> with the primary aim for provable security. However, it was later discovered that the original HMQV was subject to <a href="http://eprint.iacr.org/2005/205">various attacks</a>. In the subsequent <a href="http://grouper.ieee.org/groups/1363/P1363-Reaffirm/submissions/krawczyk-hmqv-spec.pdf">submission </a>to<a href="http://grouper.ieee.org/groups/1363/"> P1363 standards</a>, the HMQV protocol has been revised to address the reported weaknesses.</p>
<p>However, the revised protocol is still vulnerable to attacks.  In a <a href="http://sites.google.com/site/haofeng662/YAK-short-final.pdf">paper</a> that I presented at Financial Cryptography&#8217;10, I described two new attacks on HMQV. The first attack presents a counterexample to invalidate the basic authentication feature in the protocol. The second attack is generally applicable to other key exchange protocols despite that many have formal security proofs.</p>
<p>The first attack on HMQV is particularly concerning since the formal security proofs failed to detect this basic flaw. The HMQV protocol explicitly specifies that the Certificate Authority (CA) doesn&#8217;t need to validate the public key except checking it is not zero. (This is one reason why HMQV claims more efficient than MQV). So, the protocol allows the CA to certify a small subgroup element as the user&#8217;s &#8220;public key&#8221;. Then, anyone who knows this &#8220;public key&#8221; can successfully pass authentication using HMQV (see the paper for details). Note, in this case, a private key doesn&#8217;t exit, but the authentication is successful. What is the &#8220;authentication&#8221; in HMQV based on?</p>
<p>The HMQV author acknowledges this attack but states it has no bad effects. Although I disagree, this will be up to the reader to decide.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2010/02/09/new-attacks-on-hmqv/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The need for privacy ombudsmen</title>
		<link>http://www.lightbluetouchpaper.org/2010/02/04/the-need-for-privacy-ombudsmen/</link>
		<comments>http://www.lightbluetouchpaper.org/2010/02/04/the-need-for-privacy-ombudsmen/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 20:38:39 +0000</pubDate>
		<dc:creator>Joseph Bonneau</dc:creator>
		
		<category><![CDATA[Privacy technology]]></category>

		<category><![CDATA[Social networks]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=1684</guid>
		<description><![CDATA[Facebook is rolling out two new features with privacy implications, an app dashboard and a gaming dashboard. Take a 30 second look at the beta versions which are already live (with real user data) and see if you spot any likely problems. For the non-Facebook users, the new interfaces essentially provide a list of applications [...]]]></description>
			<content:encoded><![CDATA[<p>Facebook is rolling out two new features with privacy implications, an <a href="http://www.facebook.com/apps_preview/">app dashboard</a> and a <a href="http://www.facebook.com/games_preview/">gaming dashboard</a>. Take a 30 second look at the beta versions which are already live (with real user data) and see if you spot any likely problems. For the non-Facebook users, the new interfaces essentially provide a list of applications that your friends are using, including &#8220;Recent Activity&#8221; which lists when applications were used. What could possibly go wrong?</p>
<p>Well, some users may use applications they don&#8217;t want their friend to know about, like dating or job-search. And they certainly may not want others to know the time they used an application, if this makes it clear that they were playing a game on company time. This isn&#8217;t a catastrophic privacy breach, but it will definitely lead to a few embarrassing situations. As I&#8217;ve <a href="http://www.lightbluetouchpaper.org/2009/06/18/static-consent-and-the-dynamic-web/">argued before</a>, users should have a basic privacy expectation that if they continue to use a service in a consistent way, data won&#8217;t be shared in a new, unexpected manner of which they have no warning or control, and this new feature violates that expectation. The interesting thing is how Facebook is continually caught by surprise when their spiffy new features <a href="http://www.insidefacebook.com/2010/01/28/some-developers-have-privacy-concern-with-facebook-app-dashboards/">upset users</a>. They seem equally clueless with <a href="http://www.insidefacebook.com/2010/02/04/facebook-updates-the-upcoming-apps-dashboards-to-address-privacy-concerns/">their response</a>: allowing developers to opt an application out of appearing on the dashboard. Developers have no incentive to do this, as they want maximum exposure for their apps. A minimally acceptable solution must allow users to opt themselves out.</p>
<p>It&#8217;s inexcusable that Facebook doesn&#8217;t appear to have a formal privacy testing process to review new features and recommend fixes before they go live. The site is quite complicated, but a small team should be able to identify the issues with something like the new dashboard in a day&#8217;s work. It could be effective with with 1% of the manpower of the company&#8217;s <a href="http://www.newsweek.com/id/195621">nudity cops</a>. Notably, Facebook is trying to <a href="http://epic.org/2009/09/facebook-to-end-beacon-establi.html">resolve a class-action lawsuit</a> over their Beacon fiasco by creating an independent privacy foundation, which <a href="http://epic.org/2010/01/epic-privacy-groups-oppose-fac.html">privacy advocates</a> and <a href="http://epic.org/2010/02/facebook-users-object-to-beaco.html">users</a> have both objected to. As a better way forward, I&#8217;d call for creating an in-house &#8220;privacy ombudsmen&#8221; team, which has the authority to review new features and publish analysis of them, as a much more direct step to preventing future privacy failures.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2010/02/04/the-need-for-privacy-ombudsmen/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Why is 3-D Secure a single sign-on system?</title>
		<link>http://www.lightbluetouchpaper.org/2010/01/29/why-is-3-d-secure-a-single-sign-on-system/</link>
		<comments>http://www.lightbluetouchpaper.org/2010/01/29/why-is-3-d-secure-a-single-sign-on-system/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 17:28:24 +0000</pubDate>
		<dc:creator>Steven J. Murdoch</dc:creator>
		
		<category><![CDATA[Academic papers]]></category>

		<category><![CDATA[Banking security]]></category>

		<category><![CDATA[Security economics]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=1665</guid>
		<description><![CDATA[Since the blog post on our paper Verified by Visa and MasterCard SecureCode: or, How Not to Design Authentication, there has been quite a bit of feedback, including media coverage. Generally, commenters have agreed with our conclusions, and there have been some informative contributions giving industry perspectives, including at Finextra.
One question which has appeared a [...]]]></description>
			<content:encoded><![CDATA[<p>Since <a href="http://www.lightbluetouchpaper.org/2010/01/26/how-online-card-security-fails/">the blog post</a> on our paper <a href="http://www.cl.cam.ac.uk/~sjm217/papers/fc10vbvsecurecode.pdf">Verified by Visa and MasterCard SecureCode: or, How Not to Design Authentication</a>, there has been quite a bit of feedback, including <a href="http://www.lightbluetouchpaper.org/2010/01/26/how-online-card-security-fails/#presscoverage">media coverage</a>. Generally, commenters have agreed with our conclusions, and there have been some informative contributions giving industry perspectives, including at <a href="http://finextra.com/community/fullblog.aspx?id=3755">Finextra</a>.</p>
<p>One question which has appeared a few times is why we called 3-D Secure (3DS) a single sign-on (SSO) system. 3DS certainly wasn&#8217;t designed as a SSO system, but I think it meets the key requirement: it allows one party to authenticate another, without credentials (passwords, keys, etc&#8230;) being set up in advance. Just like other SSO systems like <a href="http://openid.net/">OpenID</a> and <a href="http://en.wikipedia.org/wiki/Windows_CardSpace">Windows CardSpace</a>, there is some trusted intermediary which both communication parties have a relationship with, who facilitates the authentication process.</p>
<p>For this reason, I think it is fair to classify 3DS as a special-purpose SSO system. Your card number acts as a pseudonym, and the protocol gives the merchant some assurance that the customer is the legitimate controller of that pseudonym. This is a very similar situation to OpenID, which provides the relying party assurance that the visitor is the legitimate controller of a particular URL. On top of this basic functionality, 3DS also gives the merchant assurance that the customer is able to pay for the goods, and provides a mechanism to transfer funds.</p>
<p>People are permitted to have multiple cards, but this does not prevent 3DS from being a SSO system. In fact, it is generally desirable, for privacy purposes, to allow users to have multiple pseudonyms. Existing SSO systems support this in various ways &#8212; OpenID lets you have multiple domain names, and Windows CardSpace uses <a href="http://www.credentica.com/unique_features.html">clever cryptography</a>. Another question which came up was whether 3DS was actually transaction authentication, because the issuer does get a description of the transaction. I would argue not, because the transaction description does not go to the customer, thus the protocol is vulnerable to a man-in-the-middle attack if the customer&#8217;s PC is compromised.</p>
<p>A separate point is whether it is useful to categorize 3DS as SSO. I would argue yes, because we can then compare 3DS to other SSO systems. For example, OpenID uses the domain name system to produce a hierarchical name space. In contrast, 3DS has a flat numerical namespace and additional intermediaries in the authentication process. Such architectural comparisons between deployed systems are very useful to future designers. In fact, the most significant result the paper presents is one from security-economics: 3DS is inferior in almost every way to the competition, yet succeeded because incentives were aligned. Specifically, the reward for implementing 3DS is the ability to push fraud costs onto someone else &#8212; the merchant to the issuer and the issuer to the customer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2010/01/29/why-is-3-d-secure-a-single-sign-on-system/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Multichannel protocols against relay attacks</title>
		<link>http://www.lightbluetouchpaper.org/2010/01/26/multichannel-protocols-against-relay-attacks/</link>
		<comments>http://www.lightbluetouchpaper.org/2010/01/26/multichannel-protocols-against-relay-attacks/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 20:48:13 +0000</pubDate>
		<dc:creator>Frank Stajano</dc:creator>
		
		<category><![CDATA[Academic papers]]></category>

		<category><![CDATA[Protocols]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=1636</guid>
		<description><![CDATA[Until now it was widely believed that the only defense against relay attacks was distance bounding. In a paper presented today at Financial Cryptography 2010 we introduce a conceptually new approach for detecting and preventing relay attacks, using multichannel protocols.
We have been working on multichannel protocols since 2005. Different channels have different advantages and disadvantages [...]]]></description>
			<content:encoded><![CDATA[<p>Until now it was widely believed that the only defense against relay attacks was distance bounding. In a paper presented today at <a href="http://fc10.ifca.ai/Program.htm">Financial Cryptography 2010</a> we introduce a conceptually new approach for detecting and preventing relay attacks, using multichannel protocols.</p>
<p>We have been working on <a href="http://www.cl.cam.ac.uk/~fms27/papers/2007-WongSta-multichannel.pdf">multichannel protocols</a> <a href="http://www.cl.cam.ac.uk/~fms27/papers/2005-WongSta-multichannel.pdf">since 2005</a>. Different channels have different advantages and disadvantages and therefore one may build a better security protocol by combining different channels for different messages in the protocol trace. (For example a radio channel like Bluetooth has high bandwidth, low latency and good usability but leaves you in doubt as to whether the message really came from the announced sender; whereas a visual channel in which you acquire a barcode with a scanner or camera has low bandwidth and poorer usability but gives stronger assurance about where the message came from.)</p>
<p>In <a href="http://www.cl.cam.ac.uk/~fms27/papers/2009-StajanoWonChr-relay-PRELIMINARY.pdf">this new paper</a> we apply the multichannel paradigm to the problem of countering relay attacks. We introduce a family of protocols in which at least one message is sent over a special &#8220;unrelayable&#8221; channel. The core idea is that one channel connects the verifier to the principal with whom she shares the prearranged secret K, while another channel (the unrelayable one) connects her to the prover who is actually in front of her; and the men in the middle, however much they relay, can&#8217;t get it right on both of these channels simultaneously. </p>
<p>We convey this idea with several stories. Don&#8217;t take them too literally but they let us illustrate and discuss all the key security points.</p>
<p><img src="http://www.cl.cam.ac.uk/~fms27/goodies/stab.png" alt="Don't let anyone else reuse this banknote!" /></p>
<p>This work is exciting for us because it opens up a new field. We look forward to other researchers following it up with implementations of unrelayable channels and with formal tools for the analysis of such protocols.</p>
<p>Frank Stajano, Ford-Long Wong, Bruce Christianson. <a href="http://www.cl.cam.ac.uk/~fms27/papers/2009-StajanoWonChr-relay-PRELIMINARY.pdf">Multichannel protocols to prevent relay attacks</a> (preliminary; the final revised version of the full paper will be published in Springer LNCS)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2010/01/26/multichannel-protocols-against-relay-attacks/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How online card security fails</title>
		<link>http://www.lightbluetouchpaper.org/2010/01/26/how-online-card-security-fails/</link>
		<comments>http://www.lightbluetouchpaper.org/2010/01/26/how-online-card-security-fails/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 12:25:13 +0000</pubDate>
		<dc:creator>Ross Anderson</dc:creator>
		
		<category><![CDATA[Academic papers]]></category>

		<category><![CDATA[Banking security]]></category>

		<category><![CDATA[Legal issues]]></category>

		<category><![CDATA[Politics]]></category>

		<category><![CDATA[Security economics]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=1614</guid>
		<description><![CDATA[Online transactions with credit cards or debit cards are increasingly verified using the 3D Secure system, which is branded as &#8220;Verified by VISA&#8221; and &#8220;MasterCard SecureCode&#8221;. This is now the most widely-used single sign-on scheme ever, with over 200 million cardholders registered. It&#8217;s getting hard to shop online without being forced to use it.
In a [...]]]></description>
			<content:encoded><![CDATA[<p>Online transactions with credit cards or debit cards are increasingly verified using the 3D Secure system, which is branded as &#8220;Verified by VISA&#8221; and &#8220;MasterCard SecureCode&#8221;. This is now the most widely-used single sign-on scheme ever, with over 200 million cardholders registered. It&#8217;s getting hard to shop online without being forced to use it.</p>
<p>In a <a href="http://www.cl.cam.ac.uk/~rja14/Papers/fc10vbvsecurecode.pdf">paper</a> I&#8217;m presenting today at <a href="http://fc10.ifca.ai/Program.htm">Financial Cryptography</a>, Steven Murdoch and I analyse 3D Secure. From the engineering point of view, it does just about everything wrong, and it&#8217;s becoming a fat target for phishing. So why did it succeed in the marketplace? </p>
<p>Quite simply, it has strong incentives for adoption. Merchants who use it push liability for fraud back to banks, who in turn push it on to cardholders. Properly designed single sign-on systems, like OpenID and InfoCard, can&#8217;t offer anything like this. So this is yet another case where security economics trumps security engineering, but in a predatory way that leaves cardholders less secure. We conclude with a suggestion on what bank regulators might do to fix the problem. </p>
<p><strong id="presscoverage">Update</strong> (2010-01-27): There has been some follow-up media coverage</p>
<ul>
<li>The Register &ndash; <a href="http://www.theregister.co.uk/2010/01/27/3d-insecure/">Verified by Visa bitchslapped by Cambridge researchers</a></li>
<li>ZDNet UK &ndash; <a href="http://news.zdnet.co.uk/security/0,1000000189,40008732,00.htm">Cambridge researchers knock Verified by Visa</a></li>
<li>Heise Security &ndash; <a href="http://www.h-online.com/security/news/item/Researchers-criticise-3D-Secure-credit-card-authentication-914144.html">Researchers criticise 3D Secure credit card authentication</a> and <a href="http://www.heise.de/newsticker/meldung/Forscher-kritisieren-Kreditkartentechnik-3-D-Secure-914365.html">Forscher kritisieren Kreditkartentechnik 3-D Secure</a></li>
<li>PCWorld (IDG News Service) &ndash; <a href="http://www.pcworld.com/businesscenter/article/187849/3d_secure_online_payment_system_not_secure_researchers_say.html">3D Secure Online Payment System Not Secure, Researchers Say</a></li>
<li>V3.co.uk (formerly vnunet) &ndash; <a href="http://www.v3.co.uk/v3/news/2256859/secure-slammed-insecure">Researchers slam 3-D Secure as insecure</a></li>
</ul>
<p><strong>Update</strong> (2010-01-28): The <a href="http://www.newscientist.com/article/mg20527455.400-benevolent-hackers-poke-holes-in-ebanking.html">New Scientist</a> also has the story, as has <a href="http://arstechnica.com/security/news/2010/01/security-researchers-blast-credit-card-verification-system.ars">Ars Technica</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2010/01/26/how-online-card-security-fails/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How hard can it be to measure phishing?</title>
		<link>http://www.lightbluetouchpaper.org/2010/01/25/how-hard-can-it-be-to-measure-phishing/</link>
		<comments>http://www.lightbluetouchpaper.org/2010/01/25/how-hard-can-it-be-to-measure-phishing/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 19:49:21 +0000</pubDate>
		<dc:creator>Richard Clayton</dc:creator>
		
		<category><![CDATA[Academic papers]]></category>

		<category><![CDATA[Banking security]]></category>

		<category><![CDATA[Security economics]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=1607</guid>
		<description><![CDATA[Last Friday I went to a workshop organised by the Oxford Internet Institute on &#8220;Mapping and Measuring Cybercrime&#8220;. The attendees represented many disciplines from lawyers, through ePolicy, to serving police officers and an ex Government minister. Much of the discussion related to the difficulty of saying precisely what is or is not &#8220;cybercrime&#8220;, and what [...]]]></description>
			<content:encoded><![CDATA[<p>Last Friday I went to a workshop organised by the <a href="http://www.oii.ox.ac.uk/about/">Oxford Internet Institute</a> on &#8220;<a href="http://www.oii.ox.ac.uk/events/details.cfm?id=337">Mapping and Measuring Cybercrime</a>&#8220;. The attendees represented many disciplines from lawyers, through ePolicy, to serving police officers and an <a href="http://www.alunmichael.com/">ex Government minister</a>. Much of the discussion related to the difficulty of saying precisely what is or is not &#8220;<a href="http://www.symantec.com/norton/cybercrime/definition.jsp">cybercrime</a>&#8220;, and what might be meant by mapping or measuring it.</p>
<p>The <a href="http://www.cl.cam.ac.uk/~rnc1/cyberbias.pdf">position paper</a> I submitted (one more of the extensive <a href="http://people.seas.harvard.edu/~tmoore/#pubs">Moore</a>/<a href="http://www.cl.cam.ac.uk/~rnc1/publications.html">Clayton</a> canon on phishing) took a step back (though of course we intend to be a step forward), in that it looked at the very rich datasets that we have for phishing and asked whether this meant that we could usefully map or measure that particular criminal speciality?</p>
<p>In practice, we believe, bias in the data and the bias of those who are interpret it means that considerable care is needed to understand what all the data actually means. We give an example from <a href="http://www.cl.cam.ac.uk/~rnc1/ecrime08pre.pdf">our own work</a> of how failing to understand the bias meant that we initially misunderstood the data, and how various intentional distortions arise because of the self-interest of those who collect the data.</p>
<p>Extrapolating, this all means that getting better data on other types of cybercrime may not prove to be quite as useful as might initially be thought.</p>
<p>As ever, reading the <a href="http://www.cl.cam.ac.uk/~rnc1/cyberbias.pdf">whole paper</a> (it&#8217;s only 4 sides!) is highly recommended, but to give a flavour of the problem we&#8217;re drawing attention to:</p>
<blockquote><p>If a phishing gang host their webpages on a thousand fraudulent domains, using fifty stolen credit cards to purchase them from a dozen registrars, and then transfer money out of a hundred customer accounts leading to a monetary loss in six cases: is that a 1000 crimes, or 50, or 12, or 100 or 6 ?</p></blockquote>
<p>The phishing website removal companies would say that there were 1000 incidents because they need to get 1000 domains suspended. The credit card companies would say there were 50 incidents because 50 cardholders ought to have money reimbursed. Equally they would have 12 registrars to &#8220;charge back&#8221; because they had accepted fraudulent registrations (there might have been any number of actual credit card money transfer events between 12 and 1000 depending whether the domains were purchased in bulk). The banks will doubtless see the criminality as 100 unauthorised transfers of money out of their customer accounts; but if they claw back almost all of the cash (because it remains within the mainstream banking system) then the six-monthly <a href="http://www.ukpayments.org.uk/uk_payment_schemes/financial_fraud_action_uk/">Financial Fraud Action UK</a> (formerly APACS) report will merely include the monetary losses from the 6 successful thefts.</p>
<p>Clearly, what you count depends on who you are &#8212; but crucially, in a world where <a href="http://www.parliament.uk/commons/lib/research/briefings/snep-03314.pdf">resources are deployed to meet measurement targets</a> (and your job is at risk if you miss them), deciding what to measure will bias your decisions on what you actually do and hence how effective you are at defeating the <a href="http://www.cartoonbank.com/2006/You-know-you-can-do-this-just-as-easily-online/invt/129387">criminals</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2010/01/25/how-hard-can-it-be-to-measure-phishing/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Placebo bomb detectors</title>
		<link>http://www.lightbluetouchpaper.org/2010/01/22/placebo-bomb-detectors/</link>
		<comments>http://www.lightbluetouchpaper.org/2010/01/22/placebo-bomb-detectors/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 23:56:53 +0000</pubDate>
		<dc:creator>Markus Kuhn</dc:creator>
		
		<category><![CDATA[Hardware & signals]]></category>

		<category><![CDATA[News coverage]]></category>

		<category><![CDATA[Security economics]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=1571</guid>
		<description><![CDATA[A few days ago, BBC2&#8217;s Newsnight approached me to have a look inside what might have been some kind of smartcard, but had long been suspected to be part of a simple-minded and dangerous fraud that may already have cost lives.
Background: The Iraqi army (among others) has bought for millions of pounds ADE651 devices, which [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago, BBC2&#8217;s <a href="http://news.bbc.co.uk/1/hi/programmes/newsnight">Newsnight</a> approached me to have a look inside what might have been some kind of smartcard, but had long been suspected to be part of a simple-minded and dangerous fraud that may already have cost lives.<span id="more-1571"></span></p>
<p>Background: The Iraqi army (among others) has bought for millions of pounds <a href="http://en.wikipedia.org/wiki/ADE_651">ADE651</a> devices, which according to the <a href="http://www.ade651.com/">vendor&#8217;s website</a> can detect almost <a href="http://www.ade651.com/sustanciasin.html">any substance of interest to the military</a> (explosives, banknotes, drugs, etc.) <a href="http://www.ade651.com/datostecnicosin.html">even kilometres away</a>. The devices contain no power source (&#8221;powered by the user’s static electricity&#8221;, no battery), resemble very much a <a href="http://en.wikipedia.org/wiki/Dowsing">dowsing</a> rod, and generally leave much to be desired regarding a plausible operating principle or performance in repeatable double-blind trials. There are several such military dowsing rods on the market. The ADE651 distinguishes itself by being &#8220;programmable&#8221; with a plastic card that can be inserted into the unit to select the substance to be detected. Having already established that the card reader end was just an empty box, the BBC team wanted to know whether there is anything inside these programming cards.</p>
<p>They provided me with a few sample cards, which when held against a bright light showed in the centre the outline of what might be a loop antenna, similar to those used in RFID tags designed for short-wave frequencies.</p>
<p>I opened some of these cards by first heating them on a 60 °C hotplate to soften the glue that keeps the two layers of the laminate together and then slowly cut them apart from all sides, parallel to the card surface, using a sharp utility knife. About 16 mm from the centre of the cards, I encountered instead of glue an inserted 32 mm x 32 mm large paper sticker, and the card layers fell apart there easily. This paper sticker looked very much like it was designed to be used as part of an RF <a href="http://en.wikipedia.org/wiki/Electronic_article_surveillance">electronic article surveillance</a> system, which is attached to goods in high-street shops and raises an alarm at sensors near the exit door if the tag hasn&#8217;t been deactivated at the till. Several observations confirmed this:</p>
<ul>
<li>The barcode looked very similar to the <a href="http://en.wikipedia.org/wiki/Universal_Product_Code">UPC</a> one used by scanner tills in shops, but it was misaligned, the check digit of the number (048572 020000) was incorrect, the prefix of the number had been chosen such that it was not <a href="http://www.gs1.org/barcodes/support/prefix_list">assigned</a> to any country in UPC, and the barcode didn&#8217;t even match the number. All this suggests that the barcode is just carefully designed camouflage, to hide the real purpose of these stickers when used in shops, without the risk of being accidentally recognized at a checkout scanner. A member of the Newsnight team even found in a Currys shop an item with a security tag that had the exact same 8-digit number under the fake barcode.
<li>I cut away the remaining card plastic and used solvent (white spirit, ~80 °C) to dissolve the glue underneath the sticker. After a short time, the sticker paper with the barcode separated and revealed underneath a laminate of aluminium foil and transparent plastic foil. The aluminium was shaped into a coil. The coil centre had been folded out to form two plates of a capacitor. This was clearly meant to be a simple LC resonator, shaped exactly like the ones that RF electronic article surveillance systems near shop doors detect.
<li>I first used my fingers to find any hints of a semiconductor chip or other electronic component in the laminate, and could not feel any. To be completely sure that there was no chance of there being any semiconductor chip inside that I might have missed, I left the laminate overnight at room-temperature soaking in white spirit, such the remaining glue dissolved and all layers of the laminate came apart easily and completely. Another careful inspection of all surfaces and the solvent showed again no trace of any form of semiconductor device or other integrated circuit than the capacitor and coil formed by the aluminium foil.
</ul>
<p>All this left me very confident that the sticker was indeed a <a href="http://theftcontrol.com/products/2-security-labels.html">security label with fake barcode</a> that had no capacity to be programmed with any other information than being deactivated at a shop till by a strong RF field (which shorts out the capacitor by breaking down the foil dielectric). There is no way in which this device could be programmed to distinguish the many different substances that the ADE651 manufacturer claimed it could, not to mention that any useful interaction with such an LC circuit would require a transmitter antenna, a power source, and lots of other components that the ADE651 appears to lack. And, to state the obvious, there is no way in which an anti-theft RF tag, like I found in these cards, could be able to help in detecting explosive substances such as TNT (as the Arabic letters on the card had claimed). I strongly suspect that these tags have been chosen because they are the cheapest and most easily available items that look vaguely electronic and are flat enough to fit inside a plastic card.</p>
<p>See the <a href="http://news.bbc.co.uk/1/hi/programmes/newsnight/8471187.stm">BBC News coverage</a> and the <a href="http://www.bbc.co.uk/iplayer/episode/b00q9hx6/Newsnight_22_01_2010/">BBC2 Newsnight programme on 22 January 2009, 22:30</a> for the full story.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2010/01/22/placebo-bomb-detectors/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Encoding integers in the EMV protocol</title>
		<link>http://www.lightbluetouchpaper.org/2010/01/19/encoding-integers-in-the-emv-protocol/</link>
		<comments>http://www.lightbluetouchpaper.org/2010/01/19/encoding-integers-in-the-emv-protocol/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 14:38:28 +0000</pubDate>
		<dc:creator>Steven J. Murdoch</dc:creator>
		
		<category><![CDATA[Banking security]]></category>

		<category><![CDATA[Hardware & signals]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=1532</guid>
		<description><![CDATA[On the 1st of January 2010, many German bank customers found that their banking smart cards had stopped working. Details of why are still unclear, but indications are that the cards believed that the date was 2016, rather than 2010, and so refused to process a transaction supposedly after their expiry dates. This problem could [...]]]></description>
			<content:encoded><![CDATA[<p>On the 1st of January 2010, many German bank customers found that their banking smart cards had stopped working. Details of why are <a href="http://catless.ncl.ac.uk/Risks/25.89.html#subj1">still unclear</a>, but indications are that the cards believed that the date was 2016, rather than 2010, and so refused to process a transaction supposedly after their expiry dates. This problem could turn out to be quite expensive for the cards&#8217; manufacturer, Gemalto: their shares <a href="http://www.h-online.com/security/news/item/EC-card-disaster-French-manufacturer-Gemalto-takes-responsibility-897991.html">dropped almost 4%</a>, and they have booked a <a href="http://www.finextra.com/news/fullstory.aspx?newsitemid=20941">€10 m</a> charge to handle the consequences.</p>
<p>These cards implement the EMV protocol (the same one used for Chip and PIN in the UK). Here, the card is sent the current date in 3-byte YYMMDD <a href="http://en.wikipedia.org/wiki/Binary-coded_decimal">binary-coded decimal (BCD)</a> format, i.e. &#8220;100101&#8243; on 1 January 2010. If however this was interpreted as <a href="http://en.wikipedia.org/wiki/Hexadecimal">hexadecimal</a>, then the card will think the year is 2016 (in hexadecimal, 1 January 2010 should have actually been &#8220;0a0101&#8243;). Since the numbers 0&#8211;9 are the same in both BCD and hexadecimal, we can see why this problem only occurred in 2010*.</p>
<p>In one sense, this looks like a foolish error, and should have been caught in testing. However, before criticizing too harshly, one should remember that EMV is almost impossible to implement perfectly. I have written a fairly complete implementation of the protocol and frequently find edge cases which are insufficiently documented, making dealing with them error-prone. Not only is the specification vague, but it is also long &#8212; the first public version in 1996 was 201 pages, and it grew to 765 pages by 2008. Moreover, much of the complexity is unnecessary. In this article I will give just one example of this &#8212; the fact that there are nine different ways to encode integers.</p>
<p><span id="more-1532"></span>Compliant implementations must be able to implement all of these encoding forms; the one used in any one place depends on context.</p>
<dl>
<dt>TLV field lengths (&lt; 128)</dt>
<dd>When data is sent from the card to the terminal, they are encoded in tag-length-value format (TLV), inherited from <a href="http://en.wikipedia.org/wiki/ASN.1">ASN.1</a>. The tag specifies the type, and the length specifies how many bytes follow in the value. When the length is less than 128 bytes, the single length-byte has the most-significant bit cleared, and bits 7&#8211;1 encode the length.</dd>
<dt>TLV field lengths (&ge; 128)</dt>
<dd>When a TLV field value is 128 bytes or longer, the length is encoded using multiple bytes. The first byte has the most-significant bit set, and bits 7&#8211;1 encode the number of length bytes that follow. These are then interpreted as a big-endian integer.</dd>
<dt>TLV tags (&lt; 31)</dt>
<dd>EMV tags are also variable length. For tags which are less than 31, a single byte is used with bits 5&#8211;1 encoding the tag number (bits 8&#8211;7 specifies the namespace of the tag, and bit 6 specifies whether the value is encoded in TLV too).</dd>
<dt>TLV tags (&ge; 31)</dt>
<dd>When the tag is 31 or greater, bits 5&#8211;1 of the first byte are set to &#8220;11111&#8243; and the actual tag number is encoded in bits 7&#8211;1 of subsequent bytes. The last of these bytes has the most-significant bit cleared, whereas preceding ones have it set.</dd>
<dt>Compact TLV</dd>
<dd>Alternatively, data can be sent from the card to the terminal in compact TLV format. Here, both tag and length are combined into a single byte &#8212; bits 8&#8211;4 (after adding 0&#215;40) becomes the tag, and bits 3&#8211;1 specifies the length. This is used for encoding data in the historical bytes of the answer-to-reset.</dd>
<dt>Numeric</dt>
<dd>Many data items are encoded as binary-coded decimal, with two digits per byte and left-padded with zeros (e.g. used for dates, amounts of currency, some protocol flags).</dd>
<dt>Compressed numeric</dt>
<dd>Some data items are encoded in &#8220;compressed&#8221; binary-coded decimal, with two digits per byte and right-padded with &#8216;F&#8217;s (e.g. used for account number, copy of track two magstrip data).</dd>
<dt>Binary</dt>
<dd>Other data items are big-endian integer encoded (e.g. used for encoding the transaction counter, public key parameters, and some protocol flags). Fields are fixed-length, but not necessarily on byte-boundaries.</dd>
<dt>ASCII</dt>
<dd>Some integers are encoded as their corresponding ASCII representation, with one digit per byte (e.g. used for encoding the copy of track one magstrip data) .</dd>
</dl>
<p>Given this wide variety of subtly different encodings (and I have probably missed some), it is not that surprising that a smart card developer could slip up, as has appeared to have occurred with the German EMV cards. Handling variable-length integers is a frequent source of bugs (ASN.1 is a <a href="http://www.microsoft.com/technet/security/bulletin/MS04-007.mspx">particularly</a> <a href="http://web.mit.edu/Kerberos/advisories/MITKRB5-SA-2009-002.txt">bad</a> <a href="http://www.openssl.org/news/secadv_20030930.txt">offender</a> in this regard). This also makes me wonder whether there are security vulnerabilities in the cards or terminals.</p>
<p>* <small>Actually, while this scenario explains the wide-scale problems occurring in 2010, if the month and day were interpreted as hexadecimal too, then cards which expired in September&#8211;December, would have problems in their last year of validity. The wrap-around for the day will cause a problem for cards expiring in September, during 20&#8211;30 September, because the BCD for 20 September 2009 is &#8220;090920&#8243;, which is greater than 31 September 2009 in hexadecimal &#8212; &#8220;09091f&#8221;. Similarly, the month will become a problem for cards expiring in October&#8211;December, during 1 October &#8212; 31 December, because the BCD for 1 October 2009 is 091001, which is greater than the 31 October/November/December 2009 in hexadecimal &#8212; &#8220;090a1f&#8221;/&#8221;090b1f&#8221;/&#8221;090c1f&#8221;). So either these glitches occurred but were attributed to random failure, or there is something special about the handling of the year in the failing Gemalto implementation (perhaps related to a conversion between two and four digit years)</small>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2010/01/19/encoding-integers-in-the-emv-protocol/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mobile Internet access data retention (not!)</title>
		<link>http://www.lightbluetouchpaper.org/2010/01/14/mobile-internet-access-data-retention-not/</link>
		<comments>http://www.lightbluetouchpaper.org/2010/01/14/mobile-internet-access-data-retention-not/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 00:05:40 +0000</pubDate>
		<dc:creator>Richard Clayton</dc:creator>
		
		<category><![CDATA[Legal issues]]></category>

		<category><![CDATA[Security engineering]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=1490</guid>
		<description><![CDATA[In the first article in this series I discussed why massive use of Network Address Translation (NAT) means that traceability for mobile Internet access requires the use of source port numbers. In the second article I explained how in practice the NAT logging records, that record the mapping from IP address to customer, are available [...]]]></description>
			<content:encoded><![CDATA[<p>In the <a href="http://www.lightbluetouchpaper.org/?p=1488">first article</a> in this series I discussed why massive use of Network Address Translation (NAT) means that traceability for mobile Internet access requires the use of source port numbers. In the <a href="http://www.lightbluetouchpaper.org/2010/01/13/practical-mobile-internet-access-traceability/">second article</a> I explained how in practice the NAT logging records, that record the mapping from IP address to customer, are available for only a short time &#8212; or may not exist at all.</p>
<p>This might seem a little surprising because within the EU a &#8220;<a href="http://eur-lex.europa.eu/LexUriServ/LexUriServ.do?uri=CELEX:32006L0024:EN:HTML">data retention</a>&#8221; regime has been in place since the Spring of 2009. So surely the mobile phone companies have to keep the NAT records of Internet access, even though this will be horribly expensive?</p>
<p>They don&#8217;t!</p>
<p>The reason is that instead of the EU Directive (and hence UK and other European laws) saying what was to be achieved &#8212; &#8220;we want traceability to work&#8221; &#8212; the bureaucrats decided to say what they wanted done &#8212; &#8220;we want logs of IP address allocation to be kept&#8221;. For most ISPs the two requirements are equivalent. For the mobile companies, with their massive use of NAT, they are not equivalent at all.</p>
<p>The EU Directive (Article 5) requires an ISP to retain for all Internet access events (the mobile call itself will require other info to be retained):</p>
<blockquote><p>(a)(i) the user ID(s) allocated;<br />
(a)(iii) the name and address of the subscriber or registered user to whom an Internet Protocol (IP) address, user ID or telephone number was allocated at the time of the communication;<br />
(c)(i) the date and time of the log-in and log-off of the Internet access service, based on a certain time zone, together with the IP address, whether dynamic or static, allocated by the Internet access service provider to a communication, and the user ID of the subscriber or registered user;<br />
(e)(ii) the digital subscriber line (DSL) or other end point of the originator of the communication;
</p></blockquote>
<p>That is, the company must record which IP address was given to the user, but there is no requirement to record the source port number. As discussed in this series of articles, this makes traceability extremely problematic.</p>
<p>It&#8217;s also somewhat unclear (but then <a href="http://www.davros.org/presentations/retention-20060110.html">much more of the Directive is technically unclear</a>) whether recording the &#8220;internal&#8221; IP address allocated to the user is sufficient, or whether the NAT records (without the port numbers) need to be kept as well. Fortunately, in the UK, the <a href="http://www.opsi.gov.uk/si/si2009/uksi_20090859_en_1">Regulations that implement the Directive</a> make it clear that the rules only apply once a notice has been served on an ISP, and that notice must say to what extent the rules apply. So in principle, all should be clear to the mobile telcos!</p>
<p>By the way &#8230; this bureaucratic insistence on saying what is to be done, rather than what is to be achieved, can also be found in the <a href="http://en.wikipedia.org/wiki/Digital_Economy_Bill">Digital Economy Bill</a> which is currently before the House of Lords. It keeps on mentioning &#8220;IP addresses&#8221; being required, with no mention of source port numbers.</p>
<p>But perhaps that particular problem will turn out OK? Apple will not let anyone with an iPhone <a href="http://www.wired.com/threatlevel/2009/05/apple-rejects-bittorrent-iphone-app/">download music</a> without permission!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2010/01/14/mobile-internet-access-data-retention-not/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Practical mobile Internet access traceability</title>
		<link>http://www.lightbluetouchpaper.org/2010/01/13/practical-mobile-internet-access-traceability/</link>
		<comments>http://www.lightbluetouchpaper.org/2010/01/13/practical-mobile-internet-access-traceability/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 00:05:16 +0000</pubDate>
		<dc:creator>Richard Clayton</dc:creator>
		
		<category><![CDATA[Legal issues]]></category>

		<category><![CDATA[Security engineering]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=1488</guid>
		<description><![CDATA[In an earlier article I explained how the mobile phone companies are using Network Address Translation on a massive scale to allow hundreds of Internet access customers to share a single IP address. I pointed out how it was now necessary to record the source port as well as the IP address if you wanted [...]]]></description>
			<content:encoded><![CDATA[<p>In an <a href="http://www.lightbluetouchpaper.org/2010/01/12/extending-the-requirements-for-traceability/">earlier article</a> I explained how the mobile phone companies are using Network Address Translation on a massive scale to allow hundreds of Internet access customers to share a single IP address. I pointed out how it was now necessary to record the source port as well as the IP address if you wanted to track somebody down.</p>
<p>Having talked in detail about this with <a href="http://en.wikipedia.org/wiki/List_of_mobile_network_operators_of_Europe#United_Kingdom">one of the UK&#8217;s major mobile phone companies</a>, I can now further describe some practical issues (Caveat: other companies may differ in how they&#8217;ve implemented their details, but all of them are doing something very similar).</p>
<p>The <a href="http://www.cartoonstock.com/cartoonview.asp?catref=epa1461">good news</a>, first, is that things are not as bad as they might be!</p>
<p>By design, NAT systems provide a constant mapping to a single IP address for any given user (at least until they next disconnect). This means that, for example, a website that is tracking visitors by IP address will not serve the wrong content; and their log analysis program will see constant IP addresses when the user changes page or fetches an image, so that audience measurements will remain valid. From a security point of view, it means that provided you have at least one logging record with IP address + port number + timestamp, then you will have sufficient data to be able to seek to make an identification.</p>
<p>As a quick aside, you may be thinking that you could do an &#8220;inference attack&#8221; to identify someone without using a source port number. Suppose that you can link several bad events together over a period of time, but only have the IP address of each. Despite the telco having several hundred people using each IP address at each relevant instant, only one user might be implicated on every occasion. Viewers of the wire will recall <a href="http://en.wikipedia.org/wiki/Middle_Ground_(The_Wire_episode)#Major_case_unit">a similar scheme being used</a> to identify Stringer Bell&#8217;s second SIM card number!</p>
<p>Although this inference approach would work fine in theory, the telco I spoke with does not keep its records in a suitable form for this to be at all efficient. So, even supposing that one could draft the appropriate legal request (a <a href="http://security.homeoffice.gov.uk/ripa/publication-search/ripa-forms/ripa-section-22-notice-updatef77a.html?view=Standard&#038;pubID=590984">s22 notice</a>, as prescribed by the UK&#8217;s <a href="http://www.opsi.gov.uk/acts/acts2000/ukpga_20000023_en_1">Regulation of Investigatory Powers Act</a>), the cost of doing the searches and collating the results (and those costs are borne by the investigators), would be prohibitive.</p>
<p>But now it&#8217;s time for the <a href="http://www.cartoonstock.com/cartoonview.asp?catref=hsc3825">bad news</a>.</p>
<p>Traditional ISP IP address usage records (in <a href="http://freeradius.org/">RADIUS</a> or similar systems) have both a &#8220;start&#8221; and &#8220;stop&#8221; record. The consistency of these records within the logging system gives considerable assurance that the data is valid and complete. The NAT logging only records an event when the source port starts to be used &#8212; so if records go missing (and <a href="http://www.rfc-editor.org/rfc/rfc5426.txt">classical syslog</a> systems can lose records when network errors occur), then there is no consistency check to show that the wrong account has been identified.</p>
<p>The logging records that show which customer was using which IP address (and source port) are extremely large &#8212; dozens of records can be generated by viewing just one web page. They also provide sensitive information about customer habits, and so if they are retained at all, it will only be for a short period of time. This means that if you want traceability then you need to get a move on. ISPs typically keep logs of IP address usage for a few weeks. At the mobile companies (because of the volume) you will in practice have to consult the records within just a few days.</p>
<p>Furthermore, even when the company intends to hold the data for a short period, it turns out that under heavy load the NAT equipment struggles to do what it’s supposed to be doing, leave alone generate gigabytes of logging. So the logging is often turned off for long periods for service protection reasons.</p>
<p>Clearly there&#8217;s a reputational risk to not having any records at all. For an example which does not have anything to do with policing: not being able to track down the sources of email spam would demean the mobile company in the eyes of other ISPs (which in practice will be seen by ever more aggressive filtering of all of their email). However, that risk is rather long-term; keeping the system running &#8220;now&#8221; is rather more important; and there is a lot that a mobile company can do to block and detect spam within their own networks &#8212; they don&#8217;t need to rely on being able to process external abuse reports.</p>
<p>In the <a href="http://www.lightbluetouchpaper.org/2010/01/14/mobile-internet-access-data-retention-not/">third and final article</a> of this little series I will consider the question of &#8220;data retention&#8221;. Surely the mobile phone company has a legal duty to keep traceability records? It turns out that the regulators screwed it up &#8212; and they don&#8217;t!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2010/01/13/practical-mobile-internet-access-traceability/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
