Security & privacy

What it touches, and what it never does

Status: v1 design, pre-code — this document describes the policies the architecture in ARCHITECTURE.md is committed to, plus the privacy risks that remain even when those policies hold. Where something is a guarantee we intend to enforce mechanically, it says so. Where it's a known open risk, it says that instead — this file is not marketing copy. Owner: bhattacharjeenirjhar26@gmail.com Last updated: 2026-09-16

Everything mockingbird does is built around one sentence: your voice and your keystrokes never leave your machine. This document exists to make that claim checkable rather than trusted on faith, and to be honest about the privacy exposure that local-first design does not eliminate — a tool that listens to your microphone and types into every app you use has a large blast radius even with zero network calls.

Table of contents

  1. Threat model — what this defends against, and what it doesn't
  2. Data inventory — what mockingbird actually touches
  3. Network policy
  4. macOS permissions (TCC)
  5. At-rest storage & retention
  6. Process & trust boundaries
  7. Supply chain & install integrity
  8. Known privacy issues — open, unresolved
  9. Hardening roadmap
  10. Reporting a vulnerability

1. Threat model — what this defends against, and what it doesn't

In scope — this design defends against:

  • A remote party (the vendor, a cloud API, an analytics SDK) ever observing your audio, your dictated text, or the fact that you use mockingbird at all, during normal operation.
  • Network-based interception of dictation content — there is no dictation traffic on any network, local or remote, to intercept.
  • Silent background exfiltration introduced by a dependency — enforced by the "no dependency we didn't compile ourselves speaks HTTP outward" rule in §3.

Explicitly out of scope — this design does not defend against:

  • A local attacker with code execution as your user, or physical access to an unlocked/unencrypted Mac. Anyone who can run code as you can read ~/.mockingbird/data.db directly; mockingbird does not add a second lock on top of your OS account.
  • Malware already on the machine. whisper-server and llama-server bind to 127.0.0.1, but any other local process — including malware running as the same user — can also reach 127.0.0.1:8771/:8772. Loopback binding stops the network; it does not stop your own machine from talking to itself.
  • A compromised daemon. Because mockingbirdd holds Accessibility/Input Monitoring grants (see §4), a supply-chain compromise of the daemon binary itself would have near-total control: global keylogging and arbitrary keystroke injection into any app. This is the single highest-value target in the system, which is why §7 treats build/release integrity as a security control, not paperwork.
  • Root-level or kernel-level compromise, or a malicious OS update. Outside any userland tool's control.

If a threat isn't in the first list, treat it as present and unmitigated until it's explicitly closed.

2. Data inventory — what mockingbird actually touches

DataSensitivityWhere it livesPersisted?
Live microphone audioHigh — raw voiceRing buffer, daemon memoryNo (RAM only, 30s window, overwritten continuously)
Captured utterance audioHighPassed to whisper-server over loopback HTTPNot persisted unless the user opts in to audio_path retention (off by default)
Raw ASR transcriptHigh — often as sensitive as the audio itselfbun:sqlite, utterance.raw_textYes, indefinitely, no expiry by default
Final (LLM-cleaned) transcriptHighbun:sqlite, utterance.final_text, plus utterance_ftsYes, indefinitely
Which app you dictated intoMedium — behavioral/usage signalutterance.app_bundleYes
Per-stage latency timingsLowutterance.t_* columnsYes
User dictionary (names, jargon, codenames)Medium–High — can include proper nouns like client/project namesdictionary tableYes
Correction history (word pairs from fixes you made to a dictation, e.g. "near jar" → "Nirjhar")Medium — names and jargon, never the text around themcorrection tableYes, until mockingbird dictionary forget
Settings (hotkey binding, model choice)Lowsettings tableYes
Recordings you start (mockingbird record)High — whole conversations, and other people's voices~/.mockingbird/recordings/*.m4a (folder 0700)Yes, until you delete them
ASR/LLM model weightsNone (public model files)~/.mockingbird/models/Yes, on disk
LogsVariable — see §8~/.mockingbird/logs/Yes, rotated

