agent-offline-mermory
Pass
Audited by Gen Agent Trust Hub on Sep 9, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill reads user-controlled Markdown files to retrieve "experience" or "knowledge," which introduces a surface for indirect prompt injection if those files contain malicious instructions.
- Ingestion points: The
query_notesfunction inscripts/write-memory.pyreads content from Markdown files within the user-configuredmemory_root. - Boundary markers: The
SKILL.mdprovides explicit instructions to the agent to treat retrieved knowledge as reference material and not let it override current user commands or environment facts. - Capability inventory: The skill can read, write, and append to Markdown files and execute local helper scripts.
- Sanitization: The
assert_path_within_rootfunction inscripts/write-memory.pyusesPath.relative_toto enforce that all file operations remain within the user-specified directory, preventing path traversal attacks. - [COMMAND_EXECUTION]: The skill utilizes local PowerShell, Shell, and Python scripts to facilitate memory management operations.
- Evidence: The
SKILL.mdinstructs the agent to invokescripts/write-memory.ps1,scripts/write-memory.sh, orscripts/write-memory.pyfor all initialization and data operations. These scripts are self-contained and do not perform network operations or unauthorized system modifications.
Audit Metadata