T09 · Insecure Skill Coding Practices
- Location
SKILL.md:24- Finding
Shell Command Injection Through Unescaped Task Parameters
- Content
View full analysis
/tmp/workbuddy-injection-result; # ``` If an agent substitutes that value into the documented command and executes the result through a shell, the resulting command can run `id` independently of `qclaw_queue.py`. Command substitutions such as `$(command)` may also be evaluated by the shell inside double-quoted arguments. The risk applies to the task description and potentially to the values passed through `--intent` and `--ctx`. The implementation of `qclaw_queue.py` is outside this project and was not available for review, so this finding concerns the unsafe shell-command construction explicitly prescribed by the skill. ### Attack Path 1. An attacker submits a WorkBuddy task containing shell syntax, such as a quote terminator followed by a command separator and an operating-system command. 2. The agent follows `SKILL.md` and interpolates the attacker-controlled task into the documented command templ ...[truncated 1028 chars]- Remediation
View remediation
