openspec-apply-change
Pass
Audited by Gen Agent Trust Hub on Sep 20, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses the
openspecCLI tool via shell commands to list changes, retrieve implementation instructions, and check task status. These operations are scoped to theopenspectool as defined in theallowed-toolsfrontmatter. - [INDIRECT_PROMPT_INJECTION]: The skill processes data from external files (
contextFiles) and CLI outputs (context,operationGuidance) that could contain instructions intended to influence the agent's behavior. This presents a vulnerability surface for indirect prompt injection. - Ingestion points: JSON fields returned by
openspec instructions apply(specificallycontextandoperationGuidance) and the content of files specified in thecontextFilesarray (such as proposal, specs, or design documents). - Boundary markers: The skill instructions provide logical boundaries, explicitly telling the agent that external guidance is prompt-level advice that must not replace built-in instructions, evidence of task completion, or the controlling CLI-reported state.
- Capability inventory: The skill allows the agent to execute
openspecCLI commands, read project files, and modify local files to record task completion. - Sanitization: The instructions direct the agent to report conflicts between external data and the controlling workflow and to avoid copying runtime context verbatim into persistent artifacts.
Audit Metadata