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
@@ -20,7 +20,7 @@ explicit limitation; architecture inventory locations remain available.
|
||||
`linker-signed`, …), slot counts, platform identifier and runtime
|
||||
version;
|
||||
- sealed resources;
|
||||
- a local `codesign --verify --strict` result, with diagnostics and the
|
||||
- a local `codesign --verify --deep --strict` result, with diagnostics and the
|
||||
nested code it validated;
|
||||
- whether a notarization ticket is stapled at `Contents/CodeResources`.
|
||||
The ticket itself and Apple's notarization record are not checked,
|
||||
|
||||
@@ -669,9 +669,9 @@
|
||||
"mcp_prompts": 6
|
||||
},
|
||||
"digests": {
|
||||
"tools_sha256": "1b01577d3ad5b8815e08a52a5681c2af738935c43695b4a21d36f1d26333e680",
|
||||
"tools_sha256": "c7373daff6f47d20cd5a172d0ef8371e748ae19b181371bfdd7a0a63e0958ddd",
|
||||
"prompts_sha256": "ef2de8814390b340623c32001610aa2709d90bed51537b6e562ab3abf144ab4d",
|
||||
"combined_sha256": "07b4bcbc620ade41ffa4da3a5676d92fe3e7366fc60eebdb543bec7ba359d3f8",
|
||||
"combined_sha256": "c78943b1c2690688aafee61608a87a0a1e7385a496533bc9f72cbdee72e09a37",
|
||||
"providers_sha256": "a7d885531ee25d42c51385444faec544d34cd7eba6250a7dc75c4faedd4454a3"
|
||||
}
|
||||
}
|
||||
|
||||
+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,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"manifest_id": "ecm_7c023e043e069545c78f60e894c1f66a357a9b9435a1f1b3ade09eb7b1a821f1",
|
||||
"manifest_id": "ecm_f6604e02c812e3c564e5dc64c531321fbe4d3f788e90830b3584e330b1f8fdd7",
|
||||
"verifier": {
|
||||
"id": "rea-managed-conformance",
|
||||
"version": "1"
|
||||
@@ -13,7 +13,7 @@
|
||||
"skill_digests": [
|
||||
{
|
||||
"skill_id": "reverse-engineer-anything",
|
||||
"sha256": "81e7b30e94cec01efa31f18553919665b3617282f5cc23ee01a3e158ef665468"
|
||||
"sha256": "cb96a48bb7c9c0f06e03d9caacd129fd6995091d339b63e269de11d363a2a3a3"
|
||||
}
|
||||
],
|
||||
"claims": [
|
||||
|
||||
Reference in New Issue
Block a user