From 3132d19afcd4baae2d0ffacfb7eed56b9d4aaf5c Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 14 Aug 2016 20:12:35 -0400 Subject: [PATCH] Add note about no-DSA deprecation --- Documentation/Security.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/Security.md b/Documentation/Security.md index e6c23143..6ef460d9 100644 --- a/Documentation/Security.md +++ b/Documentation/Security.md @@ -32,4 +32,6 @@ When communicating to a launchd job, we've several options to use for IPC such a For sending Obj-C objects across the wire, we use `SPUSecureCoding` because Cocoa doesn't support sending objects securely out of the box unless working with XPC Services. It's very important the objects implement `NSSecureCoding` and whitelist types that are expected to be decoded, as well as whitelist types inside collections before decoding them. -Lastly, the installer handles extraction, validation, and installation of the update. This was the main reason why other forks were rejected from being secure. The point to be stressed anyway is that these all need to be done in the same process; they can't be handed off by some other process. This is also why removing references to `AuthorizationExecuteWithPrivileges` is crucial as well. \ No newline at end of file +The installer handles extraction, validation, and installation of the update. This was the main reason why other forks were rejected from being secure. The point to be stressed anyway is that these all need to be done in the same process; they can't be handed off by some other process. This is also why removing references to `AuthorizationExecuteWithPrivileges` is crucial as well. + +Note that the installer does *not* handle downloading. That is handled by the updater framework. This is ideal because downloading can be done without disrupting the user, allowing it to be done silently without presenting an authorization dialog. The downloading portion of code can also be stuck into a XPC service with just an entitlement for allowing incoming connections. This also means for secure installations the installer cannot know (or trust) what protocol the update was downloaded from (i.e: http vs https). A good installer will not care, which is why applying updates without a DSA signature/key is now deprecated (reminder that Apple's code signature checks are not intended for complete integrity). \ No newline at end of file