T08 · Insecure Dependencies
- Location
references/validated-example-gimp.md:15- Finding
Unsafe Installation of Unreviewed Local Harnesses into System-Managed Python
- Content
View full analysis
Vulnerability Details
File Location:
references/validated-example-gimp.md:15-27; related workflow guidance inSKILL.md:70-75andSKILL.md:94-101
Vulnerability Type: Unsafe third-party dependency installation and insufficient environment isolation
Risk Level: MediumVulnerable Code and Guidance
references/validated-example-gimp.md:15-27:markdown ### Python dependencies installed for the harness Installed into the current machine Python environment: - `Pillow` - `numpy` - `prompt_toolkit` ### Harness installation Installed from: - `/root/.openclaw/workspace/CLI-Anything/gimp/agent-harness` Command used conceptually: ```bash python3 -m pip install --break-system-packages -e /root/.openclaw/workspace/CLI-Anything/gimp/agent-harnesstext Related instructions in `SKILL.md:70-75`: ```markdown 1. Locate `<software>/agent-harness/` 2. Read its `setup.py`, package layout, and local README/SOP file 3. Identify hard dependencies on the real software backend 4. Install or verify Python requirements only as needed 5. Validate the CLI entry point and a minimal commandRelated instructions in
SKILL.md:94-101:markdown - Treat third-party generated code as reviewable output, not automatically trusted output. - For publishing, require explicit user intent before pushing anything external. - If packaging for ClawHub, keep the skill lean and point to local references instead of pasting huge docs into `SKILL.md`. ## Useful script Use `scripts/inspect_cli_anything.py` to quickly inspect the local repo and enumerate bundled harnesses.Technical Analysis
The documented workflow installs an editable package from a separate, mutable local checkout into the current machine's Python environment. Python package installation can execute attacker-controlled or compromised packaging and build logic, including code referenced by
setup.py, build b ...[truncated 2269 chars]- Remediation
View remediation
Remediation Suggestions
-
Replace the system-level installation example with an isolated virtual environment:
bash python3 -m venv /root/.openclaw/workspace/.venvs/cli-anything-gimp /root/.openclaw/workspace/.venvs/cli-anything-gimp/bin/python -m pip install --upgrade pip /root/.openclaw/workspace/.venvs/cli-anything-gimp/bin/python -m pip install -e /root/.openclaw/workspace/CLI-Anything/gimp/agent-harness -
Remove
--break-system-packagesfrom all recommended commands and explicitly prohibit installation into the operating system's Python environment. -
Require review of
setup.py,pyproject.toml, build-backend configuration, console entry points, imported initialization code, and dependency declarations before installation. -
Pin transitive dependencies to reviewed versions. Where packages are downloaded, use a lock file and verified hashes, such as pip's
--require-hashes, and restrict installation to approved package indexes. -
Pin the external CLI-Anything checkout to a reviewed commit and verify its provenance and integrity before inspecting or installing any harness.
-
Prefer building a wheel in a restricted environment and inspecting its contents before installing it into the dedicated virtual environment.
-
Run initial installation and validation with least privilege, without secrets in the environment, and with filesystem and network access restricted where practical.
-
Update
SKILL.mdso that security review and isolated installation are mandatory workflow steps rather than advisory language.
-
