T09 · Insecure Skill Coding Practices
- Location
cleanup.sh:4- Finding
Predictable temporary log path permits symlink-based privileged file modification
- Content
View full analysis
- Remediation
View remediation
&2 exit 1 fi ``` 3. Create new log files atomically with restrictive permissions. Set a restrictive `umask`, for example: ```bash umask 077 ``` 4. If temporary storage is unavoidable, create a private directory with `mktemp -d`, install cleanup traps, and keep the log inside that directory. 5. Configure any scheduled execution to use a dedicated least-privileged service account rather than root wherever possible. ]]>
