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