T08 · Insecure Dependencies
- Location
SKILL.md:15- Finding
Unpinned Third-Party npm Dependency
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 15–18
Vulnerability Type:T08: Insecure Dependencies
Risk Level: Lowyaml install: - kind: node package: "@anthropic-ai/sdk" bins: []Technical Analysis
The skill declares
@anthropic-ai/sdkwithout an exact version, lockfile, or integrity hash. Consequently, installation may resolve a mutable package release rather than a specific reviewed artifact. If the upstream package or distribution channel is compromised, a malicious release could be installed without any change to this repository.The dependency name is consistent with the documented Anthropic integration. No evidence of dependency confusion, typosquatting, an unsafe package source, or an existing malicious package was identified. This finding concerns the absence of reproducible dependency pinning and integrity controls.
Attack Path
- An attacker compromises the upstream package publisher account, package, or registry distribution process.
- The attacker publishes a malicious version under the legitimate
@anthropic-ai/sdkpackage name. - The skill is installed or reinstalled while no exact version constraint or trusted lockfile is enforced.
- The package manager resolves and downloads the compromised release.
- Malicious dependency code executes during an installation lifecycle hook or when the skill loads and uses the SDK.
This path depends on a separate upstream supply-chain compromise; the audited file does not itself retrieve a known malicious package.
Impact Assessment
Successful exploitation could execute code with the privileges of the account installing or running the skill. Depending on that account's access, the malicious dependency could read environment variables—including the declared
ANTHROPIC_API_KEY—access user-readable files, alter project data, or make unauthorized network requests.The potential scope is the local account or container running the installation or s ...[truncated 121 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin
@anthropic-ai/sdkto a reviewed exact version rather than relying on mutable resolution. - Use and enforce a package-manager lockfile containing integrity metadata.
- Install dependencies with immutable or frozen-lockfile settings in CI and production.
- Enable registry provenance and signature verification where supported.
- Disable dependency lifecycle scripts unless they are explicitly required and reviewed.
- Add automated dependency scanning and controlled update review.
- Run installation and skill execution in a least-privileged, isolated environment with only the required secrets and filesystem access.
- Pin
