Skip to content

Security: LJASP-studio/Cumba

SECURITY.md

Security Policy

Cumba runs a local WebSocket server on 127.0.0.1 for its Chrome extension and receives Claude Code and Codex hook events on a private socket, so security reports are taken seriously.

Reporting a vulnerability

Please do not open a public issue. Report it privately through GitHub instead:

  1. Go to the Security tab of this repository.
  2. Click Report a vulnerability, or open a new advisory directly.

Please include the app version, your macOS version and steps to reproduce. Never include real tokens, Claude Code payloads or personal file paths.

This is a personal project maintained in spare time. You can expect an initial response within a week. Fixes ship in the next release and the advisory is published once a fix is available.

Scope

Reports are especially welcome for:

  • The local server: binding, token checks, origin checks, CORS
  • The Claude Code and Codex hook integration and the permission flow
  • Token storage in the Keychain
  • The Chrome extension and its WebSocket connection
  • Changes the app makes to ~/.claude/settings.json and ~/.codex/hooks.json

Threat model

What Cumba defends against:

  • Nothing listens unless you use it. The extension server starts only after you turn on the YouTube extension connection, and the hook socket only while Claude Code or Codex hooks are installed.
  • Web pages can't reach the local server: the extension socket requires our extension's exact Origin and a loopback Host header (DNS rebinding), and no CORS headers are sent.
  • Private APIs are narrow and isolated. Two private frameworks are used, only where macOS has no public API: MediaRemote for the system's Now Playing and DisplayServices for the built-in display's brightness. MediaRemote answers only Apple's programs, so a helper library from the signed app bundle (source) runs inside /usr/bin/perl with an empty environment (no PERL5OPT or PERL5LIB). It reads Now Playing, forwards play, pause, skip and seek, opens no files or connections, and exits when its stdin closes. If either framework stops working, Cumba falls back to public APIs.
  • Optional features stay off. Script activities, the media key tap, the microphone/camera indicator and Clipboard History's screenshot folder watch start only after you turn them on. The key tap asks only for media key events (NX_SYSDEFINED: volume and brightness), not keystrokes. Script activities are text only, escaped and never clickable.
  • Hooks name the app they run in (X-Cumba-App, from __CFBundleIdentifier) so a notification's Open button can bring it forward. Only bundle-identifier characters are accepted, and Cumba only activates an app that's already running; it never launches one.
  • Separate tokens. The hooks, the extension and script activities each have their own 256-bit token in the Keychain. The hook token is written into ~/.claude/settings.json and ~/.codex/hooks.json (which other local accounts may be able to read), but it only opens the private socket, never the extension's TCP port.
  • Other users on the same Mac and sandboxed apps can't answer Claude Code in Cumba's place: hooks go through a Unix socket in a folder only your account can open, not through a TCP port that someone else could take while the app is closed.
  • A misleading permission request (prompt-injected text that hides part of a command) is shown in full with hidden characters made visible; suspicious requests get no Allow button, and buttons arm only after the request has been on screen briefly. Allow in the notch approves the tool call just like Allow in Claude Code, so Settings can limit it to everything except shell commands or turn it off. The limit is enforced where the answer is sent, not only by hiding the button.
  • Changes to ~/.claude/settings.json and ~/.codex/hooks.json happen only after you review a diff; a private backup is made, unreadable files are never overwritten, a file that changed in any byte since the review isn't written, and only Cumba's own entries are removed. If saving will also reformat the file (sorted keys, standard indentation), the review says so.

Out of scope: malware already running as your user. It can read your files, the Keychain prompt aside, and edit ~/.claude/settings.json directly.

Known limits:

  • Releases are signed ad hoc, not with an Apple Developer ID, and aren't notarized. macOS can't tie an update to a developer identity, so it asks again for permissions and Keychain access after each update. Check the download (below) before allowing.
  • The HTTP library has no caps on headers, WebSocket frame size or connection count, so a local process can make the extension server use memory or file descriptors before authenticating. The server restarts after such failures.

How releases are built

A release is built only by the release workflow when a v* tag is pushed. The build job has read-only access; it installs a pinned, checksummed XcodeGen, builds on a GitHub-hosted macOS runner, signs ad hoc with the entitlements in the repo, and packages a .dmg, a .zip, the Chrome extension and SHA256SUMS.txt. A separate publish job runs no build tools: it creates the provenance attestation and the GitHub release. All actions are pinned to commit SHAs, and the repository allows only GitHub-owned actions.

Verifying downloads

Every release lists SHA-256 checksums:

shasum -a 256 Cumba-vX.Y.Z.dmg

From 1.1.0 on, releases are immutable and carry signed build provenance, which ties the file to this repository, the tagged commit and the workflow run:

gh attestation verify Cumba-vX.Y.Z.dmg --repo LJASP-studio/Cumba

1.1.0 was built before the repository moved to LJASP-studio, so check it with --owner muazfurkan instead of --repo.

If a check fails, don't open the app, and please report it privately. To avoid trusting a prebuilt binary at all, build from source.

Reviewing the code

The security-relevant code is small. Start here:

Area Files
Local servers, tokens Cumba/Server/ (LocalServer, RequestGuard, MediaSocket, MediaSocketServer, TokenStore, ScriptActivityRoute)
Media key tap, brightness, microphone/camera indicator Cumba/System/
System Now Playing helper (private MediaRemote) NowPlayingHelper/, Cumba/Resources/now-playing.pl, Cumba/Media/Providers/SystemNowPlayingProvider.swift
Claude Code and Codex hooks, permission flow, transcript reading Cumba/Claude/ (ClaudeHookRoute, PermissionBroker, NotchApprovals, SafeText, HookInstaller, AgentProgress)
Permission card Cumba/Widgets/ClaudeCode/ClaudeCodeWidget.swift (PermissionCard)
AppleScript Cumba/Media/AppleScriptRunner.swift, Cumba/Media/Providers/, Cumba/Widgets/Notes/AppleNotes.swift
Network requests Cumba/Widgets/Media/ArtworkCache.swift, Cumba/Widgets/Weather/WeatherService.swift, Cumba/Widgets/Weather/LocationProvider.swift (Apple Maps), Cumba/App/Updates/UpdateChecker.swift
Chrome extension extensions/chrome/
Entitlements, Info.plist Cumba/Resources/, project.yml
Release pipeline .github/workflows/release.yml

The only third-party dependency is FlyingFox (MIT), pinned to a commit in project.yml. It serves only the private hook socket, which only your user account can open; the extension's port, which web pages can reach too, runs on Apple's Network framework.

Supported versions

Only the latest release receives security fixes.

There aren't any published security advisories