<?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>discretix</title>
	<atom:link href="http://www.discretix.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.discretix.com/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 21 Sep 2011 08:22:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>LTE – The Security Imperative</title>
		<link>http://www.discretix.com/blog/2011/09/lte-%e2%80%93-the-security-imperative/</link>
		<comments>http://www.discretix.com/blog/2011/09/lte-%e2%80%93-the-security-imperative/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 08:22:40 +0000</pubDate>
		<dc:creator>Edo Ganot</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Android Security]]></category>
		<category><![CDATA[embedded security]]></category>
		<category><![CDATA[IMEI]]></category>
		<category><![CDATA[LTE]]></category>

		<guid isPermaLink="false">http://www.discretix.com/blog/?p=317</guid>
		<description><![CDATA[With LTE, the data capabilities of the mobile device are greatly extended and the technology is likely to have a massive impact on the services available to the smartphones and tablets of the future. LTE devices will be able to support high definition streaming video, advanced enterprise applications as well as payment and banking services. The performance and functionality requirements of these applications require a robust, high performance security foundation, rooted in the chipset of the device. Moreover, LTE is likely to accelerate the adoption of open operating systems, which in and of itself creates additional security requirements.]]></description>
			<content:encoded><![CDATA[<p>Long Term Evolution (LTE) is part of the GSM evolutionary path for mobile broadband. LTE is positioned to be one of the dominant broadband wireless technologies of the next decade and is expected to be widely available in 2012. LTE will provide a viable alternative to traditional broadband technologies, with added benefit of mobility.</p>
<p>Features of LTE include;</p>
<ul>
<li>An all-IP flat network architecture</li>
<li>Peak download rates nearing 300 mbps and upload rates of 75 mbps</li>
<li>End-to-end QoS including provisions for low-latency communications</li>
<li>The ability manage fast-moving mobiles</li>
<li>Support for multi-cast and broadcast streams.</li>
</ul>
<p>With LTE, the data capabilities of the mobile device are greatly extended and the technology is likely to have a massive impact on the services available to the smartphones and tablets of the future. LTE devices will be able to support high definition streaming video, advanced enterprise applications as well as payment and banking services.</p>
<p>The performance and functionality requirements of these applications require a robust, high performance security foundation, rooted in the chipset of the device. Moreover, LTE is likely to accelerate the adoption of open operating systems, which in and of itself creates additional security requirements. These security requirements apply to both platform and network security, as follows:</p>
<ul>
<li>Assuring the system boots from valid image (secure boot)</li>
<li>Authenticating new images and revoking older ones (secure software updates and software image revocation)</li>
<li>Accelerating secure packet-based communication (e.g. IPSec)</li>
<li>Delivering a software image in an encrypted format and storing it encrypted in the device flash memory. The image gets decrypted only once the device boots (software update encryption)</li>
<li>Featuring a flexible debug policy, differentiating OEMs, devices in field  (Secure Debug)</li>
<li>Securely transferring an asset to the Device or the IC (either by the OEM or the IC vendor) during the manufacturing process (provisioning)</li>
<li>Applying different levels of SIM lock protection (SIM Lock)</li>
<li>Protecting the IMEI from alterations</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.discretix.com/blog/2011/09/lte-%e2%80%93-the-security-imperative/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Biclique cryptanalysis of the full AES</title>
		<link>http://www.discretix.com/blog/2011/08/biclique-cryptanalysis-of-the-full-aes/</link>
		<comments>http://www.discretix.com/blog/2011/08/biclique-cryptanalysis-of-the-full-aes/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 08:20:08 +0000</pubDate>
		<dc:creator>Alexander Klimov</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.discretix.com/blog/?p=314</guid>
		<description><![CDATA[Three months ago A Splice-and-Cut Cryptanalysis of the AES  was presented. This attack uses bicliques to recover the key of a reduced-round AES slightly faster than the exhaustive key search. The fact that attacks always get better; they never get worse is emphasized by the new result: Biclique Cryptanalysis of the Full AES. For [...]]]></description>
			<content:encoded><![CDATA[<p>Three months ago <a href="http://eprint.iacr.org/2011/274">A Splice-and-Cut Cryptanalysis of the AES</a>  was presented. This attack uses bicliques to recover the key of a reduced-round AES slightly faster than the exhaustive key search. The fact that <q>attacks always get better; they never get worse</q> is emphasized by the new result: <a href="http://eprint.iacr.org/2011/449.pdf">Biclique Cryptanalysis of the Full AES</a>. For example, to break all rounds of AES-128, the attack needs 2<sup>88</sup> data and 2<sup>126.18</sup> time. Although the attack is only about 3 times faster than the worst-case exhaustive search (like, finding a two-digit code after 28 computations instead of trying all 100), and thus does not pose a threat in practice, perhaps it will be a source of inspiration for more practical attacks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.discretix.com/blog/2011/08/biclique-cryptanalysis-of-the-full-aes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An ounce of prevention is worth a pound of cure</title>
		<link>http://www.discretix.com/blog/2011/06/an-ounce-of-prevention-is-worth-a-pound-of-cure/</link>
		<comments>http://www.discretix.com/blog/2011/06/an-ounce-of-prevention-is-worth-a-pound-of-cure/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 10:13:12 +0000</pubDate>
		<dc:creator>Alexander Klimov</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[secure deletion]]></category>

		<guid isPermaLink="false">http://www.discretix.com/blog/?p=309</guid>
		<description><![CDATA[Some users believe that once you delete a file it is gone. The reality is much more complicated.
In the old days of FAT the file deletion was implemented as a replacement of the first byte in the file name by 0xE5 and marking the storage as free, as a result, it was simple to undo [...]]]></description>
			<content:encoded><![CDATA[<p>Some users believe that once you delete a file it is gone. The reality is much more complicated.</p>
<p>In the old days of <a href="https://secure.wikimedia.org/wikipedia/en/wiki/File_Allocation_Table">FAT</a> the file deletion was implemented as a replacement of the first byte in the file name by <tt>0xE5</tt> and marking the storage as free, as a result, it was simple to undo the deletion (<tt>undelete</tt> was part of DOS). In the modern days, recovering a deleted file is much more complicated and thus UI usually implements some kind of <a href="https://secure.wikimedia.org/wikipedia/en/wiki/Recycle_bin_%28computing%29">recycle bin</a> to help the user think twice before deleting some important information.</p>
<p>While in most cases users sorry that they have mistakenly deleted something and cannot recover it, for professional paranoids it is much more important that what is deleted, cannot be recovered by an adversary.</p>
<p>Secure deletion may seem simple: just overwrite the information in the file with junk data. This strategy works for simple file systems (e.g., FAT), but the more advanced ones try to increase file integrity by creating a new version of the file data instead of overwriting the previous data (log-structured file systems). Even for FAT, the underlying &#8220;disk&#8221; may be a flash that relocates position of &#8220;disk sectors&#8221; for wear-leveling.</p>
<p>Smartphones contain a lot of confidential information and thus the new research is worth reading (<a href="http://arxiv.org/pdf/1106.0917v1">PDF</a>):</p>
<blockquote>
<p>We address the problem of secure data deletion on log-structured file systems. We focus on the YAFFS file system, widely used on Android smartphones. We show that these systems provide no temporal guarantees on data deletion and that deleted data still persists for nearly 44 hours with average phone use and indefinitely if the phone is not used after the deletion. Furthermore, we show that file overwriting and encryption, methods commonly used for secure deletion on block-structured file systems, do not ensure data deletion in log-structured file systems.</p>
<p>We propose three mechanisms for secure deletion on log-structured file systems. Purging is a user-level mechanism that guarantees secure deletion at the cost of negligible device wear. Ballooning is a user-level mechanism that runs continuously and gives probabilistic improvements to secure deletion. Zero overwriting is a kernel-level mechanism that guarantees immediate secure deletion without device wear. We implement these mechanisms on Nexus One smartphones and show that they succeed in secure deletion and neither prohibitively reduce the longevity of the flash memory nor noticeably reduce the device&#8217;s battery lifetime. These techniques provide mobile phone users more confidence that data they delete from their phones are indeed deleted.</p>
</blockquote>
<p>On the other hand, <q>an ounce of prevention is worth a pound of cure</q>: instead of trying to delete the confidential information, it may be wiser to not store the plain-text (i.e., non-encrypted) data at all. If all your data is encrypted, then to securely delete it, it is enough to forget the key.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.discretix.com/blog/2011/06/an-ounce-of-prevention-is-worth-a-pound-of-cure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cryptography is brittle: almost right is often equivalent to epic fail</title>
		<link>http://www.discretix.com/blog/2011/05/cryptography-is-brittle-almost-right-is-often-equivalent-to-epic-fail/</link>
		<comments>http://www.discretix.com/blog/2011/05/cryptography-is-brittle-almost-right-is-often-equivalent-to-epic-fail/#comments</comments>
		<pubDate>Tue, 17 May 2011 08:20:03 +0000</pubDate>
		<dc:creator>Alexander Klimov</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[ECC]]></category>
		<category><![CDATA[SCA]]></category>
		<category><![CDATA[side-channel attack]]></category>

		<guid isPermaLink="false">http://www.discretix.com/blog/?p=299</guid>
		<description><![CDATA[Resistance to side-channel attacks (SCA)  is especially elusive. While theoretical weaknesses in the  cryptographic algorithms are supposed to be prevented by choosing  appropriate algorithms, choosing an algorithm that is known to be  SCA-resistant does not guarantee much: the SCA-resistance is a property  of implementation, not of the algorithm.
Consider Montgomery ladder. [...]]]></description>
			<content:encoded><![CDATA[<p>Resistance to side-channel attacks (<a href="https://secure.wikimedia.org/wikipedia/en/wiki/Side_channel_attack">SCA</a>)  is especially elusive. While theoretical weaknesses in the  cryptographic algorithms are supposed to be prevented by choosing  appropriate algorithms, choosing an algorithm that is known to be  SCA-resistant does not guarantee much: the SCA-resistance is a property  of implementation, not of the algorithm.</p>
<p>Consider <a href="https://secure.wikimedia.org/wikipedia/en/wiki/Elliptic_curve_point_multiplication#Montgomery_ladder">Montgomery ladder</a>.  Each step in the algorithm is obviously constant-time and thus you may  think that the time it takes to do a scalar multiplication of a point by  number <em>k</em> should not leak your secrets. This reasoning seems correct until you realize that the number of steps must be constant too. <a href="http://eprint.iacr.org/2011/232.pdf">It turns out</a> that even highly-skilled OpenSSL developers can forget about that:</p>
<blockquote><p>This paper describes a timing attack vulnerability in OpenSSL&#8217;s  ladder implementation for curves over binary fields. We use this  vulnerability to steal the private key of a TLS server where the server  authenticates with ECDSA signatures. Using the timing of the exchanged  messages, the messages themselves, and the signatures, we mount a  lattice attack that recovers the private key.</p>
<p>Ironically, in the end it is the regular execution of the ladder  that causes this side-channel vulnerability: for example, a dependency  on the weight of <em>k</em> (that might leak from, say, a simple binary  scalar multiplication method) seems much more difficult to exploit than  that of the length of <em>k</em> that led to full key recovery here.</p></blockquote>
<p>On the other hand, if we know that the execution time is constant, we  can quite easily test. The lesson is obvious: Do not just assume  properties of your implementation to be the properties of the algorithm  you implement, <strong>do test them!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.discretix.com/blog/2011/05/cryptography-is-brittle-almost-right-is-often-equivalent-to-epic-fail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Car Automation. Me? Worried?</title>
		<link>http://www.discretix.com/blog/2011/01/car-automation-me-worried/</link>
		<comments>http://www.discretix.com/blog/2011/01/car-automation-me-worried/#comments</comments>
		<pubDate>Sun, 09 Jan 2011 12:40:59 +0000</pubDate>
		<dc:creator>HagauB</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.discretix.com/blog/?p=294</guid>
		<description><![CDATA[Cars will soon be (almost) fully automated. News on experiments with cars that drive by themselves, in different scenarios and situations, make it seem obvious that soon enough the role of the driver is to be similar to that of a pilot in a passenger jet. Many people feel some itch of discomfort with this thought; the itch of “we are not there yet”. Let us see if and why we “are not there” yet, and what we can do about it.]]></description>
			<content:encoded><![CDATA[<p><span style="color: #888888;"><em>Reprinted with permission from Hagai Bar-El <a title="Hagai Bar-El" href="http://www.hbarel.com/blog" target="_blank">Security blog</a>.</em></span></p>
<p>Cars will soon be (almost) fully automated. News on experiments with cars that drive by themselves, in different scenarios and situations, make it seem obvious that soon enough the role of the driver is to be similar to that of a pilot in a passenger jet. Many people feel some itch of discomfort with this thought; the itch of “we are not there yet”. Let us see if and why we “are not there” yet, and what we can do about it.</p>
<p>Experiments are performed, and at a high level they seem to work. Therefore, as it appears, we are almost there, or at least we are on the right track,<em> functionality-wise.</em></p>
<p>If there is an aspect from which our technology is not ready, it is that of security and reliability.</p>
<p>If there is an aspect from which we and our technology are not ready, it is that of security and reliability. Truth be told, today we cannot design an even simpler software application without having it suffer (at least) occasional reliability glitches. We prove over and over again that we just cannot build a sophisticated application that will just work without bugs and glitches, let alone be secure. Intuitively, bugs that we can afford in IT applications, and even in GPS applications, we cannot afford in the robot that turns the steering-wheel.</p>
<p>Whenever I raise this concern, I am often reminded of aviation software. A passenger jet is full of code as well, and nonetheless civil aviation is considered safe. However, there are at least three reasons why this comparison does not apply. First, I cannot back it up with any figures (if anyone does have any — please post a comment), but it is intuitive that the complexity of the car steering application is to be higher than that of a passenger jet. A passenger jet is more sophisticated of an apparatus, but it seems as the number of real-time events it needs to cope with, as well as the sophistication of their circumstances, are lower. Second, as any reader of the RISKS newsgroup can easily tell, aviation software is far from perfect. It does have its glitches, including cases of shutting the engines down during flight. Fortunately, there is still a pilot on board to handle such situations manually using human knowledge and common sense. This function will not exist in a self-driving car, even if there is someone sitting at the drivers seat. The pilot is a trained individual, operating by strict regulations, sitting in the aircraft for this purpose alone. A typical car driver in a self-driving car will soon enough drift into playing with the kids, sleeping, reading, or just daydreaming, without keeping his hands and attention on the automatic wheel that seems to behave nicely for years already. Third, cars play in a more active, competitive and ever-changing market than jets, with competition that is powered by individual retail customers demanding more features on a model-by-model basis. The Boeing 747 is with us for 40 years. Software in it may have changed, but probably not as dramatically as that of a car that the user changes every half a decade with an expectation of improvement.</p>
<p>There is no reason to believe that when pressed by requirements and regulation, a software provider cannot do better in this respect.</p>
<p>Despite all that, I am not as worried as probably expected. Means for making reasonably-secure and reasonably-reliable software exist, they are just expensive. So far, we succeeded in avoiding costly secure coding methodologies because we could afford to. Our software today breaks, not because there was no way to make it less breakable, but because there was no incentive for the provider to make it so. Simply put, the software provider pays the cost of security, but does not pay the cost of insecurity, so its preference is clear. There is still no reason to believe that when pressed by customer requirements and by regulation, a software provider cannot do better in this respect. At least as much as I can see, car makers are aware of the challenge that stands in front of them.</p>
<p>Will car steering software be all hundred-percent safe? Obviously not. Bugs and vulnerabilities <em>will </em>be found, and these might cost lives, like other failures in critical equipment; failures that we usually tolerate as long as kept within reason. This is a price we have to pay for advancing the state of the art into the unknown. Nevertheless, given all that the car industry should know and understand, and given that it comprehends what needs to be done at all costs, we may just as well be on the right track.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.discretix.com/blog/2011/01/car-automation-me-worried/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Feature phones and the GSM security in general</title>
		<link>http://www.discretix.com/blog/2010/12/feature-phones-and-the-gsm-security-in-general/</link>
		<comments>http://www.discretix.com/blog/2010/12/feature-phones-and-the-gsm-security-in-general/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 12:34:10 +0000</pubDate>
		<dc:creator>Alexander Klimov</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.discretix.com/blog/?p=284</guid>
		<description><![CDATA[The 27th Chaos Communication Congress (27C3) is the annual conference organized by the Chaos Computer Club (CCC). Last year, at 26C3, researches showed a rainbow table attack on GSM&#8217;s A5/1 encryption.
A bit of history: The GSM encryption was introduced in 1987 and then it was disclosed and shown insecure in 1994. As time passes the [...]]]></description>
			<content:encoded><![CDATA[<p>The 27th Chaos Communication Congress (<a href="http://events.ccc.de/congress/2010/wiki/Main_Page">27C3</a>) is the annual conference organized by the Chaos Computer Club (CCC). Last year, at 26C3, researches <a href="http://events.ccc.de/congress/2009/Fahrplan/attachments/1519_26C3.Karsten.Nohl.GSM.pdf">showed</a> a rainbow table attack on GSM&#8217;s A5/1 encryption.</p>
<p>A bit of history: The GSM encryption was introduced in 1987 and then it was disclosed and shown insecure in 1994. As time passes the attacks become better and better, but for some reason the GSMA <a href="http://www.gsmworld.com/newsroom/press-releases/2009/4490.htm">prefer to claim that the attacks are not practical</a>:</p>
<blockquote>
<p>Over the past few years, a number of academic papers setting out, in theory, how the A5/1 algorithm could be compromised have been published. However, none to date [2009-12-30] have led to a practical attack capability being developed against A5/1 that can be used on live, commercial GSM networks.</p>
<p>[&hellip;] In 2007-8, a hacking group claimed to be building an attack on A5/1 by constructing a large look-up table1 of approximately 2 Terabytes &ndash; this is equivalent to the amount of data contained in a 20 kilometre high pile of books.</p>
<p>[&hellip;] All in all, we consider this research, which appears to be motivated in part by commercial considerations, to be a long way from being a practical attack on GSM. More broadly, A5/1 has proven to be a very effective and resilient privacy mechanism.</p>
</blockquote>
<p>One may suspect that there is a conspiracy to keep encryption easy to crack, but after reading the hilarious comment about 20&thinsp;km of books (a 2&thinsp;TB hard drive costs about $100) one is forced to apply the <a href="http://en.wikipedia.org/wiki/Hanlon%27s_razor">Hanlon&#8217;s razor</a>.</p>
<p>Yesterday (2010-12-28), at 27C3, researches have <a href="http://events.ccc.de/congress/2010/Fahrplan/events/4208.en.html">shown</a> how to reduce the attacker&#8217;s budget down to a PC, cheap mobile phones, and open source software:</p>
<blockquote>
<p>Now that GSM A5/1 encryption can be cracked in seconds, the complexity of wireless phone snooping moved to signal processing. Since GSM hops over a multitude of channels, a large chunk of radio spectrum needs to be analyzed, for example with USRPs, and decoded before storage or decoding. We demonstrate how this high bandwidth task can be achieved with cheap programmable phones. </p>
</blockquote>
<p>Security thru obscurity does not hold for long: once it becomes easy <a href="http://openbts.sourceforge.net/">to present a GSM air interface to standard GSM handset</a>, insecurities in the handsets becomes easier to find. Another 27C3 lecture (<a href="http://events.ccc.de/congress/2010/Fahrplan/events/4060.en.html">SMS-o-Death</a>) shows what one can learn about security of &#8220;feature phones&#8221;:</p>
<blockquote>
<p>We show how we analyzed these type of phones for SMS security issues and what kind of problems to overcome in the process. We show results for the major mobile phone manufacturers in the world. Everyone of them has problems. Finally we show what kind of global scale attacks one can carry out with these kind of bugs. The attacks range from interrupting phone calls, to disconnecting people from the network, and sometimes even bricking phones remotely.</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.discretix.com/blog/2010/12/feature-phones-and-the-gsm-security-in-general/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forging Canon Original Decision Data</title>
		<link>http://www.discretix.com/blog/2010/11/forging-canon-original-decision-data/</link>
		<comments>http://www.discretix.com/blog/2010/11/forging-canon-original-decision-data/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 11:48:53 +0000</pubDate>
		<dc:creator>Alexander Klimov</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Canon]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[digital signature]]></category>
		<category><![CDATA[embedded security]]></category>
		<category><![CDATA[image verification]]></category>

		<guid isPermaLink="false">http://www.discretix.com/blog/?p=275</guid>
		<description><![CDATA[Although the image manipulation was widely used in the analog age, the digital technology made it much more convenient. To enhance the credibility of photographic evidence, many Canon DSLR cameras have the originality verification function:

  Original image verification data becomes embedded in every image shot with a compatible camera. Original Data Security Utility quickly [...]]]></description>
			<content:encoded><![CDATA[<p>Although the image manipulation was widely used in the analog age, the digital technology made it much more convenient. To enhance the credibility of photographic evidence, many Canon DSLR cameras have the <a href="http://www.canon.co.jp/imaging/osk/osk-e3/verifies/index.html">originality verification function:</a></p>
<blockquote><p>
  Original image verification data becomes embedded in every image shot with a compatible camera. Original Data Security Utility quickly verifies the originality of an image by isolating the image from the verification data and comparing the two with utmost accuracy.
</p></blockquote>
<p>Today (2010-11-30) Dmitry Sklyarov <a href="http://www.elcomsoft.com/presentations/Forging_Canon_Original_Decision_Data.pdf">explained</a> how the Canon&#8217;s Original Decision Data feature works and how it can be broken. That is how he have created <a href="http://www.elcomsoft.com/canon.html?r1=pr&amp;r2=canon">edited photos</a> that successfully pass the authenticity verification.</p>
<p>As usual in such cases, it turned out that cryptography was used incorrectly: the original decision data (ODD, there are several different versions) is calculated by an obscure sequence of hash and HMAC operations with a secret key, which depends on the camera model and public data (e.g., BodyID stored in <a href="http://en.wikipedia.org/wiki/Exchangeable_image_file_format">EXIF</a>). Since the camera firmware can be <a href="http://chdk.wikia.com/wiki/Porting_the_CHDK#Q._How_can_I_get_a_firmware_dump.3F">dumped</a> and an attacker can even run his own code on the camera processor, it is easy for the attacker to forge the ODD.</p>
<p>Software obfuscation and security thru obscurity can hinder an attacker for a while, but without a cryptoprocessor that can protect the secret key, there is nothing Cannon can do. Of course, it would be even better to use the public-key cryptography, so that breaking a single camera would not allow an attacker to forge images of all the cameras of the same model.</p>
<p>By the way, if the name of the authors seems familiar it is most likely because he is the Russian cryptanalyst who <a href="http://en.wikipedia.org/wiki/US_v._ElcomSoft_Sklyarov">was arrested</a> on 2001-07-16, after giving a presentation called &#8220;eBook&#8217;s Security &mdash; Theory and Practice&#8221; at the DEF CON convention in Las Vegas.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.discretix.com/blog/2010/11/forging-canon-original-decision-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bringing Access-Based Cache Attacks on AES to Practice</title>
		<link>http://www.discretix.com/blog/2010/11/bringing-access-based-cache-attacks-on-aes-to-practice/</link>
		<comments>http://www.discretix.com/blog/2010/11/bringing-access-based-cache-attacks-on-aes-to-practice/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 11:11:00 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[AES]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[embedded security]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[software-as-a-service]]></category>

		<guid isPermaLink="false">http://www.discretix.com/blog/?p=261</guid>
		<description><![CDATA[Personal computers are mostly used by a single person or shared between a group of users that trust each other, in cloud computing users usually do not trust each other: the owner of one process may have a great interest in the encryption keys used by a process owned by another user. Since the OS [...]]]></description>
			<content:encoded><![CDATA[<p>Personal computers are mostly used by a single person or shared between a group of users that trust each other, in cloud computing users usually do not trust each other: the owner of one process may have a great interest in the encryption keys used by a process owned by another user. Since the OS provides separate address space for each process, it may seem that the attacker has no way to steal the key. <a href="http://eprint.iacr.org/2010/594.pdf" target="_blank">Turns out</a> the attack may be practical.</p>
<p>To understand how the attack works we need to recall how memory is accessed by a program: Before requesting data from a memory chip, processor checks whether the data was recently accessed and saved in the <a href="http://en.wikipedia.org/wiki/CPU_cache" target="_blank">cache</a>. If the data is in the local cache, it can be accessed hundred times faster than otherwise. To make the implementation easier, the cache is designed in such a way that each memory location is allowed to be cached only in few places: to check that a memory location is cached, only these few places need to be checked.</p>
<p>Software implementations of the <a href="http://en.wikipedia.org/wiki/Advanced_Encryption_Standard" target="_blank">AES</a> cipher commonly employ a look-up table. Which places in this table are accessed depends on which data is encrypted and which key is used. If an attacker, by accessing memory in his address space and checking how long it takes, can deduce what parts of the look-up table were accessed, he may deduce the key.</p>
<p>Cache-based side-channel attacks (SCA) against AES are known for a long time, what is new is the practicality of the attack:</p>
<blockquote><p>[Our] spy process neither needs to learn the plain- or ciphertexts involved, nor their probability distributions in order [to] recover the secret key.</p>
<p>We describe how besides the key also the plaintext can be recovered without knowing the ciphertexts at all</p>
<p>We have a fully working implementation of our attack techniques against the 128-bit AES implementation of OpenSSL 0.9.8n on Linux. It is highly efficient and is able to recover keys in realtime. More precisely, it consists of two phases: in an [observation] phase, which lasts about 2.8 seconds on our test machine, about 100 encryptions have to be monitored. Then, an offline analysis phase, lasting about 3 minutes recovers the key.</p></blockquote>
<p>Usually, implementing a counter-measure for SCA makes implementation slower, fortunately, the new processors give us a good way to prevent the attack and improve the performance simultaneously: <a href="http://en.wikipedia.org/wiki/AES_instruction_set" target="_blank">AES Instruction Set </a>(an extension to the x86 instruction set architecture for microprocessors from Intel and AMD) is already used by many software packages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.discretix.com/blog/2010/11/bringing-access-based-cache-attacks-on-aes-to-practice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hardware Assisted DRM</title>
		<link>http://www.discretix.com/blog/2010/11/hardware-assisted-drm/</link>
		<comments>http://www.discretix.com/blog/2010/11/hardware-assisted-drm/#comments</comments>
		<pubDate>Tue, 16 Nov 2010 15:21:10 +0000</pubDate>
		<dc:creator>CobyS</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[android drm]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[DRM]]></category>
		<category><![CDATA[embedded security]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mobile embedded security]]></category>
		<category><![CDATA[OMA DRM]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[smartphones]]></category>

		<guid isPermaLink="false">http://www.discretix.com/blog/?p=242</guid>
		<description><![CDATA[Hardware and software working in tandem create effective content protection for connected devices]]></description>
			<content:encoded><![CDATA[<p><em><strong>Hardware and software working in tandem to create effective content protection for connected devices</strong></em><br />
<img src="http://www.discretix.com/blog/wp-content/uploads/2010/11/EstacadaTandemTT.gif" alt="Tandem Racer" title="Tandem Racer" width="360" height="240" class="alignright size-full wp-image-247" /><br />
There was never any doubt about a mobile device’s ability to display video, however the large screens and powerful processors of the new generation mobile devices (smartphones and tablets) offer the consumer a more compelling viewing experience than ever. Moreover, home entertainment devices (TVs, set-top boxes (STB) and DVRs) are increasingly connected to the Internet, opening up a host of new viewing options for TV viewers, outside of the cable operator’s walled garden. </p>
<p>These trends are disrupting the traditional relationships existing between subscribers and service providers. This so-called disintermediation is being felt in the market, with cable operators offering video services to mobile subscribers and mobile operators offering video-on-demand to TV subscribers. Content owners and studios are also modifying their approach by offering services directly to consumers, circumventing the incumbent service providers. </p>
<p>These changes in the market have created new content service providers who must now “prove” their ability to securely deploy premium content in order to gain the approval of the major studios. Content protection – or Digital Rights Management (DRM) as it is more commonly known – is most effective when deployed in conjunction with hardware-based security elements. Principally, the objective of the hardware assets is to hinder scalable attacks, i.e., attacks that allow distribution in the form of exploit code, allowing the service provider to achieve a level of security similar to STBs. </p>
<p>In particular, the hardware-based embedded security is used to protect key elements in the DRM, as follows:</p>
<p><em><strong>Permanent key material and other permanent sensitive data, including group private keys, device keys, security management keys, metering data</strong></em><br />
This type of data can be classified as long-term, sensitive data that must be stored permanently in the device. The solution takes the form of an encrypted, integrity-protected secure storage facility. A hardware-based secure storage mechanism is based on an embedded root key that is unique per each device. In order to obtain the Root Key and access the sensitive data, the attacker must physically probe the main processor chip which often results in its destruction. In addition, any information obtained by the attacker is relevant only for that specific device. Physical probing must be repeated to access the sensitive data of another device. This endeavor is both expensive and impractical, and certainly not scalable.</p>
<p><strong><em>Title related and short term keys (content keys, session keys)</em></strong><br />
Mobile devices are open systems that run applications from many sources, some of them untrustworthy. The main processor in a mobile device must be deemed part of the threat model since it may be executing malicious code – malware – and attempting to access the content and session keys during run time. This threat is mitigated by running the security critical code that handles these keys in a secure execution environment – a secure subsystem that is inaccessible to the main processor. This hardware-based subsystem cannot be compromised by software-based attacks. </p>
<p><strong><em>Compressed content (plaintext content before decoding)</em></strong><br />
Compressed content is output by the DRM client that runs in a secure execution environment and is sent to a codec for decoding and rendering on the output display and audio devices. As noted above, the main processor is deemed part of the threat model, so the compressed content cannot simply be copied from the secure execution environment to the main memory to the codec. In order to secure this interface, the DRM client must be tightly integrated with the codec. The hardware-based solution is to send the compressed content in an encrypted form to the codec. The codec decrypts and then decodes the content.</p>
<p>Thus the combination of hardware-based security working in tandem with a software client creates a robust and effective content protection solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.discretix.com/blog/2010/11/hardware-assisted-drm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cryptographic pitfalls</title>
		<link>http://www.discretix.com/blog/2010/10/cryptographic_pitfalls/</link>
		<comments>http://www.discretix.com/blog/2010/10/cryptographic_pitfalls/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 16:25:56 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[side-channel attack]]></category>

		<guid isPermaLink="false">http://www.discretix.com/blog/?p=224</guid>
		<description><![CDATA[The field of cryptography is full of pitfalls. The same can be said about computer science in general, but in cryptography the pitfalls have a distinct character: you may never learn that you have fallen into one.
Let me give an example. Suppose you want to move N bytes starting at address A to the area starting at address B. Since [...]]]></description>
			<content:encoded><![CDATA[<p>The field of cryptography is full of pitfalls. The same can be said about computer science in general, but in cryptography the pitfalls have a distinct character: you may never learn that you have fallen into one.</p>
<p>Let me give an example. Suppose you want to move <em>N</em> bytes starting at address <em>A</em> to the area starting at address <em>B</em>. Since <em>every problem has a simple, fast and wrong solution</em>, one can think that the problem can be solved by a simple loop that moves every byte number <em>X</em> from the first area to the second, where <em>X</em> goes from 0 below <em>N</em>. Once you try to use your program with overlapping areas, you will know that you have fallen into a pitfall: the copy will not look like a copy at all!</p>
<p>Let me now give a cryptographic example. Suppose you want to encrypt a message and decide to use the <a href="http://en.wikipedia.org/wiki/Counter_mode#Counter_.28CTR.29">CTR mode</a>. If you reuse the nonce (IV) for a different message, you compromise confidentiality of your messages, but you may never learn about this: the messages look as scrambled as they were with different nonces.</p>
<p>The confidentiality failure in this example is easy to show. For messages <em>A</em> and <em>B</em> and <a href="http://en.wikipedia.org/wiki/Keystream">keystream</a> <em>X</em>, the ciphertexts are <em>A+X</em> and <em>B+X</em>. If an attacker learns one message, he can calculate <em>X</em> and then the second message.</p>
<p>Not all cryptographic pitfalls are that easy to explain. Moreover, it seems that developers are not eager to fix the security problems unless there is a graphic depiction of the failure.</p>
<p>The padding oracle attack was <a href="http://www.iacr.org/cryptodb/archive/2002/EUROCRYPT/2850/2850.pdf">published</a> in 2002:</p>
<blockquote><p>In many standards, e.g. SSL/TLS, IPSEC, WTLS, messages are first pre-formatted, then encrypted in CBC mode with a block cipher. Decryption needs to check if the format is valid. Validity of the format is easily leaked from communication protocols in a chosen ciphertext attack since the receiver usually sends an acknowledgment or an error message. This is a side channel.</p>
<p>In this paper we show various ways to perform an efficient side channel attack. We discuss potential applications, extensions to other padding schemes and various ways to fix the problem.</p></blockquote>
<p>but it <a href="http://www.usenix.org/event/woot10/tech/full_papers/Rizzo.pdf">turns out</a> that even in 2010 many developers continue to make the same mistakes over and over again:</p>
<blockquote><p>we show that widely used web development frameworks and web sites are using encryption incorrectly in a way that allows attackers to read and modify data that should be protected. It has been known for years in the cryptography community that encryption is not authentication. If encrypted messages are not authenticated, data integrity cannot be guaranteed which makes systems vulnerable to practical and dangerous chosen-ciphertext attacks, one of them being the padding oracle attack presented by Vaudenay at EuroCrypt 2002</p></blockquote>
<p>What is the proper way to solve all such cryptography misuses once and for all? One approach is to educate the developers, but the experience shows that this approach is not that effective as one may hope. Another approach is based on the observation that if you cannot educate everyone who will use your tools, it pays to make tools that are hard to misuse.</p>
<p>Consider the <a href="http://en.wikipedia.org/wiki/Cipher_block_chaining#Cipher-block_chaining_.28CBC.29">CBC</a> mode of encryption. One of its main drawbacks is that the message must be padded to a multiple of the cipher block size. This does not only increase the ciphertext size, but also allows to check the integrity of the padding during decryption. In most cases the size increase is negligible, but the ability to &lquot;check&rquot; integrity gives a false sense of security. This misunderstanding leads to spectacular attacks.</p>
<p>Recently, NIST published an <a href="http://csrc.nist.gov/publications/nistpubs/800-38a/addendum-to-nis t_sp800-38A.pdf">addendum</a> that will probably do more to prevent the CBC misuses, than all the warnings that <strong>CBC does not provide authentication</strong>:</p>
<blockquote><p>This addendum to [NIST Special Publication 800-38A] specifies three variants of CBC mode that accept any plaintext input whose bit length is greater than or equal to the block size, whether or not the length is a multiple of the block size. Unlike the padding methods discussed in [SP 800-38A], these variants avoid ciphertext expansion.</p></blockquote>
<p>The new mode does not only save space, but the fact that there is no authentication becomes obvious: if you change a bit in the ciphertext, then some plaintext becomes gibberish, but the decryption function does not even notice.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.discretix.com/blog/2010/10/cryptographic_pitfalls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

