hermes-security
Skill4 starsChanged 7 months agoMITView on GitHub
Use when configuring security settings, command approvals, secret management, or sandboxing. Covers: approvals mode, YOLO mode, secret redaction, PII redaction, shell hooks allowlist, sandboxing, command safety, credential security, security config. Triggers on: security, approval, YOLO, secret, redaction, sandbox, safe, dangerous, permissions.
- Reads credentials
- Deletes or force-pushes
In this repository22 other files it gives its agents.
- hermes-channelsSkill
- hermes-cliSkill
- hermes-conceptsSkill
- hermes-configSkill
- hermes-cronSkill
- hermes-delegationSkill
- hermes-gatewaySkill
- hermes-hooksSkill
- hermes-installSkill
- hermes-loggingSkill
- hermes-masterSkill
- hermes-mcpSkill
- hermes-memorySkill
- hermes-platformsSkill
- hermes-providersSkill
- hermes-skill-authoringSkill
- hermes-skillsSkill
- hermes-soulSkill
- hermes-toolsSkill
- hermes-troubleshootingSkill
- hermes-voiceSkill
- hermitdoc-onboardingSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 114
Remove entries you don't trust:
- Distinctive: line 201
Enable secret redaction: if sharing logs
- Distinctive: line 203
Use credential pools: instead of single keys
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Hermes Security Reference
Complete guide to Hermes security configuration and best practices.
Security Model Overview
Hermes has layered security:
- Command approval — prompt before dangerous commands
- Secret redaction — mask API keys in logs
- PII redaction — protect user data in context
- Shell hooks allowlist — control hook execution
- Sandboxing — isolate tool execution
Command Approvals
Modes
| Mode | Behavior | When to use |
manual | Always prompt before flagged commands | Default, recommended |
smart | Auto-approve low-risk, prompt on high-risk | Trust some commands |
off | Skip all prompts | Never in production |
Configuration
# config.yaml
approvals:
mode: "manual" # manual | smart | off
# Or via CLI
hermes config set approvals.mode smartDestructive Commands (always flagged)
rm -rforrm -r /*git reset --hardmkfsorddwith device targetpkill -forkill -9on system processes- Deleting
/etc,/var,/home
Per-Invocation Bypass
# Single session with no approvals
hermes --yolo
# Or in config
export HERMES_YOLO_MODE=1[!WARNING] Never use
--yoloormode: offin production.
Secret Redaction
Prevents API keys and tokens from appearing in conversation logs:
# Enable
hermes config set security.redact_secrets true
# Restart required — changes don't apply mid-sessionWith redaction enabled, strings matching these patterns are masked:
sk-...(OpenAI, Anthropic)sk-or-...(OpenRouter)Bearer ...api_key=...token=...- Long alphanumeric strings matching API key format
[!NOTE] Redaction must be enabled at startup. Toggling mid-session has no effect.
PII Redaction
Separate from secret redaction. Hashes user IDs and strips phone numbers:
# Enable
hermes config set privacy.redact_pii true
# Disable (default)
hermes config set privacy.redact_pii falseShell Hooks Allowlist
Some shell-hook integrations require explicit allowlisting:
- First time a hook wants to run, Hermes prompts interactively
- Decisions stored in
~/.hermes/shell-hooks-allowlist.json - Review periodically:
cat ~/.hermes/shell-hooks-allowlist.json
Remove entries you don't trust:
# Edit the allowlist
nano ~/.hermes/shell-hooks-allowlist.jsonCredential Security
API Keys
Store in ~/.hermes/.env, never in config.yaml:
# In .env
ANTHROPIC_API_KEY=sk-ant-...
OPENROUTER_API_KEY=sk-or-...
# In config.yaml (reference only)
model:
api_key: "${ANTHROPIC_API_KEY}"Credential Pools
Rotate across multiple API keys automatically:
hermes auth add # add more credentials
hermes auth list # see all
hermes auth remove P INDEX # remove one
hermes auth reset PROVIDER # clear exhaustionFile Permissions
# Secure your Hermes home
chmod 700 ~/.hermes/
chmod 600 ~/.hermes/config.yaml
chmod 600 ~/.hermes/.env
chmod 600 ~/.hermes/auth.jsonSandboxing
Isolate tool execution in containers:
# Check sandbox status
hermes sandbox status
# Enable sandboxing (if supported)
hermes config set sandbox.enabled trueSandboxing limits:
- File system access (scoped to project)
- Network access (configurable)
- Process execution (containerized)
Security Configuration Template
security:
# Redact API keys from logs
redact_secrets: true
# Enable content filtering
tirith_enabled: false
# Block specific URLs
website_blocklist:
- "https://malicious-site.com"
privacy:
# Hash user IDs, strip phone numbers
redact_pii: false
approvals:
# Prompt before dangerous commands
mode: "manual" # manual | smart | offBest Practices
- Never use
--yoloin production - Keep
approvals.mode: manualfor sensitive environments - Enable secret redaction if sharing logs
- Review shell hooks allowlist regularly
- Use credential pools instead of single keys
- Set proper file permissions on config and .env
- Don't commit secrets to version control
Security Checklist
approvals.modeset tomanualorsmartsecurity.redact_secretsenabled (if sharing logs)- API keys in
.env, not inconfig.yaml - File permissions correct:
chmod 600on sensitive files - Shell hooks allowlist reviewed
- No
--yoloin production - Regular
hermes doctorchecks
References
Structured reference docs:
- Config Reference — Security config schema
- Secrets Redaction — API key protection
- Best Practices — Security guidelines
Related skills:
hermes-config/— security config keyshermes-cli/— auth managementhermes-troubleshooting/— security issues- Official security docs: https://hermes-agent.nousresearch.com/docs/security
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

