plan
Warn
Audited by Gen Agent Trust Hub on Sep 30, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The core logic of the
planCLI tool (located inbin/plan.ts) usesspawnSyncwithshell: trueto execute arbitrary strings retrieved from thev(staleness check) andt(proof gate) fields of the plan JSON files. This allows the execution of any system command, such aspnpm test,grep, or complex bash scripts, without validation or sanitization. - [DYNAMIC_EXECUTION]: The skill dynamically loads and executes shell commands from a data file (
.plan.json) at runtime. This behavior occurs automatically when a user or agent invokes theplancommand to check status or mark a step as complete. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process instructions from external plan files, creating a vulnerability surface for indirect prompt injection.
- Ingestion points: The agent reads the
s(step description) and_(preamble) fields fromplan/*.plan.jsonfiles. - Boundary markers: The tool lacks explicit delimiters or "ignore instructions" warnings when presenting these fields to the executor agent.
- Capability inventory: The skill possesses significant capabilities, including arbitrary shell command execution, file creation (
writeFileSync), file renaming (renameSync), and file deletion (unlinkSync). - Sanitization: There is no sanitization of the content within the JSON fields before they are executed as commands or interpreted as instructions by the AI agent.
Audit Metadata