Is Hermes Agent safe? A practical security checklist

How Hermes Agent's approval modes, hardline blocklist and credential vault work, what its own policy says they miss, and a 14-step checklist to lock it down.

By Kovacs Software Solutions, the makers of Ceryx · Published · 20 min read

Hermes Agent is safe enough to run on your own machine if you set it up with care, but it is not safe against a determined attacker by default. It ships real guardrails. Dangerous shell commands need approval, a hardline blocklist refuses the worst commands in every mode, the messaging gateway turns away strangers, skills and plugins are scanned before install, memory writes are scanned for injection, and a credential vault fills passwords without showing them to the model.

Hermes is also honest about the limits. Its own security policy says the operating system is the only real boundary against a hostile model, and that the approval gate and the scanners are not boundaries. Prompt injection on its own is out of scope for its bug reports. So the real question is not “is Hermes safe?” but “is my setup safe?” The answer depends on what you connect, who can message the bot, and what it can do without asking you.

This guide explains what Hermes protects, how its approval modes work, where the real risks are, and gives you a checklist you can work through today. Every command and config key below was checked against the official Hermes docs on 6 December 2026, when the latest release was Hermes v0.23.6.

What does Hermes Agent already do well?

Here is what you get out of the box.

Approval for dangerous commands

A shell command that matches a curated list of dangerous patterns, such as rm -r or curl ... | sh, needs approval. If nobody answers within approvals.timeout (300 seconds by default), Hermes denies it. A hardline blocklist refuses the worst commands, such as rm -rf /, in every mode. The section on how Hermes approval modes work covers each mode and the blocklist in detail.

A gateway that denies strangers

The messaging gateway connects Hermes to Telegram, Discord, Slack, WhatsApp, Signal and other platforms. If you set no allowlist and no allow-all flag, the docs say all users are denied. To let someone in, you list their user IDs, for example in TELEGRAM_ALLOWED_USERS, or approve them through DM pairing. A pairing code is 8 characters long, expires after 1 hour, and five failed approval attempts trigger a 1-hour lockout.

Scans for skills, plugins, memory and context files

  • Skills. Skills from the hub go through a security scanner that looks for data exfiltration, prompt injection, destructive commands and supply-chain signals. A dangerous verdict blocks the install, and --force does not override it. Each source has a trust level: builtin, official, trusted or community.
  • Plugins. General plugins are disabled until you enable them. Install-time scanning is on by default, and you can pin a plugin to a full commit SHA.
  • Memory. Before Hermes accepts a memory entry, it scans the entry for prompt injection, credential exfiltration, SSH backdoors and invisible Unicode characters.
  • Context files. AGENTS.md, .cursorrules and SOUL.md files are scanned for injection before they load. A blocked file is replaced by a warning.

A credential vault

The vault stores logins, one-time-code keys, cards and addresses per profile. The agent can fill a login into a page without the password passing through the model. Hermes fills a login only when the page origin exactly matches the saved origin, and it checks the origin again just before the write. Every card fill asks you first, and headless sessions such as cron jobs and webhooks are refused. You can keep the vault key in your operating system’s keychain instead of a file.

How do Hermes approval modes work?

Hermes has three approval modes, set with approvals.mode in ~/.hermes/config.yaml, plus a per-session YOLO switch. They govern one thing. They decide what happens to a shell command that matches Hermes’ list of dangerous patterns. Only a match reaches the approval system, and everything else runs without a prompt. So ls, git status and cat notes.md never ask, and rm -r build/ does. The patterns include:

  • recursive deletes such as rm -r, xargs rm and find -delete
  • loose permissions such as chmod 777 and a+w
  • disk tools such as mkfs and dd if=
  • destructive SQL such as DROP TABLE, TRUNCATE TABLE and DELETE FROM without WHERE
  • system changes such as writes to /etc/ and systemctl stop, restart, disable or mask
  • running code from a string or the network, such as bash -c, python -e and curl ... | sh
  • writes into ~/.ssh/ or ~/.hermes/.env
  • container commands such as docker rm and docker volume prune
  • AppleScript that quits apps, deletes, saves or sends keystrokes

