Appearance
SEC435 / MD-GIT-CONFIG-ALLOWED-TOOLS
SEC435 flags AI-native markdown frontmatter when allowed-tools grants the exact token Bash(git config:*).
Why It Matters
Blanket git config authority lets an agent rewrite repository or user git configuration as part of default shared policy. In AI-native instruction frontmatter, that is harder to review than a narrow workflow-specific command.
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 config:*)
Clean Cases
These stay clean:
- more specific reviewed commands such as
Bash(git config user.name belief) - frontmatter that does not grant
git config - fixture-like examples under test or fixture paths
Example Trigger
md
---
allowed-tools:
- Bash(git config:*)
- Read
---Safer Example
md
---
allowed-tools:
- Bash(git config user.name belief)
- Read
---How To Fix
Replace Bash(git config:*) with a narrower reviewed command pattern, or remove broad git configuration authority from shared frontmatter entirely.