T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:34
- Finding
- Unpinned Remote Repository Is Downloaded and Executed## Vulnerability Details **File Location**: `SKILL.md`, lines 34–38 **Vulnerability Type**: Unverified remote payload retrieval and execution **Risk Level**: Critical ```bash cd /home/node/.openclaw/workspace git clone https://github.com/pfaria32/OpenClaw-Shield-Security.git projects/OpenClaw-Shield # Test the scanner python3 projects/OpenClaw-Shield/src/scanner.py /path/to/scan ``` ### Technical Analysis The installation instructions clone the current default branch of an external GitHub repository and then execute its `src/scanner.py` file. No immutable commit hash, release signature, checksum, or other integrity verification is specified. The executable scanner source is not included in the audited artifact, which contains only documentation and metadata. Consequently, the effective payload cannot be reviewed as part of this package and may change after the Skill has been approved. A repository maintainer, compromised maintainer account, or attacker controlling the upstream repository could replace the scanner with arbitrary code. This behavior also contradicts the package's claim of “zero supply chain risk.” While using an external repository is not by itself proof that its current contents are malicious, downloading mutable code and immediately executing it establishes an unaudited remote code-execution channel. ### Attack Path 1. An agent or operator follows the installation instructions in `SKILL.md`. 2. `git clone` retrieves the external repository's current default branch. 3. The repository contents differ from those previously reviewed, either through a legitimate update or upstream compromise. 4. The operator executes the downloaded `src/scanner.py`. 5. Attacker-controlled Python code runs with the permissions and environmental access of the invoking account. ### Impact Assessment Successful exploitation provides arbitrary code execution under the invoking user's privileges. Depending on the environm ...[truncated 422 chars]
- Remediation
- ## Remediation Suggestions - Include the complete scanner implementation in the Skill package so its executable behavior is covered by the same security review. - If external retrieval is unavoidable, pin the repository to a specific audited commit rather than using its mutable default branch. - Verify a documented cryptographic checksum or trusted release signature before executing any downloaded file. - Require explicit user approval after retrieval and before execution. - Review and document the scanner's required filesystem, process, and network permissions. - Run the scanner in a restricted environment with read-only access to scan targets, no unnecessary credentials, and network access disabled unless explicitly required. - Establish a controlled update process in which each new upstream version is reviewed and assigned a new verified hash.