The two lines that matter most: raw and final transcripts persist to an unencrypted SQLite file by default, forever, and audio is the one thing that does not persist by default. Anyone reasoning about "what could leak from this machine" should start from that table, not from the network story.

3. Network policy

This is the part of the design that's easiest to make into a hard, mechanical guarantee, per ARCHITECTURE.md §9:

  • No cloud ASR, no cloud LLM. Both run on-device, bound to 127.0.0.1.
  • No telemetry, no analytics, no crash reporting. If opt-in anonymous usage stats are ever added, they must be default-off, behind an explicit separate toggle — never folded into a general onboarding "accept".
  • No account, login, or license server — nothing to phone home to in the first place.
  • The only network call in the entire system is model download (mockingbird models pull), and it must always: be user-triggered, print the exact URL being fetched (Hugging Face / ggml repos), and never run silently in the background (this rules out silent auto-update checks too — see §16 of ARCHITECTURE.md).
  • mockingbird mcp hands text to an AI client, and the client decides where it goes (MCP.md). The server opens no port: the client starts it and talks over stdin/stdout. It runs only when the user has registered it with a client, and mockingbird itself still calls no model. But a transcript it returns to a client backed by a cloud model goes to that model's provider, as if the user had pasted it there. That's the user's choice in their own tool, not a network call mockingbird makes, and the docs say so where the server is set up. Its transcribe reads any file path the client passes; the client can already read those files itself.
  • The stack rule in ARCHITECTURE.md §3 is itself a security control: every dependency is either code we wrote (auditable) or a binary we fetch()/spawn()/load as a prebuilt module (opaque, but sandboxed to loopback-only HTTP or in-process calls we control the arguments to) — never source we compile from a language we can't easily audit ourselves.
  • Enforced, not just claimed: the release binary should request no outbound network entitlement beyond the explicit model-download path. lsof -i while dictating should show nothing outbound. This should eventually be a CI check (e.g. a network-namespace or sandbox-exec smoke test that asserts the daemon makes zero non-loopback connections during a scripted dictation run), not just a doc claim — tracked in §9.

4. macOS permissions (TCC)

mockingbird needs three TCC grants to function, and it's worth being blunt about what each one actually means:

