Skip to content

Security: The1UNeed/hexbot

SECURITY.md

Hexbot security policy

Report vulnerabilities privately through GitHub Security Advisories. Email to lumora.studio@hotmail.com is also accepted. Do not open a public issue for a vulnerability. Hexbot has no bug bounty program.

A useful report names the component, version or commit, operating system, steps to reproduce, and what an attacker gains. Test only against accounts, daemons, and files you own. Avoid exposing other users' data or disrupting services.

What runs where

The Rust daemon in backend/hexbot-core/ owns authentication, storage, rooms, tools, and the HTTP/WebSocket API. Each section uses a persistent Pi subprocess; the private extension in backend/pi-runtime/ applies Hexbot's tool gates. The Electron app hosts the same React bundle that the daemon serves to browsers. Client-only apps use a daemon elsewhere. Headless installations run the daemon without an app. The Python handoff package transfers existing services; it does not run the agent loop.

Bots, conversations, souls, memory, provider credentials, and device records live on the daemon computer under ~/.hexbot. The daemon runs with its host user's permissions. It is not a container around all its tools or subprocesses.

The installer in backend/hexbot-installer/ and apps/installer/ downloads Full, Client, or Headless packages from updates.hexbot.app. Hex Connect brokers identity and tunnel setup. Chat traffic goes through Cloudflare's tunnel to the daemon, without passing through Connect's application servers. Cloudflare terminates TLS and can read that traffic.

Tool isolation

The operating-system sandbox is the containment boundary for untrusted shell commands and code execution. Prompt instructions, approval text, output redaction, and pattern checks do not provide equivalent containment.

