T08 · Insecure Dependencies
- Location
SKILL.md:11- Finding
Unpinned Third-Party Skill Installation Creates a Supply-Chain Risk
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:11
Vulnerability Type: Unpinned third-party dependency installation
Risk Level: MediumComplete Code Snippet:
bash npx skills add pskoett/pskoett-ai-skills/agent-teams-simplify-and-hardenTechnical Analysis
The installation command invokes an npm-resolved CLI and installs a skill from a third-party repository without pinning either resource to a verified version or immutable commit. Consequently, the content installed when this command is run can differ from the content reviewed during this audit.
This creates a time-of-review versus time-of-installation trust gap. Compromise of the npm package, publisher account, source repository, or referenced branch could cause users to receive modified instructions or executable components. The audited file does not demonstrate that such a compromise has occurred; the vulnerability is the unsafe reliance on mutable upstream resources.
Attack Path
- An attacker compromises the npm CLI package, its publisher account, the upstream skill repository, or another relevant distribution component.
- The attacker publishes malicious content under the same mutable package or repository reference.
- A user follows the documented
npx skills addcommand. - The command resolves and downloads the attacker-controlled version rather than a previously audited version.
- The malicious skill content executes or influences an agent with the privileges available in the installation or subsequent skill-use context.
Impact Assessment
The attainable privileges depend on the environment in which installation and later skill execution occur. A compromised dependency could influence agent instructions, access files available to the agent, initiate permitted tool operations, or execute code with the invoking user's privileges. The scope may include the target repository and any additional resources exposed to the CLI ...[truncated 21 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the
skillsCLI to a reviewed, exact version rather than relying on dynamic npm resolution. - Pin the third-party skill to an immutable commit hash or cryptographically verified release.
- Publish and verify checksums or signatures for all installed artifacts.
- Review the resolved package and skill contents before activation.
- Use a lockfile and trusted internal registry or mirror where supported.
- Run installation and initial validation in a restricted sandbox without credentials or access to unrelated files.
- Establish a controlled update process that requires security review before changing pinned versions.
- Pin the
