Appearance
SEC432 / MD-GIT-ADD-ALLOWED-TOOLS
SEC432 flags AI-native markdown frontmatter when allowed-tools grants the exact token Bash(git add:*).
Why It Matters
Blanket git add authority lets an agent stage arbitrary repository changes by default. In shared AI instruction frontmatter, that widens mutation authority beyond a narrowly reviewed 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 add:*)
Clean Cases
These stay clean:
- more specific reviewed commands such as
Bash(git add src/lib.rs) - frontmatter that does not grant
git add - fixture-like examples under test or fixture paths
Example Trigger
md
---
allowed-tools:
- Bash(git add:*)
- Read
---Safer Example
md
---
allowed-tools:
- Bash(git add src/lib.rs)
- Read
---How To Fix
Replace Bash(git add:*) with a narrower reviewed command pattern, or remove broad staging authority from shared frontmatter entirely.