T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:39- Finding
Mutable Remote Payload Retrieval and Execution
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 39-42
Vulnerability Type: Remote payload retrieval and unsafe dependency installation
Risk Level: HighVulnerable Code
bash git clone https://github.com/openclaw-skills/ai-intelligent-contract-review cd ai-intelligent-contract-review pip install -r requirements.txt python app.pyTechnical Analysis
The installation instructions direct users to clone a mutable external Git repository, install the dependencies declared by that repository, and execute its application. The reviewed package does not contain the referenced
requirements.txt,app.py, or any implementation that would allow the effective payload and dependency set to be audited.Because the command does not pin the repository to a verified commit or release, its contents can change after this skill package has been reviewed. Moreover,
pip installmay execute package build or installation logic, while the subsequentpython app.pycommand directly executes the remotely obtained application.This constitutes remote payload retrieval and execution. It also creates an insecure dependency chain because package names, versions, hashes, and installation behavior cannot be verified from the submitted artifact.
Attack Path
- An attacker compromises the referenced repository, its maintainer account, or an included dependency.
- The attacker modifies
app.py,requirements.txt, or a dependency installation script to contain malicious code. - A user follows the documented installation instructions and clones the current mutable repository state.
pip install -r requirements.txtinstalls the attacker-controlled dependency set and may execute malicious build-time code.- The user runs
python app.py, directly executing the remotely supplied payload. - The payload operates with the privileges of the user performing the installation.
Impact Assessment
Succe ...[truncated 660 chars]
- Remediation
View remediation
Remediation Suggestions
- Include the complete application, dependency manifest, and relevant installation files in the reviewed skill artifact.
- If external retrieval is necessary, pin the repository to an immutable, reviewed commit hash rather than cloning the default branch.
- Verify downloaded content using cryptographic signatures or published checksums before installation or execution.
- Pin all Python dependencies to exact versions and require cryptographic hashes, such as through a lock file or
pip install --require-hashes. - Review transitive dependencies and obtain packages only from explicitly trusted registries.
- Avoid immediately executing remotely downloaded applications. Require a separate verification and approval step.
- Perform installation and execution in an isolated, least-privileged environment without production credentials or sensitive filesystem access.
- Ensure the documented author and repository ownership are verified before directing users to the external source.
