<?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>Light Blue Touchpaper &#187; Hardware &amp; signals</title>
	<atom:link href="http://www.lightbluetouchpaper.org/category/security-engineering/hardware/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lightbluetouchpaper.org</link>
	<description>Security Research, Computer Laboratory, University of Cambridge</description>
	<lastBuildDate>Mon, 30 Jan 2012 10:06:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Job ad: post-doctoral researcher in security, operating systems, computer architecture</title>
		<link>http://www.lightbluetouchpaper.org/2011/12/06/job-ad-post-doctoral-researcher-in-security-operating-systems-computer-architecture/</link>
		<comments>http://www.lightbluetouchpaper.org/2011/12/06/job-ad-post-doctoral-researcher-in-security-operating-systems-computer-architecture/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 17:38:51 +0000</pubDate>
		<dc:creator>Robert N. M. Watson</dc:creator>
				<category><![CDATA[Hardware & signals]]></category>
		<category><![CDATA[Jobs]]></category>
		<category><![CDATA[Operating systems]]></category>
		<category><![CDATA[Processors]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=3313</guid>
		<description><![CDATA[We are very pleased to announce a job opening at the University of Cambridge Computer Laboratory for a post-doctoral researcher working in the areas of security, operating systems, and computer architecture.]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Job+ad%3A+post-doctoral+researcher+in+security%2C+operating+systems%2C+computer+architecture&amp;rft.aulast=Watson&amp;rft.aufirst=Robert&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.subject=Jobs&amp;rft.subject=Operating+systems&amp;rft.subject=Processors&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2011-12-06&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2011/12/06/job-ad-post-doctoral-researcher-in-security-operating-systems-computer-architecture/&amp;rft.language=English"></span>
<p>We are pleased to announce a job opening at the University of Cambridge Computer Laboratory for a post-doctoral researcher working in the areas of security, operating systems, and computer architecture.</p>
<p><strong>Research Associate</strong><br />
University of Cambridge &#8211; Faculty of Computer Science &#038; Technology</p>
<p>Salary: £27,428 &#8211; £35,788 pa<br />
The funds for this post are available for one year:</p>
<p>We are seeking a Post-doctoral Research Associate to join the CTSRD Project, which is investigating fundamental improvements to CPU architecture, operating system (OS), and programming language structure in support of computer security. The CTSRD Project is a collaboration between the University of Cambridge and SRI International, and part of the DARPA CRASH research programme on clean-slate computer system design.</p>
<p>This position will be an integral part of an international team of researchers spanning multiple institutions across academia and industry. The successful candidate will contribute to low-level aspects of system software: compilers, language run-times, and OS kernels. Responsibilities will include researching the application of novel dynamic techniques to C-language operating systems and applications, including adaptation of the FreeBSD kernel and LLVM compiler suite, and measurement of the resulting system.</p>
<p>An ideal candidate will hold (or be close to finishing) a PhD in Computer Science, Mathematics, or similar with a strong background in low-level system software development, which should include at least of one of strong kernel development experience (FreeBSD preferred; Linux acceptable), or compiler internals experience (LLVM preferred; gcc acceptable). Strong experience with the C programming language is critical. Some background in computer security is also recommended.</p>
<p>Candidates must be able to provide evidence of relevant work demonstrated by a research publication track record or industrial experience. Good interpersonal and organisational skills and the ability to work in a team are also essential. This post is intended to be filled as soon as practically possible after the closing date.</p>
<p>Applications should include:</p>
<ul>
<li> Curriculum Vitae
<li> Brief statement of the particular contribution you would make to the project
<li><a href="http://www.admin.cam.ac.uk/offices/hr/forms/chris6/">A completed form CHRIS6</a>
</ul>
<p>Completed applications should be sent by post to: Personnel-Admin,Computer Laboratory, William Gates Building, JJ Thomson Avenue, Cambridge, CB3 0FD, or by email to: personnel-admin@cl.cam.ac.uk</p>
<p>Quote Reference: NR10692<br />
Closing Date: 10 January 2012</p>
<p>The University values diversity and is committed to equality of opportunity.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2011/12/06/job-ad-post-doctoral-researcher-in-security-operating-systems-computer-architecture/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trusted Computing 2.0</title>
		<link>http://www.lightbluetouchpaper.org/2011/09/20/trusted-computing-2-0/</link>
		<comments>http://www.lightbluetouchpaper.org/2011/09/20/trusted-computing-2-0/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 22:54:39 +0000</pubDate>
		<dc:creator>Ross Anderson</dc:creator>
				<category><![CDATA[Hardware & signals]]></category>
		<category><![CDATA[Legal issues]]></category>
		<category><![CDATA[Security economics]]></category>
		<category><![CDATA[Security engineering]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=3117</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Trusted+Computing+2.0&amp;rft.aulast=Anderson&amp;rft.aufirst=Ross&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.subject=Legal+issues&amp;rft.subject=Security+economics&amp;rft.subject=Security+engineering&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2011-09-20&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2011/09/20/trusted-computing-2-0/&amp;rft.language=English"></span>
There seems to be an attempt to revive the &#8220;Trusted Computing&#8221; agenda. The vehicle this time is UEFI which sets the standards for the PC BIOS. Proposed changes to the UEFI firmware spec would enable (in fact require) next-generation PC firmware to only boot an image signed by a keychain rooted in keys built into [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Trusted+Computing+2.0&amp;rft.aulast=Anderson&amp;rft.aufirst=Ross&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.subject=Legal+issues&amp;rft.subject=Security+economics&amp;rft.subject=Security+engineering&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2011-09-20&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2011/09/20/trusted-computing-2-0/&amp;rft.language=English"></span>
<p>There seems to be an attempt to revive the &#8220;Trusted Computing&#8221; agenda. The vehicle this time is <a href="http://www.uefi.org">UEFI</a> which sets the standards for the PC BIOS. Proposed changes to the UEFI firmware spec would enable (in fact require) next-generation PC firmware to only boot an image signed by a keychain rooted in keys built into the PC. I hear that Microsoft (and others) are pushing for this to be mandatory, so that it cannot be disabled by the user, and it would be required for OS badging. There are some technical details <a href="http://www.uefi.org/learning_center/UPFS11_P2_SecureBoot_Insyde.pdf">here</a> and <a href="http://video.ch9.ms/build/2011/slides/HW-457T_van_der_Hoeven.ppt">here</a>, and comment <a href="http://mjg59.livejournal.com/138973.html">here</a>. </p>
<p>These issues last arose in 2003, when we fought back with the <a href="http://www.cl.cam.ac.uk/~rja14/tcpa-faq.html">Trusted Computing FAQ</a> and <a href="http://www.cl.cam.ac.uk/~rja14/Papers/tcpa.pdf">economic analysis</a>. That initiative petered out after widespread opposition. This time round the effects could be even worse, as &#8220;unauthorised&#8221; operating systems like Linux and FreeBSD just won&#8217;t run at all. (On an old-fashioned Trusted Computing platform you could at least run Linux &ndash; it just couldn&#8217;t get at the keys for Windows Media Player.)</p>
<p>The extension of Microsoft&#8217;s OS monopoly to hardware would be a disaster, with increased lock-in, decreased consumer choice and lack of space to innovate. It is clearly <a href="http://en.wikipedia.org/wiki/Article_82">unlawful</a> and must not succeed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2011/09/20/trusted-computing-2-0/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Make noise and whisper: a solution to relay attacks</title>
		<link>http://www.lightbluetouchpaper.org/2011/05/09/make-noise-and-whisper-a-solution-to-relay-attacks/</link>
		<comments>http://www.lightbluetouchpaper.org/2011/05/09/make-noise-and-whisper-a-solution-to-relay-attacks/#comments</comments>
		<pubDate>Mon, 09 May 2011 16:53:18 +0000</pubDate>
		<dc:creator>Omar Choudary</dc:creator>
				<category><![CDATA[Academic papers]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[Banking security]]></category>
		<category><![CDATA[Hardware & signals]]></category>
		<category><![CDATA[Protocols]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=2901</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Make+noise+and+whisper%3A+a+solution+to+relay+attacks&amp;rft.aulast=Choudary&amp;rft.aufirst=Omar&amp;rft.subject=Academic+papers&amp;rft.subject=Authentication&amp;rft.subject=Banking+security&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.subject=Protocols&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2011-05-09&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2011/05/09/make-noise-and-whisper-a-solution-to-relay-attacks/&amp;rft.language=English"></span>
About a moth ago I&#8217;ve presented at the Security Protocols Workshop a new﻿ idea to detect relay attacks, co-developed with Frank Stajano.
The idea relies on having a trusted box (which we call the T-Box as in the image below) between the physical interfaces of two communicating parties. The T-Box accepts 2 inputs (one from each party) [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Make+noise+and+whisper%3A+a+solution+to+relay+attacks&amp;rft.aulast=Choudary&amp;rft.aufirst=Omar&amp;rft.subject=Academic+papers&amp;rft.subject=Authentication&amp;rft.subject=Banking+security&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.subject=Protocols&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2011-05-09&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2011/05/09/make-noise-and-whisper-a-solution-to-relay-attacks/&amp;rft.language=English"></span>
<p>About a moth ago I&#8217;ve presented at the <a href="http://spw.stca.herts.ac.uk/">Security Protocols Workshop</a> a new﻿ idea to detect relay attacks, co-developed with Frank Stajano.</p>
<p>The idea relies on having a trusted box (which we call the T-Box as in the image below) between the physical interfaces of two communicating parties. The T-Box accepts 2 inputs (one from each party) and provides one output (seen by both parties). It ensures that none of the parties can determine the complete input of the other party.</p>
<p><a href="http://www.lightbluetouchpaper.org/wp-content/uploads/2011/05/spw_relay_2.png"><img class="alignnone size-full wp-image-2909" title="spw_relay_2" src="http://www.lightbluetouchpaper.org/wp-content/uploads/2011/05/spw_relay_2.png" alt="T-Box" width="455" height="112" /></a></p>
<p>Therefore by connecting 2 instances of a T-Box together (as in the case of a relay attack) the message from one end to the other (Alice and Bob in the image above) gets distorted twice as much as it would in the case of a direct connection. That&#8217;s the basic idea.</p>
<p>One important question is how does the T-Box operate on the inputs such that we can detect a relay attack? In <a href="http://www.cl.cam.ac.uk/~osc22/docs/spw_relay_2011.pdf">the paper</a> we describe two example implementations based on a bi-directional channel (which is used for example between a smart card and a terminal). In order to help the reader understand these examples better and determine the usefulness of our idea Mike Bond and I have created a python simulation. <a href="http://www.cl.cam.ac.uk/~osc22/projects/tbox_norelay/pyscripts/tchannel.py">This simulation</a> allows you to choose the type of T-Box implementation, a direct or relay connection, as well as other parameters including the length of the anti-relay data stream and detection threshold.</p>
<p>In these two implementations we have restricted ourselves to make the T-Box part of the communication channel. The advantage is that we don&#8217;t rely on any party providing the T-Box since it is created automatically by communicating over the physical channel. The disadvantage is that a more powerful attacker can sample the line at twice the speed and overcome our T-Box solution.</p>
<p>The relay attack can be used against many applications, including all smart card based payments. There are already several ideas, including distance bounding, for detecting relay attacks. However our idea brings a new approach to the existing methods, and we hope that in the future we can find a practical implementation of our solutions, or a good scenario to use a physical T-Box which should not be affected by a powerful attacker.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2011/05/09/make-noise-and-whisper-a-solution-to-relay-attacks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Smart Card Detective: a hand-held EMV interceptor</title>
		<link>http://www.lightbluetouchpaper.org/2010/10/19/the-smart-card-detective-a-hand-held-emv-interceptor/</link>
		<comments>http://www.lightbluetouchpaper.org/2010/10/19/the-smart-card-detective-a-hand-held-emv-interceptor/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 15:21:38 +0000</pubDate>
		<dc:creator>Omar Choudary</dc:creator>
				<category><![CDATA[Banking security]]></category>
		<category><![CDATA[Hardware & signals]]></category>
		<category><![CDATA[Protocols]]></category>
		<category><![CDATA[Security engineering]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=2392</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=The+Smart+Card+Detective%3A+a+hand-held+EMV+interceptor&amp;rft.aulast=Choudary&amp;rft.aufirst=Omar&amp;rft.subject=Banking+security&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.subject=Protocols&amp;rft.subject=Security+engineering&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2010-10-19&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2010/10/19/the-smart-card-detective-a-hand-held-emv-interceptor/&amp;rft.language=English"></span>

During my MPhil within the Computer Lab (supervised by Markus Kuhn) I developed a card-sized device (named Smart Card Detective &#8211; in short SCD) that can monitor Chip and PIN transactions. The main goal of the SCD was to offer a trusted display for anyone using credit cards, to avoid scams such as tampered terminals [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=The+Smart+Card+Detective%3A+a+hand-held+EMV+interceptor&amp;rft.aulast=Choudary&amp;rft.aufirst=Omar&amp;rft.subject=Banking+security&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.subject=Protocols&amp;rft.subject=Security+engineering&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2010-10-19&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2010/10/19/the-smart-card-detective-a-hand-held-emv-interceptor/&amp;rft.language=English"></span>
<p><a href="http://www.cl.cam.ac.uk/~osc22/media/frenchtv_scd.avi"><img class="alignnone size-full wp-image-2393" title="Live test of SCD" src="http://www.lightbluetouchpaper.org/wp-content/uploads/2010/10/video.png" alt="" width="384" height="288" /></a></p>
<p>During my MPhil within the Computer Lab (supervised by Markus Kuhn) I developed a card-sized device (named Smart Card Detective &#8211; in short SCD) that can monitor Chip and PIN transactions. The main goal of the SCD was to offer a trusted display for anyone using credit cards, to avoid scams such as tampered terminals which show an amount on their screen but debit the card another (see <a href="http://www.cl.cam.ac.uk/~sd410/papers/sc_relay.pdf">this</a> paper by Saar Drimer and Steven Murdoch). However, the final result is a more general device, which can be used to analyse and modify any part of an <a href="http://www.emvco.com/specifications.aspx?id=155">EMV</a> (protocol used by Chip and PIN cards) transaction.</p>
<p>Using the SCD we have successfully shown how the relay attack can be mitigated by showing the real amount on the trusted display. Even more, we have tested the No PIN vulnerability (see <a href="http://www.cl.cam.ac.uk/research/security/projects/banking/nopin/oakland10chipbroken.pdf">the paper</a> by Murdoch et al.) with the SCD. A reportage on this has been shown on Canal+ (video now available <a href="http://www.cl.cam.ac.uk/~osc22/media/frenchtv_scd.avi">here</a>).</p>
<p>After the &#8220;Chip and PIN is broken&#8221; paper was published some contra arguments referred to the difficulty of setting up the attack. The SCD can also show that such assumptions are many times incorrect.</p>
<p>More details on the SCD are on my MPhil thesis available <a href="http://www.cl.cam.ac.uk/~osc22/docs/mphil_acs_osc22.pdf">here</a>. Also important, the software is open source and along with the hardware schematics can be found in the <a href="http://www.cl.cam.ac.uk/~osc22/scd/">project&#8217;s page</a>. The aim of this is to make the SCD a useful tool for EMV research, so that other problems can be found and fixed.</p>
<p>Thanks to Saar Drimer, Mike Bond, Steven Murdoch and Sergei Skorobogatov for the help in this project. Also thanks to Frank Stajano and Ross Anderson for suggestions on the project.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2010/10/19/the-smart-card-detective-a-hand-held-emv-interceptor/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
<enclosure url="http://www.cl.cam.ac.uk/~osc22/media/frenchtv_scd.avi" length="47131648" type="video/x-msvideo" />
		</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[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Placebo+bomb+detectors&amp;rft.aulast=Kuhn&amp;rft.aufirst=Markus&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.subject=News+coverage&amp;rft.subject=Security+economics&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2010-01-22&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2010/01/22/placebo-bomb-detectors/&amp;rft.language=English"></span>
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[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Placebo+bomb+detectors&amp;rft.aulast=Kuhn&amp;rft.aufirst=Markus&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.subject=News+coverage&amp;rft.subject=Security+economics&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2010-01-22&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2010/01/22/placebo-bomb-detectors/&amp;rft.language=English"></span>
<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 (&#8220;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>
		<slash:comments>11</slash:comments>
		</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[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Encoding+integers+in+the+EMV+protocol&amp;rft.aulast=Murdoch&amp;rft.aufirst=Steven+J.&amp;rft.subject=Banking+security&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2010-01-19&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2010/01/19/encoding-integers-in-the-emv-protocol/&amp;rft.language=English"></span>
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[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Encoding+integers+in+the+EMV+protocol&amp;rft.aulast=Murdoch&amp;rft.aufirst=Steven+J.&amp;rft.subject=Banking+security&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2010-01-19&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2010/01/19/encoding-integers-in-the-emv-protocol/&amp;rft.language=English"></span>
<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>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Interview with Steven Murdoch on Finextra</title>
		<link>http://www.lightbluetouchpaper.org/2009/11/11/interview-with-steven-murdoch-on-finextra/</link>
		<comments>http://www.lightbluetouchpaper.org/2009/11/11/interview-with-steven-murdoch-on-finextra/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 16:07:35 +0000</pubDate>
		<dc:creator>Steven J. Murdoch</dc:creator>
				<category><![CDATA[Academic papers]]></category>
		<category><![CDATA[Banking security]]></category>
		<category><![CDATA[Hardware & signals]]></category>
		<category><![CDATA[News coverage]]></category>
		<category><![CDATA[Security engineering]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=1295</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Interview+with+Steven+Murdoch+on+Finextra&amp;rft.aulast=Murdoch&amp;rft.aufirst=Steven+J.&amp;rft.subject=Academic+papers&amp;rft.subject=Banking+security&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.subject=News+coverage&amp;rft.subject=Security+engineering&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2009-11-11&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2009/11/11/interview-with-steven-murdoch-on-finextra/&amp;rft.language=English"></span>
Today, Finextra (a financial technology news website), has published a video interview with me, discussing my research on banks using card readers for online banking, which was recently featured on TV.
In this interview, I discuss some of the more technical aspects of the attacks on card readers, including the one demonstrated on TV (which requires [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Interview+with+Steven+Murdoch+on+Finextra&amp;rft.aulast=Murdoch&amp;rft.aufirst=Steven+J.&amp;rft.subject=Academic+papers&amp;rft.subject=Banking+security&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.subject=News+coverage&amp;rft.subject=Security+engineering&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2009-11-11&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2009/11/11/interview-with-steven-murdoch-on-finextra/&amp;rft.language=English"></span>
<p>Today, <a href="http://www.finextra.com/">Finextra</a> (a financial technology news website), has published a video interview with me, discussing my research on banks using <a href="http://www.lightbluetouchpaper.org/2009/02/26/optimised-to-fail-card-readers-for-online-banking/">card readers for online banking</a>, which was recently <a href="http://www.lightbluetouchpaper.org/2009/10/26/card-reader-vulnerabilitie/">featured on TV</a>.</p>
<p>In this interview, I discuss some of the more technical aspects of the attacks on card readers, including the one demonstrated on TV (which requires compromising a Chip &#038; PIN terminal), as well as others which instead require that the victim&#8217;s PC be compromised, but which can be carried out on a larger scale.</p>
<p>I also compare the approaches taken by the banking community to protocol design, with that of the Internet community. Financial organizations typically develop protocols internally, and so are subject to public scrutiny late in deployment, if at all. This is in contrast with Internet protocols which are commonly first discussed within industry and academia, then the specification is made public, and only then is it implemented. As a consequence, vulnerabilities in banking security systems are often more expensive to fix.</p>
<p>Also, I discuss some of the non-technical design decisions involved in the deployment of security technology. Specifically, their design needs to take into account risk analysis, psychology and usability, not just cryptography. Organizational structures also need to incentivize security; groups who design security mechanisms should be responsible for failure. Organizational structures should also discourage knowledge of security failings from being hidden from management. If necessary a separate penetration testing team should report directly to board level.</p>
<p>Finally I mention one good design principle for security protocols: <a href="http://www.iwise.com/mHZCs">&#8220;make everything as simple as possible, but not simpler&#8221;</a>.</p>
<p>The video (7 minutes) can be found below, and is also on the <a href="http://www.finextra.com/fullfeature.asp?id=1218">Finextra website</a>.</p>
<p>
<OBJECT id='mediaPlayer' width="320" height="285" 
      classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' 
       codebase="'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'"
      standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
      <param name='fileName' value="http://www.finextra.com/finextra-downloads/featurevideos/Steven_Murdoch_fraud_09.wmv">
      <param name='animationatStart' value='false'>
      <param name='transparentatStart' value='false'>
      <param name='autoStart' value="false">
      <param name='showControls' value="true">
      <param name='loop' value="false">
      <EMBED type='application/x-mplayer2'
        pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
        id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1' 
        transparentatStart='0'
        bgcolor='darkblue' showcontrols="true" showtracker='-1' 
        showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
        src="http://www.finextra.com/finextra-downloads/featurevideos/Steven_Murdoch_fraud_09.wmv" autostart='0' designtimesp='5311' loop="false">
      </EMBED>
</OBJECT>
<br />
<a href="http://www.finextra.com/finextra-downloads/featurevideos/Steven_Murdoch_fraud_09.wmv">Launch in external player (19 MB)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2009/11/11/interview-with-steven-murdoch-on-finextra/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
<enclosure url="http://www.finextra.com/finextra-downloads/featurevideos/Steven_Murdoch_fraud_09.wmv" length="19504950" type="video/x-ms-wmv" />
		</item>
		<item>
		<title>TV coverage of online banking card-reader vulnerabilities</title>
		<link>http://www.lightbluetouchpaper.org/2009/10/26/card-reader-vulnerabilitie/</link>
		<comments>http://www.lightbluetouchpaper.org/2009/10/26/card-reader-vulnerabilitie/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 13:13:02 +0000</pubDate>
		<dc:creator>Steven J. Murdoch</dc:creator>
				<category><![CDATA[Academic papers]]></category>
		<category><![CDATA[Banking security]]></category>
		<category><![CDATA[Hardware & signals]]></category>
		<category><![CDATA[News coverage]]></category>
		<category><![CDATA[Security economics]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=1273</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=TV+coverage+of+online+banking+card-reader+vulnerabilities&amp;rft.aulast=Murdoch&amp;rft.aufirst=Steven+J.&amp;rft.subject=Academic+papers&amp;rft.subject=Banking+security&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.subject=News+coverage&amp;rft.subject=Security+economics&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2009-10-26&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2009/10/26/card-reader-vulnerabilitie/&amp;rft.language=English"></span>
This evening (Monday 26th October 2009, at 19:30 UTC), BBC Inside Out will show Saar Drimer and I demonstrating how the use of smart card readers, being issued in the UK to authenticate online banking transactions, can be circumvented. The programme will be broadcast on BBC One, but only in the East of England and [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=TV+coverage+of+online+banking+card-reader+vulnerabilities&amp;rft.aulast=Murdoch&amp;rft.aufirst=Steven+J.&amp;rft.subject=Academic+papers&amp;rft.subject=Banking+security&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.subject=News+coverage&amp;rft.subject=Security+economics&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2009-10-26&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2009/10/26/card-reader-vulnerabilitie/&amp;rft.language=English"></span>
<p>This evening (Monday 26th October 2009, at 19:30 UTC), <a href="http://www.bbc.co.uk/insideout/">BBC Inside Out</a> will show Saar Drimer and I demonstrating how the use of smart card readers, being issued in the UK to authenticate online banking transactions, can be circumvented. The programme will be broadcast on BBC One, but only in the East of England and Cambridgeshire, however it should also be available <a href="http://www.bbc.co.uk/programmes/b00nkwqw">on iPlayer</a>.</p>
<p>In this programme, we demonstrate how a tampered Chip &#038; PIN terminal could collect an authentication code for Barclays online banking, while a customer thinks they are buying a sandwich. The criminal could then, at their leisure, use this code and the customer&#8217;s membership number to fraudulently transfer up to £10,000.</p>
<p>Similar attacks are possible against all other banks which use the card readers (known as CAP devices) for online banking. We think that this type of scenario is particularly practical in targeted attacks, and circumvents any anti-malware protection, but criminals have already been seen using banking trojans to attack CAP on a wide scale.</p>
<p>Further information can be found on the <a href="http://news.bbc.co.uk/1/hi/england/cambridgeshire/8325477.stm">BBC online feature</a>, and our <a href="http://www.cl.cam.ac.uk/research/security/banking/emvcap/">research summary</a>. We have also published an <a href="http://www.cl.cam.ac.uk/~sjm217/papers/fc09optimised.pdf">academic paper</a> on the topic, which was presented at <a href="http://fc09.ifca.ai/">Financial Cryptography 2009</a>.</p>
<p><strong>Update</strong> (2009-10-27): The full programme is now on <a href="http://www.bbc.co.uk/programmes/b00nkwqw" rel="nofollow">BBC iPlayer</a> for the next 6 days, and the segment can also be found <a href="http://www.youtube.com/watch?v=U1QAnb-wnTs" rel="nofollow">on YouTube</a>.</p>
<p><img src="http://www.lightbluetouchpaper.org/wp-content/uploads/2009/10/100140b1-0486-45b0-8cdb-a5f9172e2b2a-1.jpg" alt="BBC Inside Out, Monday 26th October 2009, 19:30, BBC One (East)" title="BBC Inside Out, Monday 26th October 2009, 19:30, BBC One (East)" width="460" height="259" class="alignnone size-full wp-image-1287" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2009/10/26/card-reader-vulnerabilitie/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Tuning in to random numbers</title>
		<link>http://www.lightbluetouchpaper.org/2009/09/08/tuning-in-to-random-numbers/</link>
		<comments>http://www.lightbluetouchpaper.org/2009/09/08/tuning-in-to-random-numbers/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 21:30:12 +0000</pubDate>
		<dc:creator>Theo Markettos</dc:creator>
				<category><![CDATA[Banking security]]></category>
		<category><![CDATA[Hardware & signals]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=1244</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Tuning+in+to+random+numbers&amp;rft.aulast=Markettos&amp;rft.aufirst=A.+Theodore&amp;rft.subject=Banking+security&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2009-09-08&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2009/09/08/tuning-in-to-random-numbers/&amp;rft.language=English"></span>
Tomorrow at Cryptographic Hardware and Embedded Systems 2009 I&#8217;m going to be presenting a frequency injection attack on random number generators formed from ring oscillators.
Random numbers are a vital part of cryptography &#8212; if predictable numbers are being used an attacker may be able to read secret messages, impersonate either party, or replay transactions.  [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Tuning+in+to+random+numbers&amp;rft.aulast=Markettos&amp;rft.aufirst=A.+Theodore&amp;rft.subject=Banking+security&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2009-09-08&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2009/09/08/tuning-in-to-random-numbers/&amp;rft.language=English"></span>
<p>Tomorrow at <a href="http://www.chesworkshop.org/ches2009/start.html">Cryptographic Hardware and Embedded Systems 2009</a> I&#8217;m going to be presenting a frequency injection attack on random number generators formed from ring oscillators.</p>
<p>Random numbers are a vital part of cryptography &#8212; if predictable numbers are being used an attacker may be able to read secret messages, impersonate either party, or replay transactions.  In addition, many countermeasures to attacks such as <a href="http://en.wikipedia.org/wiki/Power_analysis">Differential Power Analysis</a> involve adding randomness to operations &#8212; without the randomness algorithms such as <a href="http://en.wikipedia.org/wiki/RSA">RSA</a> become susceptible.</p>
<p>To create unpredictable random numbers in a predictable computer involves measuring some kind of physical process.  Examples include circuit noise, radioactive decay and timing variations.  One method commonly used in low-cost circuits such as smartcards is measuring the jitter from free-running ring oscillators.  The ring oscillators&#8217; frequencies depend on environmental factors such as voltage and temperature, and by having many independent ring oscillators we can harvest small timing differences between them (jitter).</p>
<p>But what happens if they aren&#8217;t independent?  In particular, what happens if the circuit is faced with an attacker who can manipulate the outside of the system?</p>
<p>The attack turns out to be fairly straightforward.  An effect called <i><a href="http://en.wikipedia.org/wiki/Injection_locking">injection locking</a></i>, known since 1665, considers what happens if you have two oscillators very lightly connected.  For example, two pendulum clocks mounted on a wall tend to synchronise the swing of their pendula through small vibrations transmitted through the wall.</p>
<p>In an electronic circuit, the attacker can inject a signal to force the ring oscillators to injection-lock.  The simplest way involves forcing a frequency onto the power supply from which the ring oscillators are powered.  If there are any imbalances in the circuit we suggest that this causes the circuit to ring to be more susceptible at that point to injection locking.  So we examined the effects of power supply injection, and can envisage a similar attack by irradiation with electromagnetic fields.</p>
<p>And it works surprisingly well.  We tried an old version of a secure microcontroller that has been used in banking ATMs (and is still recommended for new ones).  For the 32 random bits that are used in an ATM transaction, we managed to reduce the number of possibilities from 4 billion to about 225.</p>
<p>So if an attacker can have access to your card and PIN, in a modified shop terminal for example, he can record some ATM transactions.  Then he needs to take a fake card to the ATM containing this microcontroller.  On average he&#8217;ll need to record 15 transactions (the square root of 225) on the card and try 15 transactions at the ATM before he can steal the money.  This number may be small enough not to set off alarms at the bank.  The customer&#8217;s card and PIN were used for the transaction, but at a time when he was nowhere near an ATM.</p>
<p>While we looked at power supply injection, the ATM could also be attacked electromagnetically.  Park a car next to the ATM emitting a 10 GHz signal amplitude modulated by the ATM&#8217;s vulnerable frequency (1.8 MHz in our example).  The 10 GHz will penetrate the ventilation slots but then be filtered away, leaving 1.8 MHz in the power supply.  When the car drives away there&#8217;s no evidence that the random numbers were bad &#8211; and bad random numbers are very difficult to detect anyway.</p>
<p>We also tried the same attack on an EMV (&#8216;Chip and PIN&#8217;) bank card.  Before injection, the card failed only one of the 188 tests in the standard NIST suite for random number testing.  With injection it failed 160 of 188.  While we can&#8217;t completely predict the random number generator, there are some sequences that can be seen.</p>
<p>So, as ever, designing good random number generators turns out to be a hard problem not least because the attacker can tamper with your system in more ways than you might expect.</p>
<p>You can find the <a href="http://www.cl.cam.ac.uk/~atm26/papers/markettos-ches2009-inject-trng.pdf">paper</a> and <a href="http://www.cl.cam.ac.uk/~atm26/papers/markettos-ches2009-inject-trng-slides.pdf">slides</a> on my website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2009/09/08/tuning-in-to-random-numbers/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Optimised to fail: Card readers for online banking</title>
		<link>http://www.lightbluetouchpaper.org/2009/02/26/optimised-to-fail-card-readers-for-online-banking/</link>
		<comments>http://www.lightbluetouchpaper.org/2009/02/26/optimised-to-fail-card-readers-for-online-banking/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 03:17:54 +0000</pubDate>
		<dc:creator>Steven J. Murdoch</dc:creator>
				<category><![CDATA[Academic papers]]></category>
		<category><![CDATA[Banking security]]></category>
		<category><![CDATA[Hardware & signals]]></category>
		<category><![CDATA[Legal issues]]></category>

		<guid isPermaLink="false">http://www.lightbluetouchpaper.org/?p=704</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Optimised+to+fail%3A+Card+readers+for+online+banking&amp;rft.aulast=Murdoch&amp;rft.aufirst=Steven+J.&amp;rft.subject=Academic+papers&amp;rft.subject=Banking+security&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.subject=Legal+issues&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2009-02-26&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2009/02/26/optimised-to-fail-card-readers-for-online-banking/&amp;rft.language=English"></span>
A number of UK banks are distributing hand-held card readers for authenticating customers, in the hope of stemming the soaring levels of online banking fraud. As the underlying protocol &#8212; CAP &#8212; is secret, we reverse-engineered the system and discovered a number of security vulnerabilities. Our results have been published as &#8220;Optimised to fail: Card [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Optimised+to+fail%3A+Card+readers+for+online+banking&amp;rft.aulast=Murdoch&amp;rft.aufirst=Steven+J.&amp;rft.subject=Academic+papers&amp;rft.subject=Banking+security&amp;rft.subject=Hardware+%26%23038%3B+signals&amp;rft.subject=Legal+issues&amp;rft.source=Light+Blue+Touchpaper&amp;rft.date=2009-02-26&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.lightbluetouchpaper.org/2009/02/26/optimised-to-fail-card-readers-for-online-banking/&amp;rft.language=English"></span>
<p>A number of UK banks are distributing hand-held card readers for authenticating customers, in the hope of stemming the soaring levels of online banking fraud. As the underlying protocol &#8212; CAP &#8212; is secret, we reverse-engineered the system and discovered a number of security vulnerabilities. Our results have been published as &#8220;<a href="http://www.cl.cam.ac.uk/~sjm217/papers/fc09optimised.pdf">Optimised to fail: Card readers for online banking&#8221;</a>, by <a href="http://www.cl.cam.ac.uk/~sd410/">Saar Drimer</a>, <a href="http://www.cl.cam.ac.uk/~sjm217/">Steven J. Murdoch</a>, and <a href="http://www.cl.cam.ac.uk/~rja14/">Ross Anderson</a>.</p>
<p>In the paper, presented today at <a href="http://fc09.ifca.ai">Financial Cryptography 2009</a>, we discuss the consequences of CAP having been optimised to reduce both the costs to the bank and the amount of typing done by customers. While the principle of CAP &#8212; two factor transaction authentication &#8212; is sound, the flawed implementation in the UK puts customers at risk of fraud, or worse.</p>
<p>When Chip &#038; PIN was introduced for point-of-sale, the effective liability for fraud was shifted to customers. While the banking code says that customers are not liable unless they were negligent, it is up to the bank to define negligence. In practice, the <a href="http://www.lightbluetouchpaper.org/2007/02/08/financial-ombudsman-on-chip-pin-infallibility/">mere fact that Chip &#038; PIN was used</a> is considered enough. Now that Chip &#038; PIN is used for online banking, we may see a similar reduction of consumer protection.</p>
<p>Further information can be found in the <a href="http://www.cl.cam.ac.uk/~sjm217/papers/fc09optimised.pdf">paper</a> and the <a href="http://www.cl.cam.ac.uk/~sjm217/talks/fc09optimised.pdf">talk slides</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lightbluetouchpaper.org/2009/02/26/optimised-to-fail-card-readers-for-online-banking/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>

