Skip to content

Updater zip alerts (#74–#76): signature-gated today; clearing them needs tauri ≥ 2.12 #6377

Open

Description

@BunsDev

lane: reliability
state: needs-device
owner: unassigned
unit: delivered in #6382 (merged)
blocked-by: #5981
clears-when: Windows updater install drill passes on the acceptance VM
next: Run the Windows updater install drill on the acceptance VM (#5981).
updated: 2026-11-12

Alerts

Alert Severity Advisory Affected
#74 critical GHSA-m665-v7pm-7grj, "Zip Cloaking" dual-header parser differential leading to file overwrite zip <= 9.0.4
#75 high unbounded symlink-target handling during extraction zip < 9.0.0
#76 medium AES entry HMAC bypass on premature EOF zip < 9.0.0

src-tauri/Cargo.lock resolves zip 4.6.1. Its only dependent is tauri-plugin-updater 2.10.1, which uses it as an optional, cfg(target_os = "windows") dependency.

Upgrade path

Every tauri-plugin-updater release up to 2.14.0 requires zip ^4. 2.14.1 (2026-10-28) is the first to require zip ^9, which resolves to ≥ 9.0.5. It also requires tauri ^2.12, while Cave pins tauri = "2.11.2". Clearing these alerts by upgrade therefore means a tauri 2.11 → 2.12+ platform upgrade: the Rust crates plus @tauri-apps/api, @tauri-apps/cli and @tauri-apps/plugin-*.

Reachability proof (tauri-plugin-updater 2.10.1 source)

  1. Update::download (src/updater.rs:652-714) reads the full body, then calls verify_signature(&buffer, &self.signature, &self.config.pubkey)? (line 712). This is a minisign check against the app's built-in public key, and it fails closed with ?.
  2. Cave's frontend calls update.download() and then update.install() (src/lib/native-update-preparation.ts:37, src/components/update-available.tsx:137). It never calls downloadAndInstall or passes its own bytes.
  3. The download command (src/commands.rs:98-137) stores the verified buffer as a DownloadedBytes resource. The install command (src/commands.rs:141-151) accepts only a DownloadedBytes resource ID. The webview cannot create a resource of that type with its own bytes.
  4. extract_zip (src/updater.rs:899-904) is the only zip::ZipArchive use, and it is reached only through install_inner → extract on Windows.

Conclusion: zip only parses archives signed with the Tauri updater private key. Anyone who can produce such an archive can already ship arbitrary code through the updater, so the zip parser bugs add no capability. The residual risk is a future Cave change that installs unverified bytes.

Options (needs the owner's decision)

Owner: Claude Code session, security-backlog goal

Activity

  1. BunsDev commented on Nov 2, 2026

    @BunsDev
    MemberAuthor

    Owner decision (2026-11-02): upgrade, rather than dismissing the alerts. Work is in deps/issue-6377-tauri-updater-zip, worktree .worktrees/issue-6377-tauri-updater, starting from 95f8070ed.

  2. moved this from Todo to Started in Caveon Nov 2, 2026
  3. added a commit that references this issue on Nov 2, 2026
  4. BunsDev commented on Nov 4, 2026

    @BunsDev
    MemberAuthor

    Project alignment: parallel security lane with a release gate

    The owner's 2026-11-02 upgrade decision supersedes the undecided-options framing in the original body. Continue PR #6382 in the recorded deps/issue-6377-tauri-updater-zip unit; do not revisit dismissal or create a second upgrade. This is a separate security outcome alongside #6359, not a reason to expand that goal into a platform release.

    Primary delivery gate: exact-head hosted qualification, especially Windows compilation and updater teardown/recovery. Next step: the existing security owner reconciles the upgrade with baseline repair #6383/#6384, then qualifies the final head through the protected path. Preserve PR #6382's explicit pre-stable-release requirement for a signed candidate and end-to-end macOS/Windows updater installation. Source checks or a merge do not establish that native acceptance; no release/tag authority is added here.

    Acting agent: Codex, GitHub planning maintenance requested by Val. This is a recorded-only continuation recommendation, not an execution claim or owner acknowledgement. Existing owners, human decisions, original acceptance criteria and worktrees remain authoritative. GitHub issue/PR inventory and paginated comments were inspected; private Board execution liveness is unknown. Project membership was read, but the returned item payload exposes Title only, so current Status is not asserted. Use Todo while waiting and Started only during confirmed active execution.

  5. BunsDev commented on Nov 8, 2026

    @BunsDev
    MemberAuthor

    Delivered through protected PR #6382: exact head 9d5347989e18523beba20d17c79428a04c92888f, squash 4dcdf118465e5013532e45557bde05c3afd452f8. This issue stays open for the signed RC below.

    Checks on that head

    First failures, kept on record. Earlier attempts failed during GitHub's "Increase in timeouts for some unauthenticated users" incident on 2026-11-08: 504 and connection errors downloading the WebRTC framework for both iOS jobs, 504s on the Research tarball in E2E shard 4, whose Research Desk tests then failed until the job was cancelled at its 60-minute limit, and Frontend build then failed on those prerequisites. A Copilot partial re-run passed shard 4 and iOS build, but the final gate correctly refused the carried-forward evidence.

    Analyze (javascript-typescript) failed with a 504 downloading the CodeQL bundle, and that run cannot be retried. It is advisory, so it is not evidence of a clean scan on this head. The next CodeQL run on main is what covers it.

    Owner decision (2026-11-08): merge once green, with the RC after. The goal's "RC before merge" order is not possible, because release-candidate.yml only accepts a signed candidate already on main.

    Still required before the next stable release: an owner-signed RC tag, and an end-to-end updater install on macOS and Windows with signature verification passing. Merged source and hosted checks do not establish this. It is what closes this issue.

  6. BunsDev commented on Nov 8, 2026

    @BunsDev
    MemberAuthor

    Correction to my delivery comment above, and to PR #6382's "RC before the next stable release" section. A signed RC tag cannot show an updater install end to end.

    • release-candidate.yml has two jobs, provenance and full-validation. It builds no installer and publishes no updater manifest.
    • release.yml excludes -rc tags (!v*.*.*-*), so only a final tag produces signed installers and latest.json.

    An RC is still required to promote a stable release, but it gives validation evidence only.

    What is actually unproven. The new client (tauri-plugin-updater 2.14.1, minisign-verify 0.3, zip 9.2.2) has not yet installed a real update. v0.5.20 installs still run the old client, so updating to the next stable exercises only the old client against new artifacts. The new client first runs when that next stable updates to the one after it. A client defect would therefore show up only after it had shipped, and could leave those installs needing a manual reinstall.

    Status at 4dcdf1184: 0 open code-scanning alerts, 0 open Dependabot alerts (#74, #75 and #76 fixed on merge), main CI and all five CodeQL analyses green. This issue stays open until the owner chooses how to prove the install.

  7. BunsDev commented on Nov 8, 2026

    @BunsDev
    MemberAuthor

    Claim: local macOS updater install drill. Owner chose this on 2026-11-08 as the proof for the new updater client. Acting session: Claude Code for the owner, on the security goal. No familiar identity is asserted.

    Scope: two builds of 4dcdf1184 at versions 0.5.90 and 0.5.91, in a disposable clone outside .worktrees, so no worktree is registered. The updater tarball is made and signed with the same commands scripts/release.sh uses, but with a throwaway key and a loopback latest.json. A tampered-signature case runs first, then the real update.

    Isolation: bundle identifier ai.opencoven.cave.updaterdrill, a temporary HOME, and port 3377. The ai.opencoven.cave LaunchAgent and Tailscale serve paths are gated on the exact production identifier, so the drill cannot reach them. No production key, tag or release is involved, and nothing from the clone is pushed.

  8. BunsDev commented on Nov 8, 2026

    @BunsDev
    MemberAuthor

    macOS updater install drill: passed. Run 2026-11-08 on macOS arm64, from 4dcdf118465e5013532e45557bde05c3afd452f8, by the owner's choice recorded above. It covers the new client (tauri-plugin-updater 2.14.1, minisign-verify 0.3.0, zip 9.2.2). The server log shows the client's user agent as tauri-plugin-updater/2.14.1 in every case.

    Case Result Evidence
    Signature from a different key Refused The signature was created with a different key than the one provided; bundle stayed 0.5.90
    One byte flipped in the tarball Refused The signature verification failed; bundle stayed 0.5.90
    Real update, 0.5.90 to 0.5.91 Installed and relaunched Clicked the real banner: "Update v0.5.91 is verified and ready", then "Restart & install". The process changed from PID 28133 to 28497

    After the update: the running process's executable inode matched the new bundle's. diff -rq against the 0.5.91 build found 0 differences, codesign --verify --deep --strict passed, there were no ._* entries (the v0.0.167 "app is damaged" regression), and the new client's next check offered no further update.

    Signature compatibility, using the same decode and verify calls as the plugin:

    Verifier Input Result
    New 0.3.0 Real v0.5.20 darwin-aarch64 artifact, production signature and pinned key Accept
    Old 0.2.5 (control) Same production artifact Accept
    Old 0.2.5, as in v0.5.20 installs Signature from CLI 2.12.4 Accept
    New 0.3.0 Signature from CLI 2.12.4 Accept
    New 0.3.0 Production artifact with one flipped byte Reject

    Where this differs from a production update

    • Ad-hoc code signing, not Developer ID and notarization, so Gatekeeper and quarantine were not exercised.
    • A throwaway updater key and a loopback latest.json over HTTP (dangerousInsecureTransportProtocol), not GitHub's HTTPS redirect. Verifying the real production signature, in the table above, covers only the key and signature, not the transport.
    • Two local patches in the disposable clone: the COVEN_CAVE_DEV_INIT_SCRIPT hook was enabled in release builds so a script could click the buttons, and scripts/sidecar-bundle.sh was changed to copy patches/, without which the bundle does not build at this commit.
    • The full updater path was not run on Windows, or from an installed v0.5.20 to the new artifacts. For the old client, only signature verification was tested.

    Isolation: the installed app's PIDs (772, 1493, 5210), its LaunchAgent, port 3020 and its plist hash were identical before and after. The clone, keys, temporary home and the ~/Library folders named for the drill's bundle ID are removed.

    Still open: a Windows install drill on the acceptance VM (#5981), which is the remaining part of this issue's macOS and Windows requirement. Hosted Windows native tests passed on the #6382 head.

  9. BunsDev commented on Nov 8, 2026

    @BunsDev
    MemberAuthor

    Owner decision, 2026-11-08 (via Claude Code session): the local macOS drill recorded above replaces the security goal's criterion that an RC install an update before the updater change merges.

    Why: #6382 had already merged on the owner's instruction, and RC runs build no installer or latest.json, so that criterion can no longer be met as written.

    The limits in the drill receipt still apply: ad-hoc signing, a throwaway key, loopback HTTP, macOS arm64 only. The first production-signed run of the new client is still the next stable release updating to the one after it.

    Remaining on this issue: a Windows install on the acceptance VM (#5981).

  10. added
    lane:reliability
    state:needs-device
    on Nov 12, 2026
  11. BunsDev commented on Nov 12, 2026

    @BunsDev
    MemberAuthor
    Archived goals block from 5 November 2026, replaced by the compact work block at the top of this issue

    Current goals — 5 November 2026

    Plan: Smaller Cave MVP #6396 and the 4 November path-forward Revision 3, reconciled with newer repository/owner evidence. This block supersedes earlier planning checkpoints and resumption prompts where stale; original scope, acceptance criteria, human decisions and ownership below remain in force. #6396 is not a blanket start dependency. GitHub Issues remain the queue; historical Bead wording is not current workflow.

    Routing: Keep; upgrade chosen. Lane: reliability.

    Responsible owner: Existing security owner; #6382; GitHub: unassigned.

    Evidence to resume from: Latest issue checkpoint.

    Next step: Continue the approved upgrade, exact-head Windows/updater qualification and signed-candidate macOS/Windows install before stable release; do not revert to alert dismissal.

    Long-running goal prompt

    Work toward completing OpenCoven/coven-cave#6377 — Updater zip alerts (#74–#76): signature-gated today; clearing them needs tauri ≥ 2.12.
    
    Finish the approved Tauri/updater upgrade through existing #6382 to clear zip alerts #74–#76, preserving signature and supply-chain gates. Qualify the Windows pre-exit teardown/recovery paths as well as macOS checks, then validate signed RC updates end to end on macOS and Windows before the next stable release. Preserve rollback metadata and verify alert closure from the delivered dependency graph; do not substitute dismissal.
    
    Read this issue's full original criteria, newer comments, linked PRs and repository AGENTS/work-continuity first. Preserve current owners and their work; continue authorized ready slices and checkpoint exact source/artifact, evidence, remaining criteria, blocker and next action here. Honor existing human decisions and operation-specific authority; this saved prompt is not an execution lease. Complete required regression/acceptance gates, preserving first failures, retries, skips and unsupported rows.
    

    Follow-up prompt

    Continue OpenCoven/coven-cave#6377 from its latest durable checkpoint, refreshing current owner, decisions, PR head and artifact identities first.
    
    Refresh #6382's exact head, review and Windows results. Complete the first missing updater failure/relaunch proof, then prepare the signed-main RC acceptance packet for the release owner. Keep merge, RC install, stable release and alert-disposition receipts separate.
    
    Advance the next unblocked authorized slice; if blocked, record the exact clearing condition, responsible actor and one imperative next step. Report delivered versus locally/hosted/package/device-verified evidence separately. Do not reset completed work or infer permission from an older prompt.
    

    Maintenance scope: Codex for Val, issue-goal update only; no familiar identity, owner takeover or runtime claim. Preserve original priorities, dependencies and current authorizations. Private execution liveness and Project fields were not inspected or changed.

  12. added a commit that references this issue on Nov 12, 2026
  13. BunsDev commented on Nov 16, 2026

    @BunsDev
    MemberAuthor

    Long-running goal prompt

    Work toward completing #6377. Read AGENTS.md, work-continuity, the complete original criteria and newest owner checkpoint first; refresh current main, ownership, linked PR heads and blockers. Finish the remaining Windows updater-install acceptance of the Tauri/updater upgrade already delivered in #6382. Preserve the signature-before-extraction contract and the accepted macOS drill’s explicit ad-hoc-signing/throwaway-key/loopback limits; the owner already replaced the impossible pre-merge RC criterion. On the authorized #5981 Windows environment, prove wrong-key/tampered refusal and a valid install/relaunch with exact artifacts and retained runtime/recovery state. Do not repeat the upgrade, dismiss alerts automatically or claim macOS tarball evidence covers Windows zip extraction. Preserve first failures, retries, skips and unsupported rows. Use existing scope-specific authority; close only when every original criterion is proven or explicitly dispositioned by its responsible owner.

    Follow-up prompt

    Continue #6377 from the latest verified checkpoint without restarting completed work. Refresh #5981’s actual acceptance VM and operator access, nominate the current signed candidate tuple, and run the remaining Windows updater drill through the existing owner. Record signature, extraction, install/restart and old-client compatibility boundaries. If the Windows environment is unavailable, leave that exact blocker rather than substituting host tests or another macOS drill. Record the exact source/artifact, new evidence, remaining gate, responsible actor and one imperative next step on this issue.

    Evidence to refresh: Issue and latest checkpoint.

    Planning scope: This is a suggested continuation of the canonical issue, not an execution claim or new approval. Existing owners, human decisions and acceptance criteria remain authoritative. GitHub issues, paginated comments/relations, open PRs and Cave Project 9 were checked against main 2d6fda4ed0c5; private execution liveness remains unverified.

  14. self-assigned this
    on Nov 16, 2026
  15. moved this from Started to Todo in Caveon Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

lane:reliabilitystate:needs-device

Type

No type

Projects

  • Status
    Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions