T09 · Insecure Skill Coding Practices
- Location
SKILL.md:225- Finding
Shell Command Injection Through User-Controlled Search Keywords
- Content
View full analysis
" $HOME/memory/ ``` The attack succeeds when the Agent passes the resulting stri ...[truncated 789 chars]- Remediation
View remediation
" "" ``` 5. Reject null bytes and control characters before invoking external tools. 6. Use a fixed, canonical memory root rather than incorporating user input into the search root. 7. Run command execution in a sandbox with minimal filesystem and network permissions. 8. Update the operational instructions to make safe argument handling mandatory rather than presenting it only as a general security warning. 9. Add tests using inputs containing quotes, semicolons, command substitutions, redirection operators, newlines, and leading hyphens. ]]>
