Repository navigation
fix(security)!: enforce v2 authentication and companion lifecycle boundaries - #39
Merged
Merged
Conversation
…ndaries Require root-pinned canonical phone proofs, authenticated BLE pairing, complete transaction binding, verified presence leases and fail-closed unpairing. Protect privileged installation helpers and add regression coverage for migration, socket descriptor ownership and mixed Keychain operations. BREAKING CHANGE: Rebuild Mac and iPhone components, re-pair, compare public-key fingerprints and enroll root-managed trust. V1 and diagnostic approvals cannot authorize v2 PAM. Native acceptance remains required before release.
zhixuli0406
marked this pull request as ready for review
October 25, 2026 11:22
This was referenced Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PAM authorization should depend on a phone signature over the exact transaction and administrator-enrolled trust. This proposes a coordinated protocol v2 migration across PAM, the daemon, installation helpers and the iPhone companion, with explicit revocation and verified companion lifecycle handling.
Refs #38. Keep the tracking issue open until the native acceptance items are completed.
Changes
/Library/Security/TouchBridge; validate ancestors, permissions, symlinks and ACLs. Retire hooks before replacement/removal, preserve unrelated PAM entries and require explicit fingerprint enrollment before activation. Menubar administrator actions use protected helpers.Validation
bash tests/e2e-validation.sh: passed. Includes native PAM/migration/path checks, protected menu helper checks, native disabled-plugin C ABI checks, 25 protocol tests and 115 daemon tests.swift build -c release --jobs 2indaemon: passed.make -C pam all: passed; universal arm64/x86_64 module and trust tool compiled.xcodebuild testfor the iOS scheme on an isolated simulator: 10 tests passed.git diff --check: passed.35ccbfa7e01b2b1426194661f68c7e1cdb6c86a7.These are local results. Upstream CI status is reported separately by GitHub checks.
Compatibility and remaining gates
Draft: maintainer review and native acceptance are required before merge/release.