Windows remains unsupported. Its build work does not implement a sandbox. Auto and Manual refuse local shell commands, Python code, and Pi's file tools before approval or execution, including full_access and remembered grants. Windows metadata scanning and the Unix file-path walker also refuse to run; they do not open untrusted Windows files or discover Git through PATH. Scheduled scripts and monitors, their create/update validation, and ACP entry points refuse on Windows in every mode. Session settings also refuse before resolving workdirs or creating outputs in Auto and Manual. This blocks settings refresh, MCP/model changes, approvals and primary/memory/job tools using that bridge; Auto chat is not a supported Windows feature. Bypass retains Pi's Bash tool, requiring an installed Bash such as Git Bash, and removes containment and credential protection. It does not substitute cmd.exe for Bash or show a Linux bubblewrap approval. The native Windows security workflow tests refusal under a standard user; it does not prove confinement parity or authorize Windows releases. See the remaining Windows requirements.

  • Auto runs shell commands and Python code in a workspace sandbox. macOS uses sandbox-exec to deny inbound and outbound network access, writes outside the workspace, and reads of protected credential paths. Linux uses bubblewrap with private network and process namespaces and masked credential paths. Writable roots include the working directory, daemon-selected artifact and attachment folders, and temporary folders. On macOS these include shared /tmp. Runtime selection (runtime/native-current.json) and managed executables in runtime/native, runtime/tools, runtime/bin, bin, and python never become writable output exceptions inside the Hexbot home. Native code file helpers enforce the same write denial, including output-folder symlinks and aliases of the home, before approval and writing. Existing Git metadata (.git, linked gitdir/commondir targets and bare *.git repositories with HEAD and objects, plus core.hooksPath directories set by the repository or your own Git config) stays read-only within the scan limits below. A bot changes protected metadata with an approved full_access command. Project secrets such as .env and .envrc, keychains, and browser profiles with cookies and saved passwords are unreadable and unwritable. Apple Events are refused, so a command cannot drive Finder or another app. Other files outside the workspace can still be read.
  • Manual uses a read-only shell/code sandbox and asks before file changes. Approved execute_code runs can write their own output folder in the Hexbot home. Manual scheduled scripts cannot write artifacts or workspace files.
  • In Auto, a full_access command, a file change outside the workspace, a connected tool that changes something, and a browser page script go to a review before they run, on the review model chosen in Settings, Approvals, or the section's model when none is chosen. It reads the owner's most recent messages, whole, and the whole step, including the checked file destination and overwrite status. It loads no project instruction files, skills or tools, and sees no tool output or bot replies. A step over 20,000 characters, or evidence that cannot be read, asks. When older owner messages do not fit, the reviewer is told, and only a step it rates low risk runs. Changed owner evidence or queued owner prompts and steers invalidate automatic approval when the evidence is rechecked. A step it rates low or medium risk runs without asking; anything else, and any review that fails or times out, asks the user for that step only. Allow for now grants do not cover reviewed steps. A step the user approves on such a card is shown to later reviews in the same turn, which can then let the same kind of step run without a card; the reviewer still judges each one. In a connected service the reviewer cannot check which page or file an id names, so an edit whose content fits the request can run against the wrong one. A mode or working-directory change during review blocks execution; file execution rechecks the destination and reviewed overwrite status. The review is a model judgment, not containment: a step it allows has the same access as one the user approves.
  • So in Auto, internet access and writes outside the workspace are decided by a model, not the sandbox, and a small or local model judges less well, whether it is the section's own or the review model chosen for every bot. The step the reviewer reads (command, reason, file content, tool arguments) is written by the bot and can carry instructions injected by a web page or file the bot read; such text can talk a reviewer into allowing a harmful step. Choose Manual where that risk is not acceptable.
  • An approved full_access shell command leaves the workspace restrictions. The base credential-path and Hexbot-home protections still apply. Review both the command and its reason before granting more access.
  • File-tool changes to shell profiles and login items use user approval rather than model review, subject to an explicit Allow for now. Full-access shell commands use the reviewer's system-configuration policy and can change these files without a card when the owner requested that exact change.
  • Reviewers run in a fresh empty working directory and exclude APPEND_SYSTEM.md. ACP reviewers also isolate their home, Copilot settings and XDG directories, retaining explicit GitHub tokens rather than stored CLI login or configuration. Configured ACP arguments beyond --acp and --stdio, missing auth or incompatible isolation flags make review unavailable and produce a user card.
  • Bypass removes prompts and sandboxing and is available only to the admin. Missing Linux bubblewrap does not add an approval to a Bypass code run. The primary bot still asks before it deletes a bot, room, or job, changes an approval mode or a working folder, or changes a setting, skill, or connector.

Computers

