T09 · Insecure Skill Coding Practices
- Location
scripts/gui_action.sh:29- Finding
Command Execution Through scrot Option Injection
- Content
View full analysis
- Remediation
View remediation
&2 exit 1 fi scrot -z -- "$1" ;; ``` Additional hardening measures: 1. Confirm that the deployed `scrot` version supports `--` as an end-of-options marker. 2. Restrict screenshots to an approved directory and resolve the destination to a normalized absolute path. 3. Reject control characters, path traversal components, and unexpected filename extensions if callers are not supposed to choose arbitrary paths. 4. Validate the argument count for every action in the wrapper. 5. Run desktop automation under a minimally privileged user account without access to unrelated credentials or sensitive files. ]]>
