T09 · Insecure Skill Coding Practices
- Location
SKILL.md:159- Finding
Workspace-Controlled Quality-Gate Configuration Enables Arbitrary Command Execution
- Content
View full analysis
Checks use configured values from `quality_gates` section. Defaults: test_command=`npm test`, > coverage_threshold=5, require_docs=true. ``` ### Technical Analysis The skill instructs the agent to load `test_command` from configuration files located in the current workspace and execute that value as a quality-gate command. The documented interface represents the command as an unrestricted string rather than an allowlisted executable and structured argument array. A repository author can therefore supply a malicious `.openclaw/review-orchestrator.yaml` or `.claude/review-orchestrator.yaml` containing shell operators, command substitutions, pipelines, or an entirely different executable. If the underlying agent passes this string to a shell when `/ro gate` is invoked, the configuration becomes an arbitrary command-execution ...[truncated 1683 chars]- Remediation
View remediation
