T09 · Insecure Skill Coding Practices
- Location
SKILL.md:17- Finding
Unsafe Image Path Interpolation Enables Local Code Injection
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This image-editing skill is mostly purpose-aligned, but it includes an unsafe command example that could let a malicious image path run local code if followed literally.
Review before installing. The skill should be safe to use only if agents treat image paths as data, validate they are expected local image files, and avoid literal string substitution into python3 -c snippets. The publisher should revise the command example to pass paths via argv or another structured channel.
SKILL.md:17Unsafe Image Path Interpolation Enables Local Code Injection
The skill description is broad enough to match many generic image-editing requests, which can cause the agent to invoke this skill in situations it was not specifically designed or constrained for. Overbroad routing increases the chance of inappropriate tool use, mishandling unsupported formats or workflows, and bypassing more suitable or safer skills.
Hard-coding a specific font choice, especially a language-specific system font, can produce incorrect or misleading edits when the original typography differs or the environment lacks that font. In an image-editing skill, this can cause integrity issues in the output and may alter meaning or reveal environment-specific assumptions rather than respecting user intent.
This JSON file contains natural-language prompts and expected outputs exclusively in Chinese, which implies a fixed language requirement for the skill's behavior. Under the policy rules, forcing a specific language without offering user choice or documenting a justified locale restriction is a natural-language policy concern.
No suspicious patterns detected.