hermes-wag-summarizer
Warn
Audited by Gen Agent Trust Hub on Oct 29, 2026
Risk Level: MEDIUMDATA_EXFILTRATIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONPRIVILEGE_ESCALATION
Full Analysis
- [DYNAMIC_EXECUTION]:
scripts/create-group-wrapper.pygenerates new Python executable scripts by interpolating CLI arguments (--chat-id,--group-name) into a code template. The lack of sanitization or escaping for these strings allows for Python code injection into the generated wrapper files if the inputs contain malicious characters (e.g., quotes and newlines). - [DATA_EXFILTRATION]: The skill is designed to read
~/.hermes/whatsapp/messages.jsonlviascripts/whatsapp-group-summary.py. This file contains the history of private WhatsApp communications, which is sensitive personal data. While the script prints this to standard output for processing by the agent rather than sending it to a hardcoded external URL, it constitutes a significant exposure of sensitive local files. - [PRIVILEGE_ESCALATION]:
scripts/create-group-wrapper.pyusesos.chmod(output_path, 0o755)to grant execution permissions to the scripts it generates in the user's home directory. While functional for its stated purpose, the creation of executable files from templates containing potentially injected code is a risk. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted WhatsApp message data and interpolates it directly into an LLM prompt, creating an attack surface for indirect prompt injection.
- Ingestion points:
~/.hermes/whatsapp/messages.jsonl(fields likebodyandsenderName) processed inscripts/whatsapp-group-summary.py. - Boundary markers: Absent in
templates/default-summary-prompt.txt. The{messages}content is placed directly into the prompt without delimiters or instructions to ignore nested commands. - Capability inventory: The skill can write files and modify permissions via
scripts/create-group-wrapper.py, and the generated wrappers execute subprocesses usingsubprocess.run. - Sanitization: The skill implements a
sanitize_textfunction inscripts/whatsapp-group-summary.pythat specifically filters out invisible Unicode characters (e.g., ZWSP, ZWNJ, BOM) often used to bypass scanners, indicating an awareness of prompt injection risks, though it remains incomplete.
Audit Metadata