openspec-bulk-archive-change
Pass
Audited by Gen Agent Trust Hub on Oct 31, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from both the local codebase and external CLI outputs, using this information to drive its archiving logic and conflict resolution.
- Ingestion points: The skill reads JSON data from
openspec list,openspec status, andopenspec instructions(found inSKILL.mdsteps 3 and 7). It also inspects the codebase (step 5) to understand requirement implementations. - Boundary markers: The instructions do not specify any delimiters or safety prompts to prevent the agent from being influenced by malicious instructions embedded within the codebase or the CLI tool's output.
- Capability inventory: The skill possesses the capability to create directories (
mkdir), move files/folders (mv), and invoke theopenspec-sync-specsworkflow, which modifies specification files. - Sanitization: There is no mention of sanitizing or validating the contents or paths retrieved from external sources before they are used in logic decisions or shell commands.
- [COMMAND_EXECUTION]: The skill executes shell commands to perform file system operations based on variables derived at runtime.
- Evidence: In
SKILL.mdstep 8c, the skill usesmkdir -p "<planningHome.changesDir>/archive"andmv "<changeRoot>" "<planningHome.changesDir>/archive/<target-name>". If the CLI output providing these variables is compromised, it could lead to directory traversal or unintended file moves.
Audit Metadata