4 ms·
To be clear, this just means all binaries need codesign --sign - run on them before they will run. You don't need to pay to do this, so it's a minor annoyance r
by saagarjha 6y ago
To be clear, this just means all binaries need codesign --sign - run on them before they will run. You don't need to pay to do this, so it's a minor annoyance rather than Apple centralizing control of app distribution.
- CamperBob2 6y agoWhy wouldn't a malware author just... do that?
- saagarjha 6y agoMalware authors frequently sign their applications with valid Developer ID certificates. This change is not something that would keep them out and I strongly suspect that was not the goal when it was made.
- nikisweeting 6y agoThe key here is that Apple can also remove and retroactively revoke signatures on signed applications, which is why you rarely see Mac malware stick around after it makes the headlines these days. When a piece of (signed) malware becomes even moderately sucesful, Apple shuts down all its installation vectors by banning every dev account that's ever signed it. If nothing else this makes it harder to develop malware that spreads rapidly through the App store, forcing bad actors to invest a lot more work into finding 0-days.
- nickspag 6y agoI believe one of the main security benefits of these requirements are ensuring a binary hasn't been altered maliciously, or otherwise I guess. Not preventing outright malicious applications. Also so the os doesn't have to repeatedly rescan apps, etc.
- saagarjha 6y agoThat is what codesigning does.
- art4ur 6y agoIt's like sha256sum but cost $99 a year.
- mlindner 6y agosha256sum generates a sum, you still need to store that sum somewhere that isn't controlled by the malware creator or they can just change the sum too. All major Linux distros for example still have no viable way of creating signed programs or anything like Gatekeeper.
- enedil 6y agoIf you have a vulnerable app, it might modify another already approved app that is already installed, thus omitting the scary message about untrusted code before being run.
- saagarjha 6y agoChecks are significantly relaxed after installation, so I don't think this would actually help here anyways.
- badsectoracula 6y agoYes, which is why i wrote "you cannot run unsigned software" and the part about slippery slope.
- saagarjha 6y agoThat's exactly what I'm confused about, where is the slippery slope? It's an extra step in your build process–an annoyance, not a slope. It's like if there was a requirement that macOS would not run binaries unless you stuck "APPLEISCOOL" at the front of all your binaries.
- ccmcarey 6y agobut who does this new step help?
- saagarjha 6y agoAs far as I understand, there are (surprisingly many) different code paths in the operating system based on whether a binary is signed or not and I would guess that Apple no longer wants to keep around the one where unsigned binaries are a thing.
- badsectoracula 6y agoThe slippery slope is at the point where a few years ago you could run any application you wanted, then you started getting some scary messages for unsigned applications but still could run applications, then you had to work around the scary messages and now you cannot run unsigned applications. So, what follows next? Hence the slope.
- cma 6y agoDoes it tie them to your Apple ID, or is it a key you can keep totally private from Apple?
- saagarjha 6y agoIt's not tied to a key at all, it's basically just a hash (read: the checksum kind) with no authenticity guarantees as to who signed the binary.
- nikisweeting 6y agoTo the average user, yes, but Apple can see the chain of trust and can do the data science required to figure out who signed what. You better believe that in the even of a large scale malware distribution via signed binaries, they're going to be revoking those certs and tracking down the accounts responsible (like after the VLC website hack).
- Spivak 6y agoThe data science to find out who ran md5sum on their binary?
- nikisweeting 6y ago> The notary service maintains an audit trail of the software distributed using your signing key. If you discover unauthorized versions of your software, you can work with Apple to revoke the tickets associated with those versions. https://developer.apple.com/documentation/xcode/notarizing_macos_software_before_distribution https://developer.apple.com/documentation/xcode/notarizing_m...
- plorkyeran 6y agoThere is no certificate involved in ad-hoc code signing. It's just a hash with no identity or chain of trust involved.
- 6y ago