T09 · Insecure Skill Coding Practices
- Location
SKILL.md:57- Finding
Unprotected Destructive Deletion of Aged Workspace Files
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is mostly coherent for OpenClaw cost tuning, but it gives broad activation guidance and unsafe cleanup instructions that could delete workspace and memory data without safeguards.
Review this skill before installing. Its diagnostics and model-cost advice are reasonable, but do not run the cleanup commands as written; first list candidate files, make backups, and explicitly choose what to remove. Also verify any changes to openclaw.json or soul.md because they can persistently alter OpenClaw behavior.
SKILL.md:57Unprotected Destructive Deletion of Aged Workspace Files
The activation text is excessively broad and includes generic phrases like '帮我省钱', '优化配置', and '检查一下有没有浪费', which could trigger the skill during ordinary conversation unrelated to safe cost optimization workflows. Over-broad auto-activation increases the chance that users are steered into running diagnostic or cleanup commands unnecessarily, expanding the blast radius of the skill's later operational guidance.
The skill recommends destructive deletion actions like 'find ~/.openclaw/workspace -mtime +30 -type f -delete' and deletion of old memory/skill data without prominent warnings, dry-run steps, or backup guidance. In a cost-optimization skill, users are more likely to follow cleanup advice quickly, so missing safeguards can lead to accidental loss of important state, work artifacts, or long-term memory that may be expensive or impossible to reconstruct.
No suspicious patterns detected.