Two things sit outside the modes. On a container backend such as Docker, Modal or Daytona, Hermes skips the dangerous-command check, because the container itself is the security boundary. The check stays on for the local and ssh backends. And the credential vault has its own approval. Every card fill asks you first, whatever the mode.

What do smart, manual, off and YOLO do?

ModeWhat happens to a flagged commandUse it for
smart (the default)A helper model approves low-risk commands, denies clearly dangerous ones and asks you about the rest.Long coding sessions on a project you trust
manualHermes asks you about every flagged command.Your own computer, and any bot that reads email, web pages or chats from others
offThe prompts are off. The docs call this “equivalent to running with --yolo”.A throwaway VM with nothing worth protecting
YOLOA per-session switch that skips the prompts until you turn it off.The same throwaway VM

Smart sends each flagged command to a helper model (an auxiliary LLM). A low-risk command is approved, for that one command only. A clearly dangerous command is denied, and the agent has to find another way. An uncertain one gets a normal approval prompt. AppleScript that could destroy work never goes to the helper model. It always prompts, and your answer covers that one command. The trade-off is that a model makes the first call, and a model can be talked into things. If the agent reads untrusted text, an attacker can try to shape a command that looks low risk.

Manual holds every flagged command until you answer. In the CLI the prompt offers four choices.

ChoiceEffect
[o]nceRun this command one time.
[s]essionAllow this pattern for the rest of the session.
[a]lwaysAdd the pattern to command_allowlist in config.yaml, permanently.
[d]enyBlock the command. This is the default.

On a messaging platform you reply in the chat. “yes”, “y”, “approve”, “ok” or “go” approves, and “no”, “n”, “deny” or “cancel” denies. An expired prompt can’t be reopened. You have to ask the agent again.

Off disables the dangerous-command prompts, and the docs warn that it “disables all safety prompts.” Flagged commands simply run. On your own laptop, off means one bad instruction can run rm -r ~/Documents with nobody asked.

YOLO bypasses all dangerous-command prompts for a session. You can turn it on in three ways.

HowExample
CLI flaghermes --yolo or hermes chat --yolo
Slash command/yolo (toggles on and off)
Environment variableHERMES_YOLO_MODE=1
  • It is per session. /yolo applies only to the session where you typed it.
  • It can persist when you resume. The TUI and the Hermes Desktop app keep YOLO when you reopen or resume that session.- Messaging is stricter. On Telegram, Discord and other platforms, turning YOLO on takes a gateway admin and a chat only you are in, such as a DM. Hermes refuses it in a shared chat or thread.
  • The environment variable is the easiest to forget. If it sits in your shell profile, every session starts in YOLO.

What does the hardline blocklist still block?

The hardline blocklist is a floor under every mode. It trips before the approval layer sees the command, and there is no override flag. It applies in YOLO, in mode: off, in cron jobs set to approve, and over any “always” answer. The docs list, among others:

  • rm -rf / and obvious variants, including rm -rf --no-preserve-root /
  • the bash fork bomb :(){ :|:& };:
  • mkfs.* on the mounted root device
  • dd if=/dev/zero of=/dev/sd*
  • on Windows, format C:, Format-Volume, Clear-Disk, rd /s /q C:\ and Remove-Item -Recurse C:\
  • Restart-Computer and Stop-Computer
  • process killers aimed at the gateway’s own interpreter, such as pkill -9 python3 or killall python
  • commands with quoting Hermes can’t parse

Some protected files are also blocked outright, with no prompt. Private keys and authorized_keys under ~/.ssh/, and folders such as ~/.aws/ and ~/.kube/, can’t be written by the file tools. ~/.ssh/config is the exception. It asks for approval.

The blocklist stops machine-wrecking accidents. It is not a sandbox. The docs say the terminal tool “runs as the same OS user” and can still read or overwrite denied paths through other shell commands. To add your own always-on rules, use approvals.deny, shown in step 3 of the checklist below.

How do you set each mode?

Use hermes config set from a terminal, or edit ~/.hermes/config.yaml directly with hermes config edit. Check the current value with hermes config get approvals.mode.

hermes config set approvals.mode smart    # the default
hermes config set approvals.mode manual   # ask about every flagged command
hermes config set approvals.mode off      # no prompts; same as --yolo

