T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:42- Finding
Mutable Remote Code Retrieval, Dependency Installation, and Execution
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 42-45
Vulnerability Type: Remote payload retrieval and insecure dependency execution
Risk Level: HighVulnerable Code
bash git clone https://github.com/openclaw-skills/ai-intelligent-api-management cd ai-intelligent-api-management pip install -r requirements.txt python app.pyTechnical Analysis
The skill package contains no application source code,
requirements.txt, orapp.pyto support the advertised functionality. Instead, its installation instructions direct users to clone a mutable external Git repository, install its unspecified Python dependencies, and execute the downloaded application.No immutable commit reference, release checksum, signature, dependency lockfile, pinned package versions, or package hashes are specified. Consequently, the effective code executed by a user can differ from the content available when this skill was audited. The
pip installoperation may also execute package build or installation logic, including logic from transitive dependencies, beforeapp.pyis launched.This creates two related supply-chain risks:
- The remote repository owner, a compromised maintainer account, or another party capable of modifying the repository can replace the retrieved application with arbitrary code.
- An altered dependency manifest, unpinned package resolution, dependency confusion, or a compromised transitive dependency can introduce arbitrary installation-time or runtime code.
Attack Path
- An attacker compromises or otherwise gains modification access to the referenced remote repository, or compromises a dependency selected by its
requirements.txt. - The attacker adds malicious Python code to
app.py, a local package installation hook, or a direct or transitive dependency. - A user follows the documented commands without an immutable revision or integrity verification.
git cloneretriev ...[truncated 1130 chars]
- Remediation
View remediation
Remediation Suggestions
- Include the implementation and dependency manifest within the audited skill package so that the installed code matches the reviewed artifact.
- If remote retrieval is unavoidable, reference an immutable commit hash or signed release rather than the repository's mutable default branch.
- Publish and verify a cryptographic checksum or signature for every downloaded artifact before installation or execution.
- Use a reproducible lockfile with exact direct and transitive dependency versions.
- Require package hashes, such as through
pip install --require-hashes, and retrieve packages only from an explicitly trusted index. - Review dependency provenance and guard against dependency confusion, typosquatting, compromised maintainers, and unsafe build hooks.
- Separate retrieval, verification, installation, and execution into distinct steps. Do not immediately execute newly downloaded code.
- Run installation and application startup in a sandbox or minimally privileged environment without unnecessary secrets, host filesystem access, or network permissions.
- Align the package metadata before release:
SKILL.mddeclares version1.0.1, whileskill.jsondeclares version1.0.0, and the files also identify different authors. Consistent provenance metadata will make artifact verification and release tracking more reliable.
