
Tsuba
A macOS menu bar app that checks unfamiliar code before it runs for the first time
Description
A recruiter sends a take-home project to clone and run, a meeting invite comes with Zeff-Meeting.dmg, a web tutorial asks you to paste
Tsuba guards the moment unfamiliar code first runs. It works out what the code is about to do, where it came from and whether it looks like a known attack, then decides to Allow, Warn or Block, showing the file, line and rule behind every verdict.
Pasting into the terminal: warns the moment you paste, and flags base64-obfuscated commands piped into a shell as high risk.
Downloads folder: new .dmg, .pkg and .vsix files are mounted read-only and checked for signature, notarization, source and install scripts.
Editor extensions: new or updated extensions in VS Code, Cursor, Windsurf and VSCodium, with high-risk ones quarantined automatically.
AI coding tools: MCP servers, skills and plugin hooks for Claude Code, Cursor, Codex and others, checked against malicious lists, for the secrets they receive and for hidden instructions aimed at the AI.
Code under check is parsed, never run. Warnings land quietly in history; only a Block plays a sound. Confirmed false alarms can be marked safe and are rechecked if the content changes.
Requires macOS 13 or later, with builds for Apple silicon and Intel. Builds are not yet signed or notarized, so the first launch needs Open Anyway under System Settings → Privacy & Security. Licensed under Apache-2.0.
curl … | bash into the terminal. These attacks change their packaging every time and lean on ordinary tools like node, curl and bash, so traditional antivirus rarely flags them.Tsuba guards the moment unfamiliar code first runs. It works out what the code is about to do, where it came from and whether it looks like a known attack, then decides to Allow, Warn or Block, showing the file, line and rule behind every verdict.
Where it steps in
Terminal commands:curl | bash, npm install, npx, git clone, code . and more. It downloads remote scripts without running them, checks an npm package's age and install scripts, and scans project source for hidden code, hard-coded C2 addresses, wallet and password-store reads, and VS Code tasks that auto-run when a folder opens.Pasting into the terminal: warns the moment you paste, and flags base64-obfuscated commands piped into a shell as high risk.
Downloads folder: new .dmg, .pkg and .vsix files are mounted read-only and checked for signature, notarization, source and install scripts.
Editor extensions: new or updated extensions in VS Code, Cursor, Windsurf and VSCodium, with high-risk ones quarantined automatically.
AI coding tools: MCP servers, skills and plugin hooks for Claude Code, Cursor, Codex and others, checked against malicious lists, for the secrets they receive and for hidden instructions aimed at the AI.
Rules first, then AI
Offline rules and threat intel always run first; AI then reads the evidence to cut false alarms, and it can never allow what the rules found high risk. It can use the Claude Code or Codex already signed in on your Mac, an API key from 20-odd providers, a local model via Ollama, or no model at all.Code under check is parsed, never run. Warnings land quietly in history; only a Block plays a sound. Confirmed false alarms can be marked safe and are rechecked if the content changes.
Requires macOS 13 or later, with builds for Apple silicon and Intel. Builds are not yet signed or notarized, so the first launch needs Open Anyway under System Settings → Privacy & Security. Licensed under Apache-2.0.

