fix(native): verify nested code and keep ticket read failures local
Address review findings in inspect_signature: - Verify with `codesign --verify --deep --strict`. Shallow verification misses a file added inside a nested XPC service, or a modified dylib inside a framework. verify:code-signature now tampers inside the nested XPC service and requires `invalid`. - Classify verification as `unsigned` only when the top-level target is unsigned. Unsigned nested code inside a signed bundle is `invalid`. - Report a stapled ticket that exists but cannot be read as `unreadable`, with the error code in a new `reason` field, instead of failing the whole signature inspection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
25ca63f231
commit
37824e8c46
+2
-2
@@ -76,8 +76,8 @@ copies of a clang-built fixture with real `codesign`: ad hoc, hardened
|
||||
runtime, hardened runtime with relaxing entitlements, and `library,restrict`
|
||||
flags. It checks that `inspect-signature` decodes those flags and derives the
|
||||
expected security facets. It also checks a platform binary, which must report a
|
||||
platform identifier, and a bundle with an added unsealed file, which must fail
|
||||
strict verification. CLI and stdio MCP results must match.
|
||||
platform identifier, and bundles with an added unsealed file, at the top level
|
||||
and inside a nested XPC service, which must fail deep strict verification. CLI and stdio MCP results must match.
|
||||
`verify:macos-bundle` needs only macOS with Command Line Tools. It compiles a
|
||||
source-owned app with `clang`: a versioned framework, XPC services, an app
|
||||
extension, a login item, a privileged helper, launchd plists, and a helper tool,
|
||||
|
||||
Reference in New Issue
Block a user