T08 · Insecure Dependencies
- Location
SKILL.md:58- Finding
Unpinned Third-Party Code Execution Through GitHub-Based npx Installation
- Content
View full analysis
` for library skills). ``` ### Technical Analysis The recommended command instructs users to execute a package directly from the mutable `dennisrongo/claude-skills` GitHub repository. It does not pin the source to a reviewed commit SHA, release artifact, or cryptographically verified package version. Because `npx` downloads and executes package code, a later change to the repository can alter the effective payload without changing this audited skill. The `--yes` option also suppresses the normal confirmation prompt, reducing the opportunity for a user to review the package source before execution. This creates a supply-chain trust dependency on the repository account, repository configuration, branch contents, transitive dependencies, and the delivery channel. ### Attack Path 1. An attacker compromises the referenced GitHub repository, a maintainer account, or an upstream dependency used by its CLI. 2. The attacker modifies the package entry point, lifecycle behavior, or installation command on the repository's default branch. 3. A user follows the command generated by this skill: ```bash npx --yes github:dennisrongo/claude-skills install ``` 4. `npx` retrieves the current attacker-controlled repository contents. 5. The malicious package executes with the permissions of the user who invoked the command. 6. The payload can access files, environment variables, credentials, and network resources available to that user. ### Impact Assessment Successful exploitation permits arbitrary code execution under the invoking user's account. The resulting access ...[truncated 399 chars]- Remediation
View remediation
