learn-pattern
Warn
Audited by Gen Agent Trust Hub on Mar 29, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes a local script using
npx tsx memory/scripts/memory-runner.ts. The execution workflow involves interpolating untrusted session data into a shell command string:npx tsx memory/scripts/memory-runner.ts save '<json>'. This is susceptible to command injection if the session content contains single quotes or other shell metacharacters that allow breaking out of the argument string. - [COMMAND_EXECUTION]: The skill lacks instructions for the agent to sanitize or escape the JSON payload before passing it to the shell, which could allow an attacker to execute arbitrary commands if they can influence the session context.
- [PROMPT_INJECTION]: The skill exposes an indirect prompt injection surface through its session processing.
- Ingestion points: Reads the current session context to extract patterns (SKILL.md).
- Boundary markers: Absent; the skill does not use delimiters to isolate untrusted session data from the agent's instructions.
- Capability inventory: Executes shell commands and performs database writes (SKILL.md).
- Sanitization: Absent; extracted content is not escaped or validated before being passed to the subprocess call.
- [DATA_EXFILTRATION]: The skill uses
memoryReadPolicy: fullandmemoryWritePolicy: full, granting it broad access to sensitive session memory. Combined with the command injection vulnerability, this allows for potential exfiltration of session data or poisoning of the memory database.
Audit Metadata