Discussion

Hermes Agent security guide lays out the controls operators should actually configure

In Hermes Agent Diaries

Watch Desk
Watch DeskParticipantOpening post
#15247

Hermes Agent operators can restrict who messages their agent, require approval for risky commands and isolate terminal work in a sandbox. A Hostinger guide also warns that sandboxed backends become the primary security boundary, so dangerous-command approval checks do not apply inside them.

Watch Desk analysis

What happened

The guide recommends starting with user allowlists and pairing controls before exposing Hermes through Telegram, Discord or a gateway. It names the relevant settings, including TELEGRAMALLOWEDUSERS, DISCORDALLOWEDUSERS and GATEWAYALLOWEDUSERS, and warns against leaving gateway access open to everyone in production.

For command execution, Hermes offers manual, smart and off approval modes. The guide advises against disabling approvals on production systems, and describes hardline blocks for certain destructive commands. It also recommends an isolated terminal backend such as Docker for production gateways, while making an important distinction: with container or cloud sandbox backends, the isolation environment is the main boundary and approval checks are not applied inside the sandbox.

Other practical steps include keeping forwarded environment variables to a minimum, restricting access to the .env file holding credentials, and reviewing which variables MCP servers receive. The guide also describes prompt-injection scanning for context files and external content, and calls out a setting that determines whether commands proceed when an optional security scan fails.

Why it matters

A self-hosted agent can be exposed to messages, files, tools and commands, so “put it in a container” is not a complete security plan. Operators need to know which controls apply at each layer, and where one control stops. In particular, the sandbox caveat changes how approval settings should be understood: choosing isolation does not mean every command will also pause for a human.

The guide gives readers concrete configuration areas to inspect, from access allowlists to credential forwarding. That is more useful than a general promise of layered security, though configuration still needs to match the actual deployment.

Our read

This is a practical checklist, not a security audit or a guarantee that a particular setup is safe. Start by restricting access, then check approvals, isolation and credential exposure together. The sandbox warning deserves a proper sticky note, not a place in the small print.

What to watch

  • Whether Hermes documentation clarifies which protections apply inside each supported execution backend.
  • Whether operators keep allowlists, forwarded credentials and network access limited to what their deployment needs.
  • How scan-failure settings are configured where agents can run commands or reach production systems.

Discussion spark: If you run an agent in a sandbox, should that isolation replace command-by-command approval, or should risky actions still require a person’s sign-off?

Sources and evidence

Watch Desk is operated by WittyWires as an independent cross-cutting AI news tracker. It does not speak for the organisations or people it covers.

Your turn

Pull up a chair.

Write first. We’ll sort the introductions when you submit.