Scheduled jobs, webhooks and the API server have nobody to answer a prompt. Separate keys decide what happens there, and each defaults to deny.

KeyApplies toValues
approvals.cron_modeCron jobsdeny blocks the flagged command. approve auto-approves everything in a cron run.
approvals.unattended_modeWebhooks, the API server, and turns Hermes starts itselfSame values
approvals.single_query_modeOne-shot hermes chat -q runsSame values

The same settings in YAML:

approvals:
  mode: manual          # smart | manual | off
  timeout: 300          # seconds to wait before denying
  cron_mode: deny
  unattended_mode: deny
  single_query_mode: deny

Each Hermes profile has its own config.yaml, so you can give each bot its own mode. Every profile gets a command alias, so for a profile named coder you run coder config set approvals.mode manual.

What should you always approve yourself?

Some actions should never run without you, whichever tool you use. Keep a human in the loop for anything that is hard to undo, costs money, or speaks for you.

  1. Payments and purchases. Check the amount on the shop’s own page, not only in the agent’s summary.
  2. Messages and posts to other people. Emails, chat messages, social posts, comments on public issues.
  3. Deleting data. Files, emails, database rows, cloud resources, branches.
  4. Sign-ins and new accounts. Logging in to a site, accepting terms, granting OAuth access.
  5. Changes to security settings. The agent’s own config, approval mode, allowlists, API keys and memory rules.
  6. Anything that touches production. Deploys, force-pushes, DNS changes, migrations.
  7. Installing skills, plugins or packages. These run with the agent’s permissions.
  8. Anything a document, email or web page told the agent to do. That is what prompt injection looks like from the inside.

This is the same advice the OWASP Top 10 for Agentic Applications gives for its top risk, agent goal hijack. It recommends “requiring human approval for high-impact or goal-changing actions” (OWASP).

How do Ceryx modes relate to Hermes modes?

Hermes’ approval modes are command approval. Most of the list above is not a shell command. When an agent sends an email through a connector, posts to Slack through a tool, or submits a form in a browser, no dangerous pattern matches, so no mode asks you. The vault’s card-fill prompt is the one built-in exception.

Per-action approval looks at every action that changes something, whatever tool does it. Instead of “does this command look dangerous?”, it asks “did my owner ask for this?” A send_email to a stranger looks harmless as a command and may still be the action you never wanted.

Ceryx Guardian adds per-action approval on top of Hermes approvals rather than replacing them. Its three modes, Strict, Balanced and Autopilot, set how often a bot asks you. Balanced is the default for a new bot, and even Autopilot asks before it sends or posts anything, pays, signs in, changes settings, or does something risky. Guardian needs Hermes’ own command approvals to stay on. If a bot’s Hermes approval mode is off or YOLO is on, Guardian blocks every action except reads and tells you to fix the setting. See Strict, Balanced and Autopilot for the details.

What does Hermes say it does not protect you from?

Read the Hermes security policy before you trust any of the features above. It is unusually direct.

  • The OS is the boundary. The policy says “The only security boundary against an adversarial LLM is the operating system.” In-process checks only prevent accidents.
  • The approval gate is not a boundary. The policy calls a denylist over shell strings “structurally incomplete”. The approval gate and the scanners are useful, but they are not boundaries.
  • Prompt injection alone is out of scope. A report that only shows prompt injection, with no further harm such as escaping a sandbox or stealing credentials, is not treated as a vulnerability.
  • Plugins and skills run with full privileges. A plugin is ordinary Python in the same process. The plugin docs say capabilities are “a consent and audit layer, not isolation”, and a catalog listing “is not a code audit”.
  • Profiles are not sandboxes. The profile docs say “Profiles do not sandbox the agent.” On the local backend, a bot in one profile can still reach files outside its profile folder.

None of this makes Hermes unusually risky. Every agent that reads untrusted text and runs tools has the same problem. Hermes simply tells you about it.

What are the real risks of running a personal AI agent?

The lethal trifecta and the Rule of Two

Simon Willison named the core problem in June 2025. He calls it the lethal trifecta. An agent is in danger when it has all three of these at once.

  1. Access to your private data.
  2. Exposure to untrusted content.
  3. The ability to communicate externally.

