<?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>Intrepidus Group - Insight &#187; dschuetz</title>
	<atom:link href="http://intrepidusgroup.com/insight/author/dschuetz/feed/" rel="self" type="application/rss+xml" />
	<link>http://intrepidusgroup.com/insight</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 11 Jun 2013 14:46:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>iOS 7 and Mavericks: New feature roundup from a security perspective</title>
		<link>http://intrepidusgroup.com/insight/2013/06/ios-7-and-mavericks-new-feature-roundup-from-a-security-perspective/</link>
		<comments>http://intrepidusgroup.com/insight/2013/06/ios-7-and-mavericks-new-feature-roundup-from-a-security-perspective/#comments</comments>
		<pubDate>Tue, 11 Jun 2013 14:46:29 +0000</pubDate>
		<dc:creator>dschuetz</dc:creator>
				<category><![CDATA[iOS]]></category>
		<category><![CDATA[Mobile Security]]></category>
		<category><![CDATA[Security Management]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://intrepidusgroup.com/insight/?p=3795</guid>
		<description><![CDATA[Yesterday Apple unveiled the latest versions of OS X (code-named Mavericks) and iOS 7, at the annual World Wide Developer Conference (WWDC). The general focus was on end-user features and items of interest to developers, but several items appeared to have an impact on security in one way or another. The beta versions of both [...]]]></description>
				<content:encoded><![CDATA[<p>Yesterday Apple unveiled the latest versions of OS X (code-named Mavericks) and iOS 7, at the annual World Wide Developer Conference (WWDC). The general focus was on end-user features and items of interest to developers, but several items appeared to have an impact on security in one way or another.</p>
<p>The beta versions of both operating systems were also released to developers yesterday, but I haven&#8217;t seen them yet (and once I do, I&#8217;d probably be bound by NDA to not talk much about them). So before I go that route (hopefully later this week!), I thought it would be useful to quickly review some of the items I found potentially significant. I&#8217;ll briefly describe the features, then summarize some of the security questions I have at the end. Also, whenever I talk about &#8220;Early Reports,&#8221; I&#8217;m referring to information not specifically announced by Apple, but which have leaked through screenshots and other reports.</p>
<h3>OS X &#8220;Mavericks&#8221;</h3>
<p>Though my focus at Intrepidus has generally been on iOS, I do use OS X on a daily basis, and a few items here seemed worthy of mention (plus, they also pertain to iOS).</p>
<ul>
<li>Passwords in the Cloud &#8212; a secure vault, stored on iCloud, for website logins, credit card numbers, wi-fi passwords, etc. This was cited as using AES-256 encryption, pushed to trusted devices. When used within Safari, it can even auto-suggest random, secure passwords as you create web-based accounts.</li>
<li>Notifications in the lock screen &#8212; when the computer is locked or asleep, notifications (including push notifications) can queue up, and will be displayed to the user the next time they wake up the computer, while the screen is still locked.</li>
<li>The map application can send directions to an iPhone, but how this works wasn&#8217;t explained. My speculation is it&#8217;s an iCloud document, just like you can send Passbook passes from Safari directly to your iOS devices.</li>
</ul>
<h3>iOS 7</h3>
<p>This was the big change. So big, they repeatedly referred to it as &#8220;the biggest change to iOS since the introduction of the iPhone.&#8221; Clearly, there have been big changes in the interface design, but also several new features were introduced as well.</p>
<ul>
<li>AirDrop &#8212; iOS devices can now share information directly with nearby friends over peer-to-peer Wi-Fi. This was introduced in OS X Lion, and doesn&#8217;t require actually being on the same Wi-Fi network.</li>
<li>Notification center on lock screen &#8212; similar to the new feature in Mavericks</li>
<li>Control Center &#8212; provides an easy way to toggle features like Wi-Fi, Airplane mode, and Do Not Disturb, by simply swiping up from the bottom of the screen. This also allows quick access to four applications: Flashlight, Timers, Calculator, and Camera.</li>
<li>Better multitasking &#8212; applications may now actually remain in the background, with the operating system using some careful monitoring and management to reduce the cycles they use to the bare minimum. This also provides a facility called &#8220;push trigger,&#8221; where an application in the background can actually immediately act on data received in a push notification.</li>
<li>Safari: iCloud keychain and parental controls &#8212; I don&#8217;t have any idea what the parental controls would do, but if it provides a way to blacklist and/or whitelist websites, this could be somewhat useful in corporate settings. And, of course, the iCloud keychain (described above for Mavericks) is a major new feature.</li>
<li>App store automatic updates &#8212; this is a good/bad thing, in my mind. People certainly want to stop having to do big updates of many apps every week or two&#8230;but sometimes a new version of an app may be buggy, and users might not want to upgrade immediately. Also, corporations may want to review apps before they&#8217;re updated, to ensure that new features don&#8217;t change the risk profile the app poses to their enterprise.</li>
<li>Activation Lock &#8212; this new feature allows a user to configure an iOS device such that if it&#8217;s been remotely wiped (because it was lost or stolen), then the device cannot be re-activated until the original iCloud credentials are entered. This should provide some additional deterrence against theft, at least, once the feature becomes widespread and well understood.</li>
</ul>
<p>These keynotes always focus on only a few features, and there are always several dozen other features that don&#8217;t get described in detail. In this case, two screens full of features were shown during the keynote, including several that appear to have relevance to security or corporate users:</p>
<ul>
<li>Enterprise single sign on &#8212; definitely interesting</li>
<li>Per-app VPNs &#8212; would be very interesting if each app could be assigned to an arbitrary VPN</li>
<li>Streamline MDM enrollment &#8212; no idea what this could mean, since (for the end user) it&#8217;s already pretty simple</li>
<li>App store volume purchase &#8212; this has been a complicated endeavor since it was first introduced, so changes here could be significant</li>
<li>Managed app configuration &#8212; this might be similar to application profiles in the OS X profile manager (which are an outgrowth of the old MCX system in pre-Lion OS X)</li>
<li>Scan to acquire passbook passes &#8212; probably built-in QR scanner</li>
<li>iBeacons &#8212; Low Energy Bluetooth location</li>
<li>Automatic configuration &#8212; possibly the aforementioned app configuration</li>
<li>Barcode scanning &#8212; may confirm the passbook assumption</li>
<li>Data protection by default &#8212; finally, all apps may have the additional &#8220;encrypted when device is locked&#8221; protection</li>
</ul>
<p>Finally, some interesting bits have already been seen in screenshots on the web:</p>
<ul>
<li>Integration of Vimeo and Flickr accounts for share sheets (similar to existing Twitter and Facebook integration)</li>
<li>Separate iCloud security panel, including integrated two-factor authentication, a separate passcode for the iCloud keychain, and a toggle for &#8220;Keychain Recovery&#8221; subtitled &#8220;Restore passwords if you lose all your devices.&#8221;</li>
</ul>
<h3>Outstanding Questions</h3>
<ul>
<li>How are passwords in the cloud stored, and does anyone else have access to the data (for example, if you forget your key)?</li>
<li>Can we control what notifications appear on the lock screen? For example, allow Twitter, but disallow mail, while allowing both Twitter and email when the device is unlocked?</li>
<li>Does AirDrop on iOS introduce any new problems? Can strangers try to push data to you while in public, even if you&#8217;re not logged into a public Wi-Fi? Could that lead to a phishing vector (for example, sharing a malicious configuration profile over AirDrop)?</li>
<li>Can you change the applications available for quick-launch in the Control Center? Early reports indicate that the Control Center may be enabled for use in the lock screen, and if so, how does that affect apps which encrypt their data?</li>
<li>How much can an application do when woken up by a push trigger? Could an attacker in control of a malicious app and its push server remotely enable the device microphone, for example? Can this be done while the device is locked?</li>
<li>Can automatic app updates be configured, for example, to wait a week after release prior to being applied? Can the feature be disabled altogether? Or better yet, can certain apps be flagged for manual updating only?</li>
<li>For activation lock, can the remote geolocation and messaging features of Find My iPhone remain intact even after the device was wiped? Currently, users are faced with a tough choice, whether to wipe the device and give up any chance of locating it again, or leave it trackable, and able to receive messages, but at risk of someone extracting sensitive information from it. It&#8217;d be nice if one could wipe the device, but still be able to try to track it down and send &#8220;If found, please call me for a reward&#8221; messages to the finder.</li>
</ul>
<p>All in all, there appears to be a great deal of change coming in both OS X, and especially, iOS. This summer will keep us busy exploring all the new features and their security implications, and hopefully the final release will prove to be an improvement in many areas.</p>
]]></content:encoded>
			<wfw:commentRss>http://intrepidusgroup.com/insight/2013/06/ios-7-and-mavericks-new-feature-roundup-from-a-security-perspective/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iSniff your Wi-Fi and GPS your House</title>
		<link>http://intrepidusgroup.com/insight/2013/05/isniff-your-wi-fi-and-gps-your-house/</link>
		<comments>http://intrepidusgroup.com/insight/2013/05/isniff-your-wi-fi-and-gps-your-house/#comments</comments>
		<pubDate>Fri, 10 May 2013 13:52:37 +0000</pubDate>
		<dc:creator>dschuetz</dc:creator>
				<category><![CDATA[Geolocation]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Privacy]]></category>
		<category><![CDATA[Risk Analysis]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Wireless]]></category>

		<guid isPermaLink="false">http://intrepidusgroup.com/insight/?p=3728</guid>
		<description><![CDATA[It&#8217;s been a while since I thought much about location-based services on iOS systems, in particular their privacy implications. Of course &#8220;Locationgate&#8221; happened back in March 2011, when researches called public attention to a database of location points saved on iPhones. A year later, Mark Wuergler reported on a possible information leak where iOS devices [...]]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s been a while since I thought much about location-based services on iOS systems, in particular their privacy implications. Of course <a href="http://darthnull.org/2011/04/25/analysis-of-ios-location-data">&#8220;Locationgate&#8221;</a> happened back in March 2011, when researches called public attention to a database of location points saved on iPhones. A year later, <a href="http://arstechnica.com/apple/2012/03/loose-lipped-iphones-top-the-list-of-smartphones-exploited-by-hacker/">Mark Wuergler reported</a> on a possible <a href="http://arstechnica.com/apple/2012/03/anatomy-of-an-iphone-leak/">information leak</a> where iOS devices disclosed the MAC addresses (more properly, BSSIDs) of the last few access points they&#8217;d linked to.</p>
<p>These two issues were brought together last summer, at the Black Hat Arsenal, when <a href="https://twitter.com/hubert3">Hubert Seiwert (@hubert3)</a> presented a tool called iSniff GPS. The tool was described in more detail <a href="http://www.syscan.org/index.php/download/get/01ae5e17eb08ac1d591537177d4fe2b7/SyScan2013_DAY1_SPEAKER06_Hubert_iSniff_GPS-Virtual_Wardriving-Syscan_2013_Slides.zip">at Syscan in Singapore</a> just a couple of weeks ago, but finally came to my attention in a tweet Wednesday night pointing me to <a href="http://www.scmagazine.com.au/News/342593,tool-reveals-apple-user-locations.aspx">SC Magazine (Australia)</a>.</p>
<p>Intrigued, I spent some time yesterday installing the iSniff tool and putting it through its paces, and have a few thoughts I&#8217;d like to share.</p>
<div id="attachment_3735" class="wp-caption aligncenter" style="width: 310px"><a href="http://intrepidusgroup.com/insight/wp-content/uploads/2013/05/iSniffSSID.png"><img class="size-medium wp-image-3735" alt="You can easily map access points by name using queries to the WiGLE database." src="http://intrepidusgroup.com/insight/wp-content/uploads/2013/05/iSniffSSID-300x201.png" width="300" height="201" /></a><p class="wp-caption-text">You can easily map access points by name using queries to the WiGLE database.</p></div>
<p>The iSniff GPS tool contains two main components: A sniffer, and a GUI. The sniffer watches for leaked ARP packets, identifies the BSSIDs they&#8217;re probing for, and fetches information about them from Apple. The web-based GUI (built on Django) shows you the devices that have been &#8220;noticed&#8221; on the local network, and lists networks those devices have visited. When a probed network was matched in Apple&#8217;s database, a link will also take you to a visualization of all the data Apple has on file regarding that access point&#8217;s location.</p>
<p>After installing the tool, I took an old access point, connected my laptop directly to it, and joined a few iOS devices to see what happened. The tool was definitely working as designed &#8212; devices immediately appeared in the list, along with a list of BSSIDs each client probed for. Clicking on each client in the list displays a detail screen with latitude and longitude for each network BSSID found in the Apple DB, and a link to display the information on a map. Another tab pivots the data, listing it by network (with the relevant clients next to each), while other tabs offer direct mapping of selected BSSIDs and even searching and mapping of the <a href="http://wigle.net/">wigle.net</a> SSID database.</p>
<div id="attachment_3734" class="wp-caption aligncenter" style="width: 310px"><a href="http://intrepidusgroup.com/insight/wp-content/uploads/2013/05/iSniffClients.png"><img class="size-medium wp-image-3734" alt="Clients detected, and the APs they queried for (anonymized, obviously)." src="http://intrepidusgroup.com/insight/wp-content/uploads/2013/05/iSniffClients-300x73.png" width="300" height="73" /></a><p class="wp-caption-text">Clients detected, and the APs they queried for (anonymized, obviously).</p></div>
<p>Interestingly enough, none of the access points the devices queried were in Apple&#8217;s database. The access point at work was found in the WiGLE DB (listed both by name and BSSID), but not in the Apple DB. My home access point didn&#8217;t show up in either database, despite having several iOS devices connecting on a daily basis, not to mention multiple visiting family members most of whom have iOS devices as well. [<b>Note:</b> Not entirely correct, see update below.]</p>
<p>However, another network in the building did show up in Apple&#8217;s DB, and I was also able to accurately geolocate several access points near our sister company (iSEC Partners) in Manhattan. Perhaps there hasn&#8217;t been enough traffic by our building in the year since we moved in? We just haven&#8217;t been reported frequently enough to be included in the database?</p>
<div id="attachment_3730" class="wp-caption aligncenter" style="width: 386px"><a href="http://intrepidusgroup.com/insight/wp-content/uploads/2013/05/Test-AP-Geloocated.png"><img class="size-full wp-image-3730" alt="The red dot is where Apple thinks the AP is (it's actually inside the left edge of the nearby building)" src="http://intrepidusgroup.com/insight/wp-content/uploads/2013/05/Test-AP-Geloocated.png" width="376" height="261" /></a><p class="wp-caption-text">The red dot is where Apple thinks the AP is (it&#8217;s actually just inside the adjacent building)</p></div>
<p>That&#8217;d be a great theory, except that the BSSID for the access point I was testing with also appeared in the Apple DB. That seemed really odd, since this AP is almost never on, and when it is, it&#8217;s rarely for more than a few days at a stretch, and almost never accessed by anything other than my own devices. Occasionally it&#8217;ll be set up as &#8220;attwifi&#8221; for testing, and I&#8217;ll get a few people in doctors&#8217; offices connecting (and enjoying free internet access), but that&#8217;s probably no more than a dozen devices, all told, ever. Finally, the AP gets brought to the beach every year (and lots of people use it there) but that&#8217;s obviously a totally different location, and even then, not more than a couple dozen additional devices. And again, only for a week.</p>
<p>So why is an access point, active 24&#215;7 for over a year, not in the database, and another one, in use for maybe 3 or 4 weeks total time over the same year (and one of those weeks in a different state), not in the database? There&#8217;s definitely some odd criteria in play here that I haven&#8217;t yet been able to guess at.</p>
<p>What does all this mean? It&#8217;s clear that the Apple BSSID database has real utility: It helps devices quickly, and more accurately, determine exactly where they are. There might be a way that Apple could restrict how queries are performed on the database, but it&#8217;s possible that would be difficult to do effectively. And of course, Apple isn&#8217;t the only entity maintaining such a database. Trying to keep your AP information out of a publicly-accessible database just isn&#8217;t going to happen.</p>
<p>On the other hand, the leakage of the BSSID data when a device joins another network is a little harder to justify. What exactly is the utility the user gets from this? A faster recognition by the device that it&#8217;s on a network it knows? What services benefit from this, and to what degree? It may well be acting in accordance with <a href="http://www.ietf.org/rfc/rfc4436.txt">RFC 4436</a>, but that doesn&#8217;t necessarily make it right (and very few, if any, Android devices exhibit the same behavior).</p>
<p>Ultimately, the real question is whether the daily benefit to the end user outweighs the risk that the location of their home, or school, or workplace, might be disclosed to an eavesdropper at a coffee shop. Which, in a strict risk analysis, probably falls far short of requiring elimination of the leakage. Perhaps it could be mitigated with a user preference setting, but this problem is pretty esoteric even for information security researchers, and I suspect clearly describing the problem (and its implications) to the average user in the space of a few lines on a preference pane would be flat-out impossible.</p>
<p>At any rate, this is a very interesting demonstration of fusing publicly-accessible data from multiple sources to gain information not otherwise explicitly revealed. And that in itself definitely makes the <a href="https://github.com/hubert3/iSniff-GPS">iSniff GPS tool</a> worth checking out.</p>
<p><b>Quick Update, 5/13/2013</b>: I was out of town over the weekend, but now have done a little more checking, based on Hubert&#8217;s comments below and on Twitter.</p>
<p>Turns out, of the two networks at work (open/guest and closed/employees), one of the guest BSSIDs is in Apple&#8217;s DB, but none of the closed BSSIDs are, which still seems odd to me. Of four neighboring business&#8217; BSSIDs checked, all four are in Apple&#8217;s DB. And I looked again for my home AP, and it was in there &#8212; I&#8217;d been querying the wrong MAC address. <img src='http://intrepidusgroup.com/insight/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>So the AppleDB is a little more complete than I&#8217;d thought, though there&#8217;s still something keeping our main work net from showing up.</p>
<p>And I also verified that the ARP queries being sent out by iOS devices upon joining the network are not for our local APs, but for the router / DNS server (which are both the same here). So for places where the router / DNS is also the Wi-Fi access point (many, many places), the ARP disclosure can lead to geolocation via Apple&#8217;s DB. But where the Wi-Fi and router / DNS are split to multiple devices, it&#8217;s a bit harder to find.</p>
]]></content:encoded>
			<wfw:commentRss>http://intrepidusgroup.com/insight/2013/05/isniff-your-wi-fi-and-gps-your-house/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>iOS Configuration Profile Ransomware</title>
		<link>http://intrepidusgroup.com/insight/2013/04/ios-configuration-profile-ransomware/</link>
		<comments>http://intrepidusgroup.com/insight/2013/04/ios-configuration-profile-ransomware/#comments</comments>
		<pubDate>Thu, 11 Apr 2013 15:40:29 +0000</pubDate>
		<dc:creator>dschuetz</dc:creator>
				<category><![CDATA[iOS]]></category>
		<category><![CDATA[Mobile Security]]></category>
		<category><![CDATA[Phishing]]></category>

		<guid isPermaLink="false">http://intrepidusgroup.com/insight/?p=3686</guid>
		<description><![CDATA[A couple of months ago, at ShmooCon 2013, Tim Medin gave a great short talk titled &#8220;Apple iOS Certificate Tomfoolery.&#8221; One of the most interesting ideas I took away from this talk was the idea of ransomware delivered through a configuration profile. Briefly, configuration profiles can be used to control many aspects of an iOS [...]]]></description>
				<content:encoded><![CDATA[<p>A couple of months ago, at ShmooCon 2013, Tim Medin gave a great short talk titled &#8220;<a href="http://www.shmoocon.org/2013/videos/Shmoocon%202013%20-%20Apple%20iOS%20Certificate%20Tomfoolery.mp4">Apple iOS Certificate Tomfoolery</a>.&#8221; One of the most interesting ideas I took away from this talk was the idea of ransomware delivered through a configuration profile. Briefly, configuration profiles can be used to control <a href="http://developer.apple.com/library/ios/#featuredarticles/iPhoneConfigurationProfileRef/Introduction/Introduction.html">many aspects of an iOS device&#8217;s configuration</a>. They can enable features, disable features, and even hide applications from the user.</p>
<p>This is the tricky bit: Create a configuration profile that disables Safari, disables installation of applications, even disables iCloud backups, and adds a &#8220;READ ME&#8221; web page to the user&#8217;s home screen. Put a password on the profile, so the user has to enter the password in order to remove it. Now, you just need to convince the user to install the profile, and you can do that simply through email or SMS <a href="http://phishme.com">phishing</a>. Once they install it, half their expected functionality suddenly goes away, and if they tap on the &#8220;READ ME&#8221; page, they&#8217;ll see the instructions as to how to pay ransom to receive the password to remove the profile. Win! (well, not for the user).</p>
<p>Now, fortunately, there are a couple of flags that (might) alert the user that something odd is happening. First, in the initial profile installation screen, is the list of contents, which includes &#8220;Profile Removal Password.&#8221; Similarly, tapping on &#8220;More Details&#8221; clarifies that this is a locked profile. Of course, if the email introducing the profile was written well enough, then the user might already expect and accept this. Hopefully we can train them not to. Also, if the user has a passcode on their device, then they have to enter their passcode as well, so it won&#8217;t simply install without the user noticing.</p>
<p><a href="http://intrepidusgroup.com/insight/wp-content/uploads/2013/04/photo-1.png"><img class="alignleft size-medium wp-image-3687" alt="photo 1" src="http://intrepidusgroup.com/insight/wp-content/uploads/2013/04/photo-1-200x300.png" width="200" height="300" /></a></p>
<p><a href="http://intrepidusgroup.com/insight/wp-content/uploads/2013/04/photo-2.png"><img class="size-medium wp-image-3688 alignright" alt="photo 2" src="http://intrepidusgroup.com/insight/wp-content/uploads/2013/04/photo-2-200x300.png" width="200" height="300" /></a></p>
<p>But what if they ignore all the warnings, and install the profile anyway? Well, all might not yet be lost. Turns out, the removal password is included in the profile, in plaintext. The attacker could choose to encrypt the profile, but to do that they need a public key from the target device, which might not be so easily acquired. So, assuming the profile is not encrypted, just pull down the .mobileconfig file from the original phishing email, open it up, and find the password.</p>
<p><a href="http://intrepidusgroup.com/insight/wp-content/uploads/2013/04/SooperSekrit.png"><img class="aligncenter size-full wp-image-3689" alt="SooperSekrit" src="http://intrepidusgroup.com/insight/wp-content/uploads/2013/04/SooperSekrit.png" width="386" height="202" /></a></p>
<p>Of course, the attacker could get really tricky, and serve up a file with a different password each time, placing some kind of key into the ransom notice (&#8220;Pay me $35 to remove this profile. Use the word &#8216;ostrich&#8217; when you send me your bitcoins&#8221;) and then that key would be used to derive the actual removal password. If this is the case, then each time you hit the page you&#8217;d get something different, and so you wouldn&#8217;t be able to recover the correct password. In that case, the only real way to remove it is either to pay the ransom, or, if the device is jailbroken, get in and remove the profile directly from the filesystem.</p>
<p>In iOS 6.x, a new feature was introduced that can prevent the user from installing profiles. This feature is only available in Supervised Mode (via the Configurator application), however, and so isn&#8217;t of much use to the general population.</p>
<p>Want to hear more about configuration profiles and keeping your iOS devices secure? Come to <a href="http://khanfu.com/event/27/1810">my talk</a> at <a href="http://www.sourceconference.com/boston/">SOURCE Boston</a> next Thursday!</p>
]]></content:encoded>
			<wfw:commentRss>http://intrepidusgroup.com/insight/2013/04/ios-configuration-profile-ransomware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.shmoocon.org/2013/videos/Shmoocon%202013%20-%20Apple%20iOS%20Certificate%20Tomfoolery.mp4" length="258185920" type="video/mp4" />
		</item>
		<item>
		<title>Getting ready for ShmooCon</title>
		<link>http://intrepidusgroup.com/insight/2013/02/getting-ready-for-shmoocon/</link>
		<comments>http://intrepidusgroup.com/insight/2013/02/getting-ready-for-shmoocon/#comments</comments>
		<pubDate>Tue, 12 Feb 2013 18:20:36 +0000</pubDate>
		<dc:creator>dschuetz</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Fun and Games]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://intrepidusgroup.com/insight/?p=3619</guid>
		<description><![CDATA[It&#8217;s almost time for another ShmooCon, and as usual, we&#8217;ll be out in force for the conference. We won&#8217;t have a booth this year, but we will be milling about, attending talks, and even giving a couple presentations of our own. We might even have a little puzzle to share&#8230;just ask any one of us [...]]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s almost time for another <a href='http://www.shmoocon.org'>ShmooCon</a>, and as usual, we&#8217;ll be out in force for the conference. We won&#8217;t have a booth this year, but we will be milling about, attending talks, and even giving a couple presentations of our own. We might even have a little puzzle to share&#8230;just ask any one of us for details. (David might have a slightly more visible puzzle contest as well, but, well, there were secrecy oaths, threats of retribution, etc., so the less said about that, the better).</p>
<p>Be sure to check out our talks, too. Roman Faynberg will be presenting <a href="http://khanfu.com/event/24/1699">Armor For Your Android Apps</a>, Saturday at 3:00, a discussion of Android vulnerabilities, with plenty of real-life examples and hair-raising war stories, as well as tips and best practices to avoid such problems in development. There&#8217;s even a HackMe-type app to help demonstrate some of the problems.</p>
<p>At exactly the same time (sorry, we couldn&#8217;t control it!), David Schuetz will be presenting on <a href="http://khanfu.com/event/24/1720">Protecting Sensitive Data on iOS Devices</a>. His talk will try to cut through some of the technical mumbo-jumbo and present best practices for configuration, management, and application develoment on iPads and iPhones, with a goal to making it easy to explain to management-types. </p>
<p>We&#8217;re also hiring! Current openings for [testers | consultants | ninjas | pirates] (sorry, no open positions for samurai or lumberjacks). If you&#8217;re interested, chat with one of us at the con, or send us an email at <a href='mailto:careers@intrepidusgroup.com'>careers@intrepidusgroup.com</a>. </p>
<p>So if you&#8217;re going to be at ShmooCon, stop us in the halls and have a chat. We can&#8217;t wait to see you!</p>
]]></content:encoded>
			<wfw:commentRss>http://intrepidusgroup.com/insight/2013/02/getting-ready-for-shmoocon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Evading evasi0n: iOS 6 Jailbreak Prevention</title>
		<link>http://intrepidusgroup.com/insight/2013/02/evading-evasi0n/</link>
		<comments>http://intrepidusgroup.com/insight/2013/02/evading-evasi0n/#comments</comments>
		<pubDate>Tue, 05 Feb 2013 21:06:13 +0000</pubDate>
		<dc:creator>dschuetz</dc:creator>
				<category><![CDATA[iOS]]></category>
		<category><![CDATA[jailbreak]]></category>
		<category><![CDATA[Mobile Device Management]]></category>
		<category><![CDATA[Mobile Security]]></category>

		<guid isPermaLink="false">http://intrepidusgroup.com/insight/?p=3601</guid>
		<description><![CDATA[The latest iOS jailbreak was released yesterday. Called &#8220;evasi0n,&#8221; it can be used to bypass most all protections in iOS 6.1 on any device that supports it. It&#8217;s quite cool, and was certainly something I was looking forward to (since much of my work is greatly aided by working on a jailbroken device). However, another [...]]]></description>
				<content:encoded><![CDATA[<p>The latest iOS jailbreak was released yesterday. Called &#8220;<a href='http://evasi0n.com'>evasi0n</a>,&#8221; it can be used to bypass most all protections in iOS 6.1 on any device that supports it. It&#8217;s quite cool, and was certainly something I was looking forward to (since much of my work is greatly aided by working on a jailbroken device).</p>
<p>However, another part of my work is ensuring that our customers&#8217; devices are as secure as they can be. And having an available jailbreak kind of weakens those assurances. So it might be useful to find a way to prevent the jailbreak from working.</p>
<p>And, it turns out, there might be such a way. At least, until the jailbreak team finds a workaround for the workaround.</p>
<p>Last March, Apple released the <a href="http://intrepidusgroup.com/insight/2012/03/quick-look-at-apple-configurator/">Configurator Application.</a> Using this application, iOS devices can be put into a &#8220;<a href="http://help.apple.com/configurator/mac/1.2/">Supervised</a>&#8221; mode, strongly locks down many features. One of these features is the ability to connect to iTunes and do backups/restores. On a supervised device, this functionality is possible only from the machine designated as the device&#8217;s supervisor.</p>
<p>The evasi0n jailbreak just <a href='http://blog.accuvantlabs.com/blog/bthomas/evasi0n-jailbreaks-userland-component'>happens to depend</a> on the iOS backup / restore channel. So much so, in fact, that this is what I got when I tried to jailbreak a supervised device:</p>
<p><a href="http://intrepidusgroup.com/insight/wp-content/uploads/2013/02/evasion.png"><img class="aligncenter size-full wp-image-3602" title="evasi0n failure" src="http://intrepidusgroup.com/insight/wp-content/uploads/2013/02/evasion.png" alt="" width="417" height="70" /></a></p>
<p>Could the evasi0n authors work around this? Possibly. It depends on how deep the supervised mode controls are embedded within iOS. If the device requires a unique host key (from the supervising machine) in order to restore data to the iPad, then it could well be impossible to make evasi0n work on anything other than the actual supervising host.</p>
<p>Of course, putting a device in supervised mode isn&#8217;t for the faint of heart &#8212; it&#8217;s a major shift in how one configures and manages iOS devices. So this probably won&#8217;t be a &#8220;Jailbreak Stopper&#8221; for every major organization out there with large pools of iPads. But it might provide some additional comfort in small groups, like iPads checked out to executives, etc.</p>
<p>But couldn&#8217;t a user just remove the device from supervision? Yes, but that&#8217;s harder than it sounds. &#8220;Erase all Settings&#8221; won&#8217;t do it, and even &#8220;Erase all content and settings&#8221; (essentially, &#8220;wipe the device with extreme prejudice&#8221;) won&#8217;t kill the supervisory link. To make a device unsupervised, you need to connect it back to the supervising machine, and sever the link within Configurator. You should also be able to do it in iTunes by doing a full OS restore. In either case, however, all data on the device is wiped, so anything installed while in supervised mode would be lost prior to the jailbreak.</p>
<p>Bottom line: if your organization has iOS devices with sensitive information, and you&#8217;re concerned that this jailbreak might put data at risk, it might be worth checking out Configurator and putting some of your devices under supervised control.</p>
<p>[shameless plug: I'll be talking a little about this, and other ways to protect your data on iOS, at <a href="http://www.shmoocon.org/speakers#protecting">ShmooCon</a>.]</p>
<p><b><i>UPDATE:</i></b> Further thought should&#8217;ve made it obvious to me that forcing encrypted backups would have the same effect, and this is borne out in some simple testing. Of course, the user can&#8217;t be permitted to remove the encryption: so it needs to be forced through a configuration profile, preferably one that can&#8217;t be removed. If this setting is implemented through Mobile Device Mangaement, then the user could remove the device from MDM, disable encryption, jailbreak the device, and then re-enroll in MDM. So not entirely foolproof, but perhaps a more practical approach than shifting everyone to supervised mode.</p>
]]></content:encoded>
			<wfw:commentRss>http://intrepidusgroup.com/insight/2013/02/evading-evasi0n/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tracking Down the UDID Breach Source</title>
		<link>http://intrepidusgroup.com/insight/2012/09/tracking-udid-src/</link>
		<comments>http://intrepidusgroup.com/insight/2012/09/tracking-udid-src/#comments</comments>
		<pubDate>Mon, 10 Sep 2012 16:00:04 +0000</pubDate>
		<dc:creator>dschuetz</dc:creator>
				<category><![CDATA[Breach]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Mobile Security]]></category>
		<category><![CDATA[Privacy]]></category>

		<guid isPermaLink="false">http://intrepidusgroup.com/insight/?p=3492</guid>
		<description><![CDATA[I&#8217;d heard about the alleged FBI/Apple UDID leak shortly after arriving at work last Tuesday morning, and immediately downloaded and began reviewing the data. Less than an hour later, I&#8217;d surmised that comparing apps across multiple devices might help narrow down the source. Several hours later, at 3:00, I saw a tweet from @Jack_Daniel suggesting [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;d heard about the alleged FBI/Apple UDID leak shortly after arriving at work last Tuesday morning, and immediately downloaded and began reviewing the data. Less than an hour later, I&#8217;d surmised that comparing apps across multiple devices might help narrow down the source.</p>
<p>Several hours later, at 3:00, I saw a tweet from @Jack_Daniel suggesting that people checking their UDIDs in online forms only enter partial numbers . And that made me wonder: &#8220;How many digits is the minimum people need to enter in order to be guaranteed a unique result?&#8221; Sort to the rescue:</p>
<p><code>cat data | cut -c 2-7 | sort | uniq -c | more</code></p>
<p>This gave me a bunch of repeats. That&#8217;s not too surprising, as I&#8217;m only looking at 6 digits. Next up was 8 digits, and still I saw hundreds of repeats. Then I changed tactics and simply counted the number of unique UDIDs&#8230;and I came up with a number significantly different from the 1,000,001 that were released: 985,117. So there are almost 15,000 duplicates. Looking further, I saw that many of these duplicates have different device tokens, prompting a tweet, about 3:15:</p>
<p><pre><code>
Interesting. Just noticed there are UDID duplicates in that 
data dump, with multiple APNS tokens. Different app providers, 
or multiple regs?
</code></pre></p>
<p>About 45 minutes later, on my way home, @danimal suggested: &#8220;@DarthNull multiple apps? Seems like maybe a game or ad company.&#8221; I immediately thought, damn, that must be it. At 4:23 pm, I replied &#8220;Yes! makes sense.&#8221; </p>
<p>And two minutes after that, I found what seemed to be the source of the breach.</p>
<p>I had decided to look more closely at the most frequently repeated device IDs, on the theory that perhaps that would belong to a developer. They&#8217;d naturally test multiple apps for their company, each of which should have a different device token. So first, more shell magic:</p>
<p><code>cat data | cut -c 2-7 | sort | uniq -c | sort -n -r | head</code></p>
<p>Wow, some are repeated 10 or even 11 times!</p>
<p><pre><code>
&nbsp;&nbsp;11 4daa64abd
&nbsp;&nbsp;10 d1f575954
&nbsp;&nbsp;10 aa5c7aedb
&nbsp;&nbsp; 8 12e6ec97e
&nbsp;&nbsp; 7 f661c1396
&nbsp;&nbsp; 7 4225e2a59
&nbsp;&nbsp; 6 91a83b0e3
&nbsp;&nbsp; 6 480074431
</code></pre></p>
<p>I searched for the first one, and found 11 different entries for a &#8220;Gary Miller.&#8221; Nothing much there. The next one, though, had some interesting device names:</p>
<p><pre><code>
&#039;Bluetoad Support&#039;
&#039;Bluetoad Support&#039;
&#039;BT iPad WiFi&#039;
&#039;BT iPad WiFi&#039;
&#039;CSR iPad&#039;
&#039;Customer Service iPad&#039;
&#039;Developer iPad&#039;
&#039;Developer iPad&#039;
&#039;Hutch Hicken’s iPad&#039;
&#039;Hutch Hicken’s iPad&#039;
</code></pre></p>
<p>Six different names, four repeated twice (implying at least a pair of apps and several users).  Then I looked at the next entry, with 10 repeats: it&#8217;s variously named Robert, Red, and HP Pavilion. Meh. The entry, with 8 repeats: GoldPad. But the entry with 7 repeats really grabbed my attention:</p>
<p><pre><code>
&#039;Bluetoad iPad&#039;
&#039;Bluetoad iPad&#039;
&#039;Client iPad BT&#039;
&#039;Client iPad BT&#039;
&#039;CSR/Marketing iPad&#039;
&#039;CSR/Marketing iPad&#039;
&#039;Jessica Aslanian’s iPad&#039;
</code></pre></p>
<p>Support? Customer service? Developer? Marketing? A quick Google search revealed that, yes, BlueToad does develop iOS apps. In fact, they build magazine apps for many different publishers, and a quick trip through the iTunes store showed me that these applications use Push Notifications. </p>
<p>As this was the kids&#8217; first day of school, we went out for a nice dinner to celebrate. While there, I thought more about what I&#8217;d found, and decided to roll the dice: I sent an email to BlueToad, using the email address on their website. I didn&#8217;t say much, just that there&#8217;d been a breach involving UDID and push tokens, and I&#8217;ve found some interesting data that suggest they may be involved. After returning home, I spent another four hours digging for more.</p>
<p>By the time I went to bed, I had identified nineteen different devices, each tied to BlueToad in some way. One, appearing four times, is twice named &#8220;Hutch&#8221; (their CIO), and twice named &#8220;Paul&#8217;s gift to Brad&#8221; (Paul being the first name of the CEO, and Brad being their Chief Creative Officer). I found iPhones and iPads belonging to their CEO, CIO, CCO, a customer service rep, the Director of Digital Services, the lead System Admin, and a Senior Developer. </p>
<p>This felt really significant. But as I started writing up my notes, doubt crept in. What are some other explanations? Perhaps everyone at the company uses a common suite of applications. Like the same timesheet app, for example. Then of course they&#8217;d all appear in the data. But even still, I couldn&#8217;t shake the feeling that I&#8217;m onto something.</p>
<p>I spent much of the next day writing a <a href="http://intrepidusgroup.com/insight/2012/09/what-the-flagnog-the-apple-fbi-udid-breach-simplified/">detailed analysis of the situation</a> for our blog. Then, about 4:30, I drafted a follow-up message to BlueToad about what I&#8217;ve found, how I found it, and what I think it means. Also, I mentioned that though I&#8217;m reluctant to publicly name them without more solid data, it seems likely that others will also find their name in the dump.</p>
<p>Since I now have several more employee&#8217;s names, I spent some time looking for email addresses, to (hopefully) increase the chance of a response. While searching, I stumbled on a partial password dump for the company! And it was dated March 14, the same week that the hackers claimed they&#8217;d hacked into the FBI computer. Suddenly, I felt a lot more confident again, and I mentioned this connection in the email.</p>
<p>Shortly after 8:00 that evening, I heard from Hutch Hicken, their CIO. He thanked me for what I&#8217;ve done, and for my discretion in contacting them first rather than simply going public. He told me that they&#8217;re assessing the situation, but don&#8217;t yet know anything for certain. He didn&#8217;t think the March leak (which they&#8217;d already been aware of) was related, but that the rest of my findings were concerning. He told me they plan to &#8220;do this right,&#8221; he promised to keep me in the loop (as much as is feasible for a non-employee).</p>
<p>Most of the next day (Thursday), I didn&#8217;t really hear much. Then about 2:30 on Friday, Hutch called me again. Almost immediately, he told me that we can talk, but only if I agree to embargo the story until noon on Monday. My response was &#8220;Well, the fact that you&#8217;re asking me this tells me that I&#8217;ll want to say yes,&#8221; so naturally I agree. </p>
<p>I&#8217;m told that they&#8217;re confident the leak came from them, and he filled me in on some of the technical details (I&#8217;ll leave those details to others, to make sure I don&#8217;t make any mistakes). But they&#8217;re almost certain of their involvement, and are continuing to handle the situation. </p>
<p>Then he hit me with a big surprise: Kerry Sanders, a correspondent for NBC Nightly news in Miami, wants to interview me. On camera. He&#8217;s in the next room, and the phone gets passed to the reporter, and next thing I know we&#8217;re arranging an interview that night. He didn&#8217;t arrive at my house until 11:00 (his plane was delayed), and we spent 45 minutes talking about what I found, how I found it, the privacy implications of the breach, and other related topics.</p>
<p>By the time he left at midnight, I was exhausted. As I write this, I still don&#8217;t know how much of the interview he&#8217;s going to use, or even if it&#8217;s going to make it onto the air Monday night. Either way, it was certainly a surreal way to conclude what started out largely as another puzzle hunt.</p>
<p>I&#8217;m still not completely clear on all the technical details. Was BlueToad really the source of the breach? How did the data get to the FBI (if it really did at all)? Or is it possible this is just a secondary breach, not even related to the UDID leak, and it was just a coincidence that I noticed? Finally, why haven&#8217;t I noticed any of their applications in the (very few) lists of apps I&#8217;ve received? </p>
<p>Hopefully, I&#8217;ll learn the answers to many of these questions in the coming days. Either way, I&#8217;m glad to have been able to help, and offer my thanks to BlueToad for their cooperation, and their quick response.</p>
<p><b>UPDATE: </b> Here&#8217;s <a href="http://redtape.nbcnews.com/_news/2012/09/10/13781440-exclusive-the-real-source-of-apple-device-ids-leaked-by-anonymous-last-week">the link for the NBC Nightly News</a> post.</p>
<p><b>UPDATE: </b> <a href="http://www.undsoversum.de/2012/09/11/about-apns-tokens-and-duplicate-udids/">Timo Hetzel</a> kindly corrected a misunderstanding that I had regarding how device tokens are created. I had believed that each application on a device had a different token, but that was in error &#8212; it&#8217;s a single device token for all apps on a device. So whenever I saw many tokens for a given device, that represented (in most cases) multiple refreshes of the same device. However, apps using the development &#8220;sandbox&#8221; Push Server receive a different token than what apps using the main production server receive, so seeing multiple devices from BlueToad, each with exactly two tokens for a given device name, further implicates the use of those devices by developers. </p>
]]></content:encoded>
			<wfw:commentRss>http://intrepidusgroup.com/insight/2012/09/tracking-udid-src/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>What the flagnog? The Apple / FBI UDID breach, simplified.</title>
		<link>http://intrepidusgroup.com/insight/2012/09/what-the-flagnog-the-apple-fbi-udid-breach-simplified/</link>
		<comments>http://intrepidusgroup.com/insight/2012/09/what-the-flagnog-the-apple-fbi-udid-breach-simplified/#comments</comments>
		<pubDate>Wed, 05 Sep 2012 16:28:10 +0000</pubDate>
		<dc:creator>dschuetz</dc:creator>
				<category><![CDATA[Breach]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Privacy]]></category>
		<category><![CDATA[Risk Analysis]]></category>

		<guid isPermaLink="false">http://intrepidusgroup.com/insight/?p=3476</guid>
		<description><![CDATA[Early Tuesday, a file was released detailing the compromise of 1,000,001 records, supposedly from an FBI laptop. Reportedly, these represented only a small portion of a much larger breach &#8212; over 12 million records. It&#8217;s further claimed that the full breach includes personal information such as mailing addresses and telephone numbers, while the published data [...]]]></description>
				<content:encoded><![CDATA[<p>Early Tuesday, a file was released detailing the compromise of 1,000,001 records, supposedly from an FBI laptop. Reportedly, these represented only a small portion of a much larger breach &#8212; over 12 million records. It&#8217;s further claimed that the full breach includes personal information such as mailing addresses and telephone numbers, while the published data was limited to only a few specific fields.</p>
<p>That&#8217;s what we&#8217;ve been told. But what do we actually know?</p>
<p>We know that there are, indeed, 1,000,001 records. We know that they contain <a href="http://www.innerfence.com/howto/find-iphone-unique-device-identifier-udid">universal device IDs (UDIDs)</a> for iPhones, iPads, and iPod Touches. We believe that they also contain valid device tokens (devtokens) for the <a href="http://developer.apple.com/library/mac/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/RemoteNotificationsPG.pdf">Apple Push Notification Service (APNS)</a>. And that&#8217;s about it.</p>
<p>But that hasn&#8217;t stopped the Twitterverse from becoming all, ahem, a-twitter, about this breach. Some selected headlines and tweets:</p>
<ul>
<li><a style="color:white;" href="https://twitter.com/panther_modern/statuses/243081606645043200">&#8220;The FBI and Apple have some serious explaining to do.&#8221;</a></li>
<li><a style="color:white;" href="https://twitter.com/OccupyWallStNYC/statuses/243029809863741440">&#8220;The American people have a right to know how + why the @FBI got 12 million Apple devices users&#8217; private info.&#8221;</a></li>
<li><a style="color:white;" href="https://twitter.com/TechInfected/statuses/243284940563808256">&#8220;Hackers reveal how FBI used Apple UDID’s to track 12 mn users&#8221;</a></li>
</ul>
<p>But, amid the noise, some legitimate questions have been raised:    </p>
<ul>
<li><a style="color:white;" href="https://twitter.com/SpikeSmudik/statuses/243169689902141440">&#8220;What can malware hacker do with UDID? Any attacks yet using UDID?&#8221;</a></li>
<li><a style="color:white;" href="https://twitter.com/ashk4n/statuses/243071017830989826">&#8220;Wouldn&#8217;t having a device UDID + APNS token make it easier to silently &#8216;push&#8217; malware/spyware to a phone?&#8221;</a></li>
</ul>
<p>Let&#8217;s talk about some of these.</p>
<p>First, could the FBI have built this database? They couldn&#8217;t easily build it by eavesdropping: That much data simply isn&#8217;t passed in a conveniently concise fashion. It&#8217;d take a lot of work to pull together, and it&#8217;d be highly unlikely to end up on some agent&#8217;s laptop. </p>
<p>Could they have received it from Apple? While Apple would need a list of devtokens to route push messages to end users&#8217; devices, that list could be built on-the-fly as devices come online and connect to Apple. It probably wouldn&#8217;t need UDIDs, and certainly wouldn&#8217;t need all the other personal information allegedly contained in the breach. [Update: A <a href="http://allthingsd.com/20120905/apple-we-didnt-give-fbi-any-device-ids/">statement from Apple</a> says, in part, "The FBI has not requested this information from Apple, nor have we provided it to the FBI or any organization."]</p>
<p>So where could this data have come from? The logical answer is a 3rd party application server. For example, a cable TV carrier might have an iPhone app for their customers to view and pay bills. The back-end account database would then need mailing addresses and probably phone numbers. If they also push messages to customer&#8217;s devices (for example, to alert of an outage) then they&#8217;d need devtokens. A compromise of that kind of application (from a utility, bank, social media company, game company, publishing company, etc.) is a very plausible source of this leak.</p>
<p>What about the tracking question? Couldn&#8217;t this information be used to track people? Tracking genrally implies a time-based log of what people are doing, where they&#8217;ve been. And even from what the hackers have said, this database contains nothing of the sort. It&#8217;s simply a static association between a device, an APNS devtoken, and a mailing address (and similar information). </p>
<p>Okay, so the FBI is definitely NOT using this to track people. (Also, the FBI has <a href="http://www.bbc.com/news/technology-19484897">officially denied</a> it came from them.) But the UDID is, you know, ZOMG bad, right?</p>
<p>Right. Sort of. The UDID itself isn&#8217;t so bad, and is used internally by a bunch of Apple services (including the app store and Mobile Device Management). What makes it problematic is when other services use it to track user activity. For example, a game application might tell a 3rd party service whenever you start a level, when you finish it, how long you spent playing it, and whether you won. The big risk comes when this tracking information can be correlated across many applications, and many external services. Then it&#8217;s a huge privacy issue. For example, instead of a game, think of a newspaper app, and a 3rd party knowing which articles you read, and how long you spent on each one. And possibly sharing that information with other users of their system (that is, other application vendors).</p>
<p>This is why Apple has been <a href="http://techcrunch.com/2011/08/19/apple-ios-5-phasing-out-udid/">working for over a year</a> to get developers to stop using UDIDs altogether.</p>
<p>So what about the last questions? Can this be used to push malware to a phone, or do something else bad?</p>
<p>Not really. Push messages  are short (under 256 bytes), and generally are just simple messages like &#8220;You have mail&#8221; or &#8220;It&#8217;s going to rain.&#8221; Mobile Device Management (MDM) servers can push out a message that says &#8220;Come to me for instructions,&#8221; and those instructions might be &#8220;Here, install this app,&#8221; but the device first has to be enrolled in MDM, and then the hacker has to forge the MDM message (and intercept the client&#8217;s response to then impersonate the server). Plus, even if this leaked database were from an MDM server, it still wouldn&#8217;t have enough information to forge an MDM message. </p>
<p>It could, in theory, be used to forge a message from whatever application the data was the source of the leak. But even that is exceptionally difficult. For one, you&#8217;d need the certificate used by the application&#8217;s push server (which might be in the hands of the original attacker, but certainly shouldn&#8217;t be available to anyone else who&#8217;s seen the UDID list). Plus, APNS uses fairly strong bi-directional certificate checks, so just impersonating the Apple APNS server is pretty difficult.</p>
<p>Too Long; Didn&#8217;t Read summary: After all that, what&#8217;s the bottom line? </p>
<ol>
<li>This probably came from a 3rd party application vendor. </li>
<li>It probably didn&#8217;t come from an FBI laptop, unless (perhaps) it was there as part of an investigation into a breach at the aforementioned vendor.</li>
<li>There&#8217;s not much an attacker can do with this information directly, that is, targeting the users&#8217; devices.</li>
<li>However, wherever the UDIDs were improperly used by a 3rd party application, then it&#8217;s possible that some personal information / privacy concerns / account breaches may result from those uses.</li>
</ol>
<p>What can you do about this? Really, not much at all. Complain to compaines which use UDIDs unsafely (if you&#8217;re even fortunate enough to know about it to begin with). But, as <a href="http://corte.si/posts/security/udid-leak.html">Aldo Cortesi</a> has said, that&#8217;s a tough hill to climb. And as applications begin to filter out that require iOS 6, be sure to upgrade them, and hopefully that&#8217;ll slowly but surely kill the 3rd party use of UDIDs. </p>
<p>Also, hopefully the vendor who was the original source of this leak has realized what&#8217;s happened, and taken appropriate corrective actions (replacing their push certificates, etc.)</p>
<p>Finally, if you have a device that&#8217;s on this breached list, please contact me at david.schuetz at intrepidusgroup dot com. It&#8217;s possible that we can narrow down which applicaton was the source for the devtokens and, thus, the leak. I thought I&#8217;d managed to figure this out last night, but eventually decided I simply didn&#8217;t have enough solid information. Knowing clearly what the source of the leak is will give users the strongest ability to protect themselves against its effects.</p>
]]></content:encoded>
			<wfw:commentRss>http://intrepidusgroup.com/insight/2012/09/what-the-flagnog-the-apple-fbi-udid-breach-simplified/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Winning the Decode This! puzzle at Black Hat</title>
		<link>http://intrepidusgroup.com/insight/2012/08/winning-the-decode-this-puzzle-at-black-hat/</link>
		<comments>http://intrepidusgroup.com/insight/2012/08/winning-the-decode-this-puzzle-at-black-hat/#comments</comments>
		<pubDate>Fri, 17 Aug 2012 14:44:59 +0000</pubDate>
		<dc:creator>dschuetz</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Fun and Games]]></category>

		<guid isPermaLink="false">http://intrepidusgroup.com/insight/?p=3465</guid>
		<description><![CDATA[Last year, I had a great time trying to solve the Fidelis Security Systems&#8216; Decode This! puzzle at Black Hat. But I wasn&#8217;t fast enough to win. This year, I resolved to not make the same mistakes. And in the end, it paid off! Much like last year&#8217;s puzzle, this one involved a block of [...]]]></description>
				<content:encoded><![CDATA[<p>Last year, I had a great time trying to solve the <a href="http://www.fidelissecurity.com/">Fidelis Security Systems</a>&#8216; Decode This! puzzle at Black Hat. But I wasn&#8217;t fast enough to win. This year, I resolved to not make the same mistakes. And in the end, it paid off! </p>
<p>Much like last year&#8217;s puzzle, this one involved a block of Unicode text (filled with all kinds of unpronouncable glyphs), and several hints posted on Twitter. I played with the puzzle off and on before I left for the con, but didn&#8217;t really attack it full-bore until I got onto the plane for Vegas. </p>
<p>Near the end of my five hour flight, I had the breakthrough that I should have had three weeks prior, and knew that I was almost done. But just then, they announced that we were beginning our descent and I had to put away my laptop.</p>
<p>Shortly after landing, a new hint was posted, which I immediately recognized as giving me the key. I found a table in the terminal, sat down, and completed the puzzle. </p>
<p>A few Twitter messages back-and-forth with the puzzle creator, and we&#8217;d decided that not only do I have it right (or close enough &#8212; I was having issues with the last character), if I can be the first one to the booth with the answer then I&#8217;ve won.  So we rushed over, grabbed an expo pass from our friends at <a href="http://phishme.com">PhishMe</a>, and ran over to the FidSecSys booth. Next thing I know, I&#8217;m posing with a giant novelty check for $1000!<br />
<a href="http://intrepidusgroup.com/insight/wp-content/uploads/2012/08/bigcheck.png"><img src="http://intrepidusgroup.com/insight/wp-content/uploads/2012/08/bigcheck.png" alt="" title="Big Check" width="431" height="500" class="alignright size-full wp-image-3466" /></a></p>
<p>You can read the complete story of how the puzzle worked, and some of the silly mistakes I&#8217;d made along the way, on my <a href="http://darthnull.org/2012/08/17/decode-this-2012/">personal blog.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://intrepidusgroup.com/insight/2012/08/winning-the-decode-this-puzzle-at-black-hat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple&#8217;s iOS Security Overview</title>
		<link>http://intrepidusgroup.com/insight/2012/06/apples-ios-security-overview/</link>
		<comments>http://intrepidusgroup.com/insight/2012/06/apples-ios-security-overview/#comments</comments>
		<pubDate>Wed, 20 Jun 2012 17:18:52 +0000</pubDate>
		<dc:creator>dschuetz</dc:creator>
				<category><![CDATA[iOS]]></category>
		<category><![CDATA[Mobile Security]]></category>

		<guid isPermaLink="false">http://intrepidusgroup.com/insight/?p=3222</guid>
		<description><![CDATA[In late May, Apple quietly published a document entitled, simply, iOS Security. This short whitepaper describes several aspects of security within their iPad, iPhone, and iPod touch ecosystem, providing a high-level introduction to certain features and some fairly deep technical information for others. The stated goal is to help security-minded customers to better understand the [...]]]></description>
				<content:encoded><![CDATA[<p>In late May, Apple quietly published a document entitled, simply, <a href="http://images.apple.com/ipad/business/docs/iOS_Security_May12.pdf">iOS Security</a>. This short whitepaper describes several aspects of security within their iPad, iPhone, and iPod touch ecosystem, providing a high-level introduction to certain features and some fairly deep technical information for others. The stated goal is to help security-minded customers to better understand the core security features present in iOS. It&#8217;s definitely worth a read, but for now, let&#8217;s talk about some of the more interesting highlights.</p>
<p>It starts off describing the overall system architecture, from the boot ROM (including a public key used to validate system software) though the Low Level Bootloader and into the kernel and application layers. Executable code at all layers, including OS, Apple, and third-party applications, is signed, and the signatures are validated before the code is run. These checks help to keep malicious code from affecting the system.</p>
<p>Also described are some of the runtime security features. The core feature here is application sandboxing, where each application is limited in where it can write data, and prevented from accessing other application&#8217;s data or code. To share information with other applications, developers need to communicate through iOS APIs or services. Another noteworthy mention is that the core operating system partition is mounted read-only, further limiting the ability of a malicious program to attack the device. </p>
<p>Probably the most interesting section of this document details the Encryption and Data Protection features of iOS. Much of this is not new, having been detailed at WWDC conferences and in other devleoper documentation (not to mention several talks by prominent security researchers), but having it in a single, easily-accessible format is a welcome improvement. </p>
<p>The use of hardware-level AES-256 cryptography to provide full-disk encryption and a fast remote wipe capability is already well known, as is the use of a unique UID key embedded in each device&#8217;s hardware. What came as a surprise was the statement that this UID is not recorded by Apple or its suppliers, which means that keys (and data) protected using that UID cannot be decrypted by anyone not in possession of the target device (or, presumably, NSA-level supercomputers). Potential issues related to securely erasing stored keys from flash memory are also addressed with the Effecable Storage, where memory blocks are directly erased at a very low level.</p>
<p>Next up is a high-level description of file-based data protection attributes, which, when combined with a device passcode, provide application-level controls over data accessibility.  The various protection classes are described, both for files and keychain entries, and it even provides a handy reference chart for system-level keychain entries like Wi-Fi passwords, email accounts, and private keys. </p>
<p>The data protection section finishes with a clear description of the four types of keybags in use on iOS: System, Backup, Escrow, and iCloud Backup keybags. In addition to the plain-English explantion of each keybag&#8217;s purpose (and location), the high-level structure of the keybag itself, along with protections for each key, is also given.</p>
<p>Two short sections, one describing Network Security features, and the other providing information on Configuration Profiles, device Restrictions, and MDM control, finish up the document, along with a short glossary.</p>
<p>Unfortunately, the whitepaper doesn&#8217;t have enough detail to serve as a reference for programmers or reverse engineers testing specific features. However, it is a great introduction to the complex collection of security features core to iOS. This should be required reading for enterprise-level security engineers and managers, whether contemplating future iOS support or hoping to better understand what they already have.</p>
]]></content:encoded>
			<wfw:commentRss>http://intrepidusgroup.com/insight/2012/06/apples-ios-security-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple Using Unsalted Hashes Too?</title>
		<link>http://intrepidusgroup.com/insight/2012/06/apple-using-unsalted-hashes-too/</link>
		<comments>http://intrepidusgroup.com/insight/2012/06/apple-using-unsalted-hashes-too/#comments</comments>
		<pubDate>Thu, 07 Jun 2012 18:55:19 +0000</pubDate>
		<dc:creator>dschuetz</dc:creator>
				<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Passwords]]></category>

		<guid isPermaLink="false">http://intrepidusgroup.com/insight/?p=3224</guid>
		<description><![CDATA[As the LinkedIn password leak continues to occupy the time and attention of password-crackers, I thought it might be worth mentioning another high-profile site which apparently uses unsalted hashes. Two weeks ago, I discovered that Apple sends an unsalted SHA-256 hash as part of an AppleID authentication process. I was looking at traffic from my [...]]]></description>
				<content:encoded><![CDATA[<p>As the <a href="http://blog.phishme.com/2012/06/linkedin-password-leak-what-it-means-for-phishing/">LinkedIn</a> <a href="http://www.theverge.com/2012/6/6/3067523/linkedin-password-leak-online">password</a> <a href="http://www.liquidmatrix.org/blog/2012/06/06/linkedin-passwords-leaked-in-breach/">leak</a> continues to occupy the time and attention of password-crackers, I thought it might be worth mentioning another high-profile site which apparently uses unsalted hashes.</p>
<p>Two weeks ago, I discovered that Apple sends an unsalted SHA-256 hash as part of an AppleID authentication process. I was looking at traffic from my iPad using <a href="http://mitmproxy.org/">MITM Proxy</a>, and came across the following interesting packet:</p>
<p style="text-align: center;"><a href="http://intrepidusgroup.com/insight/wp-content/uploads/2012/06/Redacted-Apple-Unsalted-Hash.png"><img class="size-medium wp-image-3226 aligncenter" title="Redacted AppleID Authentication" src="http://intrepidusgroup.com/insight/wp-content/uploads/2012/06/Redacted-Apple-Unsalted-Hash-277x300.png" alt="" width="277" height="300" /></a><br />
[Note -- I changed the AppleID and password hash fields, and also blocked out the exact host and URL].</p>
<p>The &#8220;pwdHash&#8221; caught my eye, both because, well, it&#8217;s a hash, and also because it looked like a 256-bit hash, which I&#8217;d been finding used in some other commercial iOS apps lately. But mostly, it caught my eye because there wasn&#8217;t any field labeled &#8220;salt.&#8221; This might not mean anything &#8212; the salt might be known to both parties, and so doesn&#8217;t need transmitting. Or maybe it&#8217;s a shorter hash, and the first 16 bytes are a salt. Still&#8230;it&#8217;s worth checking out.</p>
<p style="text-align: center;">Which I did. Turns out, passing my password through a SHA-256 hash created a duplicate hash value:<br />
<a href="http://intrepidusgroup.com/insight/wp-content/uploads/2012/06/not-a-real-password.png"><img class="size-medium wp-image-3227 aligncenter" title="Hashing (not-my-real-password-I-swear)" src="http://intrepidusgroup.com/insight/wp-content/uploads/2012/06/not-a-real-password-300x30.png" alt="" width="300" height="30" /></a></p>
<p>Interesting!</p>
<p>You might also notice a complete lack of any other session-related information in the HTTP header or in the submitted XML. There&#8217;s nothing else for the server to go on, other than this hash and the accompanying AppleID.</p>
<p>So, from this I&#8217;m inferring one of two things: Either Apple&#8217;s got a database of unsalted SHA-256 password hashes for AppleIDs (bad), or they&#8217;ve got a database of plaintext passwords for AppleIDs (worse). Either way, I was really surprised by this.</p>
<p>So what&#8217;s the best way to store password hashes, anyway? There&#8217;s been a lot of talk about exactly this over the past day or so, and while almost everyone agrees that unsalted hashes are bad, it&#8217;s harder to find agreement on what kind of salt is appropriate.</p>
<p>Probably the best argument (in terms of immediate security and foreseeable longevity) is made in favor of algorithms that make use of <a href="http://en.wikipedia.org/wiki/Key_stretching">key stretching</a> features to increase hash strength. <a href="http://en.wikipedia.org/wiki/Bcrypt">bcrypt</a>, <a href="http://www.tarsnap.com/scrypt.html">Scrypt</a>, and <a href="http://en.wikipedia.org/wiki/PBKDF2">PBKDF2</a> have been frequently cited as good candidates. These algorithms use a high work factor, that&#8217;s difficult to avoid with faster hardware or parallelization, to ensure that brute-force attempts are very very slow. You can read more about how bcrypt, for example, makes these sorts of attacks much more difficult in <a href="http://codahale.com/how-to-safely-store-a-password/">this short blog post</a> from 2010. Yes, two years ago. It&#8217;s not like these problems, or their solutions, are new.</p>
<p>Are you responsible for the development, maintenance, or security of an application that uses password hashes as part of an authentication system? Open your calendar now, and set aside some time in the next week to look at how you do things and see if it couldn&#8217;t be made better. Hopefully, your users will never have need to thank you.</p>
<p><strong>Update:</strong> Jeff Jarmoc (@jjarmoc) correctly points out that the hashes don&#8217;t have to be stored exactly as transmitted &#8212; they could simply be used as input for a more secure hash, like one described above. Even Apple is storing the unsalted hashes, they could easily update the servers to a system which stores (for example) the bcrypt of the hash. The nice thing about this is it should only require changes to the server, not to individual clients.</p>
]]></content:encoded>
			<wfw:commentRss>http://intrepidusgroup.com/insight/2012/06/apple-using-unsalted-hashes-too/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
