T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:38
- Finding
- Unpinned Third-Party Repository Used as an Installation Source<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 38-44 **Vulnerability Type**: Unpinned and mutable third-party supply-chain dependency **Risk Level**: Medium ### Vulnerable Code ```markdown **Via ClawdHub (recommended):** ```bash clawdhub install self-improving-agent ``` **Manual:** ```bash git clone https://github.com/peterskoett/self-improving-agent.git ~/.openclaw/skills/self-improving-agent ``` Remade for openclaw from original repo : https://github.com/pskoett/pskoett-ai-skills - https://github.com/pskoett/pskoett-ai-skills/tree/main/skills/self-improvement ``` ### Technical Analysis The documented manual installation clones the default branch of a third-party GitHub repository directly into OpenClaw's trusted skill directory. The command does not pin an immutable commit, verify a release signature, or validate a cryptographic checksum. Consequently, the content installed by a user can differ from the artifact reviewed during this audit. If the upstream repository, maintainer account, or default branch is compromised, an attacker could modify `SKILL.md`, hook handlers, or shell scripts. OpenClaw could then load the altered instructions, and users could enable or invoke altered executable components. This is a supply-chain trust issue rather than confirmed malicious behavior in the audited package. No malicious remote payload was found in the current artifact. ### Attack Path 1. An attacker compromises the referenced GitHub repository, its maintainer account, or the default branch. 2. The attacker replaces skill instructions or hook scripts with malicious content. 3. A user follows the documented `git clone` command without selecting a reviewed commit. 4. The mutable repository content is copied into `~/.openclaw/skills/self-improving-agent`. 5. OpenClaw loads the modified skill instructions. 6. If the user follows the optional hook setup, modified hook code may also run with the permissions of the OpenClaw process. ### I ...[truncated 553 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin manual installation to a reviewed commit rather than the mutable default branch: ```bash git clone https://github.com/peterskoett/self-improving-agent.git ~/.openclaw/skills/self-improving-agent git -C ~/.openclaw/skills/self-improving-agent checkout --detach <reviewed-commit-sha> ``` 2. Prefer immutable, signed release artifacts over direct default-branch clones. 3. Publish a SHA-256 checksum for each supported release and instruct users to verify it before installation. 4. Use signed Git tags or commits and document signature verification. 5. Treat hooks as executable code and require a separate review before enabling them. 6. Document the exact version and commit corresponding to the audited package. 7. If ClawdHub provides integrity locking or publisher verification, require and document those controls. ]]>
