hermes-context-optimization
Pass
Audited by Gen Agent Trust Hub on Aug 14, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill makes extensive use of shell commands to inspect system state, manage services, and manipulate files.
- Evidence: Commands such as
sqlite3,find,launchctl,docker exec, andchmodappear throughoutSKILL.mdand thereferences/directory to manage the Hermes environment. - [DATA_EXPOSURE]: The skill directs the agent to access sensitive internal configuration and session data files.
- Evidence: The instructions guide the agent to read
~/.hermes/config.yamland~/.hermes/state.dbto extract memory entries, user profiles, and session history for analysis. - [INDIRECT_PROMPT_INJECTION]: The skill processes potentially untrusted session history from a database to drive system configuration changes (disabling skills).
- Ingestion points: Reads the
messagestable from~/.hermes/state.db(file:skill-pruning-workflow.md). - Boundary markers: None mentioned for processing the SQL query results.
- Capability inventory: Shell execution (
python3), file writing (config.yaml), and service management (launchctl). - Sanitization: Employs basic shell filtering (
sed,sort -u) to normalize skill names before modification. - [DYNAMIC_EXECUTION]: The skill utilizes dynamic script execution and describes runtime modification of agent internals through shims.
- Evidence: Multiple Python one-liners (
python3 -c) are used for YAML manipulation. Additionally,references/tool-router-architecture.mddescribes a plugin shim that wraps and replaces internal methods likeagent.turn_context.build_turn_contextat runtime.
Audit Metadata