compound-docs
Pass
Audited by Gen Agent Trust Hub on Nov 20, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill instructs the agent to execute shell commands using inputs derived from user conversations or direct prompts. Specifically, Step 3 uses
grepwith an "exact error phrase" from conversation history, and Decision Menu Option 3 executes a Python script (init_skill.py) with a user-supplied[skill-name]. The instructions lack explicit sanitization requirements for these specific fields, creating a risk of command injection if the input contains shell metacharacters. - [DYNAMIC_EXECUTION]: The skill uses the
Bashtool to run a local Python script (.opencode/skills/skill-creator/scripts/init_skill.py) with arguments provided at runtime by the user. While this appears to be an integration with the host platform's tooling, it constitutes dynamic execution of a process based on external input. - [INDIRECT_PROMPT_INJECTION]: The skill's primary purpose is to ingest untrusted data from conversation history and write it to the filesystem as documentation. This creates an indirect prompt injection surface because malicious instructions embedded in a "solved problem" or "symptom" description would be stored in a permanent file that may later be read and interpreted as instructions by other automated tools or AI agents.
- Ingestion points: Conversation history extracted in Step 2; user-provided inputs for context and skill naming.
- Boundary markers: The skill defines sanitization rules for filenames in Step 4 (lowercase, hyphens only), and utilizes YAML enum validation in Step 5. However, no boundary markers or sanitization are specified for the search queries used in Step 3 or the arguments passed to the skill-initialization script.
- Capability inventory: The skill utilizes
Read,Write,Grep, andBashtools. It performs directory creation (mkdir), file writing, search operations (grep,ls), and script execution (python3). - Sanitization: Sanitization is present for generated filenames (Step 4) but is absent for user-supplied data interpolated into shell search commands and script execution arguments.
Audit Metadata