T09 · Insecure Skill Coding Practices
- Location
SKILL.md:24- Finding
Shell Command Injection Through Unsafe Prompt Interpolation
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is coherent for delegating coding work to Claude Code, but it teaches high-impact background execution patterns with broad edit authority and some unsafe shell-command examples.
Install only if you intentionally want OpenClaw to launch Claude Code with project-level coding authority. Use restricted tools and explicit work directories, avoid copying untrusted text directly into shell command strings, review HANDOFF.md before resuming, monitor or stop background sessions, verify temporary paths before cleanup, and consider pinning the Claude Code package version.
SKILL.md:24Shell Command Injection Through Unsafe Prompt Interpolation
SKILL.md:8Unpinned Claude Code npm Dependency
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
exec pty:true workdir:/tmp/pr-review command:"claude --permission-mode plan 'Review this PR. Focus on bugs, security issues, and performance. Show diff summary.'"
exec command:"rm -rf /tmp/pr-review"
### Parallel Issue Fixing with Git Worktrees
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
exec pty:true workdir:/tmp/pr-review command:"claude --permission-mode plan 'Review this PR. Focus on bugs, security issues, and performance. Show diff summary.'"
exec command:"rm -rf /tmp/pr-review"
### Parallel Issue Fixing with Git Worktrees
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
exec command:"gh pr create --repo user/repo --head fix/issue-78 --title 'fix: ...' --body '...'"
exec command:"git worktree remove /tmp/issue-78" exec command:"git worktree remove /tmp/issue-99"
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
exec command:"git worktree remove /tmp/issue-78" exec command:"git worktree remove /tmp/issue-99"
### Fan-Out Pattern (Bulk Operations)
Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.
For tasks that exceed context limits, write progress to a handoff file:
# In the Claude Code session, ask it to write progress
The skill recommends persisting session state into HANDOFF.md and then resuming work from that file in a fresh session. This can propagate untrusted or stale instructions across runs, preserve sensitive data in the repository, and make prompt-injection or workflow manipulation persist beyond the original session.
For tasks that exceed context limits, write progress to a handoff file:
# In the Claude Code session, ask it to write progress
The markdown includes a recursive deletion command (rm -rf /tmp/pr-review) as part of the workflow, but does not explicitly warn that it permanently deletes the checked-out review workspace. Although the section is generally framed as cleanup, the criteria call for warning users about behaviors that could affect user data or system integrity.
No suspicious patterns detected.