hex/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dax 92bcf45aa3
verify the hex microphone driver's signature before installing it (#2767)
* verify the Hex Microphone driver's signature before installing it

The driver install copied whatever bundle validated: the app's own copy,
or, when that was missing, scripts/build-hex-microphone-driver.sh's
output in ~/Library/Caches/hex-mic, a user-writable path. Nothing checked
the code signature, so an admin-approved install could plant a driver
from outside Hex's trust anchor into the HAL folder.

A published build (stable or dev channel) now checks the chosen bundle
with codesign --verify --deep --strict -R (src/codesign.rs) against
app/driver-requirement.txt: anchor apple generic, identifier
anomaly.hex.microphone.driver, Developer ID, and Anomaly's team
5NZ4Q7NXJ4. The check runs in the install worker before the admin prompt
and reports through DriverActionState::Failed.

dev_build::is_local_build is the gate: debug, test, HEX_LOCAL_BUILD,
HEX_TEST_BUILD, or an unmarked 0.0.0-dev checkout. It is narrower than
is_dev_build, whose dev-channel builds are published and signed with the
same Developer ID, so a dev-channel driver is verified too.

The candidate selection is a pure function: a bundle copy that is present
but broken fails the install instead of falling through to the cache, and
only local builds consider ~/Library/Caches/hex-mic at all, so an ad-hoc
or other-team signed driver still installs there.

The updater is untouched.

* read the bundled driver version without checking its signature

status() asks for the bundled driver's version on the UI thread (the macOS
host's platform poll), and the version read went through
bundled_driver_path(), which spawns codesign in a shipped build. The
version read now shares the install's candidate order and cache policy but
never verifies; only the install worker, before the admin prompt, checks
the signature.

