Skip to content

fix(security): keep MCP settings out of backups, speech on the Mac, safe uninstaller paths - #53

Merged
Quost merged 1 commit into
mainfrom
fix/security-backup-speech-uninstaller
Nov 24, 2026
Merged

Quost merged 1 commit into
mainfrom
fix/security-backup-speech-uninstaller

Conversation

@Quost

@Quost Quost commented Nov 23, 2026

Copy link
Copy Markdown
Owner

What changes

Three privacy and safety fixes from the codebase audit.

1. Backups no longer carry the MCP server settings or its key. A .menew backup used to export and restore every setting, including mcp.http.token, mcp.http and the MCP source toggles. Someone could share a "my Menew setup" backup, and restoring it would turn on the loopback MCP HTTP server with a key the author knows, with clipboard history readable. Now every mcp.* key and the opt-in Claude plan-limits fetch (agents.claudePlan) are never exported and never restored (Backup.sensitive). Other preferences, including ignored apps and "ignore passwords", still travel with the backup.

2. Speech recognition always stays on the Mac. On the pre-macOS 26 paths, requiresOnDeviceRecognition was only set when the language had an on-device model. For other languages, audio went to Apple's servers, against the microphone prompt ("Audio stays on your Mac and is never sent") and the README. Now it is always required:

  • Transcribing a file in a language without an on-device model fails with a message that says how to download the language (System Settings › Keyboard › Dictation).
  • Live captions show the same message in their panel.
  • The macOS 26 SpeechTranscriber path was already on-device and is unchanged.

3. The uninstaller can't be tricked into trashing other folders. Leftover paths were built from the dropped app's own CFBundleName and bundle id without checks. An app named ../../Documents would have listed ~/Documents as a pre-selected leftover. A 1-character bundle id matched almost everything in Preferences, LaunchAgents and Group Containers. Now:

  • Names with /, \ or .., or shorter than 4 characters, are ignored.
  • The id must look like com.company.app.
  • Every candidate path must stay inside ~/Library after normalization.
  • New UninstallerTests cover these cases.

Notes for review

  • Written on a machine that can't build Swift. CI is the first compile.
  • Recordings that fail to transcribe in an unsupported language still show their existing generic error. Only the shelf transcription and live captions show the new message.
  • One new UI string with en/de/es/zh (check-l10n.py passes). CHANGELOG is left for the release.

Checklist

  • Builds with ./build.sh and I tried the change in the app. (CI builds it)
  • swift test passes, with new tests for the uninstaller path checks (CI)
  • Every new UI string uses L("…") with en, de, es and zh
  • No telemetry, no new network calls and no new dependencies (this removes one: the speech fallback to Apple's servers)

🤖 Generated with Claude Code

…afe uninstaller paths

- Backup: never export or restore mcp.* keys or the Claude plan-limits opt-in.
- Speech: always require on-device recognition; show a clear message when the language has no local
  model.
- Uninstaller: validate app name/id before building paths, keep leftovers inside ~/Library, add
  tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Quost
Quost force-pushed the fix/security-backup-speech-uninstaller branch from b5f7387 to 8581cfc Compare November 24, 2026 00:56
@Quost
Quost merged commit 140fad9 into main Nov 24, 2026
12 checks passed
@Quost
Quost deleted the fix/security-backup-speech-uninstaller branch November 24, 2026 04:42
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