filesystem-context

Warn

Audited by Gen Agent Trust Hub on May 11, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: In references/implementation-patterns.md, the TerminalCapture class uses subprocess.run(command, shell=True). This implementation pattern allows for the execution of arbitrary shell commands. If the command string is constructed using untrusted input, it presents a risk of command injection.
  • [PROMPT_INJECTION]: The skill architecture creates several surfaces for indirect prompt injection by ingesting data from external or tool-generated files into the prompt context. Ingestion points include scratch/, terminals/, and workspace/ directories. There are no instructions to wrap these file inputs in protective delimiters or to treat the content as untrusted data. The patterns do not include logic for sanitizing or validating the content of files before they are read into the context window.
  • [PROMPT_INJECTION]: Pattern 6 ('Learning Through Self-Modification') describes a mechanism where the agent writes learned information to its own instruction files (e.g., agent/preferences.yaml). This pattern enables a form of persistence where malicious instructions provided in a session could be saved and subsequently loaded in future sessions, modifying agent behavior without explicit user review.
Audit Metadata
Risk Level
MEDIUM
Analyzed
May 11, 2026, 06:02 PM