<?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>On the road to Bandol &#187; iPhone</title>
	<atom:link href="https://javacard.vetilles.com/tag/iphone/feed/" rel="self" type="application/rss+xml" />
	<link>https://javacard.vetilles.com</link>
	<description>A weblog on Java Card, security, and other things personal</description>
	<lastBuildDate>Mon, 18 Aug 2025 06:48:26 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.32</generator>
	<item>
		<title>Fiction (maybe): Who will refuse to break a secure element?</title>
		<link>https://javacard.vetilles.com/2016/02/19/fiction-maybe-who-will-refuse-to-break-a-secure-element/</link>
		<comments>https://javacard.vetilles.com/2016/02/19/fiction-maybe-who-will-refuse-to-break-a-secure-element/#comments</comments>
		<pubDate>Fri, 19 Feb 2016 18:44:41 +0000</pubDate>
		<dc:creator><![CDATA[Eric Vétillard]]></dc:creator>
				<category><![CDATA[Java Card 2.x]]></category>
		<category><![CDATA[Mobile Security]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[logical attack]]></category>

		<guid isPermaLink="false">http://javacard.vetilles.com/?p=25857</guid>
		<description><![CDATA[Apple is refusing to break an iPhone for the FBI. I believe that they are right to do so, but also that this position isn&#8217;t that easy to stand for everybody. So, here is a little fiction (well, I think it is fiction) about this. The iPhone is a secure device, so the best way [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Apple is refusing to break an iPhone for the FBI. I believe that they are right to do so, but also that this position isn&#8217;t that easy to stand for everybody. So, here is a little fiction (well, I think it is fiction) about this.</p>
<p>The iPhone is a secure device, so the best way for Apple to refuse breaking the phone is to claim that they can&#8217;t do it. Here is the story line:</p>
<ul>
<li>The iPhone includes a secure element.</li>
<li>The security code is stored and verified in the secure element.</li>
<li>The phone encryption key also is stored in the secure element.</li>
<li>In order to get that key from the secure element, the security code must be presented.</li>
<li>We don&#8217;t know how to break into the secure element, so we can&#8217;t bypass that security mechanism.</li>
</ul>
<p>It is a bit technical, but it is true from the point of view of Apple and &#8220;standard&#8221; developers. But the last statement (we don&#8217;t know how to break into the secure element) may not work for everybody.</p>
<p>First, regardless of the secure element, physical attacks are feasible, and there are many kinds. Some of them, like power analysis, do not even require to destroy the chip in any way. Of course, many such attacks will require &#8220;opening&#8221; the secure element to expose the chip and do other things that may destroy it. In the case of the FBI, who wants to attack a single chip that they must not destroy, this is not really nice.</p>
<p>Then, the secure element on the iPhone is most likely based on Java Card. This means that it is possible to load applications on it. Of course, Java Card includes security measures, so the application needs to be a malicious one; well, there are malicious applications around, and here, we are working with software. This makes a big difference. Now, here is the checklist for FBI:</p>
<ol>
<li>Get Apple to provide 100 secure elements configured exactly like the targeted one, with the card management keys (required to load an app).</li>
<li>Get some hacker to develop a malicious application that gets the value of the code, or bypasses the code check, or gets the value of the encryption key, &#8230;</li>
<li>Establish an attack procedure and test it on actual phones.</li>
<li>Get Apple to provide the management key for the targeted phone.</li>
<li>Run the attack on the targeted phone, and bingo!</li>
</ol>
<p>This is slightly different. Apple still needs to collaborate, but not at the same level. Step 4, in particular, is about providing a key that can only be used on the terrorist&#8217;s phone. Step 1 is a bit more difficult, since Apple needs to support hacking efforts on their phones.</p>
<p>There is also a need to get a hacker. This may not be as difficult as it sounds, because as far as I know, the population of hackers capable of doing such a thing is small but includes:</p>
<ul>
<li>security evaluators working at labs who necessarily have ties to NIST (very close to NSA, here), or to the equivalent in another country;</li>
<li>people working in various companies and institutions who depend greatly on government contracts;</li>
<li>and a few real hackers, who could do some work for money, fame, or both.</li>
</ul>
<p>All these people, for various reasons, are far more vulnerable than Apple, and it is quite likely that FBI will be able to find one to cooperate with them.</p>
<p>And then, what&#8217;s left? Well, the security of some secure elements and Java Card implementations are really really good, and they will be protected against more attacks, performed by most attackers. Luckily, the handful of guys who may be able to break these implementations may not be willing to do so.</p>
<p>Still, it sounds like a good idea to support Apple here.</p>
<p><strong>Final thought</strong></p>
<p>This is now a problem that every security professional/company who is involved in the development, testing, or evaluation of consumer or industrial devices must think about: How will I react to injunctions from law enforcement? Should I make sure that I don&#8217;t know how to hack my device? </p>
]]></content:encoded>
			<wfw:commentRss>https://javacard.vetilles.com/2016/02/19/fiction-maybe-who-will-refuse-to-break-a-secure-element/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>About PIN, the iPhone is about 20 years behind smart cards</title>
		<link>https://javacard.vetilles.com/2015/03/30/about-pin-the-iphone-is-about-20-years-behind-smart-cards/</link>
		<comments>https://javacard.vetilles.com/2015/03/30/about-pin-the-iphone-is-about-20-years-behind-smart-cards/#comments</comments>
		<pubDate>Mon, 30 Mar 2015 13:07:41 +0000</pubDate>
		<dc:creator><![CDATA[Eric Vétillard]]></dc:creator>
				<category><![CDATA[Mobile Security]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[PIN]]></category>

		<guid isPermaLink="false">http://javacard.vetilles.com/?p=17472</guid>
		<description><![CDATA[I was astonished when I read this article on breaking the iPhone PIN. Some guy has built a device that can guess your iPhone PIN, and he is using a very old trick that was performed on cards years ago. Of course, the exercise is pointless; as noted in the original article, Apple can (will) [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I was astonished when I read this article on <a href="https://www.schneier.com/blog/archives/2015/03/brute-forcing_i.html" class="liexternal">breaking the iPhone PIN</a>. Some guy has built a device that can guess your iPhone PIN, and he is using a very old trick that was performed on cards years ago. Of course, the exercise is pointless; as noted in <a href="https://nakedsecurity.sophos.com/2015/03/17/black-box-brouhaha-breaks-out-over-brute-forcing-of-iphone-pin-lock/" class="liexternal">the original article</a>, Apple can (will) update their phones very soon, making the device pointless.</p>
<p>The attack consists in detecting whether the PIN code is right or wrong (here, through some change in display intensity) before the number of false PIN presentations is incremented in persistent memory. Upon detection, the phone is immediately rebooted, and the increment doesn&#8217;t happen. Yeaahh!!</p>
<p>Similar attacks have been performed on smart cards for over 20 years. The attackers used to monitor the power consumption when verifying a PIN, and an increase in consumption (indicating a memory write) would indicate the beginning of an EEPROM update, and the right time to cut power.</p>
<p>The solution? Most people typically look for complex implementations, but the general solution is much simpler: just increment your counter of failed attempts before actually performing the comparison (and ensure that the actual memory update has been performed, not just cached). Then, no need to worry about power cuts and reboots, since the attacker will not get additional attempts.</p>
<p>I will tend to believe that most (all?) Java Card implementations of the <code>OwnerPIN</code> class include such countermeasures, providing adequate protection for a PIN comparison. And by the way, since recent iPhone&#8217;s include a Secure Element, this is where the PIN comparison belongs.</p>
<p>For more details on PIN attacks and countermeasures, you can read my tutorial <a href="http://javacard.vetilles.com/2008/05/15/jc101-12c-defending-against-attacks/" class="liinternal">JC101-12C: Defending against attacks</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://javacard.vetilles.com/2015/03/30/about-pin-the-iphone-is-about-20-years-behind-smart-cards/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Did Apple just boost mobile security?</title>
		<link>https://javacard.vetilles.com/2014/09/12/did-apple-just-boost-mobile-security/</link>
		<comments>https://javacard.vetilles.com/2014/09/12/did-apple-just-boost-mobile-security/#comments</comments>
		<pubDate>Fri, 12 Sep 2014 20:47:13 +0000</pubDate>
		<dc:creator><![CDATA[Eric Vétillard]]></dc:creator>
				<category><![CDATA[Discussions]]></category>
		<category><![CDATA[Mobile Security]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mobile payment]]></category>

		<guid isPermaLink="false">http://javacard.vetilles.com/?p=893</guid>
		<description><![CDATA[I have been working on mobile security for many years, and things haven&#8217;t moved much: justifying mobile security is always painful. Whyshould Ispend more money? There aren&#8217;t that many attacks! Some business use cases seemed like a good justification, but the economics are unclear and remain in the order of &#8220;if youget hacked, it could [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I have been working on mobile security for many years, and things haven&#8217;t moved much: justifying mobile security is always painful. Whyshould Ispend more money? There aren&#8217;t that many attacks! Some business use cases seemed like a good justification, but the economics are unclear and remain in the order of &#8220;if youget hacked, it could cost you a lot of money&#8221;.</p>
<p>With iPay, Apple just proved to many people that mobile security can have a favorable economics. By embedding a biometric sensor and putting their critical credentials on an embedded secure element, they have been able to negotiate a lower transaction fees on their payments and save millions in the future. Mobile security brings millions instead of just boring geek stuff? Now, that&#8217;s innovation.</p>
<p>Of course, the security of the iPhone 6 must live up to these high expectations. As much as the latest announcements bring a boost to mobile security, the announcement of a hack allowing a guy to steal a phone and use it &#8220;illegally&#8221; has the power to bring us back to the dark ages.</p>
]]></content:encoded>
			<wfw:commentRss>https://javacard.vetilles.com/2014/09/12/did-apple-just-boost-mobile-security/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A new use for the (micro) SIM?</title>
		<link>https://javacard.vetilles.com/2010/02/06/a-new-use-for-the-micro-sim/</link>
		<comments>https://javacard.vetilles.com/2010/02/06/a-new-use-for-the-micro-sim/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 14:09:12 +0000</pubDate>
		<dc:creator><![CDATA[Eric Vétillard]]></dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[SIM]]></category>

		<guid isPermaLink="false">http://javacard.vetilles.com/?p=536</guid>
		<description><![CDATA[One of the numerous articles from Wired commenting Apple&#8217;s new iPad is about its SIM card. Rather than using traditional SIM cards, they will be using a Micro-SIM form factor, which is slightly smaller than a traditional SIM card. Wired claims that the intention behind the change is to force customers to buy two SIM [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>One of the numerous <a href="http://www.wired.com/epicenter/2010/02/micro-sim-business/" class="liexternal">articles</a> from Wired commenting Apple&#8217;s new iPad is about its SIM card. Rather than using traditional SIM cards, they will be using a <a href="http://en.wikipedia.org/wiki/Micro-SIM" rel="nofollow" class="liwikipedia">Micro-SIM</a> form factor, which is slightly smaller than a traditional SIM card.</p>
<p>Wired claims that the intention behind the change is to force customers to buy two SIM cards: one for their iPhone, and one for their iPad. That&#8217;s an interesting hypothesis, and a possible new use case for SIM cards: use several formats to force customers to have several SIM cards. Of course, the network operators are accused of trying to get customers to get a mobile data subscription for each device they own.</p>
<p>Such a use of a SIM card certainly does not seem to make any <a href="http://blogs.hbr.org/haque/2010/02/great_to_good.html" class="liexternal">good</a> to anybody, and would reflect really short-term thinking from MNOs, and even worse thinking from SIM vendors if they started pushing this as an advantage of the multiple factors. Here are a few good reasons why this idea is bad:</p>
<ul>
<li>First, an iPhone is a phone, and an iPad isn&#8217;t. This means that, once you remove your SIM card from your iPhone, you can&#8217;t be reached on your mobile number. Unpractical, for the least.</li>
<li>Then, an iPad is not as small as an iPhone, and it is much more likely to be used in WiFi than 3G, at least as long as there will not be a pricing plan that makes the use of 3G affordable.</li>
<li>The contacts in the Mini-Sim and Micro-SIM are in the same configuration, which means that it is easy to build an adapter from Micro-SIM to Mini-SIM. So, if you have a Micro-SIM, you are able to use it in a device that requires a standard SIM card.</li>
</ul>
<p>So, this definitely isn&#8217;t the killer use case that we are looking for. Locking in final customers, through formats or anything else, does not look like a promising use case for a product, and we should rather think of making these customers&#8217; lives easier.</p>
]]></content:encoded>
			<wfw:commentRss>https://javacard.vetilles.com/2010/02/06/a-new-use-for-the-micro-sim/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>iPhone worm: good news or bad news?</title>
		<link>https://javacard.vetilles.com/2009/11/15/iphone-worm-good-news-or-bad-news/</link>
		<comments>https://javacard.vetilles.com/2009/11/15/iphone-worm-good-news-or-bad-news/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 23:25:42 +0000</pubDate>
		<dc:creator><![CDATA[Eric Vétillard]]></dc:creator>
				<category><![CDATA[Mobile Security]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://javacard.vetilles.com/?p=504</guid>
		<description><![CDATA[Well, Apple is everywhere in the news these days &#8230; I really enjoyed the news of the first iPhone worm being unleashed in Australia. The question I ask today is: how bad is that news? It sure sounds bad at first. worms are not the kind of beasts that we want to see on our [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Well, Apple is everywhere in the news these days &#8230;  I really enjoyed the news of the first <a href="http://www.wired.com/threatlevel/2009/11/iphone-worm/" class="liexternal">iPhone worm</a> being unleashed in Australia. The question I ask today is: how bad is that news?</p>
<p>It sure sounds bad at first. worms are not the kind of beasts that we want to see on our mobile devices. And a worm that gets on your phone on shared WiFi connections could lead to a lot of paranoia in California&#8217;s Starbucks.</p>
<p>Now wait, this worm only attacks jailbroken iPhones. As such, it is at least good news for Apple, as it makes people realize that jailbreaking your iPhone may have consequences, not all good. By extension, it is good news for all the actors that rely on Apple&#8217;s closed platforms and on other similar platforms.</p>
<p>Now, this is not the last bit of it. Even for Apple, the news aren&#8217;t all good. The worm doesn&#8217;t affect all all jailbroken iPhones, but according to Wired,</p>
<blockquote><p>
jailbroken iPhones whose owners have installed SSH and neglected to change the default root password, â€œalpine.â€
</p></blockquote>
<p>If this is right, it sounds quite scary. Does it really mean that iPhones are Unix-based machines that <em>all</em> have the same root password, that the user can&#8217;t change (unless they jailbreak their phone)? For me, that entails that if a hacker is able to somehow very very partly jailbreak an iPhone using a worm or other malware, they won&#8217;t encounter much resistance from root passwords.</p>
<p>This is really bad news, and could be by itself a good reason to jailbreak an iPhone. And of course, it makes me wonder about the protection of my own (Linux-based) Android phone.</p>
]]></content:encoded>
			<wfw:commentRss>https://javacard.vetilles.com/2009/11/15/iphone-worm-good-news-or-bad-news/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
