T08 · Insecure Dependencies
- Location
SKILL.md:22- Finding
Unpinned External Skill Dependency
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 22
Vulnerability Type: Unverified and unpinned external dependency
Risk Level: MediumVulnerable Code Snippet
text REQUIRED: First check whether `pincaimao-basic` is installed. If it is not installed, install it first, and then load it to learn the common interfaces for file upload, authentication, response formats, and SSE parsing templates.Technical Analysis
The Skill requires the Agent to install and load an external Skill named
pincaimao-basic, but it does not specify an exact version, authenticated source, publisher identity, or integrity hash. It also does not provide a safe installation procedure.Loading another Skill is security-sensitive because its instructions can influence subsequent Agent behavior. In this case, the dependency is expected to control authentication and resume-upload operations. A malicious, replaced, or unexpectedly updated dependency could therefore instruct the Agent to disclose credentials or candidate data, contact undeclared endpoints, or execute commands through the permitted Bash tool.
The dependency does not automatically execute merely because this document is loaded; exploitation depends on how the runtime resolves, installs, and loads
pincaimao-basic. Nevertheless, requiring an unidentified mutable dependency creates a supply-chain trust boundary that is not adequately constrained.The static pre-scan warning concerning
curl | bashwas not confirmed. The audited file containscurlAPI requests, but none of their responses are piped into a shell for execution.Attack Path
- An attacker publishes, replaces, or compromises a Skill resolvable under the name
pincaimao-basic. - The Agent follows the mandatory instruction on line 22 because the dependency is not already installed.
- The runtime resolves and installs the attacker-controlled or modified dependency without a pinned version or integrity verification.
- The ...[truncated 1083 chars]
- An attacker publishes, replaces, or compromises a Skill resolvable under the name
- Remediation
View remediation
Remediation Suggestions
- Pin
pincaimao-basicto an exact, reviewed version rather than resolving it only by name. - Specify an authenticated official registry or immutable source URL and the expected publisher identity.
- Verify a cryptographic digest or signed provenance record before installation or loading.
- Require explicit user confirmation before installing a missing external Skill.
- Vendor the minimal upload, authentication, and response-parsing instructions into this package where licensing and maintenance requirements allow.
- Audit the dependency and its transitive dependencies for network destinations, command execution, credential access, and instruction-hijacking behavior.
- Restrict the dependency to the minimum tools and environment variables needed for HTTPS requests to the documented API.
- Enforce an outbound network allowlist for
api.pincaimao.comand prevent the dependency from sending the API key or resume data to other destinations. - Prefer structured HTTP and JSON tools over unrestricted Bash where the runtime supports them.
- Pin
