Appearance
SEC466 / MD-RM-ALLOWED-TOOLS flags AI-native markdown frontmatter that grants blanket rm authority through allowed-tools.
Why this matters:
Bash(rm:*)gives destructive file-removal authority as a default shared capability- the grant is much broader than a reviewed cleanup workflow
- shared instructions should prefer a narrow scoped command instead of open-ended deletion authority
Triggers:
yaml
allowed-tools: Bash(rm:*)Does not trigger:
yaml
allowed-tools: Bash(rm ./tmp/output.txt)Remediation:
- replace
Bash(rm:*)with a narrower reviewed cleanup command or remove the grant entirely