T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:34- Finding
Unpinned Remote Code Retrieval and Dependency Execution
- Content
View full analysis
/dev/null rm -rf /tmp/conflux-wallet-tmp cd "$SKILL_DIR" && npm install fi ``` ### Technical Analysis The installation instructions clone the current default branch of an external Git repository without pinning a commit, verifying a cryptographic checksum, or validating a signed release. The reviewed artifact contains only documentation, so the remotely retrieved source code represents the effective implementation of the Skill. The subsequent `npm install` command processes dependencies selected by the downloaded project. Depending on the package configuration, it may also execute npm lifecycle scripts such as `preinstall`, `install`, or `postinstall`. Therefore, code that was not present during this audit can execute with the privileges of the user running the installation. This is principally remote payload retrieval and execution. It also creates a dependency supply-chain exposure because no reviewed lockfile or reproducible dependency set is included in the audited artifact. ### Attack Path 1. An attacker compromises the upstream repository, a maintainer account, or a dependency resolved by the downloaded project. 2. The attacker modifies the default branch or dependency configuration to include malicious source code or an npm lifecycle script. 3. An agent follows the bootstrap instructions in `SKILL.md`. 4. `git clone` retrieves the modified, unpinned content. 5. `npm install` installs dependencies and may execute attacker-controlled lifecycle scripts. 6. The malicious process runs under the installing user's account and c ...[truncated 824 chars]- Remediation
View remediation
