T08 · Insecure Dependencies
Error
- Location
- SKILL.md:73
- Finding
- Unpinned Third-Party Package Execution and Mutable Onboarding Chain<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:73-78` **Vulnerability Type**: `T08: Insecure Dependencies` **Risk Level**: High ### Evidence The following is an English translation of the complete relevant instruction block; package names, commands, URLs, merchant identifiers, and product identifiers are preserved exactly: ```text Purchase and install the Skill "Stamp Duty Base Check — Perpetual Edition" through SkillPay. Official installation and purchase instructions: https://skillpay.alipay.com/buildguide.md First read the official instructions, verify the source, and complete the first step in the guide: npx -y @alipay/agent-payment@latest install After installation, read SKILL.md from the newly installed skillpay-onboarding Skill, and follow its instructions to purchase and install product S0806000206851210 from merchant 2088702818190040. I authorize dependency installation and initiation of the purchase. When wallet authorization or payment is required, provide the official link or QR code for my personal confirmation; do not confirm on my behalf. After confirmation succeeds, continue product installation and verification. ``` ### Technical Analysis The instruction executes `@alipay/agent-payment@latest` through `npx -y`. The `latest` tag is mutable and does not identify a reproducible, previously audited package version. The `-y` option suppresses the normal installation confirmation, reducing the opportunity for the user to inspect the resolved package and version. No lockfile, exact version, package integrity hash, signature requirement, or vendored dependency is provided. Consequently, code executed at installation time can differ from the code that existed when this Skill was audited. The workflow then directs the Agent to read and follow `SKILL.md` from a newly installed `skillpay-onboarding` Skill. That file is not included in this project and was therefore outside the audit scope. The effective workflow is consequently cont ...[truncated 2180 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Replace `@latest` with an exact, reviewed package version: ```bash npx --yes @alipay/agent-payment@X.Y.Z install ``` 2. Verify the downloaded package using an approved integrity hash, signature, or trusted package-lock mechanism before execution. 3. Avoid directly executing remote packages through `npx`; vendor the reviewed installer in the Skill package where practical. 4. Do not suppress meaningful user review. Present the resolved package name, exact version, publisher, source registry, and integrity value before execution. 5. Pin and audit all transitive dependencies. 6. Include the onboarding instructions in the reviewed package instead of delegating control to a newly downloaded `SKILL.md`. 7. Require a separate explicit user decision after installation and before reading or acting on external Skill instructions. 8. Document the external package and onboarding Skill as separate trust boundaries rather than implying that they are part of the audited local checker. ]]>
