Mac Dev Toolchain Security

For people who install code for a living. The 10-minute checklist hardens the Mac — this covers what runs on top of it.

Pick one install guard

Three tools block malicious packages at install time. Same job, different coverage — don't run two.

Registry only All three see registry traffic — not tarballs, git clone, or curl | sh.

Editor extensions

Extensions run arbitrary code with your permissions and auto-update silently. No extensible editor? Skip this section — there's no surface to audit.

  1. Run code --list-extensions and remove what you don't use. No code? Enable it via Command Palette → "Shell Command: Install 'code' command in PATH", or list the folder directly: ls ~/.vscode/extensions — Cursor uses ~/.cursor/extensions, JetBrains add-ons live under ~/Library/Application Support/JetBrains/.
  2. Install only from the in-app Marketplace. Never a linked .vsix.
  3. Check: verified publisher, plausible install count, repo link that resolves.
  4. Cursor/VSCodium pull from Open VSX — thinner review, so check the publisher name twice.

Brew over .dmg

CI runners

Five-minute audit

  1. If you run an extensible editor: code --list-extensions or ls ~/.vscode/extensions — extensions are installed software. Skip if you don't.
  2. List: brew list --cask — forgotten casks still auto-update from their original CDN.
  3. Check npm config list — registry must be https://registry.npmjs.org/; anything else resolves your installs somewhere else.
  4. Search git config --global --list | grep -i url — an insteadOf you didn't add redirects clones through someone else's mirror.

The ceiling: disposable devboxes

Every tool above guards a machine that persists. The ceiling is structural: run the toolchain in a single-use box with nothing to steal. A bad install inside dies with the box — no keys, no sessions, no path to your network.

What it doesn't do: warn you. It only limits the damage. Credentials you bring inside (SSH agent, mounted repo, live tokens) are exposed while the box lives, and a dep that looked clean still ships if you push it. Hosted, it costs ~$5–20/mo plus remote latency.

Won't stop