Please report security issues privately through GitHub's Report a vulnerability button on this repository (Security → Advisories), not in a public issue. You'll get an answer within a few days.
- Sandboxed replays. Commands a local model runs during a replay go through macOS Seatbelt or Linux bubblewrap: the repo copy is read-only, writes go only to a scratch folder (capped at 512 MB), there's no network, no access to your home folder or other temp folders, no terminal, no clipboard or app launching, no looking at or signalling other processes, no shared memory, a clean environment, and time, output, file-size and process-count limits. Nothing a command starts outlives it: on Linux the sandbox has its own process namespace; on macOS leaving the process group is blocked, and a process detached another way (
posix_spawn's setsid flag) is found by its working folder and stopped. One that also changes folder stays inside the sandbox, with nothing to write once the job's folders are deleted. On Linux the sandbox sees only the system's program, library and settings folders, so daemon sockets in/varand/rundon't exist inside it.go test ./internal/sandbox/runs canary tests for each rule. - Contained file access. The replay file reader and
ask_localopen files through Go'sos.Root, which refuses paths that leave the folder, including through symlinks.ask_localwon't start in your home folder, a folder above it, or a hidden folder in it such as~/.claude. - Nothing remote by default.
htdtalks only to the model servers you configure, refuses one that isn't on your machine or local network unless you allow it (a short or.localhost name counts as local only if every address it resolves to is, checked again each time a connection opens, so a name can't be pointed elsewhere after the check), and refuses cloud models served through a local URL. It never uses a proxy for a model server and never follows a redirect to another host. - A local-only scorecard.
htd uilistens only on127.0.0.1and answers only requests addressed to this computer, so another website can't read it by pointing its own name there. The address it opens carries a one-time key that becomes a cookie only that browser holds, and every request for your results or settings needs it, so other websites, and other programs or accounts on this computer that don't have the key, can't read the page or change anything. Its one write is the Settings form saving~/.htd/config.toml, which also needs JSON from the page's own origin. The settings are checked as strictly as when htd reads the file, and allowing a model server off your computer and network asks first. A content security policy lets the page load nothing from anywhere else. It runs until Ctrl-C. (The key is briefly visible to programs on your computer that list the command that opens your browser.) - Secrets files are skipped.
.env*, keys, credentials (including Claude's own),.git/,.ssh/,.aws/,.kube/,.gnupg/, Docker and GitHub CLI tokens, and shell histories are never sent to the model by skill checks orask_local, including through symlinks, link chains and linked folders. - Local answers are labeled.
ask_localreturns the local model's answer as data from another program, checked for the shape its skill expects, so a project file can't easily steer Claude through it. - No credentials.
htdnever handles your Claude login or API keys. - Verifiable downloads. Release archives come with signed build provenance from the release workflow (check with
gh attestation verify) and aSHA256SUMSfile; the workflow's actions are pinned to exact commits.