T08 · Insecure Dependencies
- Location
SKILL.md:9- Finding
Unpinned Third-Party Skill Installation Creates a Supply-Chain Risk
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 9
Vulnerability Type:T08: Insecure Dependencies
Risk Level: MediumVulnerable Code
markdown > **Requires `caremax-auth` as a sibling directory** (`../caremax-auth/`). If missing, tell the user to install caremax-auth first (e.g. `npx skills add KittenYang/caremax-skills`).Technical Analysis
The documented installation command invokes an npm-distributed CLI without pinning its version and installs Skill content from a mutable third-party repository reference. Neither the
skillsCLI version nor an immutable commit, release artifact, checksum, or signature forKittenYang/caremax-skillsis specified.The installed
caremax-authcomponent is subsequently trusted to provide authentication, API request, file-upload, and OCR-streaming scripts. Those scripts are outside this project and were not available for audit. Consequently, the behavior that will process credentials and sensitive medical reports can change after this Skill has been reviewed.This is a supply-chain weakness rather than evidence that the currently referenced project is malicious.
Attack Path
- An attacker compromises the npm package, its publisher account, the referenced repository, or another upstream distribution component.
- The attacker publishes a modified CLI or changes the mutable repository content to include malicious Skill instructions or shell scripts.
- A user follows the documented unpinned command:
bash npx skills add KittenYang/caremax-skills - The mutable, attacker-controlled content is downloaded and installed as the trusted sibling dependency.
- This Skill invokes the installed authentication, upload, or API scripts.
- The malicious dependency executes with the invoking agent's local privileges and receives access to data supplied to those scripts.
Impact Assessment
Successful exploitation could execute arbitrary commands with the privileges of the us ...[truncated 505 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the npm CLI to an explicitly reviewed version instead of resolving the latest available package:
bash npx skills@<reviewed-version> add ... - Pin the Skill source to an immutable commit digest or cryptographically signed release rather than a mutable repository reference.
- Publish and verify cryptographic checksums or signatures for the installed artifacts.
- Document the canonical package name, publisher identity, official repository, expected revision, and verification procedure to reduce dependency-confusion and impersonation risks.
- Vendor the required
caremax-authscripts into a reviewed release where feasible, or audit the exact pinned dependency revision together with this Skill. - Execute dependency installation and its scripts with least privilege, restricted filesystem access, limited environment-variable exposure, and narrowly scoped network access.
- Require explicit user approval before installing external components, and display the exact pinned source and revision that will be installed.
- Pin the npm CLI to an explicitly reviewed version instead of resolving the latest available package:
