Appearance
SEC499 / MD-PIPX-RUN-ALLOWED-TOOLS
SEC499 flags AI-native markdown frontmatter when allowed-tools grants the exact token Bash(pipx run:*).
Why It Matters
pipx run executes packages through a mutable runner path. Shared frontmatter should not quietly normalize that as default execution authority.
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(pipx run:*)
Clean Cases
These stay clean:
- more specific project commands such as
Bash(python -m black) - frontmatter without
Bash(pipx run:*) - fixture-like examples under test or fixture paths
Example Trigger
yaml
allowed-tools:
- Bash(pipx run:*)
- ReadSafer Example
yaml
allowed-tools:
- Bash(python -m black)
- ReadHow To Fix
Replace Bash(pipx run:*) with a narrower reviewed command, or remove shared mutable package-execution authority from the frontmatter entirely.