Appearance
SEC438 / MD-GIT-RESET-ALLOWED-TOOLS
SEC438 flags AI-native markdown frontmatter when allowed-tools grants the exact token Bash(git reset:*).
Why It Matters
Blanket git reset authority lets an agent rewrite staged or working-tree state as part of a default shared policy. In AI-native instruction frontmatter, that is much harder to review than a narrow workflow-specific command.
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 reset:*)
Clean Cases
These stay clean:
- more specific reviewed commands such as
Bash(git reset --hard HEAD~1) - frontmatter that does not grant
git reset - fixture-like examples under test or fixture paths
Example Trigger
md
---
allowed-tools:
- Bash(git reset:*)
- Read
---Safer Example
md
---
allowed-tools:
- Bash(git reset --hard HEAD~1)
- Read
---How To Fix
Replace Bash(git reset:*) with a narrower reviewed command pattern, or remove broad git reset authority from shared frontmatter entirely.