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