Brief · Builders
How to Securely Deploy Hermes Agent (Nous Research)
Update, Nov 20, 2026: Hermes published a High-severity advisory on Nov 19, GHSA-p22p-9ph6-gmrh, that makes this guide's point about terminal containers the hard way. When Bot Desktop runs inside a docker or ssh terminal backend, Hermes reads the screen's env file back from the sandbox and accepts every KEY=VALUE line in it, and any process in the sandbox can write to that file. Setting LD_PRELOAD on Linux or DYLD_INSERT_LIBRARIES on macOS then gets code execution on the agent's own machine, as the gateway user, the next time the agent starts a browser or computer-use helper. That user holds provider keys, tokens, session history and connected accounts, and if it can reach a rootful Docker daemon, it's effectively root. Nobody has to control the model for this; a malicious dependency inside the sandbox is enough. It affects hermes-agent 0.21.6 up to the fix in 0.23.2, which includes the v0.23.0 this guide describes. The default local backend, Modal, Daytona, Vercel and Hermes Cloud aren't affected. Upgrade to 0.23.2 or later. It's on Hermes's GitHub releases since Nov 16; the hermes-agent package on PyPI stops at 0.19.0. Until you can, set bot_desktop.placement: gateway or don't run Bot Desktop in a docker or ssh backend. GitHub's advisory lists it as CVE-2026-130164, which isn't in the CVE or NVD records yet.
Hermes Agent can execute commands, load skills and plugins, start MCP subprocesses and accept work through messaging or HTTP adapters. I start by deciding what all of that is allowed to reach. “It's my personal agent” is a description of the intended user, not a restriction on the process.
Hermes's own security policy makes the important distinction: operating-system isolation is the boundary against an adversarial model. Approval prompts, output redaction and pattern scanners can prevent mistakes, but they aren't containment. A terminal container also isn't a container around everything the agent does.
Patch the webhook boundary first
The Hermes webhook authorization bypass, CVE-2026-114463, authenticated one route and then selected tools using a different interpretation of its name. An attacker needed the target route's HMAC and a colon-named route, so this wasn't anonymous access to every installation. It was still the wrong party getting the wrong tools.
The fix was released in v0.22.2. The v0.23.0 implementation selects toolsets using the authenticated route identity rather than splitting the delivery/session identifier. Install 0.23.2 or later, which contains that fix and the Bot Desktop fix above, and keep separate secrets and narrow toolsets for each webhook route. A valid signature should authorize that route's job, not everything the agent knows how to do.
Rejecting an unsigned webhook is useful, but it doesn't prove a correctly signed request receives only the intended permissions. Those are different checks, and the old bug lived between them.
Know which boundary you're moving
With the default local terminal backend, a command runs as the agent's host user. Selecting a working directory doesn't stop the process from reading somewhere else that user can access.
Hermes documents container and SSH terminal backends, but their effective isolation depends on the user, mounts, credentials and network policy you actually deploy. Verify those controls before relying on them. The security policy distinguishes terminal-backend isolation from whole-process wrapping: the terminal backend doesn't contain the agent interpreter, code-execution subprocesses, MCP processes, plugins or hooks. For untrusted inputs, choose isolation that covers the whole process tree rather than assuming every tool takes the same route.
What to do
-
Authorize each caller explicitly.
- Why: Anyone allowed to submit work can influence what a powerful agent does, and pairing or role grants can authorize people outside a static sender list.
- How: For messaging adapters, configure an explicit sender allowlist, such as
TELEGRAM_ALLOWED_USERSfor Telegram. Use each service or HTTP adapter's documented authentication, including API keys or per-route HMAC secrets as applicable, and leave global and platform-specific allow-all settings off. Hermes documents pairing as an owner-approved grant, not permission obtained merely by asking for a code. Verify the actual platform's identity check, approval, revocation and restart behavior before depending on pairing. Use a separate account you control to confirm an unapproved sender can't dispatch work or approve actions, then repeat after revocation. A unit-level authorization check isn't an end-to-end messaging test.
-
Keep every enabled listener private until its access controls are verified.
- Why: There isn't one universal gateway port. Messaging adapters, HTTP APIs, webhooks and dashboards have different entry points, and a localhost default isn't a login system.
- How: Inventory enabled adapters and plugins, then inspect the process listeners with
ss -ltnpon Linux. In v0.23.0, the API server's code defaults to loopback, but the enabled webhook listener has a wildcard default; set itsextra.hostexplicitly to127.0.0.1. Dashboard source describes a local service without the ordinary localhost login gate, so don't assume it is safe to forward. Keep it local until you have verified authentication for your release, and require a restricted VPN or an authenticating HTTPS proxy before any remote access. Confirm the raw backend can't bypass the proxy.
-
Move commands off the host, and verify the isolation rather than the setting.
- Why: The local backend inherits the host user's access, while an isolated terminal only restricts operations that actually use that backend.
- How: Choose a documented container or dedicated SSH worker instead of the local terminal for untrusted jobs. Run non-root, mount only the required working data and avoid exposing host administration interfaces or broad credentials. Check the effective user and filesystem access with harmless commands such as
id -uandpwd, then verify that an unrelated test directory cannot be read. Check the whole agent process tree separately; moving the terminal alone doesn't move MCP, plugins or code execution into that boundary.
-
Constrain egress and credential forwarding separately.
- Why: A container can still have network access, and a key intentionally passed into it is available to code running there. A read-only credential mount prevents changes, not reads.
- How: Review the effective network configuration and all environment or credential passthrough, including declarations made by skills. In the v0.23.0 defaults,
docker_networkis true anddocker_forward_envis empty. The documented configuration can disable container networking, but confirm the resulting isolation in your deployment before treating it as protection. Allow only task-specific outbound destinations and credentials, and keep gateway/provider keys out of terminal sandboxes wherever the job doesn't need them. Environment filtering doesn't hide secrets from code imported into the agent itself.
-
Keep approvals on, and review extensions and persistent state.
- Why: A skill or plugin can run with the agent's privileges, and persistent instructions can outlive the conversation that introduced them. A prompt asking for permission isn't a substitute for limiting those privileges.
- How: Leave YOLO and approval-off modes disabled, review permanent command approvals and keep unattended dangerous-command policy at deny unless you deliberately approve a narrower workflow. Read extension code and scripts before installation, not just the description. Review new skills, hooks and memory changes, and disable unwanted on-demand dependency installation with
hermes config set security.allow_lazy_installs false. Verify the approval behavior for your chosen backend and release; don't assume every tool or session asks the same questions.
-
Practice stopping the whole deployment from outside the agent.
- Why: Stopping a chat doesn't necessarily stop a worker, a scheduled job or a subprocess, and an agent shouldn't be the only thing capable of withdrawing its own access.
- How: In a private test deployment, stop it through the external service manager, check that listeners and child jobs have ended, and confirm it cannot resume work until you intentionally restart it. Include revoking messaging access and task credentials in the procedure. Preserve useful logs before rebuilding a suspicious installation, and repeat the authorization checks after restart.
A deployment is more than a backend selector
I would keep a new installation private until an unauthorized sender is refused, every listener is accounted for, the intended isolation blocks a harmless out-of-scope action and an external stop procedure works. Dashboard access, pairing and container isolation all need verification on the actual deployment; their documented controls aren't proof that a particular installation is secure.
Hermes can be useful without being trusted with everything on the machine. Give it a small job, a narrow set of callers and an operating-system boundary that still holds when the model decides to be creative.
Want the next one?
One email, weekly-ish. The week's briefs, how worried to be, and what to do about it. No doom.
Subscribe on Beehiiv ↗Free. Opens Beehiiv in a new tab. Unsubscribe whenever, I won't be offended.