Appearance
SEC443 / MD-GIT-CHERRY-PICK-ALLOWED-TOOLS
SEC443 flags AI-native markdown frontmatter when allowed-tools grants the exact token Bash(git cherry-pick:*).
Why It Matters
Blanket git cherry-pick authority lets an agent transplant arbitrary commits by default. In shared AI instruction frontmatter, that is a history-mutation grant that 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 cherry-pick:*)
Clean Cases
These stay clean:
- more specific reviewed commands such as
Bash(git cherry-pick abc1234) - frontmatter that does not grant
git cherry-pick - fixture-like examples under test or fixture paths
Example Trigger
md
---
allowed-tools:
- Bash(git cherry-pick:*)
- Read
---Safer Example
md
---
allowed-tools:
- Bash(git cherry-pick abc1234)
- Read
---How To Fix
Replace Bash(git cherry-pick:*) with a narrower reviewed command pattern, or remove broad cherry-pick authority from shared frontmatter entirely.