T09 · Insecure Skill Coding Practices
Error
- Location
SKILL.md:55- Finding
Unsafe Rename Operations Can Silently Overwrite Existing Files
- Content
View full analysis
- Remediation
View remediation
&2 exit 1 fi mv -n -- "$f" "$new" ``` - Check both `-e` and `-L` so that dangling symbolic links are also treated as collisions. - Abort the entire batch before making changes when any conflict is found, rather than detecting conflicts after partial execution. - Preserve a manifest of original and destination names to support review and recovery. - Keep the documented dry-run requirement, but do not rely on manual review as the only collision control. ]]>
