T09 · Insecure Skill Coding Practices
- Location
scripts/batch_rename.py:174- Finding
User-Controlled Rename Values Permit Files to Be Moved Outside the Target Directory
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is a coherent batch file renamer, but its bundled script can move files outside the chosen folder and performs real bulk renames without strong containment.
Install only if you are comfortable with a bulk file-renaming tool that can change many filenames at once. Before use, require a preview of every old and new path, avoid recursive runs unless necessary, and do not allow rename patterns containing path separators, absolute paths, or parent-directory components such as '..'.
scripts/batch_rename.py:174User-Controlled Rename Values Permit Files to Be Moved Outside the Target Directory
The skill instructs the agent to perform filesystem-modifying actions via a rename script, but it does not declare any explicit tool scope or permission boundaries. In practice this can enable broader-than-expected file read/write access, making accidental or unintended renames more likely if the agent is invoked in the wrong context.
The trigger text includes open-ended language such as 'or similar requests,' which can cause the skill to activate on ambiguous prompts. Because this skill performs destructive file-renaming operations, unintended invocation increases the risk of accidental bulk changes to user files.