Also says exactly what the requirement test pins (the driver's identifier
and the team ID the updater's requirement uses), and lists every kind of
local build the cache fallback covers in the feature map.

* driver install: re-check the signature as root and refuse symlinked copies

Addresses the second review of #2767.

The user-side codesign check ran before the admin prompt, so a bundle
swapped while the prompt was up was copied anyway. The requirement now
travels to osascript as its own argv item (empty for local builds) and
the root shell checks the staged copy with codesign --verify before it
replaces the driver or restarts coreaudiod. The copy refuses a symlinked
or non-directory source, drops ACLs and quarantine flags, and leaves the
staging copy root:wheel with no group or other write.

Candidate inspection uses symlink_metadata: a symlink (dangling included)
or a non-directory fails the install instead of reading as missing, and
only a real Hex.app's Contents folder counts as the running bundle. The
user home comes from app_paths.

is_local_build no longer treats a hand-stamped 0.0.0-dev-<N> build (what
scripts/release-app.sh makes, signed and notarized) as local; only
build.rs's -dev-local marker is local. is_dev_build is unchanged.

nix/package.nix's fileset now carries the two app/*-requirement.txt files
the Linux build and tests include, and the codesign helper compiles on
macOS only.
2026-11-24 16:58:01 -05:00
..
app_settings feat(labs): model switch shortcut (#2679) 2026-11-24 12:57:57 -05:00
application_catalog windows: name the website of browser meeting calls (#2079) 2026-11-20 15:03:41 -05:00
audio verify the hex microphone driver's signature before installing it (#2767) 2026-11-24 16:58:01 -05:00
calendar feat(settings): open new features from the sidebar (#1866) 2026-11-16 00:11:41 -08:00
caps_lock_dictation labs: caps lock light waits for audio, optional slow blink (#1535) 2026-11-08 06:41:35 -05:00
capture_host annotate: turning off auto-send with jev stops asking jev (#2764) 2026-11-24 16:05:16 -05:00
control feat(labs): model switch shortcut (#2679) 2026-11-24 12:57:57 -05:00
desktop onboarding: don't offer or silently drop a found model this build can't run (#2756) 2026-11-24 16:24:01 -05:00
dictation labs: clipboard phrase pastes the clipboard where you say it (#2650) 2026-11-24 12:14:22 +01:00
feedback feat(onboarding): the first run is one story, from a bad conversation to your first words (#1501) 2026-11-09 17:29:51 -08:00
history fix history playback on outputs with small buffer ranges (#2630) 2026-11-23 22:52:46 -05:00
keyboard_input_sources fix windows annotate search: clicks, keys and click-away (#2113) (#2118) 2026-11-20 20:24:28 -05:00
labs feat(labs): model switch shortcut (#2679) 2026-11-24 12:57:57 -05:00
linux onboarding: don't offer or silently drop a found model this build can't run (#2756) 2026-11-24 16:24:01 -05:00
local_api labs: dictation style (polished, casual, notes, verbatim) for desktop dictation (#2326) 2026-11-22 01:55:42 -05:00
macos_rune feat(labs): model switch shortcut (#2679) 2026-11-24 12:57:57 -05:00
meeting meetings: labs toggle to keep the recording indicator on any display (#2727) 2026-11-24 12:08:02 -05:00
microphone_activity meetings: stop when the call ends on windows and linux (#2564) 2026-11-23 14:44:29 -05:00
net fix(net): bound cached proxy answers across hosts (#2477) 2026-11-22 22:00:07 -08:00
parakeet macos 27.3: require keystroke permission for paste, request it, and fail visibly (#2757) 2026-11-24 16:00:56 -05:00
paste macos 27.3: require keystroke permission for paste, request it, and fail visibly (#2757) 2026-11-24 16:00:56 -05:00
personal_commands reload personal config when imported .js files change (#1856) 2026-11-15 10:46:47 -05:00
recognition macos 27.3: require keystroke permission for paste, request it, and fail visibly (#2757) 2026-11-24 16:00:56 -05:00
rune_hud meetings: labs toggle to keep the recording indicator on any display (#2727) 2026-11-24 12:08:02 -05:00
rune_ui refactor(rune_ui): add unified design tokens, shared modal shell, and ratcheted lint (#2762) 2026-11-24 13:34:15 -08:00
screenshots refactor(meetings,capture): remove dead routing paths, coupled locks, and leftover wrappers (#2628) 2026-11-23 19:43:44 -08:00
suppression feat(labs): model switch shortcut (#2679) 2026-11-24 12:57:57 -05:00
transcription feat(labs): model switch shortcut (#2679) 2026-11-24 12:57:57 -05:00
updater refactor(core): simplify engine slot, output plan, labs, updater, audio, and onboarding view (#2627) 2026-11-23 19:38:36 -08:00
windows feat(labs): model switch shortcut (#2679) 2026-11-24 12:57:57 -05:00
accessibility.rs Labs: learn from corrections (macOS) (#2149) 2026-11-21 02:28:29 -05:00
agent_install.rs annotate: install the agent skill and cli from the annotate pane (labs) (#2242) 2026-11-21 16:28:37 -05:00
app_paths.rs labs: transcribe dropped audio files (#1798) 2026-11-18 20:49:59 -05:00
app_settings.rs feat(labs): model switch shortcut (#2679) 2026-11-24 12:57:57 -05:00
apple_intelligence.rs labs: neutral voice for chosen modes (#2043) (#2049) 2026-11-20 11:51:08 -05:00
apple_intelligence.swift labs: neutral voice for chosen modes (#2043) (#2049) 2026-11-20 11:51:08 -05:00
apple_speech.rs Fold transcription_* into transcription/ 2026-10-31 15:13:56 -07:00
apple_speech.swift
application_catalog.rs feat(meetings): one Calls sheet decides what every call gets (#2452) 2026-11-22 16:27:55 -08:00
audio.rs fix history playback on outputs with small buffer ranges (#2630) 2026-11-23 22:52:46 -05:00
calendar.rs fix(meetings): polish Meetings pane, settings copy, and Calls spacing (#2615) 2026-11-23 19:41:32 -08:00
calendar.swift Drain the calendar reads' autorelease pool (#1827) 2026-11-14 11:32:56 -06:00
calendar_menu.rs feat(meetings): one Calls sheet decides what every call gets (#2452) 2026-11-22 16:27:55 -08:00
caps_lock_dictation.rs add pause from menu bar lab (#1654) 2026-11-10 17:51:36 -05:00
capture_host.rs macos 27.3: require keystroke permission for paste, request it, and fail visibly (#2757) 2026-11-24 16:00:56 -05:00
capture_zip.rs make the labs card copy plain (#1929) 2026-11-16 22:32:02 -05:00
code_shape_tests.rs refactor(rune_ui): add unified design tokens, shared modal shell, and ratcheted lint (#2762) 2026-11-24 13:34:15 -08:00
codesign.rs verify the hex microphone driver's signature before installing it (#2767) 2026-11-24 16:58:01 -05:00
continuation.rs windows: join back-to-back dictations with a space (#1980) 2026-11-18 19:28:07 -05:00
control.rs feat(labs): model switch shortcut (#2679) 2026-11-24 12:57:57 -05:00
desktop.rs Cap the logs at 10 MB and clear the old event log once (#1434) 2026-11-12 09:48:21 -06:00
dev_build.rs verify the hex microphone driver's signature before installing it (#2767) 2026-11-24 16:58:01 -05:00
dictation.rs labs: clipboard phrase pastes the clipboard where you say it (#2650) 2026-11-24 12:14:22 +01:00
durable.rs history: yearly stats heatmap, time saved and busiest hour (#1971) 2026-11-18 07:08:05 -05:00
feedback.rs fix(audio): stop using cpal default devices on Windows (#2622) 2026-11-23 22:08:04 -05:00
history.rs refactor(transcription,history,dictation): unify model readiness, Paste-Last filter, switcher retry, and warm ring cap (#2501) 2026-11-23 00:03:28 -08:00
keyboard.rs fix(macos): type dictation into Windows App instead of pasting (#1878) 2026-11-15 23:43:13 -05:00
labs.rs meetings: labs toggle to keep the recording indicator on any display (#2727) 2026-11-24 12:08:02 -05:00
linux.rs fix(sidebar): show local builds once below What's new (#2605) 2026-11-23 15:58:20 -08:00
local_api.rs free imported model definitions after rename and removal (#2498) 2026-11-23 03:32:00 -05:00
macos_rune.rs feat(labs): model switch shortcut (#2679) 2026-11-24 12:57:57 -05:00
main.rs verify the hex microphone driver's signature before installing it (#2767) 2026-11-24 16:58:01 -05:00
meeting.rs meetings: labs toggle to mute the microphone while recording (#2659) 2026-11-24 05:42:54 -05:00
meeting_import.swift meetings: import audio files (labs) (#1462) 2026-11-06 15:25:22 -05:00
microphone_activity.rs meetings: never follow an output-only device as the call input (#2691) 2026-11-24 08:52:37 -05:00
net.rs Managed feature locks for macOS (#985) (#994) 2026-11-02 07:47:47 -05:00
parakeet.rs refactor(dictation,paste): share finished-dictation output policy and clipboard restore guard (#2505) 2026-11-23 00:34:54 -08:00
paste.rs macos 27.3: require keystroke permission for paste, request it, and fail visibly (#2757) 2026-11-24 16:00:56 -05:00
personal_commands.rs reload personal config when imported .js files change (#1856) 2026-11-15 10:46:47 -05:00
policy.rs refactor(settings): unify shortcut slots, policy locks, choice checks, and audio copy gate (#2506) 2026-11-23 00:27:36 -08:00
recognition.rs macos 27.3: require keystroke permission for paste, request it, and fail visibly (#2757) 2026-11-24 16:00:56 -05:00
rune_hud.rs meetings: labs toggle to keep the recording indicator on any display (#2727) 2026-11-24 12:08:02 -05:00
rune_hud.wgsl feat(meetings): widen the listening field across the open header 2026-11-18 17:05:01 -08:00
rune_ui.rs labs: clipboard phrase pastes the clipboard where you say it (#2650) 2026-11-24 12:14:22 +01:00
screenshots.rs refactor(capture): explicit state machines for routing, drawing, and screenshots (#2490) 2026-11-22 23:11:30 -08:00
shortcut_pause.rs add pause from menu bar lab (#1654) 2026-11-10 17:51:36 -05:00
suppression.rs feat(labs): model switch shortcut (#2679) 2026-11-24 12:57:57 -05:00
transcription.rs feat(labs): model switch shortcut (#2679) 2026-11-24 12:57:57 -05:00
updater.rs free imported model definitions after rename and removal (#2498) 2026-11-23 03:32:00 -05:00
voice_processing.swift Labs: voice isolation for dictation on macOS and iOS (#2425) (#2429) 2026-11-22 17:00:41 -05:00
windows.rs fix(sidebar): show local builds once below What's new (#2605) 2026-11-23 15:58:20 -08:00