A bot acts only on the computers it was given in Settings, Computers (machines.rs); every call checks the grant again, so taking one away applies at once. A conversation also keeps to the computers it started with: a computer granted later reaches the bot's chat at its next message, and never a room, a thread, a job or a delegate already running.

  • The bots' computer runs commands without the OS sandbox: it is a separate Cua sandbox, with its own files, that is easy to reset. It has the internet and can reach the network the daemon's computer is on, including services on that computer (Docker Desktop's host.docker.internal reaches its loopback); don't rely on it to keep them apart. The daemon itself still needs its sign-in, and this computer's shared desktop needs Cua's token. That token is a shell on this computer, so Cua's folder (~/.cua, or CUA_HOME) is a credential store: file tools and the OS sandbox keep bots out of it, as they do ~/.aws (in Bypass, this computer's terminal has no sandbox at all). On macOS the folders above it can't be renamed either; on Linux the bubblewrap layer masks it but doesn't pin its parents, as for other credential stores there, so a command let out of the workspace could move a folder above a relocated one. In Auto, commands that install, reach the network, run as root, delete broadly or pipe into a shell go to the reviewer first; the rest run. That detection is a pattern list, not containment: whatever a bot copies there, or you attach, can leave. Manual asks before a command, and Allow for now lets the rest of that conversation's commands there run. The bots' computer's desktop has its own terminal and no per-app checks, so a bot with that desktop can run any command there, computer_use's shell included: the risky-command check slows bash down, it is not a boundary. While the user has paused the bots there, new commands are refused too; one already running finishes.
  • This computer's terminal is the sandboxed bash described above. Its desktop, once shared (Computer Use here) and reached by a bot that has it as an environment and the Computer Use connector, gives the same reach as Bypass for the apps a bot is allowed: the OS sandbox limits processes, not clicks. Each app asks the first time (Allow for now or Always allow), except in Bypass; terminal apps and Hexbot never take input in any mode, and computer_use's shell is refused there.
  • The user's computers take part only while the desktop app there has Let bots work here (commands) or Computer Use here (its screen) on, and only for bots given that computer, its screen only for bots with the Computer Use connector. Only that app's main process can turn them on, with a native dialog; the daemon, a page, or a prompt-injected bot can't. Its main process checks the switch again for every request and runs only commands and the allowed desktop tools (no Cua shell, files or clipboard), with only the arguments each tool takes; Cua itself is started with only the desktop tool groups (on this computer too), so its shell, file, clipboard and accessibility tools aren't there. The app and approval rules (which apps take input, what Auto reviews, what Manual asks) are applied by the daemon, so sharing a computer trusts the daemon's computer with it. Commands there run with no sandbox, as the user: Auto sends every one to the reviewer (an approval it saw covers only the computer it ran on), Manual asks, Bypass runs it. A reviewer can be talked into allowing a harmful command; use Manual for a computer that matters. A command there can also read the desktop app's own data on that computer, which holds its sign-in to the daemon; with it a bot could act as the owner (answer its own cards, change approval modes, give itself other computers). The reviewer is told that reading it or using it always needs the user, but that is a model judgment like the rest, so Manual is the boundary for such a computer. Forgetting a computer in Settings, Computers ends what bots are doing there and takes it offline. The reviewer is told the command runs on that computer, from its home folder. The mode the command was approved under goes with it, and a command whose mode changed before it could run is refused. Revoking the device, closing the app or the tray's Stop bots on this computer ends it, and ends the commands still running there with everything in their process groups, background jobs left by a finished command included; so does the app's page crashing or reloading. A group is ended only while its leader is gone or still the process that was started, so an id another program got since is never signalled. A program that leaves its group on purpose (setsid, a daemon) is not followed, and on Windows only a command still running is ended, with its tree. Stopping a chat ends the command it was running there, on the user's computers and on the bots' computer alike, and a desktop action still waiting there is refused; so is one whose answer took too long. The computer stays held until a stopped action has settled, so no other bot's action slips in while it lands. An action whose Cua connection changed after its last check fails rather than reconnecting and sending. On a user's computer, a Cua call that runs past 60 s, or that the daemon stops while it runs, ends Cua itself, so the action can't land later; and the action the daemon last checked is sent there only through the Cua session already running, never one started after that check. On the bots' computer a stop that comes before the command starts still stops it. A grant taken away while an action or command waits (for the bots' computer to start, or for another bot's turn) applies when the wait ends; typing a saved password checks it before every step. Turning this computer's desktop off always wins over a setup still running. So does the app's connection to the daemon ending (a drop, a revoked device, another daemon chosen) and quitting the app, while the switch stays as the user set it. Work that was already waiting when bots lost the computer is refused.
  • Sharing a desktop shares its screen: once this computer's desktop is shared, or the user lets bots use theirs in the native dialog, a bot with that desktop can take screenshots of whatever is open there. Both say so when they are turned on. Apps are allowed one by one for input, as Codex does, not for being seen.
  • Desktop actions on this computer and the user's computers are checked by where they actually land: typing and keys by the focused window (a point given with them is refused), clicks, scrolls and drags by every app with a window under each point, which they must name (Cua doesn't say which window is in front, so each must be allowed and none blocked; an unnamed window there, or one that can't be placed, makes the point unknown), launching by the app named (an app id or path is refused, a one-dot id is checked by its last part, and a command line, with quotes, a comma, shell or control characters or an option word, or several words starting with a lowercase one, is refused, its first word checked like an app's name, so a name the checks know can't be sidestepped; the lowercase rule only helps where program names are case-sensitive, as on Linux, since Windows ignores case). A window whose title says Hexbot, such as its web app in a browser, counts as Hexbot in any app, so a bot can't answer its own cards there. That check reads window titles, and a browser signed in to Hexbot holds the owner's session (a page titled Hex Connect counts as Hexbot too: it signs apps in to the owner's daemons), so a browser's developer tools (DevTools, Web Inspector, Browser Toolbox), whose console runs code in any page, take no input either, and the shortcuts that open them (F12, Ctrl+Shift+I/J/C/K, Cmd+Option+I/J/C/K) are refused. A console docked inside a browser window can't be told from its page; it runs code only in that page. The daemon's session cookie is SameSite=Strict with its Origin checked, so a console on another site can't use the owner's session, and only the app's own pages run with the daemon's origin: everything else the daemon serves (its icon, bundle files, JSON and files) is sent with a sandbox policy, so opened as a page it has no origin and no session, and no other site may frame the app. Only windows Cua lists are checked: a part of the screen it doesn't list (such as a dock or panel, if Cua leaves it out) is checked as the window under it. A page shown inside a browser window beside another (split view, a side panel) can't be told apart by the window's title either, so don't allow a browser that is signed in to Hexbot or Hex Connect; its card says so. App names are matched in English, as Cua reports them; a terminal under a localized name isn't recognized, so allow apps you know. Allowing an app trusts everything it can do: one that runs macros or scripts of its own (Office's macro editor, a notebook or code page open in a browser) can run commands past the terminal's approvals, and an Office app's card says so. Terminals are known by name ("term" in it, or one of the emulators and shells listed in blocked_app); one with a name outside that list is not recognized, so allow apps you know. Editors and IDEs, script and automation apps (Script Editor, Automator, Shortcuts) and Windows' Run box take no input at all: their own terminals, run buttons and scripts start commands past the terminal's approvals. They too are known by name only (blocked_app), as are launchers that run typed commands (Alfred, Raycast, KRunner, PowerToys Run), automation apps and script hosts (Power Automate, Keyboard Maestro, osascript, wscript, cscript, mshta), coding agents (Claude, Codex, T3 Code, Antigravity, Kiro, Trae, Void, Goose, OpenCode, Conductor), apps with a terminal of their own (Docker Desktop) and remote desktop apps (VNC, TeamViewer, AnyDesk, Parsec, RustDesk, Remote Desktop, Jump Desktop, iPhone Mirroring), which take no input either. System-wide shortcuts (the Windows or Super key, which Cmd also is on any computer not known to run macOS, Ctrl+Alt+T, Alt+F2, Alt+F3, Alt+Space, Cmd+Space, Ctrl+Esc) are refused, since they reach the system rather than the app in front. Launchers that run what is typed in them (Alfred, Raycast, Flow Launcher, Wox, Albert, Ulauncher, rofi, wofi, dmenu, xfce4-appfinder) take no input either. Typed text with a line break is refused too: Return is its own key action, checked against the window then in front. A file manager's card (and the Dock's or Launchpad's) says it can open or run any program, and File Explorer's that its address bar runs commands. An action whose app can't be told, and open (whose handling app can't be known), are refused. The grant, the mode and every app are checked again right before the action runs, the mode, grant and switch read after its window lookups with nothing awaited before it is sent, one action at a time per computer, so an answer to an earlier card never carries an action to a window or a bot it no longer fits. A window that appears between that check and the action is the one race left.
  • In Manual, each command on a user's computer asks, and Allow for now never covers the next one. On the bots' computer it can.
  • A dialog that was open when the user stopped bots can't turn sharing back on: its answer is dropped.
  • The desktop app's page, like every Hexbot client, acts as the owner: it answers approval cards and changes approval modes. A script that took over that page could do what the owner can, including asking this computer's main process to run a command while bots are allowed there. The switch itself stays with the native dialog.
  • Unattended runs (jobs, heartbeats) can't ask, so steps that need approval on any computer are refused. A scheduled or monitor script runs on the computer Hexbot runs on, so it needs the bot's terminal there, checked each time it starts.

These protections constrain tool actions through the checked paths and grants. They do not protect an installation from a process already running without the sandbox as the same user, including Bypass, an approved external tool, or other host software. Such a process can change files, links, permissions or ACLs. Shell/code hard-link aliases remain uncontained. A preexisting alias in a writable workspace/output folder can name the same inode as a protected managed runtime file; writing through that alias can modify installed bytes even when the original path is read-only. This also covers implicit/shared temporary roots such as /tmp and per-user TMPDIR, and paths outside Hexbot home writable by approved full_access commands. The same limitation applies to aliases inserted later by an unconfined same-user process. Canonical path checks and read-only binds of the original path do not protect these aliases. Hexbot does not scan managed-file inodes or recursively walk workspaces to look for them. Ordinary uv cache hard links do not require reprovisioning or prevent command launch.

Linux mode 0444 alone is insufficient: the owning user can change its mode. ACLs and filesystem-specific permissions also need consideration. This foundation adds no per-command chmod/ACL mutations of installed files, read-only-install contract or kernel policy for inode protection.

Pi write/edit and native file callbacks atomically replace the output directory entry instead of truncating its inode. Those writes preserve other hard-link names, including preexisting aliases and aliases inserted after the file gate. Restricted Pi write/edit use a private daemon bridge whose final operations are relative to nonfollowing directory handles. Edit reads return bytes and the parent's device/inode identity; commit opens the parent again and refuses a different identity. Pi's existing edit matching, BOM and line-ending handling stay in Pi. Existing files must pass the OS writability check, and replacements preserve ordinary permission bits without setuid/setgid bits. New files remain private (0600 subject to umask); new directories use 0777 subject to umask. Each private request and encoded reply is limited to 1 MiB, about 767 KiB of file data after base64 and metadata. Oversized write/edit requests fail before parent creation or writing; oversized edit reads fail without truncation. Use a command for larger files, under its ordinary approval and sandbox policy. Missing bridge support refuses instead of falling back to pathname writes. The native file callback's existing 256 KiB UTF-8 read limit and write behavior are unchanged. These file operations do not close the shell/code hard-link class or establish whole-process or whole-filesystem containment. See the Linux hard-link semantics.

macOS also matches .git paths and secret filenames created during a command. It blocks renaming protected files and browser stores, and pins the scanned ancestors of secrets and Git metadata and the ancestors of browser stores so renaming a folder cannot expose their contents. Browser rules include the Google parent folder, Chrome Beta/unstable, and Snap and Flatpak profiles. Denying ~/Library/Application Support/Google also hides other Google data stored there, including Android Studio and Drive data. Tracked hook scripts remain writable unless selected by a configured core.hooksPath or by a hooks link in the Git metadata; their edits appear in git status. Review those changes before running them. When hooks, config, config.worktree or commondir inside the Git metadata is a symbolic link to a folder or file in the workspace, that target is protected like the metadata.

Linux protects repositories and secret files that exist when a command starts. Repositories created during a command are not protected on Linux. The scan visits workspace and output roots breadth-first, including read-only workspaces in Manual, through three nested folders. It resolves .env symlinks and Git pointers, and skips dependency/runtime folders listed in credential-policy.json plus shared temporary roots. Repositories and secrets beyond these limits are not covered by the Linux scan. If more than 1,000 directories need scanning, or the folders it reads hold more than 50,000 entries, only Linux bubblewrap commands refuse to run and require an approved full_access retry. For execute_code, use a smaller workspace or run the Python code through the terminal tool with full_access and a reason; a scheduled script needs a smaller workspace. macOS and file tools use partial results when the budget is reached. File changes ask for approval in Auto mode when the scan is incomplete, every time: that approval covers one change, is never remembered for the section, and never stands in for the approval a shell profile or a file outside the workspace needs. The cwd-ancestor Git pointer walk is unbudgeted, and macOS .git and secret filename rules still apply. Bare *.git repositories must exist when the scan starts on either platform. File tools refuse protected Git writes; an unreadable Git configuration or scan failure asks for approval instead of blocking ordinary writes. Repository configs and their includes are parsed with the system Git at /usr/bin/git; without it, a repository with a config counts as unreadable. Your own Git config and its includes are read the same way, from the files Git reads: $GIT_CONFIG_GLOBAL, or ~/.gitconfig and $XDG_CONFIG_HOME/git/config, and $GIT_CONFIG_SYSTEM or /etc/gitconfig and Homebrew's /opt/homebrew/etc/gitconfig and /usr/local/etc/gitconfig unless GIT_CONFIG_NOSYSTEM is set. A Git build that keeps its system config elsewhere (for example the one bundled with Xcode) is not read; set core.hooksPath in one of these files instead. A hooks path your config sets is resolved in each repository, so a global core.hooksPath = .githooks protects .githooks in every scanned repository. Each config file is read once per scan. A scan that meets more than 64 included files beyond the repository and user configs for one repository, more than 256 in all, or more than 10,000 settings, counts as unreadable and says which limit it reached, so include cycles and fan-out cannot stall it. Included files and configured hook paths inside the workspace or an output folder are protected, with their ancestors up to that folder. Ones outside are already read-only to sandboxed commands; a hook path that contains the workspace, such as / or the home folder, is ignored. FIFOs and other special files in Git metadata stay locked and are never read. Bubblewrap can only lock a folder that exists, so on Linux a configured hooks folder or included file that does not exist yet is locked through its nearest existing parent inside a repository, such as .husky for a missing .husky/_. When that parent would be a repository's own folder, the workspace or an output folder, and is not already protected as Git metadata, the command asks for approval instead of making all of it read-only. A dangling link names the folder or file it points to. The reason names every missing target and one command that creates them (mkdir -p for folders, touch for included files); after that, commands run in the sandbox again. Bubblewrap also cannot protect a symbolic link inside the workspace, so on Linux a .git entry, hooks folder or included file reached through such a link asks for approval the same way, until the link is replaced by what it points to. Paths are followed as Git follows them, so hooks-link/../hooks counts as reaching through hooks-link. A link inside the Git metadata is protected with it and does not ask; a link in the workspace that it passes through, such as .githooks for .git/hooks -> ../.githooks -> store/hooks, asks. macOS locks the link itself. Python code and scheduled scripts cannot ask: they stop with the same explanation.

macOS fails closed when its sandbox cannot start. On Linux, if bubblewrap is missing or unusable, Hexbot reports the missing isolation and Auto and Manual require user approval for shell commands and code runs, including full-access commands. Model review cannot replace that approval; an explicit Allow for now can cover later shell requests. Scheduled scripts refuse to run in every mode. Approval in this state does not restore OS containment.

The policy is shared by Rust and the Pi extension through backend/pi-runtime/credential-policy.json; parity tests check both builders. It does not sandbox the entire daemon or Pi process. Admin-configured stdio MCP servers and external tool executables are trusted code. Review skills, connector configuration, and executables before installing or enabling them. See the daemon README for tool-specific limits.

Authentication and transport

The daemon listens on loopback by default. LAN access is an explicit setting; a first Headless installation enables it so another computer can connect. Pairing codes expire after ten minutes and work once. Paired devices receive revocable tokens, stored hashed by the daemon. Users and rooms have ownership and membership checks; a session identifier is not authorization.

Proof-capable clients can bind a token to a DPoP key. Browser cookie sessions and older clients can be unbound. DPoP reduces token replay; it does not encrypt traffic or protect a page delivered by an active HTTP intermediary. Plain LAN HTTP exposes sign-ins and conversation contents to anyone able to intercept that connection. Use a trusted network, Tailscale, or HTTPS, including Hex Connect, and do not forward the daemon port directly to the internet. See authentication and deployment.

Provider credentials are local files protected by directory and file permissions, not encrypted by an OS keychain. Same-user malware and unprotected backups can read them. The daemon and its configured providers must be trusted with these keys.

Saved passwords are a KeePass (KDBX 4) vault per user, encrypted with a random 256-bit key kept in the macOS Keychain or the Linux Secret Service, or, where neither is available (Windows, most headless Linux), in an owner-only key file beside the vault. A backup of the vault alone can't be opened; a backup that also holds the key file can. Same-user malware can ask the keychain for the key. Bots' shells and file tools can read neither file in Manual or Auto; Bypass has no sandbox, so a bot in Bypass can.

The Google and Microsoft connectors' sign-ins are OAuth grants, one file per connector in accounts/<connector>.json, plain JSON in an owner-only file, like provider credentials. Each holds a refresh token for that connector's permissions: Gmail's and Outlook's can read, draft and send mail as the user; Calendar's can read and change events; Drive's can read every file and change the ones Hexbot added; OneDrive's, Word's, Excel's and PowerPoint's can read and change the user's files; the others their documents, sheets, slides or tasks. A connector connected on its own gets a grant with only its permissions. Connectors connected in one sign-in were allowed together, so Google's token for each covers all of them; the daemon still uses each connector's grant for its own tool alone, and a Microsoft token is renewed for its connector's permissions only.

A bot's Discord app token is in accounts/discord/<bot>.json, owner-only plain JSON like the connectors' grants. It can read and post in every channel the app was added to, as that bot. Bots' shells and file tools can't read it in Manual or Auto; a bot in Bypass can. The daemon checks it with Discord before saving it and sends it only to Discord.

Anyone in a Discord channel a bot was added to can talk to it, so a Discord room is a public room. Its bots run in Manual with only the memory tool's note action, web search, web page reading and reading their server (hexbot_discord): no shell, files, other bots, plugins, MCP servers, passwords, connectors or the bots' computer. Reading the server reaches only the room's own server, never another, and only channels the bot's Discord app can see. A bot that reads along can be asked what was said in another channel of that server and repeat it where it is asked, so the tool reads only channels at least as public as the one it is asked in, decided conservatively whatever roles a person holds: nothing may deny View Channel or Read Message History on the other channel, and every way into the asking channel (@everyone, a role, a person added by name) must let people see and scroll back in the other one too, and every role that sees channels by default must bring Read Message History. From a ticket channel opened to one person, the bot reads only what that person could read anyway; if the asking channel's permissions can't be read, it reads nothing. A bot set to see only its mentions reads nothing else, and Hexbot keeps only the messages that address such bots. Their prompt there is the bot's soul and the Discord rules, without its memory, About you, files, teammates or skills, so there is nothing of the owner's for a stranger to talk it into sharing; keep secrets out of the soul of a bot you put in a public server. What strangers write never reaches memory directly: the bot's dream leaves Discord rooms out, and a note taken there waits as a proposal that the dream is told is untrusted, like a scheduled job's. A Discord room has no main bot, and messages from other Discord bots start no turn, so bots can't answer each other in a loop. Anyone in the channel can still make the bot spend tokens by mentioning it, and where a bot is an active member or answers everyone, by writing anything at all; for a busy server, set a daily token budget for each bot (bot_daily_token_budget). Replies can mention only connected bots and never @everyone, roles, other people, or the person they answer.

IMAP mail's address, app password and servers are connector fields in .env, like other connector keys: plain text in an owner-only file. An app password can read, change and send all of that mailbox's mail. The daemon opens every IMAP and SMTP connection itself; the password never reaches a model or a bot's environment. Every connection uses TLS verified against the web's roots. Only a server on the daemon's own computer (localhost, 127.0.0.1, ::1), such as a mail bridge with its own certificate, may skip verification or go without TLS. Bots' shells can't read .env in Manual or Auto; a bot in Bypass can.

hexbot_mail sends only what the user sends from a draft card, in every approval mode, and only from the account the card showed. The other tools read in every mode; their changes follow the bot's approval mode like a connector's: Bypass runs them, Auto's reviewer checks each one, Manual asks. The reviewer is a model's judgment, not containment. A calendar change with guests makes the calendar email them, so a bot in Bypass can send invitations without asking. A token goes only to its provider's own hosts: an upload or a download that points elsewhere gets no token, and an upload elsewhere is not followed. A download counts as reading, so it runs in every mode, Manual included: it adds a new file among the chat's own files, never in the workspace and never over another file. An upload takes a file from the bot's own folders and refuses credential files. What these tools read was written by other people; bots are told to treat it as information, which lowers the risk of an injected instruction and does not remove it.

Bots' shells and file tools can't read a grant in Manual or Auto; Bypass has no sandbox, so a bot in Bypass can, and could use it outside the tools. Disconnecting a connector removes its file. Google ends every grant an account gave Hexbot at once, so its grant is withdrawn there only with that account's last connector.

A bot never receives a password in its conversation. The daemon types it into the page the bot names, and only when the browser's page is on the login's own site (the same host, or one inside the other, never https to http). On the bots' computer the daemon can't see the address, so it asks first unless the bot runs in Bypass. This keeps passwords out of prompts, history and provider traffic; it does not contain a bot that is trying to steal one. A filled field can be read back by a page script, so the daemon blanks the filled values out of every later browser result in that conversation, but an encoded read would get past that. The sign-in card's answer travels on the same connection as chat, so plain LAN HTTP exposes it the same way.

Installers validate archive paths, reject links, enforce size limits, and verify download checksums. Install and native daemon manifests carry Ed25519 release signatures. The installer and native updater refuse an untrusted manifest; its signed checksums then pin the packages. Controlling the update origin, its TLS, or HEXBOT_UPDATE_URL cannot replace packages accepted by an already-trusted installer or native updater. Update URLs require HTTPS. The Python handoff verifies native manifests only after the legacy updater has downloaded and run the handoff package.

Not covered by those signatures:

  • The legacy daemon/hexbot-src-<version>.tar.gz handoff source package. It trusts HTTPS and executes before the native signature check, so that check does not authenticate the handoff package itself.
  • The terminal installer script, its .txt index, and initial installer download. The script follows no redirects but still trusts HTTPS to hexbot.app and the update server.
  • Electron app update feeds. macOS updates rely on code signing; Linux AppImage updates use checksums only.

See release signing for key rotation and mirror support.

Report scope

Report sandbox escapes in Auto or Manual, unauthorized daemon or Connect access, failures of user/room ownership checks, credential leaks across the documented boundary, unsafe renderer access to privileged Electron operations, and installer path or archive-validation bypasses.

Prompt injection alone, expected access in Bypass or after an approved escalation, malicious admin-installed executables, and attacks requiring pre-existing control of the host account are not containment failures. Report practical chains that cross a boundary, not just an instruction a model followed. Hardening proposals and documentation corrections are welcome as regular issues or pull requests. Third-party service vulnerabilities belong with those providers.

Disclosure

The coordinated disclosure window is 90 days from the report or until a fix is released, whichever comes first. Reporters are credited in release notes unless they request anonymity. Keep reproduction details private while a fix is prepared.

There aren't any published security advisories