T09 · Insecure Skill Coding Practices
- Location
main.py:14- Finding
Unbounded Image Decoding Enables Resource Exhaustion
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This image deduplication skill does what it claims, but it can automatically move many user files with overstated safety claims and no review or rollback step.
Install only if you are comfortable with an automated tool moving images out of their original folders. Run it first on a small copied test folder, use a very strict similarity value, and avoid pointing it at a whole home directory, shared business library, or irreplaceable photo archive until it has a dry-run or review mode.
main.py:14Unbounded Image Decoding Enables Resource Exhaustion
main.py:75Automatic Bulk File Relocation Without Confirmation or Rollback
README.md:26Documentation Misrepresents Local Relocation as Risk-Free Trash Handling
The skill advertises recursive scanning of arbitrary folders and necessarily reads many files, but it does not declare any explicit tool scope or permissions boundaries. That increases the risk of over-broad file access because an agent may invoke it against sensitive directories without clear least-privilege constraints or user-visible permission metadata.
The invocation phrases are broad natural-language patterns such as 'scan all images in [folder path] with [similarity] deduplication,' which could match normal user requests and trigger the skill unexpectedly. Because this skill performs recursive file operations and moves files to trash, accidental invocation could cause unintended large-scale file enumeration or modifications.
The document is presented only in Chinese and English, which may imply a fixed language set rather than offering user choice. If the skill itself is intended to operate only in these languages, that should be explicitly documented as a justified constraint or presented as an option rather than an assumed default.
The markdown states that the tool will automatically move low-quality duplicate images to the recycle bin/trash, which is a file-modifying operation that can affect user data organization. Although it says files are not deleted, it does not clearly warn users about the operational impact or recommend reviewing results before running it.