5 ms·
You're talking about the Web PKI. Moxie is not talking about the Web PKI; he's pointing out that mobile apps don't need to rely on the Web PKI, because installi
by tptacek 9y ago
You're talking about the Web PKI. Moxie is not talking about the Web PKI; he's pointing out that mobile apps don't need to rely on the Web PKI, because installing an app already involves deploying a trust anchor (the app itself), and you might as well exploit that to bootstrap trust with your servers rather than using CA signatures.
- agwa 9y agoThat's Option 1. In Option 2, Moxie suggests using the Web PKI, with pinning. I agree with tialaramex that this advice has not aged well. Most Web PKI experts would now advise against pinning and point to Certificate Transparency instead. Even Google, the pioneers of pinning that Moxie cites in his post, are moving away from pinning Google properties in Chrome.
- tptacek 9y agoYou're still talking about browsers. Moxie isn't: he's talking about mobile applications. There is little reason to rely on CAs, even with pinning, in a mobile application. You can simply make your own arrangements with your servers, since you control both ends of the connection. In that scenario, CAs add literally no value at all.
- shawkinaw 9y agoExcept that, IMO, I should be able to MITM the connection between an app on my phone and any server it’s talking to, for auditing purposes. In that case, CA/system trust-based systems let me do that relatively easily with a proxy. If the app sets up its secure connection with its own, uncustomizabe trust store, I can’t.
- tptacek 9y agoAppsec firms routinely test iOS applications with pinned certificates.
- throwaway2048 9y agoI doubt many app makers (or users for that matter) are interested in allowing that.
- slrz 9y agoI don't think that loading up a debug build with your dev certificates builtin is too much of a hassle for enabling MITM hooks.
- Sophira 9y agoI believe the parent comment is talking about auditing apps as a user, not as a developer, in which case debug builds will not be available.
- tialaramex 9y ago"You might as well" implement your own secure transport protocol instead of SSL/TLS by the same thinking. With your own protocol implemented in your app there's no need to rely on whatever TLS implementation ships with the device. In both cases it's a trade, and my argument is that just as it would have been a mistake to roll your own transport security protocol in 2011, it's a mistake to make your own PKI in 2018. At least for any reason other than education. There doubtless were people in 2011 who could have come up with something better than TLS 1.2, and there doubtless are people in 2018 who can do a better job of managing a PKI than we've done of the Web PKI. But most people's secure transport protocol in 2011 would have made SSL 2.0 look good, and most people's attempt at running their own CA today is going to be OpenSSL on somebody's laptop. Part of the reason for my skepticism is interacting with private PKIs where they touch the edge of the Web PKI. Without exception they are badly managed. Whether it is the Payment Card Industry, the US Federal Government, or a company-specific setup that I end up debugging, it's pretty shocking. If Bad Guys aren't breaking these systems, it's because they aren't trying. And if they aren't trying, who cares what you do about security - anything would work.
- tptacek 9y agoMost software developers, tasked to implement their own secure transport protocol, would fail to produce something as secure as even TLS 1.2, which is a flawed transport. And, of course, designing and implementing a secure transport is vastly harder than simply whitelisting certificates. So there's that, and there's the fact that HTTPS makes it through middleboxes that custom protocols don't. No, I don't think this is a meaningful comparison.