verify_ledger_live_codesign
Verifies the digital signature of the installed Ledger Live binary to confirm it is genuine and not tampered with. Supports macOS, Windows, and Linux.
Instructions
READ-ONLY codesign verification of the on-disk Ledger Live binary (issue #325 P4). Per-platform: macOS uses codesign --verify --deep --strict + Apple Team ID match; Windows uses PowerShell Get-AuthenticodeSignature + Subject substring match; Linux verifies the AppImage's embedded PGP signature is present (full key fingerprint pinning is a follow-up). Defaults to the platform's canonical install path; pass binaryPath to override (REQUIRED on Linux — no canonical AppImage location). Returns: verified (signature valid + matches Ledger), mismatch (signed by someone else — likely self-built / dev Ledger Live or a tampered binary), invalid (signature failed verification), not-found (no install at the expected path), platform-not-supported (Linux flatpak/snap/dpkg or unknown OS), tool-missing (codesign / powershell unavailable), error. NEVER refuses signing — surfaces the verdict for the agent to relay. Run after first install / Ledger Live update / OS update. Codesign tools take 100s of ms so this is NOT auto-fired on every signing call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| binaryPath | No | Absolute path to the Ledger Live binary or app bundle. Optional on macOS / Windows (defaults to canonical install path). REQUIRED on Linux — pass the absolute path to your downloaded AppImage. flatpak / snap / dpkg installs aren't supported by this check; use your package manager's verify command instead. |