openspec-propose

Warn

Audited by Gen Agent Trust Hub on Nov 6, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill generates and executes shell commands such as openspec new change "<name>" and openspec status --change "<name>" --store "<id>". Since <name> and <id> are derived from user input or external configuration, a malicious user could provide inputs designed to inject additional shell arguments or manipulate the command logic.
  • [INDIRECT_PROMPT_INJECTION]: The skill ingests instructions, context, and rules from the JSON output of the openspec instructions command. This content is used as a direct constraint on the agent's behavior. If the CLI tool processes a malicious repository, an attacker could embed hidden instructions in the repository's configuration to hijack the agent's execution.
  • Ingestion points: JSON output from openspec instructions <artifact-id> --change "<name>" --json (SKILL.md).
  • Boundary markers: None; the skill lacks explicit delimiters or instructions to ignore potential injection within the CLI-provided instructions.
  • Capability inventory: The agent is authorized to use Bash(openspec:*), allowing it to modify the filesystem and read repository state.
  • Sanitization: No validation or sanitization is performed on the instruction fields before they are used to guide the agent.
  • [DYNAMIC_EXECUTION]: The skill includes logic to invoke specific commands or other skills if the instruction field from the CLI output delegates artifact creation. This effectively allows the data returned by the CLI to determine which code or tool the agent executes next, creating a path for dynamic, data-driven code execution.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Nov 6, 2026, 10:10 PM