goal-manager
Pass
Audited by Gen Agent Trust Hub on Oct 3, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill implements a 'context-injection' capability that surfaces user-controlled goal data directly into the agent's session prompt, creating a vector for indirect prompt injection.
- Ingestion points: Data is ingested through the
registerandupdate-progresscommands inscripts/goal_manager.py. Attackers can supply malicious instructions via arguments like--title,--intent,--accomplished, and--decisions. - Boundary markers: The
cmd_context_blockfunction inscripts/goal_manager.pygenerates the prompt injection block. While it uses textual headers (e.g.,=== ACTIVE GOALS (LHC) ===), it lacks explicit instructions to the LLM to ignore or treat embedded goal content as untrusted data. - Capability inventory: The skill has the capability to read and write files within the user's workspace (defaulting to
~/.aimee/workspace). It does not have network access or arbitrary command execution capabilities. - Sanitization: The script performs no sanitization, escaping, or validation of the text content provided in CLI arguments before interpolating it into the
context-blockoutput. - [DATA_EXPOSURE]: The goal management functions in
scripts/goal_manager.pyare vulnerable to path traversal attacks. - Evidence: The
_read_goaland_atomic_writefunctions construct file paths by concatenatingGOALS_DIRwith the user-providedgoal_id(e.g.,path = GOALS_DIR / f"{goal_id}.json"). - Impact: A maliciously crafted
goal_idcontaining directory traversal sequences (e.g.,../../target) could allow the skill to read from or overwrite any.jsonfile the current user has permissions to access outside of the intended workspace.
Audit Metadata