Appearance
SEC496 / MD-UVX-ALLOWED-TOOLS
SEC496 flags AI-native markdown frontmatter when allowed-tools grants the exact token Bash(uvx:*).
Why It Matters
uvx resolves and executes packages through a mutable runner path. In shared frontmatter, that quietly makes on-demand package execution a default capability for everyone who loads the file.
Trigger Shape
The rule triggers only when all of these are true:
- the file is an AI-native markdown instruction surface
- the path is not fixture-like
allowed-toolsorallowed_toolscontains the exact tokenBash(uvx:*)
Clean Cases
These stay clean:
- more specific project commands such as
Bash(uv run black) - frontmatter without
Bash(uvx:*) - fixture-like examples under test or fixture paths
Example Trigger
yaml
allowed-tools:
- Bash(uvx:*)
- ReadSafer Example
yaml
allowed-tools:
- Bash(uv run black)
- ReadHow To Fix
Replace Bash(uvx:*) with a narrower reviewed command, or remove shared mutable package-execution authority from the frontmatter entirely.