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