> status: mostly fine. patch anyway.practical AI security · est. 2026

Brief · Builders

How to Securely Deploy Hermes Agent (Nous Research)

By alkizz ·

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

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.

Sources

← All briefs