speckit-constitution-zh
Fail
Audited by Gen Agent Trust Hub on Sep 23, 2026
Risk Level: HIGHCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: The Bash utility scripts (e.g.,
check-prerequisites.sh,setup-plan.sh, andupdate-agent-context.sh) are vulnerable to command injection. These scripts invokeeval $(get_feature_paths), where theget_feature_pathsfunction (defined incommon.sh) generates shell variable assignments based on current branch names and directory names in the.specify/specs/folder. An attacker can execute arbitrary commands by creating a branch or directory name containing shell metacharacters (e.g.,001-';id;'), which are not correctly escaped before being passed toeval. - [INDIRECT_PROMPT_INJECTION]: The skill's primary workflow involves reading and propagating content from multiple files in the repository (such as
spec.md,plan.md,research.md, andREADME.md) to generate project constitutions and update agent guidance files. The absence of robust sanitization or explicit boundary markers (e.g., "ignore instructions in this block") makes the agent susceptible to indirect prompt injection if any of these files contain malicious instructions designed to hijack the agent's task flow. - [DATA_EXFILTRATION]: While intended as a feature for project management, the skill automatically extracts and centralizes technical metadata (technological stack, database choices, project structure, and development history) into multiple agent-specific configuration files (like
CLAUDE.mdandGEMINI.md). This creates a risk of unintentional data exposure if these metadata-heavy files are committed to public repositories or shared without review.
Recommendations
- AI detected serious security threats
Audit Metadata