# storytold/craft-launcher — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `dev`
- Overall score: `3.8/5`
- Implementation check: `verified`
- Maturity: `early`
- Audited commit: `4c819edd164c` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-11-30T12:43:25Z
- Repository: https://github.com/storytold/craft-launcher
- Radar entry: https://radar.alplab.co/#repo/storytold/craft-launcher
- License: `Apache-2.0`
- CI workflows: `.github/workflows`
- Tags: `rust`, `egui`, `installer`, `updater`, `github-releases`, `wasm`

## Summary

Native Rust/egui desktop launcher (plus a WASM web build) that installs, SHA-256-verifies, updates and launches the ArtCraft 'Craft App Suite' from pinned GitHub releases, with a self-update path and optional MCP/AI-agent wiring.

## Implementation Check

Code backs the README: catalog + release parsing in crates/core (catalog.toml, release.rs), checksum-verified downloads and per-OS installers in crates/native/src/install.rs, self-update in self_update.rs, MCP client config in agents.rs/mcp_config.rs; no scaffold found.

## When to Use

Reach for it if you use the Craft App Suite and want one installer/updater across macOS/Windows/Linux/FreeBSD; not for installing anything outside that suite, and hold off on Windows batch downgrades until the elevated-PowerShell route is gone.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.5/5 |
| usability | 4.0/5 |
| reliability | 3.0/5 |
| security | 3.5/5 |
| integration | 4.0/5 |

## Code Evidence

install.rs download() refuses any release that publishes no checksum before fetching (#90); http.rs implements resume-with-range, re-hash on mismatch, decoded-size caps against gzip bombs (CWE-409), and bearer-token requests pinned to api.github.com on a no-redirect agent; msi_batch.rs hold() re-hashes and write-locks the MSI against a swap between check and elevated install (CWE-367); macos_verify.rs verifies codesign signature, catalog-pinned team/bundle-id and notarization and fails closed; docs/incident-2026-10-windows-antivirus.md shows an honest postmortem with revert (#1077); CI (.github/workflows/ci.yml) runs fmt/clippy -D warnings/tests/wasm on ubuntu+windows, with release, freebsd and windows-arm64 workflows and large test suites (ui.rs 223KB, per-language i18n tests).

## Issues Found

crates/native/src/install.rs (downgrade_elevated, ~line 2427) still runs powershell.exe with -EncodedCommand for all-users MSI downgrades — the exact pattern the repo's own incident doc says triggers behavioural antivirus and pledges to avoid; docs/incident-2026-10-windows-antivirus.md lists it 'Still open' alongside the missing confirmation test.

## Key Risks

Early alpha (README says so; latest release v0.19.2, no stable release yet). Nothing was executed here, so install/update behavior is unverified despite strong unit/fixture tests. The Windows antivirus incident is real: hidden elevated PowerShell with -EncodedCommand during 'Update all' drew a behavioural Kaspersky Trojan detection in v0.10-v0.11; per docs/incident-2026-10-windows-antivirus.md the revert had shipped in no release at doc time, the all-users downgrade route still uses the same pattern, and the promised on-VM antivirus confirmation test has not been run. Dependencies on storytold/craft-libs and an egui/winit fork are git rev-pins (trusted-org supply chain, not crates.io).

## Reviewed Files

- `README.md`
- `Cargo.toml`
- `AGENTS.md`
- `.github/workflows/ci.yml`
- `crates/core/src/lib.rs`
- `crates/core/src/mcp_config.rs`
- `crates/native/src/lib.rs`
- `crates/native/src/install.rs`
- `crates/native/src/install/msi_batch.rs`
- `crates/native/src/install/macos_verify.rs`
- `crates/native/src/http.rs`
- `crates/native/src/self_update.rs`
- `crates/native/src/agents.rs`
- `apps/craft-ai-mcp/Cargo.toml`
- `docs/incident-2026-10-windows-antivirus.md`
