T03 · Remote Payload Retrieval and Execution
- Location
- SKILL.md:21
- Finding
- Unpinned Remote Repository Is Retrieved and Executed During Installation<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:21-23` **Vulnerability Type**: Mutable remote payload retrieval and execution **Risk Level**: Medium ### Vulnerable Code ```markdown If the CLI is missing, install with `pipx install 'git+https://github.com/AntreasAntoniou/chronicle.git'`. Installing the skill does not install hooks or establish capture coverage. ``` ### Technical Analysis The documented installation command retrieves a Python package directly from the mutable default branch of a remote Git repository. It does not pin an immutable commit hash, verify a signed release, or validate an expected artifact digest. Installing a Python project through `pipx` executes package build and installation logic. Therefore, the code that is ultimately executed can change after this Skill has been reviewed without requiring any modification to `SKILL.md`. This is more specifically a remote payload retrieval issue than an ordinary dependency-version problem: the effective installation payload is fetched from an external URL and is not cryptographically bound to the reviewed source. ### Attack Path 1. An attacker compromises the referenced GitHub repository, a maintainer account, or the repository’s default branch. 2. The attacker modifies package source or build configuration on that branch. 3. A user or Agent follows the installation instruction in `SKILL.md`. 4. `pipx` clones the current repository state and invokes the Python packaging toolchain. 5. The modified code executes with the permissions of the user performing the installation. 6. The malicious package could then access user files or install additional hooks and persistent components. ### Impact Assessment Successful exploitation provides code execution under the installing user account. That scope can include access to the user’s projects, environment, credentials readable by that user, and configuration directories. The legitimate package also supports installing Agent, shel ...[truncated 322 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin installation to an immutable, reviewed commit: ```bash pipx install 'git+https://github.com/AntreasAntoniou/chronicle.git@<full-reviewed-commit-sha>' ``` 2. Prefer a versioned release artifact published through a trusted package registry. 3. Publish expected SHA-256 hashes for release artifacts and provide verification instructions. 4. Sign release tags and artifacts, and require signature verification before installation. 5. Avoid automatically updating from a mutable branch. 6. Document the exact package version or commit that corresponds to the audited Skill revision. ]]>
