T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:35
- Finding
- Unpinned Third-Party Skill Update Creates a Supply-Chain Risk<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 35-39 **Vulnerability Type**: Unpinned third-party dependency installation **Risk Level**: Medium ### Vulnerable Code ```bash ## Update Commands When users ask to update this skill, run: npx skills add 1asdwz/ai-dating ``` ### Technical Analysis The documented update process uses `npx` to install a Skill from a mutable third-party repository reference. The command does not specify a reviewed version, immutable commit hash, package integrity hash, or cryptographic signature. Consequently, the content installed by this command can differ from the content covered by this audit. Compromise of the upstream account, repository, package-resolution infrastructure, or a subsequent malicious update could introduce unauthorized instructions or executable content. Although the current artifact does not contain embedded malicious scripts, its recommended update mechanism crosses a supply-chain trust boundary without integrity verification. ### Attack Path 1. An attacker compromises the upstream `1asdwz/ai-dating` project, its maintainer account, or a relevant package-resolution channel. 2. The attacker publishes modified Skill content under the same mutable reference. 3. A user asks the agent to update the Skill. 4. The agent executes `npx skills add 1asdwz/ai-dating` as documented. 5. The command retrieves and installs content that was not part of the reviewed artifact. 6. The newly installed Skill can subsequently influence agent behavior or execute any functionality supported by the Skill framework. ### Impact Assessment Successful exploitation could replace the audited Skill with attacker-controlled content. The resulting impact depends on the privileges of the installation process and agent runtime, but may include: - Unauthorized modification of agent instructions. - Exposure of dating credentials, authentication tokens, profile details, photographs, and contact information. - Unauth ...[truncated 359 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Pin the Skill source to a reviewed immutable release or commit hash. - Pin the `npx` installer package itself to an approved version. - Require integrity verification through a checksum or cryptographic signature. - Download updates into a staging directory and review their complete contents before activation. - Compare the downloaded artifact against an approved manifest of expected files. - Run installation with the minimum required privileges. - Prevent updates from automatically replacing an active Skill without explicit confirmation. - Document a rollback procedure and preserve the last verified version. ]]>
