Skip to content

fix(native): preserve exact code signing identifiers - #803

Closed
rudycelekli wants to merge 1 commit into
morluto:mainfrom
rudycelekli:fix/codesign-exact-identifier-20261006
Closed

rudycelekli wants to merge 1 commit into
morluto:mainfrom
rudycelekli:fix/codesign-exact-identifier-20261006

Conversation

@rudycelekli

Copy link
Copy Markdown

Summary

Preserve the exact Identifier= value emitted by codesign -d --verbose=4. Signing identifiers can contain leading or trailing spaces; trimming the value changes the inspected identity. Other display-field normalization is unchanged.

Verification

  • Actual owned native workflow: compile a small Mach-O with host Clang, ad-hoc sign it with /usr/bin/codesign, resolve it through parseBinaryTarget, and call the public NativeMacOSProvider inspect_signature operation. Three spaced identifiers mismatch on main; all four identifiers (including the ordinary control) match after this fix.
  • npm run test:focused -- tests/boundary/providers/native/nativeProvider.test.ts tests/boundary/providers/native/nativeInventory.golden.test.ts: 25 passed.
  • npm run check: all five tasks passed; 129 existing lint warnings, zero errors.
  • npm run check:fast: passed.

Native proof ran on macOS arm64 with the installed Apple toolchain. No other OS matrix or credentialed signing is claimed. No Hopper/Ghidra behavior changes; those real-provider workflows were not run. Hosted CI will run separately.

AI assistance was used for investigation, implementation, and regression tests.

@morluto

morluto commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Superseded by #815, which integrated this change and has now merged (3af3811). Thanks @rudycelekli for the fix and the thorough verification — much appreciated!

@morluto morluto closed this Oct 7, 2026
@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants