T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:48- Finding
Unbounded Destructive Workspace Repair
- Content
View full analysis
/` 6. **Naming violations** — Rename directory to lowercase-hyphen-case ``` The filename-based classification that feeds this workflow is implemented in `scripts/audit_skill.py:14-17, 82-85`: ```python EXTRANEOUS_FILES = { 'README.md', 'INSTALLATION_GUIDE.md', 'QUICK_REFERENCE.md', 'CHANGELOG.md', 'INSTALL.md', 'SETUP.md', 'CONTRIBUTING.md', } # 4. Extraneous files for fname in EXTRANEOUS_FILES: if (path / fname).exists(): issues.append(f"Extraneous file: {fname} (remove — skills should not contain auxiliary docs)") ``` ### Technical Analysis The skill discovers every `SKILL.md` beneath the entire workspace rather than restricting discovery to an explicitly authorized skill directory. It then directs the Agent to modify frontmatter, delete files, move directories, and rename directories for every result classified as non-compliant. These destructive actions lack: - Explicit user confirmation for each change. - Canonical-path and workspace-boundary validation. - Verification that ...[truncated 2408 chars]- Remediation
View remediation
