T09 · Insecure Skill Coding Practices
- Location
SKILL.md:19- Finding
Unsafe Modification and Deletion of Persistent Agent Control Files
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a coherent workspace-cleaning tool, but it can rewrite or delete persistent agent control files with broad subjective criteria and limited rollback detail.
Install only if you are comfortable letting the skill reorganize persistent OpenClaw workspace state. Before approving any run, ask for a full diff, backups, explicit archive destinations, and a separate confirmation before BOOTSTRAP.md or any behavioral/safety instruction is deleted.
SKILL.md:19Unsafe Modification and Deletion of Persistent Agent Control Files
The skill explicitly performs workspace optimization by rewriting bootstrap files, archiving content, and potentially deleting files, but the top-level description does not warn users that it may modify or remove persistent workspace data. This can mislead a user into invoking the skill without understanding the scope of destructive changes, increasing the risk of unintended data loss or persistent state alteration.
The instruction to delete BOOTSTRAP.md after confirmation omits an explicit warning that deletion is irreversible and may remove information the user still needs. Even though the skill requires confirmation before execution, the confirmation prompt template does not specifically disclose file deletion risk, so consent may not be adequately informed.