T09 · Insecure Skill Coding Practices
- Location
scripts/imagegen.py:86- Finding
Unvalidated Network Destinations Allow Credential Disclosure, Image Exfiltration, and SSRF
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This product-retouch skill is coherent, but its API and image-transfer code permits unvalidated endpoints and unsafe downloads, so it should be reviewed before use.
Install only if you are comfortable sending selected product images and an AI Hive API key through this script. Use the default AI Hive endpoint, avoid untrusted base URLs or config files, choose a safe output directory, and treat this as Review-worthy until URL validation, safe filenames, and download limits are added.
scripts/imagegen.py:86Unvalidated Network Destinations Allow Credential Disclosure, Image Exfiltration, and SSRF
scripts/imagegen.py:362Unsanitized Task Metadata Enables Output Path Traversal and Unbounded File Downloads
This markdown file contains substantive skill documentation only in Chinese, which can amount to a language-policy issue when no user opt-in or locale limitation is stated. The file does not indicate that the skill is intentionally region-specific or provide an alternative language option.
The skill invokes a local Python script, reads user-supplied image paths, writes configuration and output files, and makes network requests, yet it declares no explicit tool scope or permission boundaries. That creates an over-privileged execution model where an agent may use shell, filesystem, environment, and network capabilities more broadly than intended, increasing the blast radius if the script or surrounding orchestration is abused.
The manifest description and operating instructions are written to prescribe use in Chinese and do not indicate that the user may choose another language or locale. This is a natural-language policy concern because the skill appears to impose a specific language without opt-in or an explicit justified locale restriction.
The manifest describes a narrowly scoped product-photo retouching skill focused on fidelity-preserving edits to existing product images. However, the generate command accepts arbitrary prompts and only optionally accepts reference images, which enables broader text-to-image generation rather than just retouching existing product photos.
The placeholder value for api_key uses Chinese text (请替换为你的APIKey), which imposes a specific language in user-facing configuration content. There is no indication that the skill is region-specific or that users can choose their preferred language, so this appears to violate the language/locale policy.
The manifest emphasizes using GPT Image 2 to retouch product photography through AI Hive editing. Exposing a generic task lookup command allows inspection of generation tasks independently of the declared retouching action, which is a broader operational capability than the user-facing description suggests.
No suspicious patterns detected.