PermissionWhy it's neededWhat it also grants
MicrophoneCapture audio for dictation, and system audio in mockingbird record (#94): reading the system-audio tap's device counts as microphone access, given NSAudioCaptureUsageDescription in mockingbird.appDuring a recording, everything the Mac plays, other people's voices on a call included. Dictation alone never opens the tap
AccessibilityType dictated text into the focused app (CGEventPost), and read the one character before the cursor there, to decide on a spaceBroad UI automation: the ability to synthesize any input into any app
Input MonitoringGlobal hotkey detection (CoreGraphics event tap via bun:ffi)System-wide keystroke observation — the same class of access a keylogger needs
macOS grants storage (which apps hold which TCC grants)—Lives in Apple's TCC database, not ours — see state ownership map, ARCHITECTURE.md §8

Input Monitoring in particular means the daemon could technically log every keystroke on the system, not just what it types itself. mockingbird's design intent is that it only ever acts on the hotkey and never records or persists other keystrokes — but this is a code-review and audit obligation, not something the OS permission model itself prevents. Anyone auditing this project for trust should start at packages/hotkey/src/event-tap.ts, the most security-sensitive file in the repo. As implemented today, that file:

  • creates the tap with kCGEventTapOptionDefault, which may drop events, and drops exactly one: R while Fn is held (Fn+R starts or stops a recording), so the focused app doesn't type it. Every other event passes through unmodified. Without Accessibility, which a blocking tap needs, it falls back to kCGEventTapOptionListenOnly and Fn+R types an "r" as well;
  • drops the keycode of every key except Fn, Esc, and R while Fn is held inside the tap callback, so no other key's identity is ever passed on, stored, or logged, and an "r" typed without Fn is as anonymous as any other key: the filter is one function (TapDecoder.decode), deliberately easy to verify;
  • reduces every other key press and every mouse click to a bare "input happened" with a timestamp and whether it was a key or a click, and no key, character, or position. A key press within 300ms of Fn is taken as part of the Fn tap; a click never is. The only use is deciding whether the text cursor may have moved since the last dictation (see below). Fn, the 🌐 key, and the key events mockingbird types itself (marked with TYPED_EVENT_MARK) don't count;
  • never records typed characters, only Fn/Esc/Fn+R identity and timing.

Typing into other apps (Accessibility) is the mirror image of that risk, and lives in packages/inject/src/typing.ts. As implemented today it:

  • types text as Unicode key events, so the clipboard is never read or written — nothing of yours is clobbered, and dictation doesn't end up in clipboard-history tools;
  • never presses Return. A dictated list is typed with line breaks, but each one is posted as Shift+Return, which chat apps (Slack, WhatsApp, Discord, Gmail) treat as a new line rather than "send". In a terminal, where any Return runs the command, line breaks are still flattened to spaces, and so are they in an editor with a terminal built in (VS Code, Cursor, Zed, JetBrains IDEs), since which pane has focus can't be seen (apps/daemon/src/session.ts passes lineBreaks only when mayRunCommands in packages/context says no). So dictation cannot send a half-finished message or run a command in any app on that list; a terminal it doesn't know, or one running in a browser tab, still takes Shift+Return as Return;
  • strips every other control character, so nothing else can act as a key;
  • strips other control codes, which could otherwise do stranger things to a terminal;
  • types only what the pipeline produced, into whichever app you had in front;
  • types a cleanup while the model is still writing it only as far as it is your own words, in the order you said them (verifiedPrefix in packages/llm/src/stream.ts). An answer, a translation, or a symbol the model adds stops it there, and the rest waits for the whole cleanup and acceptCleanup, as before. Text already typed is never deleted again: if the cleanup is then rejected, your transcript carries on from where the typed words stopped. Words the model left out of the typed part, at most five in a row, stay out. A terminal never gets text early;
  • reads one character of what's already in that app: the one just before the cursor (or before the selection), so a new sentence gets a space after the last one. packages/context/src/caret.ts asks for exactly that range through Accessibility (AXStringForRange, length 1), never the field's whole value. The character decides one space and is dropped; it's never logged, stored, or sent to the models, and mockingbird type --check reports only whether it could be read. Terminals are skipped, and so is any field that doesn't answer within 250ms;
  • where that character can't be read (Chrome pages, Google Docs, Electron apps), falls back to the last character of its own previous dictation into the same app, held in memory only, and only if no key was pressed and no mouse button clicked since. It learns that from its own Fn-key tap, which passes on only that some input happened, when, and whether it was a key or a click (above). macOS's own idle clock (CGEventSourceSecondsSinceLastEventType) was tried first and dropped: with it, double-tap dictations never got their space, which points to it counting a quick Fn tap as a key press;
  • stops mid-text when focus leaves the app you dictated into: typing asks a guard before every chunk, and apps/daemon/src/session.ts answers it by polling the frontmost app throughout. So a long dictation — hundreds of key events, with pauses — can't follow you into a chat window or a password field. What didn't get through is reported as undelivered, never as typed.

Both grants are checked before use (CGPreflightPostEventAccess, IOHIDCheckAccess) rather than assumed, and mockingbird degrades to printing in the terminal when they're missing.

Because these grants are broad, macOS's own permission prompts are the user's real control surface — mockingbird should never try to work around a denied grant (e.g. no fallback keylogging technique if Input Monitoring is refused; dictation should simply not function until granted).

The grants land on different programs depending on how you run it

TCC records a grant against the responsible process, not the file that called the API. For a command run from a terminal, responsibility resolves up to the terminal app — which is why mockingbird listen uses Ghostty's or Terminal's grants. Under launchd there is no such parent, so the agent's own executable becomes responsible.

mockingbird start therefore does not run the agent as bun. It builds ~/.mockingbird/bin/mockingbird.app, a small app bundle with a copy of the Bun binary as its executable, an Info.plist and the logo, signed ad-hoc as com.mockingbird.agent. The LaunchAgent runs mockingbird.app/Contents/MacOS/mockingbird. The grants land on the bundle, and four things follow:

  • The Privacy lists and Login Items show mockingbird's name and logo (#36). macOS takes both from the bundle; a bare executable only ever gets the generic icon. It's still labelled as from an unidentified developer, since only a paid Apple Developer ID changes that.

  • bun itself needs no permission. Had the agent run as /opt/homebrew/bin/bun, Accessibility and Input Monitoring on that binary would extend to every bun script for which bun is the responsible process: each one able to synthesize input into any app and observe every keystroke, with no way to scope the grant to mockingbird or revoke it for one script alone. A separately-named copy is a separate TCC client, so that does not happen. Anyone upgrading from an earlier build should remove bun from both Privacy lists.

  • The grants survive upgrades and edits. TCC keys the client by its bundle identifier plus, absent a signing identity, its cdhash. The bundle changes on neither brew upgrade bun (it is ours, not Homebrew's) nor a git pull (it is the runtime, not our TypeScript). mockingbird start rebuilds it only when the installed bun or the bundle itself has changed, and says so, because that is the one moment the grants need redoing. Moving from the old bare runner, ~/.mockingbird/bin/mockingbird, to the bundle is one of those moments: every install re-grants once, and the old entry can be removed from each list.

  • The checkout becomes security-critical. The binary executes apps/daemon/src/agent.ts from wherever mockingbird was installed, and it holds Accessibility. Anyone who can write to that directory, or to ~/.mockingbird/bin/, can type into any app as you and watch your keystrokes. bin/ is created 0700 and the plist 0600, but the checkout is on the user's own filesystem and this is worth stating plainly rather than implying 0700 settles it.

Compiling a genuine single binary (ARCHITECTURE §11) would be cleaner still, and was tried: bun build --compile embeds the onnxruntime-node addon but not the libonnxruntime.1.dylib it links against, so VAD fails to load at runtime. It also re-signs on every build, which would drop the grants each time. Both are tracked in §9.

5. At-rest storage & retention

  • Location: everything lives under ~/.mockingbird/ — data.db, models/, bin/, logs/, the Unix socket, and PID file. See the repository/state layout and state ownership map.
  • No encryption at rest, by default, in v1. bun:sqlite stores data.db as a plain SQLite file. Anyone with filesystem read access to your user account — another local process running as you, a stolen unencrypted laptop, a misconfigured backup — can open it with any SQLite client and read your full dictation history in plaintext. This is the single biggest gap between "no data leaves your machine" and "your data is actually protected," and it's tracked as the top item in §9.
  • Audio retention is opt-in and off by default. The audio_path column on utterance is nullable; nothing is written unless the user explicitly turns on retention (for debugging or building their own dictionary training set). This is the one piece of the inventory in §2 that defaults to not persisting.
  • Recordings are the one audio mockingbird keeps on purpose. mockingbird record starts one and mockingbird record stop ends it (#89). It's the microphone stream dictation already reads, mixed with everything the Mac plays (#94): on a call, that's the other people's voices too. It's encoded to ~/.mockingbird/recordings/<date>-<time>.m4a in a 0700 folder, and kept until you delete it: nothing expires or uploads it. Every start sets the folder to 0700, including one that already existed with looser permissions (Recordings.begin()), since mkdir leaves an existing folder as it was. A recording can't start silently: its start and stop sounds play even with MOCKINGBIRD_CUES=0, a reminder plays every 30 minutes, macOS shows its orange microphone dot, and mockingbird status says ● recording. It stops by itself after 3 hours (MOCKINGBIRD_RECORD_MAX_HOURS). Recording people without their consent is illegal in many places; the command says so when it starts.
  • Uninstalling deletes it. mockingbird uninstall removes ~/.mockingbird, data.db included, after one question. The dictionary gets its own: the default keeps a copy of the words, as plain text in ~/mockingbird-dictionary.txt, and only the words. Nothing else from data.db is copied out. Recordings get their own question too, and the default moves them to ~/mockingbird-recordings.
  • The Unix socket is 0600, not a TCP port — only your own user account can connect to it, and it's deleted on clean daemon shutdown.
  • Diagnostics export (mockingbird diagnostics export, still undesigned — see ARCHITECTURE.md known gaps) must bundle logs and config only. Audio and transcripts must never be included unless the user opts in per export — this is a hard requirement for that command's design, not a nice-to-have, since the natural failure mode of a "just attach everything" diagnostics bundle is pasting someone's dictation history into a public GitHub issue.
  • Logs can leak transcript content if the daemon ever logs raw pipeline data for debugging. This needs an explicit rule once logging is implemented: log stage timings, error codes, and model names freely; never log raw_text/final_text content at any log level above an explicitly opt-in "verbose debug" mode that warns the user before enabling it.
  • As implemented, the background agent's log holds no transcript. mockingbird start points launchd's StandardOutPath/StandardErrorPath at ~/.mockingbird/logs/agent.log (directory 0700, plist 0600). It records start-up, engine and permission state, errors, and the character count of each utterance with where it was delivered — never the words. The opt-in escape hatch named above is MOCKINGBIRD_LOG_TEXT=1, which adds the text and is off by default. The agent truncates the file at 1 MB on start, because launchd appends to it forever and never rotates it.

Learning from your corrections

When you fix a misheard word in something mockingbird typed, it reads the fix back and can add the word to the dictionary (#62). To do that it reads text in another app's field after you've edited it, so it keeps to these rules.

  • Only the dictation and a little around it. Right after typing it notes where the dictation starts and up to 30 characters either side, in memory. Later it reads that span again with up to 100 characters of slack, in case the text moved. It never asks the app for the whole field.
  • Only once you're done, and only if you touched it. That means some typing or clicking and then 5 seconds of quiet, or the start of the next dictation. With no input since the dictation, it reads nothing. It never records keystrokes. The event tap still reduces every key except Fn to a bare "input" event.
  • Only the same app. Every read after the first checks which process the focused field belongs to before reading anything from it, and stops if it isn't the app the dictation went into.
  • Never password fields (AXSecureTextField), terminals, or apps listed in MOCKINGBIRD_LEARN_EXCLUDE (bundle ids, comma separated).
  • Only word pairs are stored, with a count: never the text around them, and neither the pair nor the text is logged. The log says only that a word was learned.
  • No ordinary words. It never adds a word from the system word list, /usr/share/dict/words, so a fix like "great" → "grate" can't start rewriting every later "great".
  • Off with MOCKINGBIRD_LEARN=0. mockingbird dictionary lists learned words (marked # learned), mockingbird dictionary remove <word> drops one with its pairs, and mockingbird dictionary forget deletes every learned word and every pair.

It can't learn in apps that don't expose their text through Accessibility, such as Google Docs and many Electron apps.

6. Process & trust boundaries

flowchart LR
    subgraph Trusted["Trusted — our code, in-process"]
        DAEMON["mockingbirdd\nholds TCC grants"]
    end
    subgraph SemiTrusted["Semi-trusted — supervised subprocesses,\nnetwork-reachable on loopback only"]
        FF["ffmpeg"]
        WS["whisper-server :8771"]
        LS["llama-server / ollama :8772"]
    end
    subgraph LocalPeers["Any other process on this machine"]
        OTHER["could also reach\n127.0.0.1:8771/:8772"]
    end

    DAEMON <-->|stdout pipe| FF
    DAEMON <-->|HTTP, loopback| WS
    DAEMON <-->|HTTP, loopback| LS
    OTHER -.unmitigated.-> WS
    OTHER -.unmitigated.-> LS
  • The daemon is the only process holding TCC grants; the ASR/LLM servers never touch the microphone, Accessibility, or Input Monitoring APIs directly.
  • Loopback binding keeps whisper-server/llama-server off the network, but does not isolate them from other local processes — see §1. If this needs closing, the options are a shared-secret header on loopback requests or a Unix-socket transport for these servers too, matching the IPC socket's model — not yet decided, tracked in §9.
  • Model files are untrusted input to native code. A GGUF or ONNX file is parsed by whisper.cpp/onnxruntime-node, both written in C/C++ — a malicious or corrupted model file is a plausible memory-corruption vector. This is why model downloads should eventually verify a checksum/signature against the source repo's published hash before loading, not just fetch and run.

7. Supply chain & install integrity

  • Release binaries are checksummed (checksums.txt, sha256) per ARCHITECTURE.md §12, but the curl -fsSL install.sh | sh path is only as trustworthy as the install script verifying that checksum before execution — this must be a hard requirement of that script, not an afterthought.
  • The current source installer (scripts/install.sh) trusts GitHub and this repo, the same way git clone does: it checks out the newest release tag on main (or main before any release exists), so pinning the script alone would add nothing, and a checksum published in this repo can't catch a compromise of this repo. Everything it fetches from elsewhere is verified: tools come from Homebrew (sha256 per formula) and the models are pinned and sha256-checked (apps/daemon/src/models.ts). Re-running it is also how a user updates, and it refuses to overwrite a clone with local edits. If Homebrew is missing and the user says yes, it runs Homebrew's own installer from raw.githubusercontent.com/Homebrew/install, unpinned, the way brew.sh tells people to install it.
  • The Homebrew formula (in NirjharBhattacharjee/homebrew-mockingbird) pins each release's source tarball by sha256. CI opens the PR that bumps it; a person merges it, so a release reaches brew upgrade only after review. bun install inside the formula fetches npm dependencies, checked against bun.lock (--frozen-lockfile).
  • Bundled third-party binaries (ffmpeg, whisper-server) ship inside the release archive. Their provenance (which upstream build, which commit, which signature if any) should be recorded in the release process so a compromise upstream is traceable.
  • The Homebrew tap PR is reviewed and merged by a human, not auto-merged — this is a deliberate supply-chain control per ARCHITECTURE.md §14 and should stay that way even once the release process is trusted.
  • Auto-update, if it ships, must stay opt-in / explicit-confirm — a silent background updater is both a "local-first" violation (unannounced network activity) and a supply-chain risk multiplier (a compromised update channel becomes a silent, automatic compromise of the daemon).

8. Known privacy issues — open, unresolved

These are real gaps as currently designed, not hypothetical edge cases. None of them are mitigated by "no network calls":

  1. Backup exposure. Time Machine, iCloud Desktop/Documents sync (if ~/.mockingbird were ever under a synced folder — it isn't by default, but nothing currently prevents a user from relocating it), and any third-party backup tool will happily back up an unencrypted, complete dictation history in data.db. No .gitignore-equivalent exclusion guidance exists yet for backup tools.
  2. No data export or deletion UI in v1. History and dictionary data accumulate indefinitely in SQLite with no built-in "delete my history," "delete this utterance," or "export and wipe" flow. A user who dictates something sensitive by mistake currently has no in-product way to remove it short of directly editing the SQLite file.
  3. Swap/pagefile. The "audio never touches disk" guarantee in ARCHITECTURE.md §9 is about deliberate persistence, not physical memory. Under memory pressure, macOS can page process memory — including the ring buffer and in-flight transcript text — to disk via swap, which is encrypted at rest only if FileVault is enabled. This is an OS-level caveat worth stating explicitly rather than letting "never touches disk" be read as an absolute.
  4. Model-download metadata leak. The one legitimate network call (mockingbird models pull) necessarily tells Hugging Face / the model host which model you're fetching, from your IP, at that timestamp. This is disclosed and user-triggered, not hidden — but it is still information about you leaving the machine, and should be named as such rather than folded into "no network calls."
  5. Correction/dictionary data can be more sensitive than it looks. dictionary and correction are designed to hold proper nouns and learned edits — which in practice means client names, project codenames, or personal names end up persisted in a structured, searchable table without the user necessarily thinking of "adding a word" as "storing a record."
  6. Multi-user / shared Mac accounts. File permissions on ~/.mockingbird default to whatever the OS gives a new directory under the user's home — worth an explicit chmod to 0700 at setup time rather than relying on umask defaults, especially since this directory holds the SQLite history.
  7. FTS5 full-text search widens the blast radius of a single leak. Once utterance_fts exists, a single unauthorized read of data.db is not just "dump the file" — it's instantly searchable, which matters if this file is ever attached to a bug report, shared for debugging, or copied during troubleshooting.

9. Hardening roadmap

Rough priority order, highest-impact first — none of this is scheduled yet, this is a "if solving one of these, start here" list:

  1. Ship a genuinely compiled, stably-signed binary. Two blockers, both measured: bun build --compile doesn't carry libonnxruntime.1.dylib alongside the embedded addon, and an ad-hoc signature changes on every build, dropping the TCC grants. A self-signed certificate held in the keychain fixes the second (the designated requirement keys on the certificate, not the cdhash); the first needs the dylib shipped beside the binary or VAD moved off onnxruntime-node. Until then the re-signed copy bundle in §4 carries the grants, and the checkout it runs is part of the trusted computing base.
  2. Encrypt data.db at rest, or at minimum document and default to 0600/0700 permissions on ~/.mockingbird and its contents at setup time, and evaluate SQLCipher or app-level column encryption for raw_text/final_text.
  3. Ship a real delete/export story before v1 GA: mockingbird history clear, per-utterance delete from the TUI, and a documented retention policy (even if the policy is "kept forever unless you delete it" — say so explicitly in-product, not just in this doc).
  4. CI network-isolation smoke test that fails the build if the compiled daemon makes any non-loopback connection during a scripted dictation run — turns §3 from a claim into an enforced gate, mirroring how ci.yml already gates typecheck/lint/tests per ARCHITECTURE.md §14.
  5. Logging policy enforced in code review: no transcript content above opt-in verbose-debug logging, checked as part of the review checklist for any PR touching packages/asr, packages/llm, or the daemon's logger.
  6. Checksum/signature verification on downloaded model weights, before they're loaded by native parsers.
  7. Loopback-service authentication for whisper-server/llama-server (shared secret or move to Unix sockets) to close the "any local process can query them" gap in §1.
  8. Backup-tool exclusion guidance (e.g. a documented Time Machine exclusion, or a com.apple.metadata:com_apple_backup_excludeItem extended attribute set at setup time) if data.db is to stay unencrypted.
  9. GitHub's private vulnerability reporting, enabled via the repo's Security settings so SECURITY.md's reporting flow is backed by Advisories rather than a plain email thread — see §10.

10. Reporting a vulnerability

The project is on GitHub at github.com/NirjharBhattacharjee/mockingbird, and the root-level SECURITY.md is the canonical reporting entry point — do not open a public issue for a vulnerability. In short: report privately to bhattacharjeenirjhar26@gmail.com, or via GitHub's private vulnerability reporting once it's enabled on the repo (see §9, item 8, still open).

This document should move out of "pre-code" status and start being checked against real code (permissions actually requested, what actually gets logged, whether the CI network-isolation test in §9 exists) as soon as apps/daemon has its first commit — per the same rule ARCHITECTURE.md §17 applies to itself: if reality diverges from this doc, the doc is wrong and gets fixed in the same PR.

This page is docs/SECURITY_PRIVACY.md in the mockingbird repo. Edit it on GitHub