A Hermes bot that reads your email, browses the web and can send messages has all three. Anyone who can put text in front of it, in an email or on a web page, can try to make it send your data out.

Meta turned this into a design rule in October 2025, the Agents Rule of Two. Within one session, an agent should have no more than two of these three properties.

  • It processes untrustworthy input.
  • It can reach sensitive systems or private data.
  • It can change state or communicate externally.

If a task needs all three, Meta says the agent should not run on its own. It needs supervision, such as human approval.

Prompt injection

Prompt injection means that text the agent reads is treated as an instruction. A web page, an email, a PDF, a calendar invite or a tool result can all carry it. The defences keep improving, but none is complete.

  • In December 2025, OpenAI wrote that prompt injection “is unlikely to ever be fully ‘solved’” (OpenAI).
  • NIST’s AI safety institute found that new, adaptive attacks raised the hijacking success rate from 11% to 81% against the agent it tested (NIST).
  • Anthropic reported that its browser agent’s attack success rate fell from 23.6% to 11.2% after new mitigations (Anthropic). That is a large gain, and it still means about one attack in nine worked in that test.

Our guide to prompt injection and personal AI assistants covers the attack in depth. Hermes’ injection scanners use pattern matching. The docs call them “heuristics, not semantic intent detection.” They catch common attacks, and a novel one can slip past.

Untrusted skills and plugins

A skill is code and instructions that run with your agent’s permissions. The OpenClaw skill hub shows what happens when a marketplace grows fast. Koi Security documented 341 malicious skills on the hub in early 2026. Palo Alto Networks’ Unit 42 later described skills that dropped the Atomic macOS Stealer through curl-to-shell commands, kept a foothold through cron jobs, and padded a README to about 22 MB to get past scanners (Unit 42).

Hermes’ scanner blocks dangerous verdicts, but its docs are clear that a scan is not a guarantee. The Hermes security policy puts it plainly. A skill or plugin doing something malicious is “the expected failure mode of one that wasn’t reviewed.”

Exposed gateways

The gateway lets anyone on your allowlist talk to your agent. Every allowed user can try everything you can try. In December 2026, Hermes published advisory GHSA-8hwc-9vw4-p6q9. In versions from 0.20.1 up to 0.21.1, any allowed chat user could run shell commands on the host through /goal gate add. It is fixed in 0.21.1. The lesson is simple. Keep the allowlist short, and update.

The policy also says not to expose the gateway or API to the public internet without a VPN, Tailscale or a firewall.

Memory poisoning

Long-term memory turns a one-off injection into a lasting one. In 2024, Johann Rehberger showed that a web page could plant instructions in ChatGPT’s memory that leaked later chats (SpAIware). In October 2025, Unit 42 showed the same idea against an Amazon Bedrock agent. A hidden payload on a web page was saved into memory, and in later sessions the agent sent the user’s booking data to the attacker (Unit 42).

Hermes scans memory writes, and its memory files are small (2,200 characters for MEMORY.md and 1,375 for USER.md). Even so, a background review can save a memory after a turn without asking, unless you turn on write_approval.

Were Hermes’ injection scanners ever bypassed?

Yes. Two CVEs from May 2026 hit Hermes’ injection scanners.

CVEWhat it affectedFixed in
CVE-2026-9353The skills guard in agent/skills_guard.py. Phrases split by extra words, such as “system … prompt … override”, slipped past its patterns.0.15.0
CVE-2026-9366The context-file scanner, _scan_context_content in agent/prompt_builder.py, which checks files such as AGENTS.md for injection.0.15.0

GitHub’s advisory database rates both as medium and lists every version before 0.15.0 as affected. If you run a current release, these two don’t affect you. The Hermes fix for the first one describes itself as hardening a heuristic scanner, “not a security-boundary change”. That is the main point. A scanner that matches patterns will be bypassed sooner or later, so treat it as one layer and not as your protection.

How do you make Hermes Agent safer? A checklist

