News for hackers. Stuff that matters.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by tptacek on Wednesday November 18, 2015 @10:49AM (#10588335)
This is a weird story, since professional security people would have told you the same thing back in 2007.

Windows wasn't originally designed to be secure. Even NT, which is a serious multi-user kernel, was a product of 1990s C programming style. And while that's true of the Unices of the time as well, none of them had Microsoft's absurd user base, and so none of them had the same terrible malware incentives.

This all came to a head around 2001-2003, when the Internet worm phenomenon got so bad that Microsoft was routinely on the front page of CNN, and serious talk of congressional action began.

From what I understand, there was a dramatic top-down response, led by Gates and Ballmer, requiring software security training for developers, giving product managers the power to slip release dates to ensure bugs were caught, and funding what I believe is probably the largest 3rd-party software pentesting program in the industry. Several well-known software security firms (my old firm, Matasano, not really among them) were basically bootstrapped out of Microsoft contracts.

Today, Google probably does a better job on software security than Microsoft does, but it's hard to come up with another rival. Tellingly, Google's security efforts were also a top-down reaction to a major security incident.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by hedgehog on Wednesday November 18, 2015 @11:42AM (#10588818)
I joined Microsoft in 2003 maybe two weeks after SQL Slammer to do internal security work. "Dramatic" is a pretty good way to describe the situation. There were some very hostile debates even over very small bugs that got escalated to the executive level to which the answer was more or less "what part of the policy is unclear? fix it". It's an impressive transformation and I wish, say, Apple were that good. I had hopes for Apple when someone I knew from the Windows group went there but it doesn't seem from outside like the company really prioritizes security to the same degree as MS.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by ChuckMcM on Wednesday November 18, 2015 @01:30PM (#10589707)
Not that weird. Illustrative perhaps. So you and I would have agreed in 2007 that Windows was much better at security than they had been, but we are both pretty tightly connected to the technology market.

Today, 8 years later, my Mom and Dad think Windows is a "secure" system as they haven't had any issues for long enough that their opinion of it has changed.

The final leg of this journey will be when Windows + Windows Defender is all you need to keep your system secure. Basically once there isn't a market for add-on security products because the base product is "good enough."

I'm curious why you mention Google though, their security record on Android is a lot worse than either Windows phone or IOS. In many ways I feel like they are exactly Windows in 2003 with regard to "its secure if you use our APIs" kind of security. Would love to hear your thoughts on that.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by pcwalton on Wednesday November 18, 2015 @02:47PM (#10590222)
> I'm curious why you mention Google though, their security record on Android is a lot worse than either Windows phone or IOS. In many ways I feel like they are exactly Windows in 2003 with regard to "its secure if you use our APIs" kind of security.

Chrome (OS)'s security model is a lot better, and compared to Android it was designed more in-house. Android was an acquisition and has more legacy design baggage (though of course the vast majority of the code has been written by Google at this point).

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by Justsignedup on Wednesday November 18, 2015 @04:46PM (#10590995)
Android's security is actaully fantastic. The problem is the inability for google to distribute security updates. In 6.0 I now get monthly security updates and there is even a "security update version" of like "november 2015" in the status.

The latest junk even made it into Android 4.1 devices for security updates. But that is neither here nor there, the fact that we have 4.1 devices is a problem.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by tptacek on Wednesday November 18, 2015 @06:35PM (#10591545)
Android's system security design is inferior to that of iOS.

But, iOS's superiority (a) derives in significant part from Apple's total control over the hardware platform†, and (b) comes at the cost of a lot of user control tradeoffs that nerds like us tend to hate.

Really, to suggest that Android's security is at parity with Apple's, you'd have to be arguing that Apple does a terrible job at exploiting their inherent advantages of control over hardware and control over what's allowed to run on the platform. Apple does not do a terrible job at those things.

† Yes, Google controls some of their hardware, but they have an ongoing support requirement for a lot of hardware they have no control over at all, and will have that requirement forever, which limits their options.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by lern_too_spel on Wednesday November 18, 2015 @11:07PM (#10592680)
On the other hand, I'm unaware of any automated analysis of applications on the iTunes App Store, dynamic or static. Doing this properly isn't in Apple's DNA. For example, when XcodeGhost apps infected some hundreds of millions of users, it took Apple days to take down the affected apps, seemingly waiting for third party reports instead of simply scanning the entire store for the XcodeGhost signature themselves.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by tptacek on Thursday November 19, 2015 @09:26AM (#10594901)
That's true. My friend is doing a company to address that now:

https://sourcedna.com/

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by pjmlp on Thursday November 19, 2015 @01:59AM (#10593192)
My 4.3, 4.4 and 5.0 devices from Samsung and Asus (operator free) are yet to receive the said updates.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by rdl on Wednesday November 18, 2015 @03:49PM (#10590634)
Google internally, especially post Chinese misadventure, has pretty great security. It isn't necessarily in Android, but their cloud services are great, and internal security is great.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by Sanddancer on Wednesday November 18, 2015 @06:01PM (#10591382)
In Android, Google's stuck between a rock and a hard place because so much of the distribution is handled by the downstream vendors. Were I google in setting up the distribution agreements, I'd be much more strict on the requirement for getting Google services on the phone, like reasonable minimum security support periods. I'd also make it easier for vendors to be able to agree to such things, by promising support on their end for a reasonable amount of time, and preferably, a stable kernel-level abi so that they don't need to do as extensive regression testing when a kernel-level patch needs released.

Android development feels a lot like current web development plans, where things are released, and not a lot of thought is given to backward compatibility and backporting security. Google needs to tighten those reins a bit, either by pushing handset developers forward faster and/or giving reasonable support for older devices themselves.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by ChuckMcM on Wednesday November 18, 2015 @06:32PM (#10591527)
I largely agree, and it is the same problem Microsoft faced when downstream OEMs put their OS load on their hardware, adding in their own drivers and "features". Even today people like Lenovo get smacked for adding things like Superfish. But the underlying OS has gotten much more reslient. Anyway, that is why, to me, Google seems a bit like Microsoft in the 2003.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by david_mitchell on Wednesday November 18, 2015 @11:32AM (#10588714)
> Tellingly, Google's security efforts were also a top-down reaction to a major security incident.

What was that? All I can think of is when the chinese stole their source code but the response to that would presumably be more about managing who has access to what internally than improving the security of their user facing products.

edit: to be clear I'm thinking of the time they had code stolen by a chinese employee in their china office, presumably on request of the govt.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by mtgx on Wednesday November 18, 2015 @12:48PM (#10589364)
Yes, I think that was the first event that pushed Google to focus much more on security. The second one was of course in the summer of Snowden, when Google found out NSA had full access to its network. Since then it has taken quite a few measures to improve security and now it treats its own network as the "untrusted Internet".

https://www.usenix.org/conference/lisa13/enterprise-architec...

Unfortunately, other than the default full disk encryption it's pushing on Android 6+ devices, I'm not really seeing Google push client-side encryption anymore. I wonder if it even wants the E2E email extension to be fully developed anymore. And even though it should be quite trivial for Google to adopt Signal's text and voice encryption in Hangouts, I doubt it has any intention of ever doing that.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by tptacek on Wednesday November 18, 2015 @02:02PM (#10589919)
Cite a source that demonstrates that NSA had full access to Google's network, please.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by paganel on Wednesday November 18, 2015 @03:01PM (#10590323)
Not the OP, but stuff like this showed up all over the Intenet just after news of the Snowden leak (http://www.theverge.com/2013/6/6/4403868/nsa-fbi-mine-data-a...):

> The US National Security Agency and Federal Bureau of Investigation have been harvesting data such as audio, video, photographs, emails, and documents from the internal servers of nine major technology companies, according to a leaked 41-slide security presentation obtained by The Washington Post and The Guardian.

Google is in that list. Granted, this did not demonstrate full access to all of Google's internal communications, but the category of "audio, video, photographs, emails, and documents" is broad and damaging enough that it doesn't really matter if NSA had full access or not.

And yes, I know that Google and all the other major companies vigorously denied any back doors, but as people were saying at the time on this very forum they didn't have any other realistic or legal choices. The President of the United States himself was saying things like: "You can't have 100% security, and also then have 100% privacy and zero inconvenience", which, if you were a smart enough CEO, was a very good hint about what to do and say in the heat of the moment.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by GauntletWizard on Wednesday November 18, 2015 @02:55PM (#10590272)
[1] shows a full packet capture of a google-internal RPC transaction. As a xoogler familiar with the product in question, I can tell you that that packet had no business being on an external link; That was only sent datacenter to datacenter. I was in a conference war-room shortly after this dropped, and the universal reaction was "Fuck."

[1] http://apps.washingtonpost.com/g/page/world/what-yahoo-and-g...

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by kyrra on Wednesday November 18, 2015 @02:59PM (#10590301)
Not the GP, but [0]. The NSA didn't have access to all of Google's data. The NSA had reportedly tapped the inter-datacenter fiber (and that the data on those lines was unencrypted).

[0] http://arstechnica.com/tech-policy/2013/10/new-docs-show-nsa...

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by tedunangst on Wednesday November 18, 2015 @03:13PM (#10590400)
I generally agree with you about claims regarding full (root) access to Google's servers, but in this case it's a weaker claim about the network. One might quibble whether tapping without injection counts as full access, but that's a reasonable claim without too much hyperbole. Maybe the NSA didn't have hooks into every switch, but Google's network design also meant a lot of data was flowing beyond the boundaries of any one physical site.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by JamesBarney on Wednesday November 18, 2015 @11:10AM (#10588488)
I'm just curious but why do you think Google is better at security than Microsoft? Number of exploits on Android vs Windows? Amount of funding on security research?
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by Someone1234 on Wednesday November 18, 2015 @11:24AM (#10588651)
I actually agree with you (that Microsoft's internal processes are more security orientated than Google's version of the same).

That being said: A lot of Android's security issues are not always Google's fault. Some of them are in generic Linux libraries, some of them are in OEM added components (Samsung), and some of them are security issues unique to an app ecosystem (i.e. on Windows Win32 user applications normally have full permissions as that user, on Android an APK running as a user has a limited set of permissions, if it exceeds those permissions this is now an "exploit" which is now an additional set of security issues), and many are simply malware being placed on an app store.

Android's biggest issue isn't really that it is poorly designed (in particular with SELinux as standard). Android's biggest issue is how horribly the OS update mechanism works, so relatively minor security issues may not be fixed for years.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by hackuser on Wednesday November 18, 2015 @12:45PM (#10589332)
> A lot of Android's security issues are not always Google's fault. Some of them are in generic Linux libraries, some of them are in OEM added components (Samsung), and some of them are security issues unique to an app ecosystem (i.e. on Windows Win32 user applications normally have full permissions as that user, on Android an APK running as a user has a limited set of permissions, if it exceeds those permissions this is now an "exploit" which is now an additional set of security issues), and many are simply malware being placed on an app store.

I think these mostly are Google's fault. They chose those Linux libraries and implemented them; they certainly have the resources to modify them, to otherwise secure them, or to develop their own. They are producing an OS not for a laboratory but for the real world where there are OEM components, app ecosystems, and malware. Dealing with those issues is an essential part of what an OS does. If you build a ship that works fine in calm weather but sinks when a storm hits, the problem is not the weather.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by tptacek on Wednesday November 18, 2015 @12:47PM (#10589350)
Apple has many of the same issues, and uses a huge amount of bug-riddled open source. The big difference between Android and iOS is that iOS, which is the same on every platform it runs, is locked down to a far greater extent than Android is. This is a good thing for security and a bad thing for end-user control; Google and Apple just took two different tradeoffs here.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by windexh8er on Wednesday November 18, 2015 @11:56PM (#10592833)
I'm curious of what the general consensus is if we made it [pun] more apples to apples by comparing current state Nexus 5x/6p @ Android 6.x vs iPhone 6s @ iOS 9.x? Android, today, seems to be riddled with the legacy a la Microsoft - wherein XP is still at large, seemingly a similar problem with Android 3/4/5 still in use...

But is the cutting edge comparison really that much more skewed in Apple's favor?

I'd say that prior to the improvement on patch cycles as of recent in Android - iOS had an edge, but - outside of the walled garden I'm still very curious on the quality between the two with specific regard to the SDLC and resulting output.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by hackuser on Wednesday November 18, 2015 @12:59PM (#10589474)
> professional security people would have told you the same thing back in 2007

Did they really turn it around that fast, in one iteration of Windows (XP was released 2001, Vista in 2007)? I would think that fixing bugs would be necessary but not nearly sufficient, and they would have had to re-architect and re-develop major parts of the system. And Microsoft needed to do that while maintaing the backward compatibility that is a major selling point and pushing products out the door quickly enough to generate revenue.

It sounds like a nightmare, and not acheivable in 4 years. My impression was that many bugs were fixed but there wasn't a major redesign, which always made me doubt how secure Windows could be.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by joshyeager on Wednesday November 18, 2015 @01:09PM (#10589544)
Vista was a major security redesign, not just bug fixes. UAC was one of the biggest security improvements in the OS, because it meant that users were no longer running as admin by default.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by amatwl on Wednesday November 18, 2015 @05:35PM (#10591270)
UAC is not a security feature/ boundary (even according to MSFT themselves). It was aimed to help stop ISVs from writing software assuming admin privileges.

Vista had A LOT of security improvements overall, but UAC shouldn't be considered as one of them (similar to PatchGuard for x64 Windows - it's cited as sometimes a security feature, but it's not).

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by rstupek on Wednesday November 18, 2015 @01:15PM (#10589596)
I'm sure they didn't like it because security is, while necessary, a pita
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by hackuser on Wednesday November 18, 2015 @01:25PM (#10589670)
> UAC was one of the biggest security improvements

I assumed it was just an interface stapled onto the old system, and something underneath that allowed changing permissions without logging off.

It might have had a big effect, but it doesn't sound like a significant change in the system. But maybe my assumptions are wrong ...

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by quanticle on Wednesday November 18, 2015 @02:59PM (#10590298)
The entire concept of UAC and programs not running by default was introduced in Vista. It was such a big change that it pretty much ruined the reputation of the OS, single-handedly. I remember that one of the major complaints about Vista was the number and intrusiveness of UAC prompts, which occurred because programs were doing things like keeping settings in C:\Program Files, rather than the user's application data folder.

Windows 7 has the same permissions model as Vista, but has a much better reputation, because by the time 7 was released, applications had been updated to not require as much in the way of permissions. From the users perspective, this meant that 7 "worked properly", even though little had changed in terms of the security model between Vista and 7.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by delish on Wednesday November 18, 2015 @03:37PM (#10590573)
I've used Linux for many years, but I've always defended Vista. The other complaint about Vista was excessive resource use. I tell people that When XP came out, Intel released the Pentium 4. When Vista came out, Intel released the Core 2 Duo.

I'm conflating processor date with date-you-could-buy-a-computer-with-that-chip, but still: Pentium 4 is a world away from Core. Windows Vista does a lot more than XP.

The complaints went away because people gradually bought computers with Core architectures.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by smacktoward on Wednesday November 18, 2015 @04:44PM (#10590983)
The real problem with Vista and resource use came from the OEMs. Details here: http://blog.seattlepi.com/microsoft/2008/02/27/full-text-mic...

Microsoft has a program where they certify that hardware will work acceptably with their operating systems. This is important in the run-up to a new version of Windows, because during the period when everyone knows that Windows X+1 is coming soon but all you can buy off the shelf are machines with Windows X, people want to be confident that they'll be able to upgrade to Windows X+1 when it's available.

For Vista, if your machine passed this certification, you got the right to ship it with a shiny sticker that said "Vista Ready." Seeing the "Vista Ready" sticker on that XP laptop on the shelf at Best Buy told customers that they could buy it without fear. It was certified future-proof.

However, Vista required more resources than XP did to run with acceptable performance. That meant that OEMs had a ton of ultra-cheap XP machines in the pipeline that could not with a straight face be called "Vista Ready." And this was a problem, because they didn't want to get stuck with warehouses full of machines nobody would buy because they couldn't run Vista.

So what they pushed for, and what MS eventually gave them, was a new certification: "Vista Capable." Unlike "Vista Ready," "Vista Capable" didn't mean Vista would run well on the hardware in question. It just meant you could install Vista on it, with no guarantees as to how it would actually run. And the shiny "Vista Capable" sticker looked pretty much exactly like the shiny "Vista Ready" sticker, so if you weren't looking carefully, it was easy to confuse the two.

The OEMs loved this solution, because they could now slap "Vista Capable" stickers on all those crappy XP machines and unload them on people. But, entirely predictably, then Vista came out and suddenly tons of people were installing it on hardware that was nowhere near beefy enough for it. So for umpty-ump millions of people who bought that crappy hardware, the experience of using Vista was painful and awkward and slooooow. Eventually even the cheapest machines were powerful enough to meet Vista's requirements -- but by that point Vista's reputation had been sealed. As the saying goes, you never get a second chance to make a first impression.

But the OEMs did get all that inventory out of their warehouses. So, you know, mission accomplished.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by smacktoward on Wednesday November 18, 2015 @04:33PM (#10590908)
This, exactly.

Vista is now my go-to example for when people managing platforms say "just break badly written applications, their incompetence is their problem, not ours." Microsoft took a staggering PR hit when all sorts of crappy, poorly-written applications broke under Vista, because their users all blamed Microsoft for it. People don't know their applications are crappy under the hood; all they know is that they used to work, and now they don't.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by amatwl on Wednesday November 18, 2015 @05:43PM (#10591304)
UAC in Vista essentially introduced the idea of a "split token". Administrators get two access tokens: a full access token, and a filtered access token. The filtered access token essentially is a standard user token and used by default. Only when elevating (UAC is prompted) is the full access token used (which is the filtered access token plus various admin-level privileges).

Each token has different privileges on what it allows/ doesn't allow. One notable change in Vista was the introduction of SetTimeZonePrivilege, since in XP, you had to be an adminstrator in order to change the time.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by alricb on Wednesday November 18, 2015 @02:53PM (#10590253)
In XP, you could always change permission without logging off, by using the runas command or Run as... in the context menu. I think you could also set shortcuts to run programs as Administrator.

So you could run as a non privileged users, and you'd only need to log in as Administrator for some very specific tasks.

However, there were many applications that didn't play nice with that model and required you to run as Administrator. By changing the default, MS had to do a big push to make software makers abide by the rules (which had been in place since XP (edit: in the mainstream branch) but were often ignored)

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by gpvos on Thursday November 19, 2015 @01:50AM (#10593170)
You could do that under XP, but needed a separate user account for administrator. It was also more of a hassle, as you always had to enter the password when starting a program as Administrator. I ran with such a setup on my desktop, and remember that to install programs I usually logged out and logged in as Administrator again.

Vista introduced a model that was almost as good, but made it more user-friendly and the default.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by toyg on Wednesday November 18, 2015 @01:12PM (#10589571)
And judging by the pageviews on my blogpost on how to disable it, users didn't really like it very much...
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by Rafert on Wednesday November 18, 2015 @01:44PM (#10589812)
Which was caused in part by badly behaving programs (writing user data to the Program Files directory) that triggered the UAC prompt, if I'm not mistaken.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by TeMPOraL on Wednesday November 18, 2015 @02:58PM (#10590286)
They improved the system in the next release, and since Win7 UAC generally works perfectly even with the "badly behaving" software. Sensitive directories are now mirrored elsewhere in the filesystem, so that when your program wants to read from, say, Program Files directly, what it really reads is C:/Users/[username]/AppData/Local/VirtualStore/...
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by cmdrfred on Wednesday November 18, 2015 @05:58PM (#10591374)
I've never experienced this in writing my own software. If I try to read or write to a directory I'm not allow to I simply get access denied.

f = open('C:/windows/test.txt')

try:

    f.write('test')
 
except Exception as ex:

    print ex
 
IOError: [Errno 13] Permission denied: 'C:/windows'
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by TeMPOraL on Wednesday November 18, 2015 @09:29PM (#10592373)
Try the same with C:/test.txt. Open Explorer and see if the file actually appears in C:/.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by toyg on Thursday November 19, 2015 @05:01AM (#10593838)
So that's what the policy "Virtualize file and registry write failures to per-user locations" does... uh, good to know :) thanks!

In my particular legacy-apps' field, I believe most problems are due to interactions with the DCOM subsystem though.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by TeMPOraL on Thursday November 19, 2015 @05:13AM (#10593899)
Yeah, I only learned about it after I discovered what "~" is being resolved to in my Emacs installation on Windows...
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by pjmlp on Thursday November 19, 2015 @02:38AM (#10593307)
That was already in Vista, if I remember correctly.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by RI_Swamp_Yankee on Wednesday November 18, 2015 @11:11AM (#10588513)
Apple has always been exceptional in this regard as well. It usually drives people up a wall when this is pointed out, as the fanboys like to trumpet it a bit too loudly, but it's true. In-the-wild exploits are rare, and the company moves quickly to squash them and to prevent the entire category of exploit from biting them a second time.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by tptacek on Wednesday November 18, 2015 @12:28PM (#10589206)
There are a lot of great people at Apple and the security model of iOS is an achievement --- in a lot of practical ways better than that of Android. But I do not know a lot of people who would argue the Apple has a better security program than Google does. Google's team is better funded and better staffed, and has a much broader charter than Apple's.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by blinkingled on Wednesday November 18, 2015 @01:26PM (#10589676)
> in a lot of practical ways better than that of Android.

Umm no - the update situation is better on iOS but fundamentally iOS has bigger problems - https://twit.tv/shows/security-now/episodes/532?autostart=fa... . That problem is unfixable easily due to the way ObjC works. Android gets code access control for free with Java. There have always been Jailbreaks for most iOS versions and it's not like they haven't had other security issues. The ability to fix them quickly is certainly an advantage but there is nothing in iOS that is fundamentally more secure than anything else on the market.

Frankly I think Apple's security is a combination of happenstance and restrictive policies - I don't think they care (yet) about the processes, infrastructure and people required to do what Google and Microsoft do. (No offense to the good security people at Apple - this isn't about them, this is about having organization wide security focus like MS needed to turn around Windows.)

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by tptacek on Wednesday November 18, 2015 @02:03PM (#10589926)
I don't understand what your argument is. Untethered jailbreaks on iOS are worth gigantic amounts of money because they are not easy to come by.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by blinkingled on Wednesday November 18, 2015 @02:19PM (#10590028)
But they have existed for every version of iOS none the less. The relative difficulty may quite well be due to other reasons - closed source, locked down hardware etc. Says nothing about software security.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by mahyarm on Wednesday November 18, 2015 @02:40PM (#10590176)
Rooting your phone when your not allowed is so common in android it might as well be a non-event.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by tim333 on Wednesday November 18, 2015 @02:40PM (#10590179)
Some recent figures: (http://betanews.com/2015/06/26/android-is-the-biggest-target...)

>"There was significant growth in Android malware, which currently consists of 97 percent of all mobile malware developed. In 2014 alone, there were 1,268 known families of Android malware, which is an increase of 464 from 2013 and 1,030 from 2012", it said.

Apple’s iOS, on the other hand, went through last year basically unscratched. The report said that there were just four iOS targeted attacks in 2014, and the majority of those were designed to infiltrate jailbroken devices.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by blinkingled on Wednesday November 18, 2015 @02:50PM (#10590242)
I would not read too much into 'reports' by companies trying to sell you security products.

If you want to talk impacts - both iOS and Android have been similarly impacted - big name apps getting into App Store that were compiled by hacked XCode, Ad SDKs using forbidden APIs etc. Likewise most Android malware is due to rooting and side loading apps from questionable sources.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by tim333 on Wednesday November 18, 2015 @03:00PM (#10590305)
So Android getting about 100x as much malware as iOS is not significant? That's from all reporting I've seen, not just that one. Just because iOS has problems too doesn't make the numbers the same.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by blinkingled on Wednesday November 18, 2015 @03:15PM (#10590405)
It would be significant if the statement was "There are 100x more infected Android phones than iOS phones."

Remember that Android is a lot of things - there are Nexus phones, there are OHA OEM phones (majority of them), there are Chinese no name phones that use open source Android etc. So if most Chinese people use AOSP build provided by their phone maker and they all sideload apps and get infected - that's different. Even considering all this nobody is making the above statement.

Just having malware written for an OS means nothing. It only suggest that it is targeted more due to market share. If people jailbreak their iPhones and install random apps from untrusted sources there is hardly anything Apple's security can do to prevent it. Same goes for Android. Nothing in that reflects the security of the underlying platform.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by lern_too_spel on Wednesday November 18, 2015 @11:15PM (#10592704)
Orders of magnitude more iOS users have been infected by malware (via XcodeGhost) than Google-flavored Android users, despite the latter platform having multiple times more users. The reports you're pointing to list malware in Chinese app stores on non-Google-flavored devices.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by protomyth on Wednesday November 18, 2015 @02:54PM (#10590265)
"That problem is unfixable easily due to the way ObjC works"

Can you explain that?

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by blinkingled on Wednesday November 18, 2015 @03:08PM (#10590365)
You should listen to the podcast for details but the gist of it is that "The Objective-C model of object-oriented programming is based on message passing to object instances. In Objective-C one does not call a method; one sends a message." So let's say you have an app that uses a runtime. The runtime in turn may use private/internal calls that your app is not supposed to use. Well there is no reliable way to prevent it because as long as you can construct a message and know the string/name of the target you can call it and there is no easy way for static analysis to detect such behavior.

Some apps were exploiting this to get a list of running apps and things like that.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by tptacek on Wednesday November 18, 2015 @03:21PM (#10590450)
This is extraordinarily silly. In modern systems security, real security boundaries aren't enforced at the language level. No amount of ObjC message-sending trickery is going to change your UID.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by blinkingled on Wednesday November 18, 2015 @03:26PM (#10590490)
Yeah, I have been around long enough to know you can't change to UID zero by message passing. That is just preposterous to assume. I was talking at the Runtime level - I even cited an app that was calling a runtime method to get list of running apps. Essentially they have no reliable runtime permission model - they rely on obscurity and static scanning to prevent you from passing message to some receivers that they don't want you to.

I would have thought you will research it a bit before asserting silliness - but oh well.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by ryanpetrich on Wednesday November 18, 2015 @04:11PM (#10590778)
Apple is slowly migrating a massive amount of system features out of private frameworks and into background daemons protected by entitlements or privacy prompts. The end goal is that all sensitive data or hardware features are completely inaccessible from inside the sandbox, neither by private API, nor IOKit, nor syscall, nor direct filesystem access.

Retrieving the application list is a particularly poor example as there used to be a public API that did exactly that: CFPreferencesCopyApplicationList

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by millstone on Wednesday November 18, 2015 @04:06PM (#10590754)
The runtime is trivial to bypass on Android as well: Reflection, NDK, etc. It's not intended to enforce a security policy.

The "receivers that they don't want you to" on iOS is not about security, but correctness, binary compatibility, and app store guidelines. iOS's security model is not defeated by bypassing the ObjC runtime.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by blinkingled on Wednesday November 18, 2015 @04:15PM (#10590800)
No it isn't - if your app did not ask for say a permission to connect to Internet or get a list of apps - there is no way to do that using reflection or NDK or whatever.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by btilly on Wednesday November 18, 2015 @05:38PM (#10591280)
I don't know about the latest version of iOS, but your statement was certainly wrong just 2 years ago.

See https://www.usenix.org/system/files/conference/usenixsecurit... for details of how to write an app that bypasses App Store review but will have security holes that allow your app to access APIs at runtime with no notification that it was not supposed to have access to.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by blinkingled on Wednesday November 18, 2015 @06:14PM (#10591447)
Yes, that was exactly my point. People keep repeating the iOS security being fundamentally better marketing mantra but it has been ordinary although the closed system helps it somewhat and they did seem to get the fingerprint security right. And I was referring to Android's permissions model when I said no you can't bypass it.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by millstone on Wednesday November 18, 2015 @06:51PM (#10591640)
You may think it's "marketing mantra" if you're unaware of the technical differences. But compare, say, Apple's Secure Enclave with Host Card Emulation. Apple's design is just more secure. http://www.tomshardware.com/news/host-card-emulation-secure-...

I certainly don't understand characterizing iOS's security model as "ordinary." For example, it encrypts using a separate coprocessor running an entirely separate OS, that is protected against even an iOS kernel exploit. That's definitely not an ordinary design!

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by millstone on Wednesday November 18, 2015 @04:27PM (#10590877)
And on iOS, if your app does not receive permission to access your location or contacts or camera or Internet, there's no way to do that by using objc_msgSend or whatever.

On both platforms, these security policies are enforced at the process boundary, not by the runtime.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by millstone on Wednesday November 18, 2015 @04:21PM (#10590848)
Java's access controls are trivial to bypass on Android. Neither the Android or iOS runtimes are there to enforce a security policy.

You should read Apple's iOS Security Whitepaper: http://www.apple.com/business/docs/iOS_Security_Guide.pdf See for example the data protection classes: a very thoughtful design, with no analog in Android, and that certainly could not have come about by "happenstance."

Heck, Android doesn't even encrypt your data by default! That alone makes iOS "fundamentally more secure."

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by blinkingled on Wednesday November 18, 2015 @04:41PM (#10590955)
> Java's access controls are trivial to bypass on Android.

You keep repeating that but I am certain you don't understand what you are talking about. Go download the Android SDK, emulator and write an app that does that and post it on Github We will talk about it then.

Also - I'll leave this here - http://www.macrumors.com/2015/10/19/apple-to-remove-hundreds...

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by millstone on Wednesday November 18, 2015 @05:43PM (#10591307)
> write an app that does that

Here's a sample of how to invoke `Activity.savedDialogKeyFor`, which is private:

    Method privateMethod =
        Activity.class.getDeclaredMethod("savedDialogKeyFor", int.class);
    privateMethod.setAccessible(true);
    String result = (String)privateMethod.invoke(this, 42);
    System.out.println("Got result: " + result);
Worked perfectly on Android Marshmallow emulator. As I said, it's trivial.

> Also - I'll leave this here

What's your point? There was no security exploit here, and no security policy can realistically prevent networked apps from sharing data like your email address. That falls to the review process.

What's remarkable here is how little data this malware was actually able to capture. Certainly less than on Android, where users routinely grant excessive permissions, like giving Netflix access to your phone.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by blinkingled on Wednesday November 18, 2015 @05:55PM (#10591357)
You're confusing accessing private methods with violating the Android permissions model. Two totally separate things.

Edit: Also my larger point was the iOS security is not fundamentally better than anything else. The closed nature, restrictive policies etc. help but fundamentally it's nothing outstanding. It was a response to tptacek claiming opposite.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by millstone on Wednesday November 18, 2015 @06:21PM (#10591479)
I am not confused. Please reread the thread.

You asserted that iOS is "unfixable" because the ObjC runtime cannot prevent apps from using "private/internal calls that your app is not supposed to use," whereas "Android gets code access control for free with Java."

But as I showed, Java access controls are easily bypassed, so they do not provide any security. This is by design: security is enforced at the process boundary, not by the runtime.

My hope is that you now appreciate that neither the ObjC nor Android Java runtimes are a security risk, because they are not responsible for enforcing any security policy.

> Also my larger point was the iOS security is not fundamentally better than anything else

iOS security is fundamentally better. You can read the whitepaper to understand the ways: data protection classes, the Secure Enclave, and lots more.

But here's a damning fact: iOS encrypts your data by default, Android does not. That by itself makes iOS fundamentally more secure.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by blinkingled on Wednesday November 18, 2015 @07:07PM (#10591721)
You should really read this Usenix paper - https://www.usenix.org/system/files/conference/usenixsecurit... .

What you are not understanding or ignoring is that iOS apps (over 250) that were App Store approved were able to retrieve personal user data including email addresses by reverse engineering the names of the private APIs and using message passing. Android sure has private APIs and you can access those but you're still restricted to the permissions you asked for. For example you need to declare android.permission.GET_ACCOUNTS permission to get the user's primary email. Not on iOS apparently where they rely on manual review to ensure you are not calling the Private API - which fails as can be seen in the Chinese AD SDK fiasco I posted.

So no Android runtime isn't a security risk as much as iOS private APIs are - your app gets a broad set of permissions on iOS by default and you can do clever trickery to call private APIs to collect personal info and who knows what else without the user knowing. Android needs your app to ask for that permission first (and at runtime on M)- you aren't calling a private method on Android without declaring the necessary permission to get what you want without user interaction.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by millstone on Wednesday November 18, 2015 @07:50PM (#10591949)
> You should really read this Usenix paper

I have read it. It describes an attack on the app review process, i.e. a trojan. Their apps require the user to grant privileges. For example, their GreetingCard app requests access to the user's address book, and the user has to grant it.

> iOS apps (over 250) that were App Store approved were able to retrieve personal user data including email addresses

This is not true. Here's the blog: https://sourcedna.com/blog/20151018/ios-apps-using-private-a...

The data they collected was list of installed apps, serial numbers, and some sort of AppleID numeric identifier. In particular, they did not (could not) collect email addresses.

It's bad that the SDK was collecting this stuff, but this data is fairly innocuous. Last I checked, Android provides information like the list of installed apps and various serial numbers without requiring elevated permission.

If you think it's possible to get the user's email address through an iOS private API, I challenge you to tell me what that private API is.

> For example you need to declare android.permission.GET_ACCOUNTS permission to get the user's primary email. Not on iOS apparently

This is wrong. On iOS, the only way to access the user's email is through the Address Book framework, which prompts the user at the time of access.

> your app gets a broad set of permissions on iOS by default

This is completely false. iOS has a comprehensive on-demand permissions model, which is widely recognized as better than the install-time permission model on Android. This is why Android is switching to iOS style on-demand permissions in Marshmallow.

> you aren't calling a private method on Android without declaring the necessary permission

Please stop confusing private methods with elevated permissions. You CAN call private methods without elevated permissions, as my code above demonstrates.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by blinkingled on Wednesday November 18, 2015 @09:45PM (#10592428)
>The data they collected was list of installed apps, serial numbers, and some sort of AppleID numeric identifier. In particular, they did not (could not) collect email addresses.

[Edited for unnecessary stuff]

Oh the article you linked has Apple response that is quoted verbatim below - it references user email addresses. Specifically.

“We’ve identified a group of apps that are using a third-party advertising SDK, developed by Youmi, a mobile advertising provider, that uses private APIs to gather private information, such as user email addresses.."

> Please stop confusing private methods with elevated permissions. You CAN call private methods without elevated permissions, as my code above demonstrates.

What I wrote was you are not going to be able to call an Android API via private invocation and succeed if the API requires a specific permission and your app hasn't declared it.

All of this only goes to prove that Apple's security in iOS is not extraordinary as you claim - it is fallible like every other platform except with the exception of fingerprints which are currently believed to be secure - but that's now the case with Android as well - in M they are using ARM Trust Zone with no app access.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by millstone on Wednesday November 18, 2015 @11:05PM (#10592668)
Maybe there's a private API on iOS that leaks the user's email addresses without the proper permissions. Maybe there's one on Android too. Neither OS has a runtime that will prevent malicious apps from exploiting such an API.

> What I wrote was you are not going to be able to call an Android API via private invocation and succeed if the API requires a specific permission and your app hasn't declared it

Just like on iOS, with the difference that it happens at call time and not installation time.

> All of this only goes to prove that Apple's security in iOS is not extraordinary as you claim

It shows the exact opposite! Notice how ridiculously weak these results are. On one of the most high-profile targets today, an app may (unconfirmed) be able to determine the user's email address and send it to a server. On a trojan app that the user deliberately installed, and then deliberately granted access to Twitter, it can post a tweet without the user's confirmation, if the user has not updated the OS. Fetch the smelling salts!

Meanwhile, millions of Android phones are part of botnets, like NotCompatible.C, at one point reaching 1.5% of mobile devices in the USA. A Chrome 0-day came out last week, allowing full control remotely of fully-patched Android phones. These aren't research papers showing theoretical attacks, this is real life.

Yes, iOS has extraordinary security, and its competition only makes it look better.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by blinkingled on Thursday November 19, 2015 @12:20AM (#10592899)
A Safari zero day was just sold to governments (Nov 2nd). But yeah continue to assert otherwise if that makes you feel better. I am sure you have some explanation for that and all the previous jailbreaks for iOS and how they show iOS security being extraordinary! Android phones with botnets? Yeah you can believe that so hard it will make it a fact soon!

/jeez why do I bother with Apple fanboys?

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by pjmlp on Thursday November 19, 2015 @02:39AM (#10593310)
It would be if Symbian already didn't had most of those features.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by scholia on Wednesday November 18, 2015 @11:57AM (#10588940)
The pwn2own contestants never have any problems pwning Macs, but iOS's security record is hugely impressive.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by wdmeldon on Wednesday November 18, 2015 @11:37AM (#10588771)
I can't help but think this is more a result of low volume and extremely tight control over their ecosystem rather than an intentionally prioritizing on security.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by RI_Swamp_Yankee on Wednesday November 18, 2015 @12:33PM (#10589241)
The MacOS X ecosystem is 25 years old now, counting NextStep, and has an installed base of close to a hundred million systems, most of them unsophisticated personal computer users running a full Unix operating system with internet access. That is a prime target, considering there are malicious exploits that take advantage of Z-series mainframes in recent years. (one of the Pirate Bay founders got popped for looting the mainframe at a tax accounting firm)

I think it's more to do with the development culture inside Apple. The features in Swift designed to improve secure coding shows you they're actively thinking about secuirty and how to achieve it, and have been for a while.

The only regular security headlines you see about the Mac is in the Pwn2Own contest and their like, where researchers trot out vicious exploits that are then dutifully squashed by Apple in the next update, never to be seen in the wild. (And there's a reason Apple makes it a PITA to install Flash and Java these days, and includes their own very nice .pdf reader.)

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by tptacek on Wednesday November 18, 2015 @12:38PM (#10589273)
First, there is Mac malware.

Second, retail-level malware is a numbers game. Malware isn't cross-platform. A malware author chooses their target based on how remunerative the target is. Windows remains more remunerative than OS X.

There is no fundamental difference between the security models of modern Windows and OS X that accounts for the disparity in malware infections.

(I'm a Mac user, and have been since ~2001.)

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by tootie on Wednesday November 18, 2015 @01:35PM (#10589742)
I don't know. My father-in-laws Windows PC is routinely bogged down with malware/adware. It's not the same kind of security holes that used to be rampant, but it's still too easy for malicious software to cause trouble.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by tim333 on Wednesday November 18, 2015 @02:51PM (#10590247)
Though Microsoft have improved their computers still often come laden with crapware much of the time unlike Apple or I think most Chromebooks. You then end up with stuff like Superfish if you're not lucky.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by mark_l_watson on Wednesday November 18, 2015 @03:13PM (#10590399)
Sorry about repeating myself on this subject: buy laptops from the microsoft store - no crapware installed ("signature" editions).
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by tootie on Wednesday November 18, 2015 @04:06PM (#10590752)
I buy the PCs for him and personally remove the crapware. He just clicks on random stuff. If it tells him to buy something, he buys it.
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by keithpeter on Wednesday November 18, 2015 @04:33PM (#10590910)
Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by pjmlp on Thursday November 19, 2015 @02:45AM (#10593337)
Like Android you mean.

Any system that allows free reign to OEMs will be ridlled with crapware.

Re:Microsoft, Once Infested with Security Flaws, Does an Abo... by EGreg on Wednesday November 18, 2015 @09:50PM (#10592441)
Apple