T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:24
- Finding
- Mutable Remote Repository Is Retrieved and Executed Without Commit Pinning<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:24-25` **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: High ### Vulnerable Code ```yaml - git clone https://github.com/AmrDab/clawd-cursor.git - cd clawd-cursor && npm install && npm run setup ``` ### Technical Analysis The installation procedure clones the current default branch of an external Git repository and immediately installs its dependencies and executes its setup script. No reviewed commit hash, signed release, version tag, or integrity digest is specified. Consequently, the effective code executed by this Skill can change after the Skill itself has been audited. The external repository's setup script and npm lifecycle scripts execute with the permissions of the user or agent performing installation. The implementation retrieved from that repository is not included in the audited project, which contains only `SKILL.md`; its runtime behavior therefore cannot be verified from this artifact. This risk is particularly significant because the declared implementation can inspect screenshots, automate desktop applications, and discover locally configured AI-provider credentials. ### Attack Path 1. An attacker compromises the upstream repository, a maintainer account, or the repository's default branch. 2. The attacker modifies the application, setup script, package manifest, or dependency configuration. 3. A user or agent follows the Skill's installation instructions and clones the mutable default branch. 4. `npm install` runs dependency lifecycle scripts, after which `npm run setup` executes repository-controlled code. 5. The malicious code runs with the invoking user's permissions. 6. It can access files and environment data available to that user, misuse desktop-automation capabilities, or transmit sensitive information over the network. ### Impact Assessment Successful exploitation permits arbitrary code execution under the invoking user's account. T ...[truncated 501 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin the Git repository to a specific, reviewed commit hash rather than cloning and executing the mutable default branch. 2. Distribute the implementation through signed, immutable releases with published checksums. 3. Verify the expected commit, release signature, and artifact digest before executing any setup command. 4. Include the executable source in the Skill package where possible so it can be audited together with `SKILL.md`. 5. Require explicit user approval before downloading or executing remote code. 6. Run setup in a restricted environment with minimal filesystem, credential, GUI, and network access. 7. Document the exact remote endpoints and data categories used by the installed implementation. ]]>