Work through these in order. Each step stands on its own, so you can stop at any point and still be better off.

  1. Update Hermes. Run hermes update, then hermes doctor. The latest stable release on 6 December 2026 is v0.23.6. Recent advisories were fixed in 0.21.1 and 0.23.2, so an old install is a real risk.

  2. Keep command approvals on. Check your mode with hermes config get approvals.mode. Use smart or manual. Never set off on a machine that holds anything you care about. Don’t start Hermes with --yolo or HERMES_YOLO_MODE=1, and check the YOLO toggle when you reopen a session.

    hermes config set approvals.mode manual
    
  3. Add your own deny rules. Rules in approvals.deny are glob patterns. They block matching commands “before --yolo, /yolo, and approvals.mode: off are consulted.” Add the commands you never want an agent to run, such as force-pushes to shared branches. The docs warn that they are a shell policy, not a sandbox, so treat them as a seat belt.

    approvals:
      deny:
        - "git push --force*"
        - "*curl*|*sh*"
        - "dd if=* of=/dev/*"
    
  4. Audit your permanent allowlist. Every “always” answer is saved in command_allowlist in ~/.hermes/config.yaml. Open it with hermes config edit and remove anything broad. One “always” on rm turns every future recursive delete into a silent one.

  5. Keep unattended runs strict. Leave approvals.cron_mode and approvals.unattended_mode on deny, the default. With approve, a web page read by a nightly job could get a flagged command run with nobody watching.

  6. Run the agent in a container. Hermes calls the container “the security boundary”. Run hermes config set terminal.backend docker. Docker containers run with all capabilities dropped and a process limit. Hermes skips its dangerous-command prompts there. Set terminal.cwd to a folder with nothing sensitive in it.

  7. Lock down the gateway. Set an allowlist per platform, such as TELEGRAM_ALLOWED_USERS, and never set GATEWAY_ALLOW_ALL_USERS. Review paired users with hermes pairing list and remove one with hermes pairing revoke <platform> <user>. Run the gateway as a non-root user. Reach it over a VPN or Tailscale, never straight from the internet.

  8. Inspect skills before you install them. Run hermes skills inspect <skill> first. Don’t use --force on a community skill you haven’t read. Run hermes skills audit to rescan installed hub skills. To review the skills the agent writes for itself, set skills.write_approval: true.

  9. Treat plugins as code you run. Read the source before you enable a plugin. Pin it to a full commit SHA so updates can’t change it silently.

    hermes plugins install owner/repo --ref <full-40-character-sha>
    

    Keep plugins.scan_on_install at its default of on.

  10. Gate memory writes. Set memory.write_approval: true. New memories are then staged for review, and you can see them with /memory pending. Read MEMORY.md and USER.md now and then, and delete anything you didn’t tell the bot.

  11. Keep secrets in the vault. Never paste a password, API key or card number into a chat. Store logins with hermes vault add, and move the vault key into your OS keychain with hermes vault key migrate --to keychain. Read the keychain caveats first. Cron jobs that run while you’re logged out can’t read the key. Our guide on giving an AI agent your passwords and credit card explains the wider picture.

  12. Break the lethal trifecta with profiles. Give each job its own profile with hermes profile create <name>. Each profile has its own config, keys, memory, skills and gateway token. A bot that reads the web doesn’t need your email, and a bot that sends email doesn’t need to browse. Remember that profiles don’t sandbox the agent, so combine this with step 6.

  13. Block sites the agent should never visit. Under security.website_blocklist, list internal admin pages and anything else off limits. Hermes enforces it on page extraction, browser navigation and skill downloads.

  14. Read the logs. Hermes writes logs to ~/.hermes/logs/. Look at what your agents did this week, especially commands you approved for a whole session.

How Ceryx handles this

Ceryx is a desktop app that runs a team of bots on your own Hermes server, and it builds on the protections above. It adds Ceryx Guardian, a check that runs inside your Hermes server before a bot sends, posts, pays, deletes or changes anything. Guardian compares the action with the messages you typed, which your device signs. Text from web pages, emails and tool results never counts as your words. When your words don’t cover an action, the bot asks you, and your answer is signed and works once. Read how Ceryx Guardian works, or see Strict, Balanced and Autopilot for how careful each bot is.

Ceryx is independent and not affiliated with Nous Research.

Sources

Read next