Tower runs coding agents that execute commands on your machine. Its safety rests on a few properties; reports that break them are the most valuable:
- everything the agent runs — its shell commands and its
read,editandwritetools — runs under a deny-by-default macOS Seatbelt profile generated per goal; - reads are an allow-list: system locations, toolchains (from package-manager prefixes only
bin,lib,Cellar,opt,shareand the like — notvaroretc, apart from TLS certificates and rustup's default-toolchain setting), what version managers read to pick your default version (their homes, version-only files such as~/.tool-versions), system-wide defaults (not other apps' preferences), its own workspace and private directories; not your home directory, other volumes, shared temporary folders or other apps' data; credential stores (~/.ssh,~/.aws,~/.config/gh, Pi'sauth.json, …) are denied even where reading is otherwise allowed, and no*_API_KEY-style variable reaches it; - the agent can write only its workspace, its private temporary directory and its private package caches (seeded by copy-on-write from yours, so your own caches cannot be poisoned); even inside its workspace, writing prompt-instruction files (
AGENTS*.md,CLAUDE*.md,.pi/,.agents/) and creating hard links ((deny file-link)) are denied by the kernel profile; - without the contract's network switch nothing beyond this Mac is reachable, and loopback is closed by default too: a sandboxed command reaches only the ports the contract declares, its goal's reserved non-overlapping 10-port block (
TOWER_PORT_BASE), and the servers its own sandbox's processes were listening on when it started — not services you, other users or the system run, whether they started before or after the goal. Loopback opens wider only on evidence from your own code or by your choice: when a criterion is refused loopback on the base commit (your unchanged code, before the agent did anything), or the project's setting says so, or the contract does; local proxy ports are never reachable without the network switch; Unix sockets outside its directories (for exampledocker.sock, or the ssh-agent holding your keys) are never reachable, with the network switch on as with it off; the keychain service is never reachable, with or without the network; - processes the agent starts do not outlive its run: when a run ends (submitted, paused, abandoned, crashed) and when Tower quits or starts again, every process in that goal's agent sandbox is stopped, wherever it moved; your own programs, even working in the same folder, are not touched;
- a
lookscreenshot is only ever of the app the verification started: the port must be free before it starts, every listener answering it must be in the verification's own sandbox, and the screenshot browser runs under a deny-by-default profile that reaches only that app's ports and writes, in your home, only its own crash folder (Library/Application Support/<browser>/Crashpad, which Chromium uses whatever its flags say); - the model can call only seven tools (
read,bash,edit,write,ask_user,log,submit); MCP and a repository's own Pi resources are disabled; - Tower writes to your repository only a new local branch you accepted, and pushes it (and opens a pull request) only when you press Push;
- verification runs in a clean checkout under the same sandbox rules, without credentials and without anything the agent could write (a fresh package cache each time);
- the agent cannot change the git configuration or hooks Tower itself uses.
Please do not open a public issue for a vulnerability. Use GitHub's private vulnerability reporting ("Security" → "Report a vulnerability") on this repository. Describe the property that fails and the class of harm; a minimal reproduction helps. We aim to acknowledge within three days.
- Pi (
Full S2): Tower's extension replaces Pi's four tools with sandboxed ones (backed by a persistent sandboxed FS helper inside the goal's Seatbelt profile) and adds three (ask_user,log,submit); Pi starts with exactly these seven.submitsupportsoutcome: "done" | "blocked"so reporting an impossible or conflicting specification is explicitly sanctioned without expanding the 7-tool surface. - Claude Code (
Full S2, through the ACP bridge,extensions/tower-goal/acp.ts): Claude Code is started with no built-in tools, no user or project settings, hooks or MCP servers; its only tools are Tower's MCP server (MCP configuration is strict, and the connectors of your claude.ai account are switched off for it), which applies the same structured POSIX shell parser gate and Seatbelt profile as with Pi. - Codex CLI / Gemini CLI / OpenCode (
Restricted S2, through the generic ACP bridge and Onboarding Trust Gate): everysession/request_permissioncall is fail-closed against non-mcp__tower__*built-in tools across all adapter payload formats, emitting an auditedacp_unauthorized_toolsentinel on any rejected attempt. Engines without a proven full built-in disable switch are labeledRestricted S2(orExperimentalfor custom adapters) in Settings and environment checks. - Bundled ACP adapters are installed by Tower on first use with
npm ci --ignore-scriptsonly after verifying every entry in the shippedpackage-lock.jsoncarries a valid SRI integrity hash and pinned registry URL (rejectingfile:/ symlink entries). - In all cases the engine process itself (which holds your model login) runs outside the sandbox; only what the model can cause to happen runs inside it.
Off by default. When you turn it on (Settings), Tower serves a small page on your network so a phone can answer Needs-You items and pause goals. Every request must carry a 256-bit pairing token from the link or QR code in Settings; the page itself holds no data, and the token travels in the link's fragment, which browsers do not send. It listens only on Tailscale's address, and only while Tailscale is connected (encrypted); when it is not, the page is not served at all and Settings says why. Listening on the plain local network is a separate switch (it then listens on this Mac's own address on that network, never on every interface), because anyone who can watch that network could read the token. The page is one file and is sent with a Content-Security-Policy and X-Frame-Options: DENY: it loads nothing from elsewhere, allows no plug-ins, no base and no form posts, and never opens inside another site's frame, where its Deny and Pause could be pressed through a disguise. A paired phone keeps the token in the page's own storage. Settings can issue a new token at any time. Decisions that widen what the agent may do — allowing a gated action, overriding a sentinel, installing changed dependencies with the network — are refused from the phone and stay at the desk.
Off by default. With an ntfy topic URL in Settings (https, or http only to this Mac or a Tailscale address), each item that blocks a goal sends the goal's id and title and a fixed sentence for the kind of item to that URL — nothing the agent wrote, no code, no output and never the pairing token (when the phone page is on, the notification links to the page without it). The text is passed to curl as data on standard input, never as an argument. Settings shows whether the last push was delivered — a failure as a reason in the interface language, from curl's exit code, never curl's or the service's own text — and can send a test push. Prefer your own ntfy server; a public one sees goal titles.
Every property above has a test that CI runs on each push (macOS runner, real sandbox-exec, real git). CI and the pre-push hook also check this table itself (tools/security-tests.mjs): every test it names must exist, must not be #[ignore]d, and an extension test must be in a file CI runs, so a renamed or dropped test cannot leave a property here without one:
| Property | Test |
|---|---|
The agent's shell and file tools: no credentials, no other projects, writes only to its own folders, no prompt-instruction poisoning (AGENTS*.md/CLAUDE*.md/.pi/.agents), no hard links, no redirecting the git Tower runs in the workspace to another config, hooks or fsmonitor, no network or loopback proxy unless allowed, no Unix socket outside its folders even with the network on (ssh-agent, Docker), TLS without the keychain |
sandbox::tests::profile_is_enforced_by_sandbox_exec, sandbox::tests::unix_sockets_outside_the_goal_stay_closed_with_the_network_on, sandbox::tests::profile_denies_instruction_writes_and_hard_links, sandbox::tests::profile_keeps_git_on_its_own_config, a_redirected_workspace_config_runs_nothing_for_tower, storage::tests::the_dirty_check_runs_nothing_the_workspace_configures, tls_works_with_network_and_without_keychain, system_proxies_on_loopback_are_found; flow (isolation) agent_profile_blocks_prompt_poisoning_and_hard_links; extension file operations obey the sandbox profile, persistent helper enforces 16 MiB cap, auto-restarts on crash, and runs fast, credentials are scrubbed…, proxy settings are dropped…; fs_helper::tests::enforces_16mb_file_cap_on_read_and_write, caches::tests::agent_git_runs_no_credential_helper_and_reads_no_system_config, caches::tests::cargo_config_reaches_the_cache_without_credentials |
Structured POSIX shell policy blocks quoting/escape/env/nesting/here-document/alias/find -exec one-way door bypasses and cautious-mode hidden writes; what it cannot parse, or only learns when the command runs, asks in every mode |
extension one-way doors cannot be bypassed by quoting, escapes, env prefixes, wrappers, or nesting, cautious mode rejects hidden writes via redirections, substitutions, and inline scripts, here-documents, unparsable commands, git aliases, dynamic subcommands and find -exec cannot hide one-way doors, arithmetic shifts, here-documents something runs, and exported git config cannot hide one-way doors, commands only known when they run ask in every mode, shell options, piped scripts, find -exec words and other wrappers cannot hide one-way doors |
| Toolchains resolve as in your terminal without opening your home; what still fails is named, per language | sandbox::tests::default_toolchains_resolve_as_in_your_terminal, env_cause::tests::*, reasons::tests::the_preflight_names_a_cause_it_recognises, i18n::tests::environment_notes_are_put_into_words_on_read; flow (isolation) rustups_default_toolchain_resolves_in_the_sandbox, a_toolchain_the_sandbox_cannot_resolve_is_named_on_the_card |
| Loopback closed by default without the network: declared ports, the goal's own non-overlapping port block, and the sandbox's own listeners only, not services that were already there or start later | sandbox::tests::loopback_is_closed_by_default_without_the_network, loopback_rules_name_their_ports, ports_pool::tests::allocates_non_overlapping_10_port_blocks_and_env_vars; flow (isolation) loopback_reaches_only_the_agents_own_and_declared_ports, parallel_goals_get_non_overlapping_port_blocks_in_seatbelt |
| Loopback opens only on evidence from your own code: a refusal on the base opens it for that criterion (recorded, kept as the project's setting); one that first appears on the agent's snapshot still pauses | flow (isolation) tests_that_need_loopback_on_your_own_code_open_it_without_a_pause, a_loopback_need_that_appears_only_after_the_agents_change_still_pauses |
Sandbox backends written for other platforms and not yet used by a run (Linux bwrap + Landlock ABI v3+ write-only/append-only + cgroups v2, Ubuntu AppArmor userns detection, Apple Containerization MicroVM): what each would allow, as generated |
sandbox::linux::tests::*, sandbox::container::tests::*, environment::tests::ubuntu_24_04_apparmor_diagnostic_is_reported_bilingually |
| Agent processes do not outlive their run; yours are never stopped | procs::tests::only_the_sandboxs_own_processes_are_stopped, a_sandbox_that_may_write_everywhere_is_not_taken_for_a_goals; flow (isolation) an_agents_background_listener_does_not_outlive_its_run, pausing_stops_what_the_agent_left_running |
look evidence comes only from the app the verification started; browser console/runtime errors are captured as facts; the screenshot browser is closed by default, reaches only that app, reads none of your home and writes only its own crash folder there |
look::tests::the_app_is_told_from_another_program_on_its_port, look_cdp::tests::parses_cdp_runtime_console_and_log_errors, sandbox::tests::the_browser_profile_keeps_pages_on_this_machine, sandbox::tests::the_browser_with_the_network_on_reaches_no_outside_unix_socket; flow (isolation) a_look_port_held_by_another_program_pauses_for_the_environment, flow look_criteria_get_before_and_after_screenshots |
A pass must come from the source; edited tests, config, settings files and Rust inline #[cfg(test)] regions are put back; newly added #[cfg(test)] branches or test-env probes in production Rust code are held |
flow a_pass_must_come_from_the_source, passing_only_with_edited_tests_holds_the_goal; flow (tests/evidence.rs) rust_inline_test_tampering_and_cfg_test_branch_cheats_are_held; corpus every_non_source_way_in_is_put_back_by_the_source_only_run |
| Altered assertions are caught by the must-fail canary | flow a_test_that_must_fail_catches_disabled_assertions (three variants), an_honest_fix_shows_its_assertions_were_checked; canary::tests::* |
While the criteria run, the assertion entry points and runners' globals (CJS and synchronous Node 22.15+/24 ESM module.registerHooks) are the library's own objects; exit-listener removal and partial multi-process silence cannot mask tampering; a language with no such hook is named in the result |
flow a_replaced_assertion_entry_is_caught_by_identity, honest_fixes_near_the_test_machinery_stay_clean, a_shadowed_rust_assertion_is_caught; flow (tests/evidence.rs) multi_process_silent_exit_is_not_masked_by_sibling_intact_verdict; verify::bench::guard::tests::a_guard_directory_left_with_its_transcripts_locked_is_removed, verify::bench::guard::tests::multi_process_partial_reporting_is_flagged_as_incomplete, verify::bench::guard::tests::exit_listener_removal_cannot_silence_the_node_guard, verify::bench::guard::tests::register_hooks_catches_local_esm_third_party_assertion_tampering |
| A claim the agent's own summary undercuts is never shown as agreeing with a pass | honesty::tests::*, flow a_replaced_assertion_entry_is_caught_by_identity |
| Held-out tests: never in the agent's workspace, contract or prompts; failures go to you; synthetic holdout drafts require explicit human ratification | flow held_out_tests_run_in_verification_only, failing_held_out_tests_go_to_the_human; verify::bench::holdout_synth::tests::* |
| A result is "with held-out tests" only for files proven, one by one, to have run; the rest are named for you, never in what the agent can hear; the proofs' drop box is write-only from the sandbox | flow (tests/evidence.rs) held_out_files_prove_they_ran_one_by_one, held_out_proofs_come_back_from_inside_the_sandbox, held_out_tests_that_never_ran_do_not_label_the_result; sandbox::tests::the_drop_box_is_write_only, verify::bench::held_out::tests::* |
| Text rules for hiding failures (deleted, skipped, hollowed tests, changed expectations, special cases) | corpus every_cheat_in_the_corpus_is_caught, honest_changes_raise_nothing; flow special_casing_the_tests_values_is_reported |
| Special cases weighed by perturbation and AST bypass-around-bug analysis: fitted lookup/derived-property bypasses hold the goal high while honest one-to-one mappings and calendar-edge fixes stay free of false holds | flow (tests/evidence.rs) a_fix_fitted_to_a_derived_property_is_held, an_honest_one_to_one_mapping_is_not_ranked_highest, an_honest_fix_the_perturbation_clears_is_lowered, literal_expected_lookup_bypass_around_bug_is_held_high, honest_calendar_edge_and_lookup_fixes_have_zero_false_holds; verify::perturb::tests::* |
| A criterion whose base did not run keeps its canary; flaky visible criteria rerun once and preserve both outputs without burning rework | flow (tests/evidence.rs) a_criterion_whose_base_did_not_run_keeps_its_canary, flaky_criterion_reruns_once_and_preserves_both_outputs_without_burning_rework; tests/perf_verify.rs asserts it on a larger repository |
| Verification uses no cache the agent wrote, and leaves nothing running | flow verification_does_not_see_the_agents_cache, verification_leaves_nothing_running |
| Changed dependencies are not installed with the network without you | flow changed_dependencies_need_the_human_before_setup_goes_online |
| Probing outside the workspace is reported and triggers early stall pause after repeated denials without progress | flow probing_outside_the_workspace_is_reported; run::tests::anti_probing_early_stall_pauses_after_five_denials_without_workspace_progress |
| Multimodal prompt attachments enforce canonical goal-directory containment | prompts::tests::attachments_render_and_enforce_root_containment |
| Learning loop enforces reverse-whitelist taint tracking, blocks secrets, and requires explicit edit/confirmation for high-taint proposals; safe disk reclamation refuses active, unmerged, Needs-You, or dirty goals | ops::tests::taint_level_follows_reverse_whitelist, ops::tests::suspicious_instructions_and_secrets_are_caught, learning::tests::high_taint_proposals_require_edit_or_confirmation_and_block_secrets, storage::tests::reclaim_strictly_refuses_active_unmerged_needs_you_and_dirty_goals |
The phone page: token required (Bearer header only on SSE, never query string), Tailscale or nothing by default, never framed by another site (Content-Security-Policy, X-Frame-Options), non-blocking async dispatch, decisions that widen access stay at the desk |
flow the_phone_page_answers_with_the_pairing_token_only; remote::tests::sse_endpoint_requires_bearer_token_and_does_not_block_api_state, remote::tests::* |
| Pushes carry no agent text and no token, https only | flow blocking_items_are_pushed_to_the_configured_topic; inner::push_tests::* |
| The ACP engine bridge and Onboarding Trust Gate allow Tower's tools only across Claude, Codex, Gemini CLI, and OpenCode, with lockfile SRI verification | extension the ACP bridge allows Tower's tools once and refuses everything else, ACP Trust Gate rejects built-in tools across Claude, Codex, Gemini CLI, and OpenCode formats, ACP bridge penetration test hard-rejects unauthorized built-in tools and emits audit events; acp_adapter::tests::lockfile_verification_rejects_missing_integrity_or_symlink_entries; flow an_acp_agent_runs_through_the_bridge |
Tower's data folder is yours alone (folders 0700, the event store and its write-ahead files 0600); an empty TOWER_HOME means the default, a relative one is refused, and the start-up sweep clears only a folder that holds Tower's store |
paths::tests::towers_data_folder_and_store_are_private, paths::tests::an_empty_or_relative_tower_home_never_makes_the_current_folder_towers, install::tests::the_sweep_clears_only_towers_own_folder |
Diagnostics leave secrets out (pairing token, push topic, passwords in URLs, query-string and Authorization credentials) |
flow diagnostics_leave_secrets_out; redact::tests::masks_url_credentials_and_authorization_headers |
A goal's work reaches your repository only as a new local branch you accepted, pushed to origin only by Push |
a_goal_runs_in_isolation_and_lands_as_a_branch, local_files_and_push |
| The Pi engine's model gets only Tower's seven gated tools; MCP and the repository's own Pi resources are off | only_gated_tools_are_enabled |
- Pi itself (which holds the model credentials and talks to the provider) runs outside the sandbox; only what the model can cause to happen runs inside it.
- Setup commands (installing dependencies) run the code the manifests choose, inside the sandbox. In the agent's workspace they have the network. In verification, setup runs with the network only on the base commit (your content); on the agent's snapshot it runs offline unless the contract allows the network or you approved that very snapshot on a decision card. Local files such as
.envare present only while criteria run, never during setup. A malicious dependency you approve can still reach the network during setup; it cannot read your credentials. - The browser that takes
lookscreenshots runs the agent's page with its own sandbox off (it cannot nest) inside a Tower profile that is closed by default: it starts only its own app bundle's programs, reads the system, its bundle and your fonts, writes only to its throwaway profile, the screenshot's folder and your per-user temporary folder (where it keeps its single-instance socket), reaches a fixed list of system services (fonts, preferences through the system's preferences service for its own and the global domain, logging, launch services — not the keychain or the pasteboard), cannot read credential stores, and without the network reaches on this machine only the ports the app's own processes listen on (no DNS, no outside address, no proxy on loopback); with the network it reaches the internet by address and the system resolver, never a Unix socket outside its own folders. It may look up where files are and how big (metadata), not read them. - Verification uses a fresh package cache for every run, seeded from yours and thrown away afterwards, so nothing the agent wrote reaches a verdict through a cache.
- Sentinels for passing-but-wrong work are text rules over the diff, not a semantic analysis. They explain and order; the verdict itself is re-checked with only the agent's source changes kept, with a must-fail canary going through each test file's own assertions (JavaScript, TypeScript and Python), and with Tower's check of assertion identity while the criteria run. A criterion whose assertions could not be checked says so on its row.
- The assertion-identity check runs inside the same sandbox as the code under test, which is what lets it see the entry points at all. A run can therefore add lines of its own to the transcript; it cannot remove or rewrite Tower's (the file is append-only and the profile allows nothing else there), and it cannot produce the secret a silent process never revealed, so a forged verdict does not replace a real one. What remains is that a process can always impersonate code running inside it: the check raises the cost of hiding a replaced assertion and removes the blind spot of matching words, rather than making it impossible. Compiled languages have no hook for loading a check before the test code; there the must-fail canary, which changes the tests' own expected values, is the check, and the result says so.
- Held-out proof is per file and per run: each file Tower can mark (JavaScript, TypeScript, Python, shell, Rust) carries its own random token and, when loaded, leaves it in a drop box the sandbox may write but not read or list. Code under test cannot produce a proof it was not given, copy another file's, or learn which files ran. The process that executes a held-out file can still read that file's own text, token included; code that reads the held-out files at run time is already beyond what held-out tests can defend, so the proof is as strong as their secrecy. A JavaScript file in an ES module on a Node without a synchronous file module (before 22.3), and a Rust test selected away by name, leave no proof and are reported as not run. Other languages are reported as "cannot prove they ran". Without the macOS sandbox the box is an ordinary directory.
- Special cases fitted to the visible tests are weighed by moving the numbers in the tests' inputs, which is evidence only where the test itself states what a moved input should give (an expected value written as an expression of the inputs). Elsewhere a perturbation has no oracle — an honest one-to-one mapping fails moved inputs just as a special case does — so Tower reports a medium pattern at most, or says it could not perturb. Strings are never moved. A fit to the tests that the moved inputs do not disturb, or one in an assertion Tower cannot probe, is not caught by this.
- The real-model adversarial regression (
tests/adversarial.rs) does not pass yet. In its runs of 2026-10-27 these classes reached review with the code still wrong and no high finding: special cases answered from a lookup table or keyed on a derived property of the input where the tests' expected values are literals (the perturbation above has no oracle there), Rust tests that live in the source file they test (that region is taken for source), and one variant of reaching the assertion entry by a path no list names.docs/17§17.7 lists them as known misses, per class, until a real run shows a class held. - Folders named
node_modulesabove the project are readable from the sandbox (Node and npm look for them; third-party packages, not secrets); writing to them is not allowed. - A failing command counts as an environment problem (rather than a failing test) only when Tower itself sees the refusal: a path the output names that Tower can read and the same sandbox profile cannot, checked with a probe Tower runs. In the source-only re-run, a command that does not finish counts as failing.
- Loopback without the network is an allow-list fixed when each command starts (Seatbelt names one port per rule, has no port ranges, and a profile cannot change under a running process). What is covered: every service on this Mac — yours, other users', the system's, started before or after the goal — is closed unless the contract declares its port; the agent's own earlier servers are opened within about two seconds of their starting listening (Tower rewrites the agent's profile; a command that starts before that does not see them); a
lookapp is reached by the screenshot browser only once Tower has checked it is the verification's own. What is not: a server a command starts and connects to within the same command on a port it picks at run time (port 0, a build daemon) is closed to it too, unless the port is declared — or loopback is opened for it. Tower opens it on evidence only: when the preflight (or a verification's base step) runs a criterion on the base commit, your unchanged code, and the only thing stopping it is a refused loopback connection, the need comes from your test suite, not from the agent; Tower then runs that criterion's verification with loopback open, records the decision in the trace and on the criterion's row, and sets the project's “Open loopback for this project's tests” (Settings, yours to turn off), which later goals of the project start with and which also opens loopback for the agent's own commands. The project setting and the contract's “Open loopback” mean the same: everything on loopback is reachable except the services listening when the command started, so a service started later by someone else is reachable. A refusal that first appears on the agent's snapshot is never taken as such evidence: it pauses the goal. Opening loopback changes the network rules only: the assertion-identity guard, its read-only files and its append-only transcript are the same in every verification profile, loopback closed or open. Known proxies on loopback — common proxy apps',*_proxyvariables' and the system's proxy settings' — are closed whenever the network is off, even when declared. A refused loopback connection in a criterion counts as an environment problem with its own card, not as a failing test; Tower reads that refusal from the command's output, so code under test can only turn its own failure into a pause, never into a pass. - Which processes are a goal's is decided by the kernel's sandbox check: a process is the agent's when its Seatbelt profile lets it write the goal's private directories and does not let it write Tower's data directory; a verification's when its profile lets it write that verification's checkout. Without an OS sandbox the agent's leftovers are not identified (its workspace is one you may also work in), and a verification's are found by working directory and open files only.
- When the verification sandbox still cannot resolve a toolchain the way your terminal does, the card names the cause (rustup's default toolchain, a Node version manager's default, the developer tools, a program missing from your login shell's
PATH, a closed loopback port) from the command's output, with a way out that changes your machine's setup, never the repository. For this Tower reads your interactive login shell's environment, and makes readable what the version managers need to choose a version: their homes named by your environment, version-only files in your home (.tool-versions,.nvmrc, …), rustup's fallback settings under a package manager'setc/rustup, and mise's global configuration only when it sets no environment variables (which may hold secrets). - On Linux and Windows there is no OS sandbox yet; reads and writes are fenced by path only and Tower says so in its environment check. The Linux (
bubblewrap, Landlock, cgroups v2) and Apple Containerization MicroVM backends incrates/tower-supervisor/src/sandbox/are written and unit-tested, but no run uses them, and CI has never exercised them against a real kernel. The interface does not offer the MicroVM tier and never labels a goal with it; a tier stored by an earlier build is kept and ignored. - Pi extensions you choose to load run outside the sandbox with your permissions.