Appearance
SEC470 / MD-SU-ALLOWED-TOOLS flags AI-native markdown frontmatter that grants blanket su authority through allowed-tools.
Why this matters:
Bash(su:*)gives broad privilege-switch authority as a default shared capability- the grant is wider than a reviewed privilege-switch workflow
- shared instructions should prefer a narrow scoped command instead of open-ended user switching
Triggers:
yaml
allowed-tools: Bash(su:*)Does not trigger:
yaml
allowed-tools: Bash(su deploy)Remediation:
- replace
Bash(su:*)with a narrower reviewed privilege-switch command or remove the grant entirely