hindsight-maintenance
Warn
Audited by Gen Agent Trust Hub on Sep 4, 2026
Risk Level: MEDIUMPERSISTENCEPRIVILEGE_ESCALATIONCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [PERSISTENCE]: The skill provides detailed instructions and templates in
references/scheduling.mdto establish persistence on the host system usingsystemduser units and timers. This configuration allows maintenance scripts to run automatically across sessions without user intervention. - [PRIVILEGE_ESCALATION]: In
references/scheduling.md, the skill advises users to run the AI agent with the--dangerously-skip-permissionsflag for automated runs. This recommendation encourages the bypass of built-in security prompts and user confirmation mechanisms for agent actions. - [COMMAND_EXECUTION]: The scripts (e.g.,
scripts/tune-up.sh,scripts/hs-lib.sh) execute various system-level commands, includingdocker ps,docker logs,docker inspect, andpsql. These tools are used to monitor container health and manage the Hindsight database state. - [DYNAMIC_EXECUTION]: The bash scripts
scripts/new-memories.shandscripts/reap-orphans.shdynamically construct SQL queries by interpolating variables likeBANKandSINCEdirectly into command strings. The implemented sanitization (stripping single quotes) is a weak defense against potential SQL injection if input sources were to become untrusted. - [INDIRECT_PROMPT_INJECTION]: The skill ingests facts and observations from memory banks and processes them using LLMs for synthesis and wiki generation, creating a surface for indirect prompt injection if the memory store contains data from untrusted sources.
- Ingestion points: Data is fetched from the
hindsight.memory_unitstable viascripts/new-memories.sh. - Boundary markers: No explicit delimiters or instructions to ignore embedded commands are present in the processing logic.
- Capability inventory: The agent can execute SQL queries, manage Docker containers, and modify systemd configurations.
- Sanitization:
scripts/new-memories.shusesregexp_replaceto remove control characters from retrieved text, but lacks robust filtering for instruction-like patterns.
Audit Metadata