Appearance
SEC463 / MD-SUDO-ALLOWED-TOOLS
SEC463 flags AI-native markdown when shared frontmatter grants exact Bash(sudo:*) authority through allowed-tools or allowed_tools.
Why It Matters
Bash(sudo:*) gives shared instructions blanket privilege-escalation authority. In AI-native frontmatter, that turns privileged execution into a default team-wide capability instead of a reviewed narrow workflow.
What Triggers It
- AI-native markdown surface with frontmatter
allowed-toolsorallowed_toolscontains exactBash(sudo:*)
The finding points to the exact frontmatter token.
What Does Not Trigger It
- more specific reviewed commands such as
Bash(sudo apt-get update) - fixture-like frontmatter paths used only for tests
- frontmatter without
Bash(sudo:*)
Example
Bad:
yaml
allowed-tools: Bash(sudo:*), ReadBetter:
yaml
allowed-tools: Bash(sudo apt-get update), ReadRemediation
Review whether shared Bash(sudo:*) access is really needed. Prefer a narrower reviewed privileged workflow instead of a blanket team-wide sudo grant.