T09 · Insecure Skill Coding Practices
Error
- Location
operation-patterns.md:11- Finding
Command and AppleScript Injection Through Unsafe Input Interpolation
- Content
View full analysis
" ``` ``` From `operation-patterns.md:11-16`: ```markdown ## Direct Link Open Pattern 1. Validate link format (`https://apple.news/...`). 2. Preview exact link before launch. 3. Open with `open -a /System/Applications/News.app ""`. 4. Confirm app foreground and link-open outcome. ``` ### Technical Analysis The documented workflows instruct the agent to substitute user-controlled links and locally discovered Shortcut names into command strings. The documentation does not define a strict URL parser, an allowed path grammar, a safe character policy for Shortcut names, or an argument-array execution requirement. Placing input inside shell double quotes is not sufficient protection. Shell constructs such as command substitution can still be interpreted if an implementation constructs a command string and invokes it through a shell. A malicious value containing syntax such as `$()` or backticks could therefore execute an additional command rather than remaining a literal argument. The AppleScript fallback presents an additional interpreter boundary. A URL is embedded directly inside AppleScript source passed to `osascript -e`. If a dynamic value can terminate t ...[truncated 1717 chars]- Remediation
View remediation
