{"id":70184,"date":"2016-02-22T12:31:57","date_gmt":"2016-02-22T12:31:57","guid":{"rendered":"https:\/\/www.transcend.org\/tms\/?p=70184"},"modified":"2016-02-22T12:31:57","modified_gmt":"2016-02-22T12:31:57","slug":"upgrade-your-iphone-passcode-to-defeat-the-fbis-backdoor-strategy","status":"publish","type":"post","link":"https:\/\/www.transcend.org\/tms\/2016\/02\/upgrade-your-iphone-passcode-to-defeat-the-fbis-backdoor-strategy\/","title":{"rendered":"Upgrade Your iPhone Passcode to Defeat the FBI\u2019s Backdoor Strategy"},"content":{"rendered":"<p><a href=\"https:\/\/www.transcend.org\/tms\/wp-content\/uploads\/2016\/02\/apple-iphone-fbi.jpg\"  rel=\"attachment wp-att-70185\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-70185\" src=\"https:\/\/www.transcend.org\/tms\/wp-content\/uploads\/2016\/02\/apple-iphone-fbi-1024x512.jpg\" alt=\"Exterior Views Of An Apple Inc. Store Ahead Of Earns\" width=\"600\" height=\"300\" srcset=\"https:\/\/www.transcend.org\/tms\/wp-content\/uploads\/2016\/02\/apple-iphone-fbi-1024x512.jpg 1024w, https:\/\/www.transcend.org\/tms\/wp-content\/uploads\/2016\/02\/apple-iphone-fbi-300x150.jpg 300w, https:\/\/www.transcend.org\/tms\/wp-content\/uploads\/2016\/02\/apple-iphone-fbi-768x384.jpg 768w, https:\/\/www.transcend.org\/tms\/wp-content\/uploads\/2016\/02\/apple-iphone-fbi.jpg 1400w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><br \/>\n<em>18 Feb 2016 &#8211; <\/em>Yesterday, apple CEO Tim Cook published an <a href=\"https:\/\/www.transcend.org\/tms\/2016\/02\/tim-cook-u-s-government-wants-something-we-consider-too-dangerous-to-create\/\" >open letter<\/a>\u00a0opposing\u00a0a court order to build the FBI a \u201cbackdoor\u201d for the iPhone.<\/p>\n<p>Cook\u00a0wrote\u00a0that the backdoor, which removes limitations on how often an attacker can incorrectly guess an iPhone passcode, would set a dangerous precedent and \u201cwould have the potential to unlock any iPhone in someone\u2019s physical possession,\u201d even though in this instance, the FBI is seeking to unlock a single iPhone belonging to one of the\u00a0killers\u00a0in a 14-victim mass shooting spree in San Bernardino, California, in December.<\/p>\n<p>It\u2019s true that ordering Apple to develop\u00a0the backdoor\u00a0will fundamentally undermine\u00a0iPhone security, as <a target=\"_blank\" href=\"https:\/\/theintercept.com\/2016\/02\/17\/apple-slams-order-to-hack-a-killers-iphone-inflaming-encryption-debate\/\" >Cook and other digital security\u00a0advocates\u00a0have argued<\/a>. But it\u2019s possible for individual iPhone users to protect themselves from government snooping by setting\u00a0strong passcodes on their phones \u2014 passcodes the FBI would not be able to unlock even if it gets its\u00a0iPhone backdoor.<\/p>\n<p>The technical details of how the iPhone encrypts data, and how the FBI might circumvent this protection, are complex and convoluted, and are being thoroughly explored elsewhere on the internet. What I\u2019m going to focus on here is how ordinary iPhone users can protect themselves.<\/p>\n<p>The short version: If you\u2019re worried about governments trying to access your phone, set your iPhone up with\u00a0a random, 11-digit numeric passcode. What follows is an explanation of\u00a0why that will protect you and how to actually do it.<\/p>\n<p>If it sounds outlandish to worry\u00a0about government agents\u00a0trying to crack into your phone,\u00a0consider that\u00a0when you travel internationally, agents at the\u00a0airport or other border crossings\u00a0<a target=\"_blank\" href=\"https:\/\/www.eff.org\/wp\/defending-privacy-us-border-guide-travelers-carrying-digital-devices\" >can seize, search, and temporarily retain your digital devices \u2014\u00a0even without any grounds for suspicion<\/a>. And while a local police officer can\u2019t search your iPhone without a warrant, cops have used their own digital devices to get search warrants within 15 minutes, as\u00a0a\u00a0Supreme Court opinion recently <a target=\"_blank\" href=\"http:\/\/www.nytimes.com\/2014\/06\/26\/us\/supreme-court-cellphones-search-privacy.html?_r=0\" >noted<\/a>.<\/p>\n<p>The most obvious way to try and crack into your iPhone, and what the FBI is trying to do in the San Bernardino case, is to simply run through every possible passcode until the correct one is discovered and the phone is unlocked. This is known as a \u201cbrute force\u201d attack.<\/p>\n<p>For example, let\u2019s say you set a six-digit passcode on your iPhone.\u00a0There are 10 possibilities for each digit\u00a0in a numbers-based passcode, and so there are\u00a010<sup>6<\/sup>, or 1 million, possible combinations for a six-digit passcode as a whole. It is trivial for a computer to generate all\u00a0of these possible codes. The difficulty comes in trying to test them.<\/p>\n<p>One obstacle to testing all possible\u00a0passcodes is that the iPhone intentionally slows down after you guess wrong a few times. An\u00a0attacker can\u00a0try four incorrect\u00a0passcodes before she\u2019s forced to wait one minute. If she continues to guess wrong, the time delay increases to five minutes, 15\u00a0minutes, and finally one hour. There\u2019s even a setting to erase all data on the iPhone after 10\u00a0wrong guesses.<\/p>\n<p>This is where the FBI\u2019s requested backdoor comes into play. The FBI is demanding that Apple create a special version of the iPhone\u2019s operating system, iOS, that removes the time delays and ignores the\u00a0data erasure setting. The\u00a0FBI\u00a0could\u00a0install this malicious software\u00a0on the\u00a0San Bernardino killer\u2019s\u00a0iPhone, brute force the passcode, unlock the phone, and access all of its data. And that process could hypothetically be repeated on anyone else\u2019s iPhone.<\/p>\n<p>(There\u2019s also <a target=\"_blank\" href=\"https:\/\/daringfireball.net\/linked\/2016\/02\/17\/ios-security-guide\" >speculation<\/a>\u00a0that\u00a0the government could make Apple alter the operation of a piece of iPhone hardware known as the Secure Enclave; for the purposes of this article, I assume the protections offered by this hardware, which would slow an attacker down even more, are not in place.)<\/p>\n<p>Even if the FBI gets its way and can clear away iPhone safeguards against passcode guessing, it faces another obstacle, one that should help keep it from cracking passcodes of, say, 11 digits: It can only test\u00a0potential\u00a0passcodes for your iPhone using\u00a0the\u00a0iPhone itself; the FBI can\u2019t use a supercomputer or a cluster of iPhones to speed up the guessing\u00a0process. That\u2019s because\u00a0iPhone models,\u00a0<a target=\"_blank\" href=\"https:\/\/web.archive.org\/web\/20120617005418\/http:\/images.apple.com\/iphone\/business\/docs\/iOS_Security_May12.pdf\" >at least as far back as May 2012<\/a>, have come with a\u00a0Unique ID (UID) embedded in the device hardware. Each iPhone has a different UID fused to the phone, and, by design, no one can read it and copy it to another computer. The iPhone can only be unlocked when the owner\u2019s passcode is combined with the the\u00a0UID\u00a0to derive an\u00a0encryption key.<\/p>\n<p>So the FBI is stuck using your iPhone to test passcodes. And it turns out that your iPhone is kind of slow at that: iPhones intentionally encrypt data in such a way that they must spend about\u00a080 milliseconds doing the math needed to test a passcode, <a target=\"_blank\" href=\"https:\/\/www.apple.com\/business\/docs\/iOS_Security_Guide.pdf\" >according to Apple<\/a>. That limits them to testing\u00a012.5 passcode guesses per second, which means\u00a0that guessing a six-digit passcode would take, at most, just over 22 hours.<\/p>\n<p>You can calculate the time for that task\u00a0simply by dividing the 1 million possible six-digit passcodes by 12.5 per seconds.\u00a0That\u2019s 80,000 seconds, or 1,333 minutes, or 22 hours. But the attacker doesn\u2019t have to try each passcode; she can stop when she finds one that successfully unlocks the device. On average, it will only take 11 hours for that to happen.<\/p>\n<p>But the FBI would be happy to spend\u00a0mere\u00a0hours cracking your iPhone. What if you use a longer passcode? Here\u2019s how long the FBI would need:<\/p>\n<ul>\n<li>seven-digit passcodes will take up to\u00a09.2 days, and on average 4.6 days, to crack<\/li>\n<li>eight-digit passcodes will take up to three months, and on average 46 days, to crack<\/li>\n<li>nine-digit passcodes will take up to\u00a02.5 years, and on average 1.2 years, to crack<\/li>\n<li>10-digit passcodes will take up to\u00a025 years, and on average 12.6 years, to crack<\/li>\n<li><strong>11-digit passcodes will take up to\u00a0253 years, and on average 127 years, to crack<\/strong><\/li>\n<li>12-digit passcodes will take up to\u00a02,536 years, and on average 1,268 years, to crack<\/li>\n<li>13-digit passcodes will take up to\u00a025,367 years, and on average\u00a012,683 years, to crack<\/li>\n<\/ul>\n<p>It\u2019s important to note that\u00a0these estimates only apply to truly random passcodes. If you\u00a0choose a passcode\u00a0by stringing together dates, phone numbers,\u00a0social security numbers, or anything else\u00a0that\u2019s at all predictable, the attacker might try guessing those first, and might crack your 11-digit\u00a0passcode in a very short amount of time. So make sure your passcode is random, even if this means it takes extra time to memorize it. (Memorizing that many digits\u00a0might seem daunting, but if you\u2019re older than, say, 29,\u00a0there was probably a time when\u00a0you memorized several phone numbers that you dialed on a regular basis.)<\/p>\n<p>Nerd tip: If you\u2019re using\u00a0a Mac or Linux, you can securely generate a\u00a0random\u00a011-digit passcode by opening the Terminal app and typing this command:<\/p>\n<p>python -c &#8216;from random import SystemRandom as r; print(r().randint(0,10**11-1))&#8217;<\/p>\n<p>It\u2019s also important to note that we\u2019re assuming the FBI, or some other\u00a0government agency, has not found a\u00a0flaw in Apple\u2019s security architecture that would allow them to test passcodes on their own computers or at a rate faster than 80 milliseconds per passcode.<\/p>\n<p>Once you\u2019ve created a new 11-digit\u00a0passcode, you can\u00a0start using\u00a0it by opening the Settings app, selecting \u201cTouch ID &amp; Passcode,\u201d and entering your old passcode if prompted. Then, if you have an existing passcode,\u00a0select \u201cChange passcode\u201d and enter your old passcode. If you\u00a0do not have an existing passcode, and are setting one for the first time, click \u201cTurn passcode on.\u201d<\/p>\n<p>Then, in all cases, click \u201cPasscode options,\u201d \u00a0select\u00a0\u201cCustom numeric code,\u201d and then enter your new\u00a0passcode.<\/p>\n<p>Here are a few final tips to make this long-passcode thing work better:<\/p>\n<ul>\n<li>Within the \u201cTouch ID &amp; Passcode\u201d settings screen, make sure to\u00a0turn on the Erase Data setting to erase all data on your iPhone after 10 failed passcode attempts.<\/li>\n<li>Make sure you don\u2019t forget your passcode, or you\u2019ll lose access to\u00a0all of the data on your iPhone.<\/li>\n<li>Don\u2019t use Touch ID to\u00a0unlock your phone. Your attacker doesn\u2019t need to guess your passcode if she can\u00a0push your finger onto\u00a0the home button to unlock it instead. (At least one court has <a target=\"_blank\" href=\"http:\/\/jolt.law.harvard.edu\/digest\/telecommunications\/court-rules-police-may-compel-suspects-to-unlock-fingerprint-protected-smartphones\" >ruled<\/a> that while the police cannot compel you to disclose your passcode, they can compel you to\u00a0use your fingerprint to unlock your smartphone.)<\/li>\n<li>Don\u2019t use iCloud backups. Your attacker doesn\u2019t need to guess your passcode if she can\u00a0get a copy of all the same data from\u00a0Apple\u2019s server, where\u00a0it\u2019s no longer protected by\u00a0your passcode.<\/li>\n<li>Do make\u00a0<a target=\"_blank\" href=\"https:\/\/support.apple.com\/en-us\/HT203977\" >local backups<\/a> to your computer\u00a0using\u00a0iTunes, especially if you are worried about forgetting your iPhone passcode. You\u00a0can encrypt the backups,\u00a0too.<\/li>\n<\/ul>\n<p>By choosing a strong passcode,\u00a0the FBI shouldn\u2019t\u00a0be able to unlock your encrypted phone, even if it\u00a0installs a backdoored\u00a0version of iOS on it. Not unless it\u00a0has hundreds of years to spare.<\/p>\n<p>_________________________________<\/p>\n<p><em><a target=\"_blank\" href=\"https:\/\/theintercept.com\/staff\/micah-lee\/\" >Micah Lee<\/a> &#8211; <a href=\"mailto:micah.lee@theintercept.com\">\u2709micah.lee@\u200btheintercept.com<\/a><\/em><\/p>\n<p><a target=\"_blank\" href=\"https:\/\/theintercept.com\/2016\/02\/18\/passcodes-that-can-defeat-fbi-ios-backdoor\/\" >Go to Original \u2013 theintercept.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>18 Feb 2016 &#8211; Yesterday, apple CEO Tim Cook published an open letter opposing a court order to build the FBI a \u201cbackdoor\u201d for the iPhone. By choosing a strong passcode, the FBI shouldn\u2019t be able to unlock your encrypted phone, even if it installs a backdoored version of iOS on it. Not unless it has hundreds of years to spare.<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[216],"tags":[],"class_list":["post-70184","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/www.transcend.org\/tms\/wp-json\/wp\/v2\/posts\/70184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.transcend.org\/tms\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.transcend.org\/tms\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.transcend.org\/tms\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.transcend.org\/tms\/wp-json\/wp\/v2\/comments?post=70184"}],"version-history":[{"count":0,"href":"https:\/\/www.transcend.org\/tms\/wp-json\/wp\/v2\/posts\/70184\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.transcend.org\/tms\/wp-json\/wp\/v2\/media?parent=70184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.transcend.org\/tms\/wp-json\/wp\/v2\/categories?post=70184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.transcend.org\/tms\/wp-json\/wp\/v2\/tags?post=70184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}