<http://schema.org/articleBody>
"Samsung's Knox security layer for Android generates weak encryption keys, stores passwords locally and gives users login hints in a fatal \"security by obscurity\" design \"compromising the security of the product completely,\" a researcher has detailed.\r\n\r\n&amp;lt;div align=\"center\"&amp;gt;&amp;lt;img src=\"http://photos.appleinsider.com/Samsung-Knox-oops.jpg\" alt=\"Samsung-Knox-oops.jpg\" border=\"0\" /&amp;gt;&amp;lt;/div&amp;gt;  \r\n\r\n&amp;lt;b&amp;gt;[ Update&amp;lt;/b&amp;gt;: Samsung has responded in a &amp;lt;a href=\"https://www.samsungknox.com/en/blog/response-blog-post-samsung-knox\"&amp;gt;statement&amp;lt;/a&amp;gt; on its Knox blog, writing, \"we analyzed these claims in detail and found the conclusions to be incorrect for KNOX enterprise solutions,\" detailing that \"KNOX enterprise containers do not store any alternative PIN for password recovery purposes,\" and explaining that the practice of saving a user's PIN in clear text in order to supply the user with a password hint was limited to \"KNOX 1.0's Personal containers, designed to let consumers experience the KNOX container.\"\r\n\r\nThe company maintains that \"Samsung KNOX devices have received multiple security certifications such as FIPS 140-2 and MDFPP, which serve as evidence by trusted third parties that Samsung has done it right.\" \r\n\r\nHowever, a series of products that have received security certifications such as FIPS 140-2 (including Apple's devices running iOS 6, select Samsung Galaxy phones running Android and Knox, and BlackBerry OS 10 products) were later found to have serious flaws, including Apple's &amp;lt;a href=\"http://appleinsider.com/articles/14/02/22/apple-confirms-ssl-security-flaw-patched-in-ios-update-is-present-in-os-x-fix-coming-very-soon\"&amp;gt;GotoFail&amp;lt;/a&amp;gt; SSL flaw patched in iOS 7.0.6; Blackberry OS 10 vulnerabilities tied to &amp;lt;a href=\"http://threatpost.com/blackberry-updates-products-affected-by-heartbleed/106065\"&amp;gt;Flash and Heartbleed&amp;lt;/a&amp;gt;, and a series of Android and Knox related flaws including &amp;lt;a href=\"http://appleinsider.com/articles/14/07/29/new-android-fake-id-flaw-empowers-stealthy-new-class-of-super-malware-\"&amp;gt;Fake ID&amp;lt;/a&amp;gt;.&amp;lt;b&amp;gt;]&amp;lt;/b&amp;gt; \r\n\r\nSamsung ships its Knox software on the company's higher-end Android-based Galaxy smartphones, phablets and tablets, aimed at enabling sales to enterprise and government clients who have sensitive security needs, in a bid to take on Apple's &amp;lt;a href=\"http://appleinsider.com/articles/14/08/12/ios-holds-88-share-of-enterprise-apps-ipad-90-of-tablets-in-goods-business-activations\"&amp;gt;extensive lead&amp;lt;/a&amp;gt; in enterprise sales. \r\n\r\nTwo days ago, Samsung &amp;lt;a href=\"http://global.samsungtomorrow.com/?p=43522\"&amp;gt;announced&amp;lt;/a&amp;gt; that the U.S. government had approved a series of new devices \"for use with classified government networks and data. All devices and capabilities incorporate security features powered by Samsung KNOX,\" and were added to the \"Commercial Solutions for Classified (CSfC) Program Component List.\"\r\n\r\nThe company's chief executive JK Shin stated in a press release that \"the inclusion of Samsung mobile devices on the CSfC list proves the unmatched security of Samsung Galaxy devices supported by the KNOX platform.\"\r\n\r\nJacob Kleinman, &amp;lt;a href=\"http://www.technobuffalo.com/2014/10/22/samsung-knox-approved-for-classified-u-s-government-use/\"&amp;gt;writing&amp;lt;/a&amp;gt; for &amp;lt;em&amp;gt;TechnoBuffalo&amp;lt;/em&amp;gt;, stated that \"it looks like Samsung's hard work developing its Knox security software is paying off,\" while Jennifer Baker of the UK site &amp;lt;em&amp;gt;The Register&amp;lt;/em&amp;gt; &amp;lt;a href=\"http://www.theregister.co.uk/2014/10/21/nsa_spooks_to_spy_on_the_galaxy/\"&amp;gt;reported&amp;lt;/a&amp;gt;, \"U.S. spooks will be allowed to access sensitive government information on their KNOX-locked Samsung gadgets from now on. The South Korean company has been heavily pushing its new KNOX security product and it looks as though its efforts have paid off.\"\r\n\r\n&amp;lt;h2&amp;gt;Wait, stop, come back&amp;lt;/h2&amp;gt; \r\n\r\nEarlier today, however, a software researcher &amp;lt;a href=\"http://mobilesecurityares.blogspot.co.uk/2014/10/why-samsung-knox-isnt-really-fort-knox.html?m=1\"&amp;gt;published&amp;lt;/a&amp;gt; findings showing that Samsung's Knox app stores the user's password \"hint\" PIN in plain text on the device.&amp;lt;q&amp;gt;Samsung Knox users log into the Knox app using a password and PIN, which is then written into a \"pin.xml\" file in cleartext.&amp;lt;/q&amp;gt;\r\n\r\nThe Knox app establishes a \"Knox Container\" with its own home screen for launching secured apps, which do not mingle with the user's own private apps and data. This design attempts to work around the wide open design of Android, which has no effective app security, much like an iOS device that has been jailbroken. \r\n\r\nHowever, Samsung Knox users log into the Knox app using a password and PIN, which is then written into a \"pin.xml\" file in cleartext, available to anyone looking at the file system. The user (or anyone else who reads the cleartext PIN) can enter the PIN to gain a \"password forgotten?\" hint.\r\n\r\nAs the research describes, upon entering the PIN, \"the Knox app will show you a little password hint (the first and the last character of your password!! + the original length of your password!)\" \r\n\r\nThis \"hangman game\" style password security is not the extent of the problem. \r\n\r\n\"It is pretty obvious that Samsung Knox is going to store your password somewhere on the device,\" the researcher noted, further detailing that \"in the Folder /data/system/container there is a file called containerpassword_1.key,\" which stores the user's encryption key. \r\n \r\n&amp;lt;div align=\"center\"&amp;gt;&amp;lt;img src=\"http://photos.appleinsider.com/SamsungSAFE.030413.003.jpg\" alt=\"\" border=\"0\" /&amp;gt;&amp;lt;/div&amp;gt;  \r\n\r\n&amp;lt;h2&amp;gt;Samsung Knox 'compromised completely'&amp;lt;/h2&amp;gt;\r\n\r\nThe research further examined Samsung Knox, looking for \"how exactly the encryption of the password works and where the key for the encryption comes from.\"\r\n\r\nThe article noted, \"Samsung makes use of dex-preoptimization to strip out all classes.dex files (the java code is stored in a file called classes.dex and this file is parsed by the Dalvik JVM) in the Knox apks, thus making reverse engineering a little bit harder. To get the binaries we have to look at /system/app/ and find .odex files (an odex is basically a pre-processed version of an application's classes.dex that is execution-ready for Dalvik). odex files can be converted back into smali code, which then can be converted back to a dex file. Finally a dex file can be converted into a jar file, which can be decompiled by any Java Decompiler. &amp;lt;q&amp;gt;\"the fact that they are persisting the key just for the password hint functionality is compromising the security of that product completely\"&amp;lt;/q&amp;gt;\r\n\r\n\"Samsung didn't make any use of code obfuscation but really tried to hide the password storage code within hundreds of java classes, inheritance and proxies.\"\r\n\r\nWhat he ultimately discovered was that Knox simply uses the device's Android ID, a serial number any app can request from the system, \"together with a hardcoded string and mix them for the encryption key. I would have expected from a product, called Knox, a different approach.\"\r\n\r\nHe further points out, \"the fact that they are persisting the key just for the password hint functionality is compromising the security of that product completely. For such a product the password should never be stored on the device.\" In conclusion he recommends, \"Instead of Samsung Knox, use the built-in Android encryption function and encrypt the whole device.\"\r\n\r\n&amp;lt;h2&amp;gt;Fortunately, few are actually trying to use Knox&amp;lt;/h2&amp;gt;\r\n\r\nSamsung first &amp;lt;a href=\"http://appleinsider.com/articles/13/03/04/samsung-adds-security-layer-to-android-to-gain-enterprise-credibility\"&amp;gt;unveiled&amp;lt;/a&amp;gt; Knox in early 2013 as part of an effort to add \"fundamental security and management enhancements\" in order \"to address the shortcomings of the current open source Android platform.\" \r\n\r\nBefore Knox was even available, Samsung immediately began advertising it as part of its \"SAFE\" initiative (short for \"SAmsung For Enterprise\") via billboards portraying Samsung devices running mockups of business presentation and project management software that doesn't really exist.\r\n\r\n&amp;lt;div align=\"center\"&amp;gt;&amp;lt;img src=\"http://photos.appleinsider.com/SamsungSAFE2.030413.JPG\" alt=\"Samsung Knox fake apps\" border=\"0\" /&amp;gt;&amp;lt;/div&amp;gt;   \r\n\r\nShortly after Knox was first introduced on the Galaxy Note 3 last year, Mordechai Guri, a researcher at Ben-Gurion University's Cyber Security Lab &amp;lt;a href=\"http://online.wsj.com/news/articles/SB10001424052702304244904579276191788427198\"&amp;gt;described a vulnerability&amp;lt;/a&amp;gt; that he detailed would \"would allow a hacker to 'easily intercept' secure data of a user of a Knox-enabled Galaxy smartphone.\"&amp;lt;q&amp;gt;Of the 87 million devices that shipped with Knox, only 1.8 million were actually using it&amp;lt;/q&amp;gt;\r\n\r\nIn a worst-case scenario, Guri stated, \"a hacker could modify data and even insert hostile code that could run amok within the secured network.\"\r\n\r\nSix months later, the &amp;lt;em&amp;gt;Wall Street Journal&amp;lt;/em&amp;gt; described the issue as \"a possible security gap\" and said that Samsung had \"clarified\" that the issue \"is not specific to Samsung devices.\" \r\n\r\nThis May, however, Samsung executive Rhee In-jong, &amp;lt;a href=\"http://appleinsider.com/articles/14/05/19/samsung-says-it-leads-by-following-admits-few-businesses-are-actually-using-knox-\"&amp;gt;appearing&amp;lt;/a&amp;gt; in another &amp;lt;em&amp;gt;Wall Street Journal&amp;lt;/em&amp;gt; article--which sought to distract attention away from Apple's Touch ID fingerprint sensor by talking about vaporware plans for \"iris scanning\" biometrics--noted that of the 87 million devices that shipped with Knox, only 1.8 million were actually using it: only about 2 percent. \r\n\r\n&amp;lt;h2&amp;gt;Android 5.0 Lollypop gets Knoxed up&amp;lt;/h2&amp;gt;\r\n\r\n&amp;lt;div align=\"center\"&amp;gt;&amp;lt;img src=\"http://photos.appleinsider.com/0122-watches-4.jpg\" alt=\"Sundar Pichai\" border=\"0\" /&amp;gt;&amp;lt;/div&amp;gt;  \r\n\r\nIn June, Google's head of Android development Sundar Pichai announced plans for Android 5.0 \"Lollypop,\" with a security layer for enterprise users provided by Samsung's \"contribution\" of Knox. \r\n\r\nThe shotgun wedding of Lollypop and Knox appeared to be a compromise between Google and Samsung, which--according to a &amp;lt;a href=\"http://appleinsider.com/articles/14/06/24/google-dismantled-android-hardware-initiatives-after-buying-nest-claims-disputed-report\"&amp;gt;report&amp;lt;/a&amp;gt; by &amp;lt;em&amp;gt;The Information&amp;lt;/em&amp;gt;--had been involved in a tense standoff since January, when Samsung demonstrated its own new user interface dubbed \"Magazine UX,\" which Pichai viewed as a direct threat to Google's control over and monetization of Android. \r\n\r\nPichai was reportedly \"prepared to forbid\" Samsung from using the ostensibly open Android operating system unless it fell into line with Google's requirements. That demand makes more sense given Google's announcements of a second attempt at delivering its own cohesive user interface for Android, an web-inspired initiative it calls \"Material Design.\"\r\n\r\nThe standoff also explains how Samsung could be strong-armed into \"contributing\" Knox, a significantly differentiating feature that has made some of Samsung's products at least possible for government and corporate users to buy, while other Android vendors have been virtually shut out of the enterprise entirely, as alluded to by IDC's Mobility Research Director Ryan Reith.\r\n\r\n&amp;lt;div align=\"center\"&amp;gt;&amp;lt;blockquote class=\"twitter-tweet\" lang=\"en\"&amp;gt;&amp;lt;p&amp;gt;Knox was a differentaitor for Samsung in enterprise...'was' being key word. Why would they let that go??&amp;lt;/p&amp;gt;-- Ryan Reith (@ryanreith) &amp;lt;a href=\"https://twitter.com/ryanreith/statuses/481858938246529026\"&amp;gt;June 25, 2014&amp;lt;/a&amp;gt;&amp;lt;/blockquote&amp;gt;\r\n&amp;lt;script async src=\"//platform.twitter.com/widgets.js\" charset=\"utf-8\"&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/div&amp;gt; \r\n\r\nAfter Google introduced Knox as its solution for securing Android in June, Bluebox Security &amp;lt;a href=\"http://appleinsider.com/articles/14/07/29/new-android-fake-id-flaw-empowers-stealthy-new-class-of-super-malware-\"&amp;gt;detailed&amp;lt;/a&amp;gt; severe new flaws in Android itself, tied to the fact that the operating system simply failed to verify apps' cryptographic signatures, essentially allowing any app--even one given no special access permissions--to falsely pass itself off as a trusted app and gain extensive control over the user's apps and data. \r\n\r\nThe \"Fake ID\" vulnerability can exploit Android's webview, infecting a wide variety of third party apps that incorporate it, and can also target trusted Google software including its broadly installed NFC Wallet app or remnants of the 3LM device management tool, which appears on a wide variety of Android phones from HTC, Pantech, Sharp, Sony Ericsson, and Motorola.&amp;lt;q&amp;gt;Apple has seized upon Android's security and privacy problems to emphasize that iOS is designed \"with security at its core.\"&amp;lt;/q&amp;gt;\r\n\r\nThe majority of Android devices making up the platform's \"80 percent share\" of smartphones globally have still not been updated to fix the Fake ID flaw. Additionally, while Google has made efforts to scan Google Play apps for malicious code, a variety of app stores operating overseas--including in China, where Google maintains little control over Android--have not.\r\n\r\nEarlier this year, Pichai outlined Google's &amp;lt;a href=\"http://appleinsider.com/articles/14/02/27/apple-touts-secure-design-of-ios-as-google-chief-admits-android-is-best-target-for-malicious-hackers\"&amp;gt;a very different approach&amp;lt;/a&amp;gt; to security in Android, staying, \"we do not guarantee that Android is designed to be safe; its format was designed to give more freedom. When they talk about 90% of malicious programs for Android, they must of course take into account the fact that it is the most used operating system in the world. If I had a company dedicated to malware, I would also send my attacks to Android.\" \r\n\r\nApple has seized upon Android's security and privacy problems to emphasize that iOS is designed \"with security at its core.\"\r\n\r\nIn a &amp;lt;a href=\"http://appleinsider.com/articles/14/02/26/apple-details-touch-id-and-secure-enclave-tech-in-new-security-white-paper\"&amp;gt;white paper&amp;lt;/a&amp;gt; detailing the security of iOS--including Touch ID and the Secure Enclave of its latest 64-bit Application Processors--the company stated, \"when we set out to create the best possible mobile OS, we drew from decades of experience to build an entirely new architecture. We thought about the security hazards of the desktop environment, and established a new approach to security in the design of iOS. We developed and incorporated innovative features that tighten mobile security and protect the entire system by default. As a result, iOS is a major leap forward in OS security.\""^^<http://www.w3.org/2001/XMLSchema#string>
<http://appleinsider.com/articles/14/10/23/after-gaining-us-government-approval-samsung-knox-security-for-android-found-to-be-completely-compromised>