T08 · Insecure Dependencies
- Location
SKILL.md:58- Finding
Unpinned Third-Party Code Is Downloaded and Installed
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 58-69
Vulnerability Type: Unpinned third-party dependency and mutable upstream source
Risk Level: Highbash **Clone project** ```bash git clone https://github.com/zai-org/Open-AutoGLM.git \ ~/.openclaw/workspace/projects/phone-controller/Open-AutoGLMInstall Python dependencies
bash cd ~/.openclaw/workspace/projects/phone-controller/Open-AutoGLM python3 -m venv .venv .venv/bin/pip install -r requirements.txt .venv/bin/pip install -e .text ### Technical Analysis The deployment procedure clones the mutable default branch of an external repository without pinning it to a reviewed commit or signed release. It then processes the repository's dependency manifest and installs the repository itself in editable mode. Package installation can execute package build hooks and other attacker-controlled installation logic. Because neither the repository revision nor dependency hashes are fixed, the code executed by a future installation can differ from the code reviewed during this audit. The document later recommends pinning a revision, but the operative installation commands do not implement that control. ### Attack Path 1. An attacker compromises the upstream repository, a maintainer account, or one of its unresolved dependencies. 2. The attacker adds malicious installation logic or changes a dependency reference on the default branch. 3. A user follows the documented `git clone` command and receives the modified content. 4. The user runs `pip install -r requirements.txt` or `pip install -e .`. 5. Attacker-controlled package or build logic executes with the privileges of the user running the installation. ### Impact Assessment Successful exploitation could provide arbitrary code execution under the installing user's account. This may permit access to that user's files, environment variables, API credentials, ADB connecti ...[truncated 259 chars]- Remediation
View remediation
Remediation Suggestions
- Pin Open-AutoGLM to a specifically reviewed commit hash or a signed, immutable release tag.
- Verify the downloaded revision before installation, including its commit signature where available.
- Replace unconstrained requirements with a lock file containing exact versions and cryptographic hashes.
- Install dependencies with hash enforcement, such as
pip install --require-hashes. - Review package build configuration and installation hooks before execution.
- Avoid editable installation in production deployment.
- Run installation and execution in an isolated, unprivileged environment with restricted filesystem and network access.
- Update the documented commands so that revision and integrity verification are mandatory rather than advisory.
