T09 · Insecure Skill Coding Practices
- Location
SKILL.md:390- Finding
Overbroad Bulk Publication Command May Expose Unrelated Skills
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:390-395
Vulnerability Type: Overbroad publication scope
Risk Level: MediumVulnerable Code:
markdown To share with others, publish to ClawHub: ```bash clawhub sync --alltext ### Technical Analysis The documented command uses the global `--all` option even though the stated operation is to publish this individual onboarding skill. Depending on the OpenClaw CLI's configured scope, the command may synchronize every eligible local skill instead of limiting publication to `openclaw-onboarding`. This violates least-scope principles for publication operations. Local skill directories may contain proprietary instructions, internal service information, credentials embedded in configuration, or unfinished content that was never intended for public distribution. The issue does not require code execution by an attacker; it relies on a user following an unnecessarily broad command presented by the skill. ### Attack Path 1. A user installs or reviews this skill and follows its sharing instructions. 2. The user runs `clawhub sync --all`. 3. The CLI enumerates all eligible skills in its configured local scope. 4. Unrelated skills are synchronized to ClawHub alongside this project. 5. If those skills contain private or sensitive material, that material becomes accessible through the publication destination according to its visibility settings. ### Impact Assessment The command does not directly grant local system privileges. Its impact is on the confidentiality and publication scope of local skill content. It could disclose unrelated proprietary instructions, internal URLs, operational configuration, or secrets stored in other skills. The maximum scope is all content selected by the CLI's `--all` behavior under the invoking user's account and workspace.- Remediation
View remediation
Remediation Suggestions
- Replace
clawhub sync --allwith a CLI command explicitly scoped toopenclaw-onboarding. - If the CLI does not support a skill-specific sync operation, instruct users to publish from an isolated directory containing only the intended skill.
- Add a mandatory pre-publication review step that displays the exact files, skill names, destination, and visibility.
- Warn users not to publish files containing credentials, private endpoints, personal data, or proprietary instructions.
- Recommend testing the command with a dry-run or listing option, if supported, before performing the upload.
- Replace
