Appearance
SEC433 / MD-GIT-FETCH-ALLOWED-TOOLS
SEC433 flags AI-native markdown frontmatter when allowed-tools grants the exact token Bash(git fetch:*).
Why It Matters
Blanket git fetch authority normalizes remote repository synchronization as default team policy. In shared AI instructions, that broadens network-driven code ingestion beyond a narrowly reviewed fetch workflow.
Trigger Shape
The rule triggers only when all of these are true:
- the file is an AI-native markdown instruction surface with parsed frontmatter
- the path is not fixture-like
allowed-toolsorallowed_toolscontains the exact tokenBash(git fetch:*)
Clean Cases
These stay clean:
- more specific reviewed commands such as
Bash(git fetch origin main) - frontmatter that does not grant
git fetch - fixture-like examples under test or fixture paths
Example Trigger
md
---
allowed-tools:
- Bash(git fetch:*)
- Read
---Safer Example
md
---
allowed-tools:
- Bash(git fetch origin main)
- Read
---How To Fix
Replace Bash(git fetch:*) with a narrower reviewed command pattern, or remove broad fetch authority from shared frontmatter entirely.