Appearance
SEC445 / MD-GIT-AM-ALLOWED-TOOLS
SEC445 flags AI-native markdown frontmatter when allowed-tools grants the exact token Bash(git am:*).
Why It Matters
Blanket git am authority lets an agent apply mail-form patch series by default. In shared AI instruction frontmatter, that is a broad history-changing grant and should stay narrow and reviewable.
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 am:*)
Clean Cases
These stay clean:
- more specific reviewed commands such as
Bash(git am 0001.patch) - frontmatter that does not grant
git am - fixture-like examples under test or fixture paths
Example Trigger
md
---
allowed-tools:
- Bash(git am:*)
- Read
---Safer Example
md
---
allowed-tools:
- Bash(git am 0001.patch)
- Read
---How To Fix
Replace Bash(git am:*) with a narrower reviewed command pattern, or remove broad mail-patch application authority from shared frontmatter entirely.