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