Skip to content

feat: add reversible emergency trust repair for macOS and Linux - #3

Merged
fproulx-boostsecurity merged 3 commits into
mainfrom
feat/emergency-trust-repair
Oct 23, 2026
Merged

fproulx-boostsecurity merged 3 commits into
mainfrom
feat/emergency-trust-repair

Conversation

@fproulx-boostsecurity

@fproulx-boostsecurity fproulx-boostsecurity commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Adds embarass fix to turn confirmed exposure into an actionable emergency repair on macOS and supported Linux distributions.

  • macOS: removes fingerprint-matched affected roots from /etc/ssl/cert.pem, preserving unrelated certificates and surrounding bytes.
  • Debian/Ubuntu/Alpine: disables matching vendor CA entries and regenerates trust.
  • Fedora/RHEL family: installs local distrust entries and regenerates trust.
  • Includes --dry-run, explicit confirmation, recovery records, and conflict-aware --undo. Linux undo rebuilds from current vendor policy rather than restoring a stale bundle.
  • Challenges both forged trust paths with system curl and reports repair status separately from verification.

Batch results now explain why some tools remain exposed after repair. Press d to explore per-tool trust sources, repair coverage, and remediation, or use --details for headless output. Guidance distinguishes system stores, bundled CA data, runtime updates, gcloud configuration, .NET native macOS trust, and container trust. Welcome, help, and exposed results include repair calls to action.

Also fixes a runner completion race that could miss final TLS observations and makes certificate-preservation tests independent of Windows checkout line endings.

Scope: repair covers the selected system store. Private application bundles, Keychain trust, and containers require separate remediation. Legitimate chains relying solely on the removed roots also lose trust.

Validation

  • Full Go race-enabled test suite and lint pass.
  • Disposable Debian, Alpine, and Fedora tests cover both forged paths, enterprise-root preservation, and undo.
  • Explicit LF, CRLF, and mixed-line-ending preservation tests.
  • Interactive navigation and headless guidance verified without executing remediation commands.

@fproulx-boostsecurity
fproulx-boostsecurity merged commit 0bcb034 into main Oct 23, 2026
5 checks passed
@fproulx-boostsecurity
fproulx-boostsecurity deleted the feat/emergency-trust-repair branch October 23, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant