T01 · Skill Instruction Hijacking
- Location
SKILL.md:43- Finding
Automatic Downstream Skill Invocation and Cross-Session Coordination Without User Confirmation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 43-45 and 62-75
Vulnerability Type:T01: Skill Instruction Hijacking
Risk Level: MediumVulnerable Code
markdown ### 3. Output Format The PRD is generated in markdown format with clear section headers and structured content. After generating the PRD, the skill automatically triggers the dev-skill to begin implementation.markdown ## Auto-Trigger Next Steps After generating the PRD, this skill automatically: 1. Saves the PRD to `prd-output/` directory with timestamp 2. Triggers `dev-skill` with the PRD as input 3. Monitors the pipeline progress through session messaging ## Integration with Auto-Dev-Pipeline This skill is designed to work seamlessly with: - **dev-skill**: Receives PRD and generates SwiftUI code - **qa-skill**: Receives code and generates test cases - **session coordination**: Uses `sessions_send` to trigger next stepsTechnical Analysis
The declared primary purpose of the skill is to transform natural-language requirements into a Product Requirements Document. However, the instructions expand execution beyond document generation by directing the agent to write the result to disk, invoke another skill automatically, and coordinate activity through cross-session messaging.
No explicit user-confirmation checkpoint, destination validation, downstream content validation, or approved-session restriction is specified. Consequently, user-controlled requirements incorporated into the generated PRD may be forwarded to another agent or skill as operational input. This creates an instruction-propagation boundary in which a documentation request can transition automatically into implementation activity.
The audited package contains only
SKILL.md; no executable scripts or direct implementation ofsessions_sendwere present. Exploitability and final impact therefore depend on whether the hosting agent grants ...[truncated 1510 chars]- Remediation
View remediation
Remediation Suggestions
- Make PRD generation the default terminal action. Return the generated document to the user without automatically starting implementation.
- Require explicit, informed user confirmation before each side effect:
- Writing the PRD to disk.
- Invoking
dev-skillorqa-skill. - Sending messages to another session.
- Display the exact output path, destination skill, session identifier, and content summary before requesting approval.
- Treat generated PRD content as untrusted data. Use a structured schema and prevent free-form PRD text from being interpreted as agent-control instructions.
- Validate and normalize the output path, confining writes to a dedicated approved directory and rejecting path traversal or unsafe filenames.
- Restrict session messaging to explicitly approved session identifiers and apply least-privilege controls to downstream tools.
- Add a review gate between PRD generation and implementation so users can edit or reject generated requirements before they are forwarded.
- Record downstream invocations and filesystem writes in an audit log, including the initiating user approval and destination.
