3 ms·
How would code signing be helpful? How would the key end up being trusted? I do think that content pinning/notarization of web apps could be powerful. We are b
by philips 6y ago
How would code signing be helpful? How would the key end up being trusted?
I do think that content pinning/notarization of web apps could be powerful. We are building some of those ideas here but and I have an interest in how this could be used to pin critical apps to an audited/approved version: https://transparencylog.com https://transparencylog.com
- kevingadd 6y agoThe attack scenario with current https is "get a file on the server". That's all you have to do in order to get full permissions because we're gating features behind https. If features require combination of https + code signing, you now need to not only get a file on the server, but you need to sign it. For high privilege APIs you would likely also want to do certificate approval like Windows does, where it shows you the certificate and asks whether you want to approve and whether you want to trust the signer. In many cases websites are loading code off a CDN, so the domain name of the website isn't actually important: the identity of the code's author is important and its integrity is important. You could also configure your server to pin a given code signing certificate or set of certificates, and thus even if someone manages to get code onto your server that they signed, it wouldn't run. Modern web platform APIs do have a way to specify expected hashes when loading external resources, so you can protect yourself against a third party (like a CDN) being compromised - but this does nothing if your server gets compromised, because they can just change the hash.